Skip to Main Content

Metadata Management

This guide is about managing external data in Primo/Alma and other platforms.

Norm Rule Examples

  • Add prefix / suffix: the example below adds 'SDSU Library Guide to ' in front of all titles
    • rule "copy title"
      when
      exist "//*[local-name()='title']"
      then
      copy "concat('SDSU Library Guide to ', //*[local-name()='title'])" to "dc"."title"
      end
  • Set customized value for discovery field 
    • rule "create type for SpringShare Guides"
      when
      (true)
      then
      set "research_guides" in "discovery"."resourceType"
      end
  • Get substring
    • rule "copy date (updated)"
      when
      exist "//*[local-name()='datestamp']"
      then
      copy "substring(//*[local-name()='datestamp']/text(),0,11)" to "discovery"."local13"
      end
  • Find tag by attributes
    • rule "copy advisor.2"
      when
      "//*[local-name()='name']/*[local-name()='role']/*[local-name()='roleTerm']" equals "Advisor"
      then
      copy "//*[local-name()='name']/*[local-name()='role']/*[local-name()='roleTerm'][text()='Advisor']/../../*[local-name()='namePart']" to "discovery"."local8"
      end