Bugzilla – Attachment 45629 Details for
Bug 15170
Add 264 field to MARC21*DC.xsl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 15170 - Add 264 field to MARC21*DC.xsl
PASSED-QA-Bug-15170---Add-264-field-to-MARC21DCxsl.patch (text/plain), 5.94 KB, created by
Katrin Fischer
on 2015-12-13 22:40:13 UTC
(
hide
)
Description:
[PASSED QA] Bug 15170 - Add 264 field to MARC21*DC.xsl
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-12-13 22:40:13 UTC
Size:
5.94 KB
patch
obsolete
>From 59d60612c0024b3e2b5190eded472cec636cb433 Mon Sep 17 00:00:00 2001 >From: Hector Castro <hector.hecaxmmx@gmail.com> >Date: Mon, 9 Nov 2015 11:05:39 -0600 >Subject: [PATCH] [PASSED QA] Bug 15170 - Add 264 field to MARC21*DC.xsl >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Modify MARC21*DC.xsl to add RDA 264 field > >To test: >- Copy from LOC z39.50 the Maxwell's handbook for RDA (ISBN > 9780838911723) >- Look the field 264 in framework, save record >- Open this URL in OPAC > > /cgi-bin/koha/unapi?id=koha:biblionumber:41201&format=marcxml > > And play with id (the number of new record for Maxwell book) & > format parameters > Test format=rdfdc, format=srw_dc and format=oai_dc >- Notice that <dc:publisher> and <dc:date> are not present >- Apply this patch >- Reload the URL for the three formats >- You will see the tags publisher and date are taken from 264 > >Signed-off-by: Frédéric Demians <f.demians@tamil.fr> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl | 14 ++++++++++++++ > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl | 12 ++++++++++++ > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl | 14 ++++++++++++++ > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2SRWDC.xsl | 12 ++++++++++++ > 4 files changed, 52 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl >index a9fa440..ade69de 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl >@@ -77,6 +77,20 @@ > </dc:date> > </xsl:for-each> > >+ <xsl:for-each select="marc:datafield[@tag=264]"> >+ <dc:publisher> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">ab</xsl:with-param> >+ </xsl:call-template> >+ </dc:publisher> >+ </xsl:for-each> >+ >+ <xsl:for-each select="marc:datafield[@tag=264]/marc:subfield[@code='c']"> >+ <dc:date> >+ <xsl:value-of select="."/> >+ </dc:date> >+ </xsl:for-each> >+ > <dc:language> > <xsl:value-of select="substring($controlField008,36,3)"/> > </dc:language> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl >index 291ab06..36ba41f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl >@@ -85,6 +85,18 @@ > <xsl:value-of select="."/> > </dc:date> > </xsl:for-each> >+ <xsl:for-each select="marc:datafield[@tag=264]"> >+ <dc:publisher> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">ab</xsl:with-param> >+ </xsl:call-template> >+ </dc:publisher> >+ </xsl:for-each> >+ <xsl:for-each select="marc:datafield[@tag=264]/marc:subfield[@code='c']"> >+ <dc:date> >+ <xsl:value-of select="."/> >+ </dc:date> >+ </xsl:for-each> > <dc:language> > <xsl:value-of select="substring($controlField008,36,3)"/> > </dc:language> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl >index 32b71d5..922605b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl >@@ -72,6 +72,20 @@ > </dc:date> > </xsl:for-each> > >+ <xsl:for-each select="marc:datafield[@tag=264]"> >+ <dc:publisher> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">ab</xsl:with-param> >+ </xsl:call-template> >+ </dc:publisher> >+ </xsl:for-each> >+ >+ <xsl:for-each select="marc:datafield[@tag=264]/marc:subfield[@code='c']"> >+ <dc:date> >+ <xsl:value-of select="."/> >+ </dc:date> >+ </xsl:for-each> >+ > <dc:language> > <xsl:value-of select="substring($controlField008,36,3)"/> > </dc:language> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2SRWDC.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2SRWDC.xsl >index e01e38c..009d8b1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2SRWDC.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2SRWDC.xsl >@@ -89,6 +89,18 @@ > <xsl:value-of select="."/> > </date> > </xsl:for-each> >+ <xsl:for-each select="marc:datafield[@tag=264]"> >+ <publisher> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">ab</xsl:with-param> >+ </xsl:call-template> >+ </publisher> >+ </xsl:for-each> >+ <xsl:for-each select="marc:datafield[@tag=264]/marc:subfield[@code='c']"> >+ <date> >+ <xsl:value-of select="."/> >+ </date> >+ </xsl:for-each> > <xsl:if test="substring($controlField008,36,3)"> > <language> > <xsl:value-of select="substring($controlField008,36,3)"/> >-- >1.9.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 15170
:
44726
|
44773
|
44774
|
45130
|
45629
|
46063