Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    MetaLib

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. MetaLib
    3. Knowledge Articles
    4. RegExp that would pull out the YEAR information from the 260

    RegExp that would pull out the YEAR information from the 260

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    • Article Type: General
    • Product: MetaLib
    • Product Version:

    Description:
    We would like to include a RegExp that would pull out the YEAR information from the 260$c tag, stripping away the "c" and the ending punctuation for our local resource.
    Below are the different combinations for the following potential data strings:

    260 |c 2001. => Should parse as "2001"
    260 |c 1987, c1986. => Should parse as "1987, 1986" [example title with this string: Dictionary of wars / George C. Kohn.]
    260 |c c1997-1998. => Should parse as "1997-1998"
    260 |c 1998] => Should parse as "1998"
    260 |c [2001] => Should parse as "[2001]
    260 |c 1998?] => Should parse as "1998?]"
    260 |c 2000] => Should parse as "2000]"

    Resolution:
    MetaLib's YR field is not a regular MARC field.
    It is designed to ONLY hold 4 characters, i.e. 4 digits that compose a year.
    It may include an additional character for the "c" circa prefix, but not combined years such as 1996-1997.
    Please try the following regular expression:
    260## c RegExp YR,a,P/(\[?\d{4}\]?)/ ADDNEW
    If this doesn't work, try removing the "\" before "[" and "]".


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Redirection after end session
      • Remove Inactive Checkboxes from Primo Find Databases Lightbox
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Knowledge Article
      Language
      English
      Product
      MetaLib
    2. Tags
      1. contype:kba
      2. Prod:MetaLib
      3. 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