Mode:

Compact lists

Showing:

Documentation
Parameters
Used by
References
Included from
Source
Stylesheet subfields.xsl
Included from
Stylesheet version 2.0
Function flub:setSubfield (subfield, value)
Documentation

Description

subfields in Primo: 
        comments from: https://knowledge.exlibrisgroup.com/Primo/Product_Documentation/Technical_Guide/The_PNX_Record/Subfields_in_the_PNX
        
       The character denotes the content and is persistent across PNX fields.
Namespace http://data.ub.uib.no/ns/function-library/
Used by
Parameters
QName Namespace
subfield No namespace
value No namespace
Import precedence 0
Source
<xsl:function name="flub:setSubfield">
  <xsl:param name="subfield"/>
  <xsl:param name="value"/>
  <xsl:choose>
    <xsl:when test="matches($subfield, '^([ACDIKLOSTUV]|[0-9]+)$')">
      <xsl:value-of select="concat('$$', $subfield, $value)"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:message terminate="yes">subfield
        <xsl:value-of select="$subfield"/>not found in documentation.</xsl:message>
    </xsl:otherwise>
  </xsl:choose>
</xsl:function>
Function flub:subFieldConstantAndValue (constant, value)
Documentation

Description

C
    A constant that displays before the field. This delimiter can be used only in the Display section for the following fields: identifier, relation, and description.
    The constant can be a code (lower case with no spaces or special characters). The code is translated to a name for display in the Front End using the Display Constants code table. If the text added has no translation in the code table, it will display as entered in the rules.
    
    V
    Value of the field (to distinguish between the value of the field and the display text or constant).
    
Namespace http://data.ub.uib.no/ns/function-library/
References
Parameters
QName Namespace
constant No namespace
value No namespace
Import precedence 0
Source
<xsl:function name="flub:subFieldConstantAndValue">
  <xsl:param name="constant"/>
  <xsl:param name="value"/>
  <xsl:value-of select="concat(flub:setSubfield('C', $constant), flub:setSubfield('V', $value))"/>
</xsl:function>
Function flub:subfieldSetDisplayAndUrl (display, url)
Documentation

Description

    D Text that displays instead of the field—for example, for URLS). I Institution
        
 U URL
Namespace http://data.ub.uib.no/ns/function-library/
Used by
Template
References
Parameters
QName Namespace
display No namespace
url No namespace
Import precedence 0
Source
<xsl:function name="flub:subfieldSetDisplayAndUrl">
  <xsl:param name="display"/>
  <xsl:param name="url"/>
  <xsl:value-of select="concat(flub:setSubfield('D', $display), flub:setSubfield('U', $url))"/>
</xsl:function>