Bugzilla – Attachment 44774 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]
Bug 15170 - Add 264 field to MARC21*DC.xsl
Bug-15170---Add-264-field-to-MARC21DCxsl.patch (text/plain), 5.73 KB, created by
Héctor Eduardo Castro Avalos
on 2015-11-11 16:30:51 UTC
(
hide
)
Description:
Bug 15170 - Add 264 field to MARC21*DC.xsl
Filename:
MIME Type:
Creator:
Héctor Eduardo Castro Avalos
Created:
2015-11-11 16:30:51 UTC
Size:
5.73 KB
patch
obsolete
>From 757224fdd948eb3293d39c13e0ee44546ba37b37 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] Bug 15170 - Add 264 field to MARC21*DC.xsl > >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 >--- > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl | 14 ++++++++++++++ > .../intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl | 12 ++++++++++++ > .../intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl | 14 ++++++++++++++ > .../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.7.10.4
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