]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xsl/MARC21slim2MARCtxt.xsl
LP#1705524: Use the new grid configuration for date format in the bills list
[working/Evergreen.git] / Open-ILS / xsl / MARC21slim2MARCtxt.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc">
3     <xsl:output method="text"/>
4
5     <xsl:template match="marc:record">
6        <xsl:text>&#10;LEADER </xsl:text>
7        <xsl:value-of select="marc:leader"/>
8         
9         <xsl:for-each select="marc:controlfield">
10             <xsl:text>&#10;</xsl:text>
11             <xsl:value-of select="@tag"/>
12             <xsl:text>    </xsl:text>
13             <xsl:value-of select="marc:controlfield"/>
14             <xsl:value-of select="."/>
15         </xsl:for-each>
16
17         <xsl:for-each select="marc:datafield">
18             <xsl:text>&#10;</xsl:text>
19             <xsl:value-of select="@tag"/>
20             <xsl:text> </xsl:text>
21             <xsl:value-of select="@ind1"/>
22             <xsl:value-of select="@ind2"/>
23             <xsl:text> </xsl:text>
24             <xsl:for-each select="marc:subfield">
25                 <xsl:if test="@code != 'a'">
26                     <xsl:text>|</xsl:text>
27                     <xsl:value-of select="@code"/>
28                 </xsl:if>
29                 <xsl:value-of select="."/>
30             </xsl:for-each>
31         </xsl:for-each>
32
33        <xsl:text>&#10;</xsl:text>
34         </xsl:template>
35 </xsl:stylesheet>
36