Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Primo

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Primo
    3. Knowledge Articles
    4. Special characters in incoming openURLs

    Special characters in incoming openURLs

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Description
    2. Resolution
    • Product: Primo, Primo VE

    Description

    Incoming openURLs from third party vendors might include values that contain an ampersand (&). For example:

    /openurl?title=Food&Beverages&date=2018

    Primo will then parse it by the '&' delimiter, causing a value word to be recognized as a parameter:

    Parameter Value
    title Food
    Beverages

    {empty}

    date 2018

    When an incoming URL includes unencoded characters, this could impact the metadata integrity.

     

    Resolution

    According to ANSI/NISO Z39.88-2004 (R2010), page 41:

    Values of KEV pairs must be URL- encoded to ensure that the KEV ContextObject Representation is ready to be transported over the HTTP(S) protocol. URL-encoding eliminates confusion that could occur when special characters, such as equals character (‘=’) and ampersand character (‘&’), are used within values of KEV pairs.
    Rules for URL-encoding values are:
    • The alphanumeric characters (letters and digits), the period character (‘.’), the hyphen character (‘-’), the asterisk character (‘*’), and the underscore character (‘_’) remain the same.
    • The space character (‘ ’) is converted into a plus sign (‘+’) or into the character string “%20”.
    • For all other characters, each byte of the character is converted into a three-character string “%XY” where “XY” is the two-digit hexadecimal representation of the byte.

    Therefore, to avoid values from being parsed as parameters, the special characters must be encoded before arriving to Primo. For example:

    /openurl?title=Food%26Beverages&date=2018

    Parameter Value
    title Food%26Beverages
    date

    2018

     


    • Article last edited: 14-Aug-2018
    View article in the Exlibris Knowledge Center
    1. Back to top
      • SP4.5 wro4j minified CSS feature
      • Specific users appear in Primo as GUEST despite successful bor-info from Aleph
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Community Content Type
      How To
      Content Type
      Knowledge Article
      Language
      English
      Product
      Primo
    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