|
Lines 147-152
Link Here
|
| 147 |
</xsl:choose> |
147 |
</xsl:choose> |
| 148 |
</xsl:template> |
148 |
</xsl:template> |
| 149 |
|
149 |
|
|
|
150 |
<!-- Function extractCNI is used to extract the control number identifier (OrgCode) from MARC tags 773/80/85 [etc.] subfield $w. |
| 151 |
Parameter: control number string. |
| 152 |
Assumes LOC convention: (OrgCode)recordNumber. |
| 153 |
If OrgCode is not present, return empty string. |
| 154 |
Returns the value URI-encoded. |
| 155 |
--> |
| 156 |
<xsl:template name="extractCNI"> |
| 157 |
<xsl:param name="subfieldW"/> |
| 158 |
<xsl:choose> |
| 159 |
<xsl:when test="contains($subfieldW,'(') and contains($subfieldW,')')"> |
| 160 |
<xsl:value-of select="str:encode-uri(substring-before(substring-after($subfieldW,'('), ')'), true())"/> |
| 161 |
</xsl:when> |
| 162 |
</xsl:choose> |
| 163 |
</xsl:template> |
| 164 |
|
| 150 |
<!-- Function m880Select: Display Alternate Graphic Representation (MARC 880) for selected latin "base"tags |
165 |
<!-- Function m880Select: Display Alternate Graphic Representation (MARC 880) for selected latin "base"tags |
| 151 |
- should be called immediately before the corresonding latin tags are processed |
166 |
- should be called immediately before the corresonding latin tags are processed |
| 152 |
- tags in right-to-left languages are displayed floating right |
167 |
- tags in right-to-left languages are displayed floating right |
| 153 |
- |
|
|