Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    User registration in Opac, zeros in birth date

     

    • Product: Aleph
    • Product Version: 20, 21, 22, 23
    • Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care

     

    Question    
    When registering a new user in the Opac field birth date is filled with zeros. The zeros can't be overwritten but you have to delete them before adding a real date. Can this be avoided somehow?

     

    Answer    
    The easiest way is to delete the zeros from the display in file www_f_lng/bor-new:

    In this section value "$2200" will be replaced by "":
    Old:
    <td class=td2>
    <input id="birth_day" name=N_Z303_BIRTH_DATE size=22 maxlength=8 value="$2200">
    <span class="text1"> (yyyymmdd)</span>
    </td>

    New:
    <td class=td2>
    <input id="birth_day" name=N_Z303_BIRTH_DATE size=22 maxlength=8 value="">
    <span class="text1"> (yyyymmdd)</span>
    </td>

    If the zeros shall not be displayed after the form is emptied add in the beginning section behind the following line ...
    document.form1.elements[i].name == "N_Z303_BIRTHPLACE" ||
    ... a new line ...
    document.form1.elements[i].name == "N_Z303_BIRTH_DATE" ||
    ... and delete the following 2 lines:
    if (document.form1.elements[i].name == "N_Z303_BIRTH_DATE")
    document.form1.elements[i].value = "00000000";

     

     


    • Article last edited: 6-Jun-2016
    • Was this article helpful?