From 1805ed754d646e31618a8dd91664a08c1c4c695f Mon Sep 17 00:00:00 2001 From: dbs Date: Sat, 14 Mar 2009 16:15:18 +0000 Subject: [PATCH] Apply r12520 to version of MODS3.3 XSL stored in database - thanks miker git-svn-id: svn://svn.open-ils.org/ILS/trunk@12522 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/sql/Pg/954.data.MODS33-xsl.sql | 40 ++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/Open-ILS/src/sql/Pg/954.data.MODS33-xsl.sql b/Open-ILS/src/sql/Pg/954.data.MODS33-xsl.sql index 05f00645f1..5e3adf100d 100644 --- a/Open-ILS/src/sql/Pg/954.data.MODS33-xsl.sql +++ b/Open-ILS/src/sql/Pg/954.data.MODS33-xsl.sql @@ -19,10 +19,8 @@ UPDATE config.xml_transform SET xslt=$$ @@ -171,6 +168,11 @@ Revision 1.2 - Added Log Comment 2003/03/24 19:37:42 ckeith + + + + + <xsl:call-template name="chopPunctuation"> <xsl:with-param name="chopString"> @@ -1507,10 +1509,6 @@ Revision 1.2 - Added Log Comment 2003/03/24 19:37:42 ckeith </note> </xsl:for-each> - - - - <xsl:for-each select="marc:datafield[@tag=501 or @tag=502 or @tag=504 or @tag=507 or @tag=508 or @tag=513 or @tag=514 or @tag=515 or @tag=516 or @tag=522 or @tag=524 or @tag=525 or @tag=526 or @tag=535 or @tag=536 or @tag=540 or @tag=541 or @tag=544 or @tag=545 or @tag=546 or @tag=547 or @tag=550 or @tag=552 or @tag=555 or @tag=556 or @tag=561 or @tag=562 or @tag=565 or @tag=567 or @tag=580 or @tag=581 or @tag=584 or @tag=585 or @tag=586]"> <note> @@ -2944,6 +2942,30 @@ Revision 1.2 - Added Log Comment 2003/03/24 19:37:42 ckeith <xsl:call-template name="subjectAnyOrder"/> </subject> </xsl:template> + <!-- 1.27 648 tmee--> + <xsl:template match="marc:datafield[@tag=648]"> + <subject> + <xsl:if test="marc:subfield[@code=2]"> + <xsl:attribute name="authority"> + <xsl:value-of select="marc:subfield[@code=2]"/> + </xsl:attribute> + </xsl:if> + <xsl:call-template name="uri"/> + + <xsl:call-template name="subjectAuthority"/> + <temporal> + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">abcd</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </temporal> + <xsl:call-template name="subjectAnyOrder"/> + + </subject> + </xsl:template> <xsl:template match="marc:datafield[@tag=650]"> <subject> <xsl:call-template name="subjectAuthority"/> -- 2.11.0