From: Paul Poulain <[email protected]> dealing with some BNF/SUDOC invalid utf-8 (in title, the removed fields are used to mark non-sorted words)
Signed-off-by: Frédéric Demians <[email protected]> --- .../prog/en/xslt/UNIMARCslim2intranetDetail.xsl | 2 +- .../prog/en/xslt/UNIMARCslimUtils.xsl | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl index fcfe65c..4ead40d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl @@ -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> diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl index c04a8e4..ad1650d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl @@ -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)"/> -- 1.7.4 _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
