Bugzilla – Attachment 93867 Details for
Bug 23702
New UNIMARC XSLT according to last IFLA updates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
UNIMARCslim2intranetResults.xsl
UNIMARCslim2intranetResults.xsl (text/xml), 10.10 KB, created by
Koha Team University Lyon 3
on 2019-10-08 13:47:25 UTC
(
hide
)
Description:
UNIMARCslim2intranetResults.xsl
Filename:
MIME Type:
Creator:
Koha Team University Lyon 3
Created:
2019-10-08 13:47:25 UTC
Size:
10.10 KB
patch
obsolete
>ssh -t biblibre@bs-test.biblibre.com koha@standard1811-koha cat /home/koha/xslt/intranet/UNIMARCslimUtils.xsl > /home/delaye/Documents/xslt_standard/intranet/UNIMARCslimUtils.xsl; ><!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ --> ><xsl:stylesheet version="1.0" > xmlns:marc="http://www.loc.gov/MARC21/slim" > xmlns:items="http://www.koha-community.org/items" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> ><xsl:import href="UNIMARCslimUtils.xsl"/> ><xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/> ><xsl:key name="item-by-status" match="items:item" use="items:status"/> ><xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> > ><xsl:template match="/"> ><xsl:apply-templates/> ></xsl:template> > ><xsl:template match="marc:record"> ><xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/> ><xsl:variable name="leader" select="marc:leader"/> ><xsl:variable name="leader6" select="substring($leader,7,1)"/> ><xsl:variable name="leader7" select="substring($leader,8,1)"/> ><xsl:variable name="biblionumber" select="marc:controlfield[@tag=001]"/> ><xsl:variable name="isbn" select="marc:datafield[@tag=010]/marc:subfield[@code='a']"/> ><xsl:variable name="renvoi" select="marc:datafield[@tag=700]/@ind1"/> > ><xsl:if test="marc:datafield[@tag=200]"> ><xsl:for-each select="marc:datafield[@tag=200]"> ><a> ><xsl:attribute name="href"> ><xsl:call-template name="buildBiblioDefaultViewURL"> ><xsl:with-param name="IntranetBiblioDefaultView"> ><xsl:value-of select="$IntranetBiblioDefaultView"/> ></xsl:with-param> ></xsl:call-template> ><xsl:value-of select="$biblionumber"/> ></xsl:attribute> ><xsl:attribute name="class">title</xsl:attribute> ><xsl:variable name="title" select="marc:subfield[@code='a']"/> ><xsl:variable name="ntitle" >select="translate($title, '˜œ슜슛슘슈슉','')"/> ><xsl:value-of select="$ntitle" /> ></a> ><xsl:if test="marc:subfield[@code='e']"> ><xsl:text> : </xsl:text> ><xsl:value-of select="marc:subfield[@code='e']"/> ></xsl:if> ><xsl:if test="marc:subfield[@code='b']"> ><xsl:text> [</xsl:text> ><xsl:value-of select="marc:subfield[@code='b']"/> ><xsl:text>]</xsl:text> ></xsl:if> ><xsl:if test="marc:subfield[@code='h']"> ><xsl:text> : </xsl:text> ><xsl:value-of select="marc:subfield[@code='h']"/> ></xsl:if> ><xsl:if test="marc:subfield[@code='i']"> ><xsl:text> : </xsl:text> ><xsl:value-of select="marc:subfield[@code='i']"/> ></xsl:if> ><xsl:if test="marc:subfield[@code='f']"> ><xsl:text> / </xsl:text> ><xsl:value-of select="marc:subfield[@code='f']"/> ></xsl:if> ><xsl:if test="marc:subfield[@code='g']"> ><xsl:text> ; </xsl:text> ><xsl:value-of select="marc:subfield[@code='g']"/> ></xsl:if> ><xsl:text> </xsl:text> ></xsl:for-each> ></xsl:if> > ><xsl:if test="marc:datafield[@tag=700]"> ><xsl:if test="not(contains($renvoi,'z'))"> ><li> ><strong>Author : </strong> ><xsl:for-each select="marc:datafield[@tag=700]"> ><xsl:value-of select="marc:subfield[@code='a']"/> ><xsl:if test="marc:subfield[@code='b']"> ><xsl:text> , </xsl:text> ><xsl:value-of select="marc:subfield[@code='b']"/> ></xsl:if> ></xsl:for-each> ></li> ></xsl:if> ></xsl:if> > > ><xsl:if test="marc:datafield[@tag=710]"> ><li> ><strong>Collectivity Author : </strong> ><xsl:for-each select="marc:datafield[@tag=710]"> ><xsl:value-of select="marc:subfield[@code='a']"/> ><xsl:if test="marc:subfield[@code='b']"> ><xsl:text> , </xsl:text> ><xsl:value-of select="marc:subfield[@code='b']"/> ></xsl:if> ></xsl:for-each> ></li> ></xsl:if> > > ><!--Titre de serie - autorité 461--> ><!--<xsl:call-template name="tag_461" />--> > ><!--Titre de série - non autorité 461--> ><xsl:call-template name="tag_461bis" /> > ><!--Titre dépouillé 463--> ><xsl:call-template name="tag_463" /> > ><xsl:if test="contains($type_doc,'Périodique')"> ><xsl:call-template name="tag_462" /> ></xsl:if> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">412</xsl:with-param> ><xsl:with-param name="label">Is an excerpt or taken apart from</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">413</xsl:with-param> ><xsl:with-param name="label">A for extract or pulled apart</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">421</xsl:with-param> ><xsl:with-param name="label">Has for supplement</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">422</xsl:with-param> ><xsl:with-param name="label">Is a supplement of</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">423</xsl:with-param> ><xsl:with-param name="label">Is published with</xsl:with-param> ></xsl:call-template> > > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">424</xsl:with-param> ><xsl:with-param name="label">Is updated by</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">430</xsl:with-param> ><xsl:with-param name="label">Following</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">431</xsl:with-param> ><xsl:with-param name="label">Succeeds after division of</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">432</xsl:with-param> ><xsl:with-param name="label">Replace</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">433</xsl:with-param> ><xsl:with-param name="label">Replace partially</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">434</xsl:with-param> ><xsl:with-param name="label">Absorbed</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">435</xsl:with-param> ><xsl:with-param name="label">Absorbed partially</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">436</xsl:with-param> ><xsl:with-param name="label">Merge of</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">437</xsl:with-param> ><xsl:with-param name="label">Partial sequence of</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">440</xsl:with-param> ><xsl:with-param name="label">Become</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">441</xsl:with-param> ><xsl:with-param name="label">Become partially</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">442</xsl:with-param> ><xsl:with-param name="label">Replaced by</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">443</xsl:with-param> ><xsl:with-param name="label">Remplaced partially by</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">444</xsl:with-param> ><xsl:with-param name="label">Absorbed by</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">447</xsl:with-param> ><xsl:with-param name="label">Meged with...to form</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">451</xsl:with-param> ><xsl:with-param name="label">Other edition,same support</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">452</xsl:with-param> ><xsl:with-param name="label">Other edition, different support</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">453</xsl:with-param> ><xsl:with-param name="label">Translated under the title</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">454</xsl:with-param> ><xsl:with-param name="label">Is a translation of</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">455</xsl:with-param> ><xsl:with-param name="label">Is a reproduction of</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">456</xsl:with-param> ><xsl:with-param name="label">Is reproducted as</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">470</xsl:with-param> ><xsl:with-param name="label">Analysed document</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">481</xsl:with-param> ><xsl:with-param name="label">Is also linked in this volume</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">482</xsl:with-param> ><xsl:with-param name="label">Linked as a result of</xsl:with-param> ></xsl:call-template> > ><xsl:call-template name="tag_4xx"> ><xsl:with-param name="tag">488</xsl:with-param> ><xsl:with-param name="label">Other type of relation</xsl:with-param> ></xsl:call-template> > ><xsl:if test="marc:datafield[@tag=099]"> ><li> ><strong>Category of document : </strong> ><xsl:for-each select="marc:datafield[@tag=099]"> ><xsl:value-of select="marc:subfield[@code='t']"/> ></xsl:for-each> ></li> ></xsl:if> > > ><xsl:call-template name="tag_210" /> > ><xsl:call-template name="tag_214" /> > ><xsl:call-template name="tag_215" /> > ><!--Collection autorité 410--> ><!--<xsl:for-each select="marc:datafield[@tag=410]"> ><li> ><strong>Collection Authority : </strong> ><xsl:element name="a"><xsl:attribute name="href"> >/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code='9']"/> ></xsl:attribute> ><xsl:value-of select="marc:subfield[@code='t']"/> ></xsl:element> ><xsl:if test="marc:subfield[@code='t'] and marc:subfield[@code='v']"> ><xsl:text> . </xsl:text> ><xsl:value-of select="marc:subfield[@code='v']"/> > </xsl:if> ></li> ></xsl:for-each>--> > ><!--public 995$q--> >-<xsl:call-template name="public" /> > > ></xsl:template> > ></xsl:stylesheet>
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 Raw
Actions:
View
Attachments on
bug 23702
:
93308
|
93318
|
93319
|
93320
|
93321
|
93322
|
93331
|
93332
|
93333
|
93866
|
93867
|
93868
|
93869
|
93870
|
94369
|
94370
|
95581
|
95949
|
97625
|
97830
|
101417
|
101418
|
103375