Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Alma

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Alma
    3. Knowledge Articles
    4. How to build an Alma Analytics report based the BIB's LDR pos. 5='d'?

    How to build an Alma Analytics report based the BIB's LDR pos. 5='d'?

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Description
    2. Resolution
    3. Additional Information
    • Product: Alma

     

    Description

    How to query on a specific byte value in the MARC LDR?
    I want to create an analytics report based on LDR[5] = 'd'.
    I added a criteria on "Bibliographic Details"."BIB LDR MARC".
    If I select "contains any" adding the character "d", then of course I get something.  
    But I need to search on byte 5 only.
    Would this work if I convert this criteria to SQL?
    If yes, what might that SQL string look like?

    Resolution

    Analytics begins position counting from 1 rather than 0, so to identify LDR pos. 5, the substring needs to start from 6:
    SUBSTRING("Bibliographic Details"."BIB LDR MARC" FROM 6) LIKE 'd%'

    The other option for structuring this filter would be to select just the position 5 value from the LDR:
    SUBSTRING("Bibliographic Details"."BIB LDR MARC" FROM 6 FOR 1)
    At which point it would be possible to use = ‘d’ for the filter. 

     

    Additional Information

    NOTE that in most cases BIBs with LDR[5] = 'd' are also suppressed from discovery, so it is likely enough to search on titles whose Lifecycle status is "Deleted" or which are suppressed from discovery.

    How to filter by contents of a specific position of a control field in Alma Analytics.pptx has specific examples of filtering by positions of the 008 and the LDR.

    Advanced Filtering Techniques in Alma Analytics

     

     


    • Article last edited: 25-May-2021
    View article in the Exlibris Knowledge Center
    1. Back to top
      • How to block users from placing resource requests with NCIP Partner?
      • How to Bulk Change PO Line Status?
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Documentation
      Language
      English
      Product
      Alma
    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