Bugzilla – Attachment 30784 Details for
Bug 12754
Add XSLT action to MARC modification templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12754: [TESTING ONLY] Sample XSLT file for testing
Bug-12754-TESTING-ONLY-Sample-XSLT-file-for-testin.patch (text/plain), 1.54 KB, created by
Marcel de Rooy
on 2014-08-14 10:55:11 UTC
(
hide
)
Description:
Bug 12754: [TESTING ONLY] Sample XSLT file for testing
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2014-08-14 10:55:11 UTC
Size:
1.54 KB
patch
obsolete
>From d3c47f3f73ba84bd8739d4ec0793a8b56c03d535 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 14 Aug 2014 12:53:41 +0200 >Subject: [PATCH] Bug 12754: [TESTING ONLY] Sample XSLT file for testing >Content-Type: text/plain; charset=utf-8 > >This test XSLT adds a 500 tag to your record. >--- > koha-tmpl/intranet-tmpl/prog/en/xslt/Add500.xsl | 29 +++++++++++++++++++++++ > 1 files changed, 29 insertions(+), 0 deletions(-) > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/xslt/Add500.xsl > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/Add500.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/Add500.xsl >new file mode 100644 >index 0000000..9644de5 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/Add500.xsl >@@ -0,0 +1,29 @@ >+<xsl:stylesheet version="1.0" >+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >+ xmlns:marc="http://www.loc.gov/MARC21/slim" >+ exclude-result-prefixes="marc" >+> >+ <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> >+ >+ <xsl:template match="/"> >+ <xsl:apply-templates/> >+ </xsl:template> >+ >+ <xsl:template match="record|marc:record"> >+ <record> >+ <xsl:apply-templates/> >+ <datafield tag="500" ind1='' ind2=''> >+ <subfield code="a"> >+ <xsl:text>You get this 500 for free!</xsl:text> >+ </subfield> >+ </datafield> >+ </record> >+ </xsl:template> >+ >+ <xsl:template match="node()"> >+ <xsl:copy select="."> >+ <xsl:copy-of select="@*"/> >+ <xsl:apply-templates/> >+ </xsl:copy> >+ </xsl:template> >+</xsl:stylesheet> >-- >1.7.7.6
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 12754
:
30754
|
30756
|
30757
|
30758
|
30759
|
30782
|
30783
| 30784