21 Jan
2013
21 Jan
'13
10:52 a.m.
On 18 January 2013 09:20, Frédéric Demians <frederic@tamil.fr> wrote:
and here is the stylesheet in /home/magnus/koha/biblioteksok.xslt:
Try this:
Suppress:
<xsl:template match="marc:controlfield[@tag=001]"/> <xsl:template match="marc:datafield[@tag=850]"/>
That did not work, when I left these out the old elements were not removed.
and replace:
<xsl:template match="marc:leader">
with:
<xsl:template match="marc:record">
Ah, that helped! What I ended up using was this: https://gist.github.com/1918264#file-biblioteksok-xslt The clue was including an xmlns-definition on the xsl:element: <xsl:element name="datafield" xmlns="http://www.loc.gov/MARC21/slim"> Thanks for your help Frédéric! Best regards, Magnus