View | Details | Raw Unified | Return to bug 6536
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/Add901.xsl (+28 lines)
Line 0 Link Here
1
<xsl:stylesheet version="1.0" 
2
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
	xmlns:marc="http://www.loc.gov/MARC21/slim"
4
>
5
  <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
6
7
  <xsl:template match="/">
8
	  <xsl:apply-templates/>
9
  </xsl:template>
10
11
  <xsl:template match="marc:record">
12
    <marc:record>
13
	  <xsl:apply-templates/>
14
      <marc:datafield tag="901" ind1='' ind2=''>
15
        <marc:subfield code="a">
16
          <xsl:text>Hi, I am 901</xsl:text>
17
        </marc:subfield>
18
      </marc:datafield>
19
    </marc:record>
20
  </xsl:template>
21
22
  <xsl:template match="node()">
23
    <xsl:copy select=".">
24
      <xsl:copy-of select="@*"/>
25
      <xsl:apply-templates/>
26
    </xsl:copy>
27
  </xsl:template>
28
</xsl:stylesheet>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/Set003ABC.xsl (-1 / +23 lines)
Line 0 Link Here
0
- 
1
<xsl:stylesheet version="1.0" 
2
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
	xmlns:marc="http://www.loc.gov/MARC21/slim"
4
>
5
  <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
6
7
  <xsl:template match="/">
8
	  <xsl:apply-templates/>
9
  </xsl:template>
10
11
  <xsl:template match="marc:controlfield[@tag='003']">
12
    <marc:controlfield tag="003">
13
      <xsl:text>ABC</xsl:text>
14
    </marc:controlfield>
15
  </xsl:template>
16
17
  <xsl:template match="node()">
18
    <xsl:copy select=".">
19
      <xsl:copy-of select="@*"/>
20
      <xsl:apply-templates/>
21
    </xsl:copy>
22
  </xsl:template>
23
</xsl:stylesheet>

Return to bug 6536