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

    Fix Routine fix_doc_sort Does Not Work


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


    Problem Symptoms:
    Although "Sort record" has been applied to a HOL record, field 853 displays AFTER field 863
    Saving the record to the server didn't fix the field sorting
    /xxx60/tab/tab_fix contains:
    INS fix_doc_sort


    Normal system behavior
    fix_doc_sort calls the sort_docx program. 
    sort_docx has this logic:

    WHEN "1"
    IF DOC-CODE (1: 1) = "5" OR
    = "6" OR
    = "8" OR
    = "7"
    MOVE "00 " TO DOC-CODE (2:)

    This means that, during the sorting process, 853 and 863 are temporarily both changed to 800. 
    The result is that they stay in the order in which they were entered into the record.


    Only deleting and manually re-entering these fields will change the order.




    • Article last edited: 28-Feb-2016
    • Was this article helpful?