Bugzilla – Attachment 3328 Details for
Bug 5885
UNIMARC XSLT changes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-5885-UNIMARC-XSLT-changes.patch (text/plain), 2.04 KB, created by
Chris Cormack
on 2011-03-16 20:42:10 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-03-16 20:42:10 UTC
Size:
2.04 KB
patch
obsolete
>From a69c85319f51f159cde54694ceb9c686be554838 Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Wed, 15 Dec 2010 14:05:04 +0100 >Subject: [PATCH] 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) >--- > .../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 bb542bc..9c04316 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl >@@ -27,7 +27,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.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5885
:
3328
|
6175