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 convert patron status in X-Services to text -- or keep as code

    How to convert patron status in X-Services to text -- or keep as code

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Question
    2. Answer
    3. Additional Info

     

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

     

    Question

    How to control whether bor-status and bor-type appear as codes (03, CR) or as text ("Staff", "Cross registered students").

    Answer

    For every X-Service there is an option to use the translate mechanism. This mechanism, in general, is the same as the printing translate mechanism.
    The translate mechanism is active, unless the "translate" parameter is inserted and the value specified to be N (&translate=N).

     

    The .trn files can be found in $alephe_root/www_x_lng.


    If the lines in bor-auth.trn or, if none, the global.trn have

    PC-TAB-EXP S: 

    z305-bor-type PC-TAB-EXP S BOR-TYPE 
    z305-bor-status PC-TAB-EXP S BOR-STATUS 

    the text description is used: 

    <z305-bor-type>Cross registered students</z305-bor-type> 
    <z305-bor-status>Staff </z305-bor-status> 

     

    If the lines are commented out in global.trn and there is no bor-auth.trn file, the code is used. 
    Note, that a change in global.trn might caused a changed behavior in other services if there is no specific *trn file for this service. 

     

    Restart the www_server to make any change take effect.

     

    Additional Info


    For the translation the system will start to read the *trn files for the contents - corresponding to the service, i.e. bor-auth.trn, bor-info.trn etc.
    If such a file (or the relevant tag in this file) is not present,  it will consult the global.trn file as a 'fallback'.
     
    ./alephe/www_x_eng/bor-auth.trn
    z305-bor-status PC-TAB-EXP S BOR-STATUS
     
    ./alephe/www_x_eng/global.trn:
    z305-bor-status PC-TAB-EXP S BOR-STATUS
     

    See also some more details at


    https://developers.exlibrisgroup.com...Aleph-x-services
     
    The *tag and *trn file explanation is found here:
     
    "There are two levels of translation:
         .tag : Filtering per structure and associated tag names. You can delete an entire set of tags from the XML output of the X-Service. You can also change the output tag names in this XML.
        .trn : Changing the content of the XML (data), for example, presentation of date fields to be formatted to a standard date presentation."

     


    • Article last edited: 23-DEC-2016
    View article in the Exlibris Knowledge Center
    1. Back to top
      • How to convert from MARC21 to UNIMARC
      • How to convert records from UNIMARC to USMARC
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      This page has no tags.
    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