Bug 5885 : UNIMARC XSLT changes
dealing with some BNF/SUDOC invalid utf-8 (in title, the removed fields are used to mark non-sorted words)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
I can't test this works ok for UNIMARC, but it does not cause any
problems with the translation scripts or MARC21 so signing off
(cherry picked from commit cc6c1acb38)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
d6e27f5cee
commit
da2dfd0dce
|
|
@ -28,7 +28,7 @@
|
|||
<xsl:call-template name="addClassRtl" />
|
||||
<xsl:variable name="title" select="marc:subfield[@code='a']"/>
|
||||
<xsl:variable name="ntitle"
|
||||
select="translate($title, '˜œ','')"/>
|
||||
select="translate($title, '˜œ슜슛슘슈슉','')"/>
|
||||
<xsl:value-of select="$ntitle" />
|
||||
<xsl:if test="marc:subfield[@code='e']">
|
||||
<xsl:text> : </xsl:text>
|
||||
|
|
|
|||
|
|
@ -135,6 +135,14 @@
|
|||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="chopSpecialCharacters">
|
||||
<xsl:param name="title" />
|
||||
<xsl:variable name="ntitle"
|
||||
select="translate($title, '˜œ슜슛슘슈슉','')"/>
|
||||
<xsl:value-of select="$ntitle" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="chopPunctuation">
|
||||
<xsl:param name="chopString"/>
|
||||
<xsl:variable name="length" select="string-length($chopString)"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue