/usr/share/tellico/biblioshare2tellico.xsl is in tellico-data 3.1.2-0.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | <?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://periapsis.org/tellico/"
version="1.0">
<!--
===================================================================
Tellico XSLT file - used for importing data from biblioshare.org
Copyright (C) 2011 Robby Stephenson <robby@periapsis.org>
This XSLT stylesheet is designed to be used with the 'Tellico'
application, which can be found at http://tellico-project.org
===================================================================
-->
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"
doctype-public="-//Robby Stephenson/DTD Tellico V11.0//EN"
doctype-system="http://periapsis.org/tellico/dtd/v11/tellico.dtd"/>
<xsl:template match="/">
<tellico syntaxVersion="11">
<collection title="BiblioShare Import" type="2">
<fields>
<field name="_default"/>
</fields>
<xsl:apply-templates select="BiblioSimple"/>
</collection>
</tellico>
</xsl:template>
<xsl:template match="BiblioSimple">
<entry>
<title>
<xsl:value-of select="Title[1]"/>
</title>
<subtitle>
<xsl:value-of select="Subtitle[1]"/>
</subtitle>
<isbn>
<xsl:choose>
<xsl:when test="ISBN10">
<xsl:value-of select="ISBN10"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="ISBN13"/>
</xsl:otherwise>
</xsl:choose>
</isbn>
<authors>
<xsl:for-each select="Contributor">
<author>
<xsl:value-of select="."/>
</author>
</xsl:for-each>
</authors>
<publisher>
<xsl:value-of select="Publisher[1]"/>
</publisher>
<binding i18n="true">
<xsl:choose>
<xsl:when test="contains(Format, 'Hardcover') or contains(Format, 'Hardback')">
<xsl:text>Hardback</xsl:text>
</xsl:when>
<xsl:when test="contains(Format, 'Paperback')">
<xsl:text>Paperback</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="Format"/>
</xsl:otherwise>
</xsl:choose>
</binding>
<pub_year>
<xsl:value-of select="substring(PublicationDate,0,5)"/>
</pub_year>
</entry>
</xsl:template>
</xsl:stylesheet>
|