Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. How to set a Field as Mandatory in the WEB OPAC ILL2 Forms?

    How to set a Field as Mandatory in the WEB OPAC ILL2 Forms?

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • Article Type: General
    • Product: Aleph
    • Product Version: 18.01

    Description:
    In the WEB OPAC a Book request form has mandatory fields Author and Title. We would also like Year of Publication field to be mandatory.

    For the Journal request form, we would like Volume field to be mandatory.

    How can we do this?

    Resolution:
    In both Book and Journal request forms for the new ILL2 module the MARC21 Bibliographic fields are the declared as following (example, Title field - 245):

    Book:
    <input size=40 maxlength=120 name="BIB_M_2451_a_1500" value="$1500">

    Journal:
    <input size=40 maxlength=120 name="BIB_M_2451_a_1500" value="$1500">

    As you can see, the "name" attribute has the following format:

    BIB - bibliographic field
    "_M_" - mandatory field? "_M_" means mandatory, "___" means not mandatory (optional)
    2451_ - field code and indicators
    a_ - subfield code
    1500 - placeholder, must match with the "value" attribute

    If you look the field 260$$c (Publication date) from the Book form (filename: new-ill-book-request) or Volume field (ISS$$v) from the Journal form (filename: new-ill-r-mn) will you see that the mandatory string of these fields are set to be "___" (optional):

    Book form (new-ill-book-request):
    <input size=15 maxlength=15 name="BIB___260__c_2100" value="$2100">

    Journal form (new-ill-r-mn):
    <input size=6 maxlength=6 name="BIB___ISS__v_2000" value="$2000">

    So, to make these fields mandatory you just need to edit both files (new-ill-book-request and new-ill-r-mn) and change the "BIB___" string to "BIB_M_". In the end, the lines will look as following:

    Book form (new-ill-book-request):
    <input size=15 maxlength=15 name="BIB_M_260__c_2100" value="$2100">

    Journal form (new-ill-r-mn):
    <input size=6 maxlength=6 name="BIB_M_ISS__v_2000" value="$2000">

    Make sure to clean the utf_files directory (util x/7) after applying the changes to the WEB OPAC files.

    Note: the form for the Journal request has more fields in the "new-ill-journal-request" and "new-ill-r-ser" files. If you wish to change how the fields behave in the future, please take a look in all these files to find where the field you want to change is located.

    Additional Information

    ILL2, WEB OPAC, Book Form, Journal Form, Mandatory Fields


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • How to set Words Adjacent by default making it not appear in Web OPAC Search
      • How to set all photocopy charges as free
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 18.01
      2. contype:kba
      3. Prod:Aleph
      4. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved