Bugzilla – Attachment 29819 Details for
Bug 6536
Z3950 Search Enhancements: SRU targets and additional XSLT processing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[DO_NOT_PUSH] Bug 6536: Two simple test XSLT files
Bug-6536-Two-simple-test-XSLT-files.patch (text/plain), 2.64 KB, created by
Biblibre Sandboxes
on 2014-07-18 09:41:45 UTC
(
hide
)
Description:
[DO_NOT_PUSH] Bug 6536: Two simple test XSLT files
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2014-07-18 09:41:45 UTC
Size:
2.64 KB
patch
obsolete
>From 24c7a3259f8e203756ac40ebae1d815c314478ef Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 17 Jul 2014 12:47:07 +0200 >Subject: [PATCH] Bug 6536: Two simple test XSLT files > >You could use Add901.xsl or Set003ABC.xsl in field add_xslt of table >z3950servers when testing this report. >Set003ABC will change field 003 into ABC. >And Add901 adds a tag 901. > >Signed-off-by: Giuseppe Angilella <giuseppe.angilella@ct.infn.it> >--- > koha-tmpl/intranet-tmpl/prog/en/xslt/Add901.xsl | 28 ++++++++++++++++++++ > koha-tmpl/intranet-tmpl/prog/en/xslt/Set003ABC.xsl | 23 ++++++++++++++++ > 2 files changed, 51 insertions(+), 0 deletions(-) > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/xslt/Add901.xsl > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/xslt/Set003ABC.xsl > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/Add901.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/Add901.xsl >new file mode 100644 >index 0000000..8200368 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/Add901.xsl >@@ -0,0 +1,28 @@ >+<xsl:stylesheet version="1.0" >+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >+ xmlns:marc="http://www.loc.gov/MARC21/slim" >+> >+ <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> >+ >+ <xsl:template match="/"> >+ <xsl:apply-templates/> >+ </xsl:template> >+ >+ <xsl:template match="marc:record"> >+ <marc:record> >+ <xsl:apply-templates/> >+ <marc:datafield tag="901" ind1='' ind2=''> >+ <marc:subfield code="a"> >+ <xsl:text>Hi, I am 901</xsl:text> >+ </marc:subfield> >+ </marc:datafield> >+ </marc:record> >+ </xsl:template> >+ >+ <xsl:template match="node()"> >+ <xsl:copy select="."> >+ <xsl:copy-of select="@*"/> >+ <xsl:apply-templates/> >+ </xsl:copy> >+ </xsl:template> >+</xsl:stylesheet> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/Set003ABC.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/Set003ABC.xsl >new file mode 100644 >index 0000000..f04c750 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/Set003ABC.xsl >@@ -0,0 +1,23 @@ >+<xsl:stylesheet version="1.0" >+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >+ xmlns:marc="http://www.loc.gov/MARC21/slim" >+> >+ <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> >+ >+ <xsl:template match="/"> >+ <xsl:apply-templates/> >+ </xsl:template> >+ >+ <xsl:template match="marc:controlfield[@tag='003']"> >+ <marc:controlfield tag="003"> >+ <xsl:text>ABC</xsl:text> >+ </marc:controlfield> >+ </xsl:template> >+ >+ <xsl:template match="node()"> >+ <xsl:copy select="."> >+ <xsl:copy-of select="@*"/> >+ <xsl:apply-templates/> >+ </xsl:copy> >+ </xsl:template> >+</xsl:stylesheet> >-- >1.7.2.5
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 6536
:
4540
|
4541
|
4959
|
6901
|
6919
|
6920
|
6924
|
13462
|
26169
|
26170
|
26171
|
26172
|
29754
|
29755
|
29756
|
29779
|
29780
|
29788
|
29790
|
29791
|
29812
|
29813
|
29814
|
29815
|
29816
|
29817
|
29818
|
29819
|
30189
|
30190
|
30191
|
30192
|
30193
|
30194
|
30900
|
30901
|
30902
|
30903
|
30904
|
30905
|
30906
|
30907
|
30929
|
30930
|
30931
|
30932
|
30933
|
30934
|
30935
|
30936
|
31046
|
31048
|
31137
|
31193
|
31194
|
31195
|
31227
|
31247
|
31248
|
37264