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

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

     

    • 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
    • Was this article helpful?