From e38d2351b83fa65c66ccde443777647ef5cb6cff Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 1 Mar 2010 19:17:32 +0000 Subject: Added KDE3 version of Tellico git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1097620 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- xslt/MARC21slim2MODS3.xsl | 2517 +++++++++++++++++ xslt/MARC21slimUtils.xsl | 82 + xslt/Makefile.am | 29 + xslt/UNIMARC2MODS3.xsl | 2920 ++++++++++++++++++++ xslt/amazon2tellico.xsl | 590 ++++ xslt/arxiv2tellico.xsl | 277 ++ xslt/bluray-logo.png | Bin 0 -> 1359 bytes xslt/cassette-logo.png | Bin 0 -> 1042 bytes xslt/cd-logo.png | Bin 0 -> 2153 bytes xslt/crossref2tellico.xsl | 121 + xslt/delicious2tellico.xsl | 164 ++ xslt/discogs2tellico.xsl | 206 ++ xslt/dvd-logo.png | Bin 0 -> 4387 bytes xslt/entry-templates/Album.xsl | 497 ++++ xslt/entry-templates/Compact.xsl | 294 ++ xslt/entry-templates/Default.xsl | 346 +++ xslt/entry-templates/Fancy.xsl | 444 +++ xslt/entry-templates/Makefile.am | 17 + xslt/entry-templates/Video.xsl | 512 ++++ xslt/gcstar2tellico.xsl | 503 ++++ xslt/hddvd-logo.png | Bin 0 -> 2390 bytes xslt/isbndb2tellico.xsl | 205 ++ xslt/mods2tellico.xsl | 521 ++++ xslt/pubmed2tellico.xsl | 190 ++ xslt/record-logo.png | Bin 0 -> 9306 bytes xslt/referencer2tellico.xsl | 120 + xslt/report-templates/Column_View.xsl | 310 +++ xslt/report-templates/Group_Summary.xsl | 323 +++ xslt/report-templates/Group_View.xsl | 284 ++ xslt/report-templates/Image_List.xsl | 250 ++ xslt/report-templates/Loan_View.xsl | 201 ++ xslt/report-templates/Makefile.am | 21 + .../Title_Listing_(Horizontal).xsl | 146 + xslt/report-templates/Title_Listing_(Vertical).xsl | 156 ++ xslt/report-templates/Tri-Column.xsl | 234 ++ xslt/shadowAlpha.png | Bin 0 -> 1670 bytes xslt/tellico-by-author.xsl | 159 ++ xslt/tellico-by-title.xsl | 120 + xslt/tellico-common.xsl | 307 ++ xslt/tellico-printing.xsl | 381 +++ xslt/tellico2gcstar.xsl | 286 ++ xslt/tellico2html.js | 620 +++++ xslt/tellico2html.xsl | 625 +++++ xslt/tellico2onix.xsl | 149 + xslt/unixref2tellico.xsl | 174 ++ xslt/vhs-logo.png | Bin 0 -> 2081 bytes xslt/welcome.html | 60 + xslt/xmp2tellico.xsl | 176 ++ xslt/yahoo2tellico.xsl | 86 + 49 files changed, 15623 insertions(+) create mode 100644 xslt/MARC21slim2MODS3.xsl create mode 100644 xslt/MARC21slimUtils.xsl create mode 100644 xslt/Makefile.am create mode 100644 xslt/UNIMARC2MODS3.xsl create mode 100644 xslt/amazon2tellico.xsl create mode 100644 xslt/arxiv2tellico.xsl create mode 100644 xslt/bluray-logo.png create mode 100644 xslt/cassette-logo.png create mode 100644 xslt/cd-logo.png create mode 100644 xslt/crossref2tellico.xsl create mode 100644 xslt/delicious2tellico.xsl create mode 100644 xslt/discogs2tellico.xsl create mode 100644 xslt/dvd-logo.png create mode 100644 xslt/entry-templates/Album.xsl create mode 100644 xslt/entry-templates/Compact.xsl create mode 100644 xslt/entry-templates/Default.xsl create mode 100644 xslt/entry-templates/Fancy.xsl create mode 100644 xslt/entry-templates/Makefile.am create mode 100644 xslt/entry-templates/Video.xsl create mode 100644 xslt/gcstar2tellico.xsl create mode 100644 xslt/hddvd-logo.png create mode 100644 xslt/isbndb2tellico.xsl create mode 100644 xslt/mods2tellico.xsl create mode 100644 xslt/pubmed2tellico.xsl create mode 100644 xslt/record-logo.png create mode 100644 xslt/referencer2tellico.xsl create mode 100644 xslt/report-templates/Column_View.xsl create mode 100644 xslt/report-templates/Group_Summary.xsl create mode 100644 xslt/report-templates/Group_View.xsl create mode 100644 xslt/report-templates/Image_List.xsl create mode 100644 xslt/report-templates/Loan_View.xsl create mode 100644 xslt/report-templates/Makefile.am create mode 100644 xslt/report-templates/Title_Listing_(Horizontal).xsl create mode 100644 xslt/report-templates/Title_Listing_(Vertical).xsl create mode 100644 xslt/report-templates/Tri-Column.xsl create mode 100644 xslt/shadowAlpha.png create mode 100644 xslt/tellico-by-author.xsl create mode 100644 xslt/tellico-by-title.xsl create mode 100644 xslt/tellico-common.xsl create mode 100644 xslt/tellico-printing.xsl create mode 100644 xslt/tellico2gcstar.xsl create mode 100644 xslt/tellico2html.js create mode 100644 xslt/tellico2html.xsl create mode 100644 xslt/tellico2onix.xsl create mode 100644 xslt/unixref2tellico.xsl create mode 100644 xslt/vhs-logo.png create mode 100644 xslt/welcome.html create mode 100644 xslt/xmp2tellico.xsl create mode 100644 xslt/yahoo2tellico.xsl (limited to 'xslt') diff --git a/xslt/MARC21slim2MODS3.xsl b/xslt/MARC21slim2MODS3.xsl new file mode 100644 index 0000000..f33e0bc --- /dev/null +++ b/xslt/MARC21slim2MODS3.xsl @@ -0,0 +1,2517 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + BK + SE + + + BK + MM + CF + MP + VM + MU + + + + + + + + + b + afghk + + + + + abfgk + + + + + + + + + + + + + + + + + + <xsl:value-of select="substring($titleChop,@ind2+1)"/> + + + + + <xsl:value-of select="$titleChop"/> + + + + + + + + + b + b + afghk + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">a</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <!-- 1/04 removed $h, b --> + <xsl:with-param name="codes">a</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <!-- 1/04 removed $h, $b --> + <xsl:with-param name="codes">af</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + <xsl:variable name="str"> + <xsl:for-each select="marc:subfield"> + <xsl:if test="(contains('adfklmor',@code) and (not(../marc:subfield[@code='n' or @code='p']) or (following-sibling::marc:subfield[@code='n' or @code='p'])))"> + <xsl:value-of select="text()"/> + <xsl:text> </xsl:text> + </xsl:if> + </xsl:for-each> + </xsl:variable> + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:value-of select="substring($str,1,string-length($str)-1)"/> + </xsl:with-param> + </xsl:call-template> + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">ah</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + creator + + + + + + + + + creator + + + + + + + + + creator + + + + + + + + + + + + + + + + + + + + + + + + + + + personal + + + + + + + + + + yes + + + yes + + + text + cartographic + notated music + sound recording-nonmusical + sound recording-musical + still image + moving image + three dimensional object + software, multimedia + mixed material + + + + globe + + + remote sensing image + + + + + + map + + + atlas + + + + + + + + database + + + loose-leaf + + + series + + + newspaper + + + periodical + + + web site + + + + + + + + abstract or summary + + + bibliography + + + catalog + + + dictionary + + + encyclopedia + + + handbook + + + legal article + + + index + + + discography + + + legislation + + + theses + + + survey of literature + + + review + + + programmed text + + + filmography + + + directory + + + statistics + + + technical report + + + legal case and case notes + + + law report or digest + + + treaty + + + + + + conference publication + + + + + + + + numeric data + + + database + + + font + + + game + + + + + + patent + + + festschrift + + + + biography + + + + + essay + + + drama + + + comic strip + + + fiction + + + humor, satire + + + letter + + + novel + + + short story + + + speech + + + + + + + biography + + + conference publication + + + drama + + + essay + + + fiction + + + folktale + + + history + + + humor, satire + + + memoir + + + poetry + + + rehearsal + + + reporting + + + sound + + + speech + + + + + + + art original + + + kit + + + art reproduction + + + diorama + + + filmstrip + + + legal article + + + picture + + + graphic + + + technical drawing + + + motion picture + + + chart + + + flash card + + + microscope slide + + + model + + + realia + + + slide + + + transparency + + + videorecording + + + toy + + + + + + + + abvxyz + - + + + + + + + + + code + marccountry + + + + + + + + code + iso3166 + + + + + + + + text + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + :,;/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + monographic + continuing + + + + + + + ab + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + reformatted digital + + + + + + + + + + + + + + + +
braille
+
+ +
print
+
+ +
electronic
+
+ +
microfiche
+
+ +
microfilm
+
+
+ + +
+ + + + + +
+
+ +
+ + + + + +
+
+ +
+ + + + + +
+
+ +
+ + + + + +
+
+ +
+ + + + + +
+
+ +
+ + + + + +
+
+ +
+ + +
+ + + + access + + + preservation + + + replacement + + + + + + + + + + + + abce + + + +
+ + + + + + + + + + ab + + + + + + + + agrt + + + + + + + ab + + + + + + + + + adolescent + + + adult + + + general + + + juvenile + + + preschool + + + specialized + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + defg + + + + + + + + + + marcgaciso3166 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ab + + + + + + + abx + + + + + + + ab + + + + + + + + + + + + + + + + + + + + + + + + ab + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">av</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">av</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + abcx3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="specialSubfieldSelect"> + <xsl:with-param name="anyCodes">tfklmorsv</xsl:with-param> + <xsl:with-param name="axis">t</xsl:with-param> + <xsl:with-param name="afterCodes">g</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + aq + t + g + + + + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="specialSubfieldSelect"> + <xsl:with-param name="anyCodes">tfklmorsv</xsl:with-param> + <xsl:with-param name="axis">t</xsl:with-param> + <xsl:with-param name="afterCodes">dg</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + + + + + + c + t + dgn + + + + + + + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="specialSubfieldSelect"> + <xsl:with-param name="anyCodes">tfklsv</xsl:with-param> + <xsl:with-param name="axis">t</xsl:with-param> + <xsl:with-param name="afterCodes">g</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + aqdc + t + gn + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">adfgklmorsv</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:value-of select="marc:subfield[@code='a']"/> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="specialSubfieldSelect"> + <xsl:with-param name="anyCodes">tfklmorsv</xsl:with-param> + <xsl:with-param name="axis">t</xsl:with-param> + <xsl:with-param name="afterCodes">g</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + aq + t + g + + + + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="specialSubfieldSelect"> + <xsl:with-param name="anyCodes">tfklmorsv</xsl:with-param> + <xsl:with-param name="axis">t</xsl:with-param> + <xsl:with-param name="afterCodes">dg</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + + + + + + c + t + dgn + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="specialSubfieldSelect"> + <xsl:with-param name="anyCodes">tfklsv</xsl:with-param> + <xsl:with-param name="axis">t</xsl:with-param> + <xsl:with-param name="afterCodes">g</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + aqdc + t + gn + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">adfgklmorsv</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + issue numbermatrix numbermusic platemusic publishervideorecording identifier + + + + ba + ab + + + + + + + + + + ab + + + + + + + + ab + + + + + + doihdluri + + + + + + + + + + + + + y3z + + + + + + + + + + + + + + + + + y3 + + + + + + + + + + + abje + + + + + + + + abcd35 + + + + + + + abcde35 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + n + n + fghkdlmor + + + + + p + p + fghkdlmor + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + g + g + pst + + + + + p + p + fghkdlmor + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + cdn + + + + + + + + + + aq + + + + :,;/ + + + + + + + + + + acdeq + + + + + + constituent + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:value-of select="."/> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:value-of select="."/> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:value-of select="."/> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:value-of select="."/> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + + + + code + marcgac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lcshlcshacmeshnalcshrvm + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + aq + + + + + + + + + + + + + + + + + + + + + + + + + + + + + cdnp + + + + + + + + + + + + + + + abcdeqnp + + + + + + + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">adfhklor</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + <xsl:call-template name="part"/> + + + + + + + + + + + + + abcd + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + bc + + + + + + + + + + + + + + + + + yes + + + + + + + + + + + + + + + + + ArabicLatinChinese, Japanese, KoreanCyrillicHebrewGreek + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + summary or subtitlesung or spoken textlibrettotable of contentsaccompanying materialtranslation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + summary or subtitlesung or spoken textlibrettotable of contentsaccompanying materialtranslation + + + + + + + + + + + +
+ diff --git a/xslt/MARC21slimUtils.xsl b/xslt/MARC21slimUtils.xsl new file mode 100644 index 0000000..b1104ce --- /dev/null +++ b/xslt/MARC21slimUtils.xsl @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .:,;/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xslt/Makefile.am b/xslt/Makefile.am new file mode 100644 index 0000000..d0fb0c4 --- /dev/null +++ b/xslt/Makefile.am @@ -0,0 +1,29 @@ +EXTRA_DIST = tellico-by-author.xsl tellico-by-title.xsl \ + tellico-printing.xsl tellico2html.xsl shadowAlpha.png \ + cd-logo.png dvd-logo.png cassette-logo.png record-logo.png \ + vhs-logo.png tellico-common.xsl mods2tellico.xsl \ + amazon2tellico.xsl MARC21slim2MODS3.xsl MARC21slimUtils.xsl \ + pubmed2tellico.xsl tellico2onix.xsl UNIMARC2MODS3.xsl \ + tellico2html.js yahoo2tellico.xsl isbndb2tellico.xsl \ + bluray-logo.png hddvd-logo.png gcstar2tellico.xsl \ + xmp2tellico.xsl crossref2tellico.xsl arxiv2tellico.xsl \ + referencer2tellico.xsl delicious2tellico.xsl welcome.html \ + unixref2tellico.xsl discogs2tellico.xsl tellico2gcstar.xsl + +xsldir = $(kde_datadir)/tellico +xsl_DATA = tellico-printing.xsl tellico-by-author.xsl tellico-by-title.xsl \ + tellico2html.xsl shadowAlpha.png cassette-logo.png cd-logo.png \ + dvd-logo.png record-logo.png vhs-logo.png tellico-common.xsl \ + mods2tellico.xsl amazon2tellico.xsl MARC21slim2MODS3.xsl \ + MARC21slimUtils.xsl pubmed2tellico.xsl tellico2onix.xsl \ + UNIMARC2MODS3.xsl tellico2html.js yahoo2tellico.xsl \ + isbndb2tellico.xsl bluray-logo.png hddvd-logo.png gcstar2tellico.xsl \ + xmp2tellico.xsl crossref2tellico.xsl arxiv2tellico.xsl \ + referencer2tellico.xsl delicious2tellico.xsl welcome.html \ + unixref2tellico.xsl discogs2tellico.xsl tellico2gcstar.xsl + +SUBDIRS = entry-templates report-templates + +KDE_OPTIONS = noautodist + +CLEANFILES = *~ diff --git a/xslt/UNIMARC2MODS3.xsl b/xslt/UNIMARC2MODS3.xsl new file mode 100644 index 0000000..30035f5 --- /dev/null +++ b/xslt/UNIMARC2MODS3.xsl @@ -0,0 +1,2920 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + BK + SE + + + BK + MM + CF + MP + VM + MU + + + + + + + + + + + e + a + + + + + ae + + + + + + + + + + + + + + + + + + + <xsl:value-of select="substring($titleChop,@ind2+1)"/> + + + + + + + + <xsl:value-of select="substring-after($title,'‰')"/> + + + + + <xsl:value-of select="$titleChop"/> + + + + + + + + + e + e + a + + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">a</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">a</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <!-- 1/04 removed $h, $b --> + <xsl:with-param name="codes">af</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + <xsl:variable name="str"> + <xsl:for-each select="marc:subfield"> + <xsl:if test="(contains('anklmrtuv',@code) and (not(../marc:subfield[@code='h' or @code='s' or @code='i']) or (following-sibling::marc:subfield[@code='h' or @code='s' or @code='i'])))"> + <xsl:value-of select="text()"/> + <xsl:text> </xsl:text> + </xsl:if> + </xsl:for-each> + </xsl:variable> + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:value-of select="substring($str,1,string-length($str)-1)"/> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + + + creator + + + + + + + + + + + corporate + + + + + conference + + + + + creator + + + + + + + + + + + + + + + + + + + + corporate + + + + + conference + + + + + + + + + + + + yes + + + yes + + + text + cartographic + notated music + sound recording-nonmusical + sound recording-musical + still image + moving image + three dimensional object + software, multimedia + mixed material + + + + + + globe + + + + remote sensing image + + + + + + + map + + + atlas + + + + + + + + + database + + + loose-leaf + + + series + + + newspaper + + + periodical + + + web site + + + + + + + + + abstract or summary + + + bibliography + + + catalog + + + dictionary + + + encyclopedia + + + handbook + + + legal article + + + index + + + discography + + + legislation + + + theses + + + survey of literature + + + review + + + programmed text + + + filmography + + + directory + + + statistics + + + technical report + + + legal case and case notes + + + law report or digest + + + treaty + + + + + + conference publication + + + + + + + + + numeric data + + + database + + + font + + + game + + + + + + + patent + + + festschrift + + + + + biography + + + + + + essay + + + drama + + + comic strip + + + fiction + + + humor, satire + + + letter + + + novel + + + short story + + + speech + + + + + + + + biography + + + conference publication + + + drama + + + essay + + + fiction + + + folktale + + + history + + + humor, satire + + + memoir + + + poetry + + + rehearsal + + + reporting + + + sound + + + speech + + + + + + + + art original + + + kit + + + art reproduction + + + diorama + + + filmstrip + + + legal article + + + picture + + + graphic + + + technical drawing + + + motion picture + + + chart + + + flash card + + + microscope slide + + + model + + + realia + + + slide + + + transparency + + + videorecording + + + toy + + + + + + + + + + + abvxyz + - + + + + + + + + + + + code + marccountry + + + + + + + + + + code + iso3166 + + + + + + + + + + text + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + :,;/ + + + + + + + + + + + + + + :,;/] + + + + + + + + + + + + + + + + + + + + + + + + + monographic + continuing + + + + + + + + + ab + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + reformatted digital + + + + + + + + + + + + + + + + + + + +
braille
+
+ +
print
+
+ +
electronic
+
+ +
microfiche
+
+ +
microfilm
+
+
+ + + + + access + + + preservation + + + replacement + + + + + + + + + + + + + + + acde + + + +
+ + + + + + + + + + + + + ab + + + + + + + + + + agrt + + + + + + + + + ab + + + + + + + + + + adolescent + + + adult + + + general + + + juvenile + + + preschool + + + specialized + + + + + + + + + + .:,;/] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + defg + + + + + + + + + + + + + + marcgac + + + + + + iso3166 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">adefhv</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + issue number + matrix number + music plate + music publisher + videorecording identifier + + + + + + ba + ab + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + h + h + bfgvz + + + + + i + i + bfgvz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + g + g + pst + + + + + p + p + fghkdlmor + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + cdn + + + + + + + + + + + aq + + + + :,;/ + + + + + + + + + + + + + + abdg + + + + :,;/ + + + + + + + + + + + acdeq + + + + + + + + + abcdef + + + + + + + constituent + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:value-of select="."/> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:value-of select="."/> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:value-of select="."/> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:value-of select="."/> + </xsl:with-param> + </xsl:call-template> + + + + + + + + + + + + + + + + code + marcgac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lcsh + lcshac + mesh + + nal + csh + rvm + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + a + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + def + + + + + + + + + + + + + + + + + abcdefghqnp + + + + + + + + + + + + + + + + + + + + + <xsl:call-template name="chopPunctuation"> + <xsl:with-param name="chopString"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">adfkloqr</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + <xsl:call-template name="part"/> + + + + + + + + + + + + + + + abcd + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + c + + + + + + + + + + + + + + + + + + + + + + + yes + + + + + + + + + + + + + + + + + + + + + + Arabic + Latin + Chinese, Japanese, Korean + Cyrillic + Hebrew + Greek + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/xslt/amazon2tellico.xsl b/xslt/amazon2tellico.xsl new file mode 100644 index 0000000..065886a --- /dev/null +++ b/xslt/amazon2tellico.xsl @@ -0,0 +1,590 @@ + + + + + + + + + + + + + + + + + + + Books + + + + + + + + Video + + + + + + + + +abcdefghijklmnopqrstuvwxyz +ABCDEFGHIJKLMNOPQRSTUVWXYZ + + + + + + + + 2 + + + 3 + + + + 4 + + + 11 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + :: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="aws:Title"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hardback + + + Paperback + + + + Souple + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Compact Disc + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + VHS + + + Blu-ray + + + + + + + + + + + Black & White + + + Color + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + PG-13 (USA) + + + PG (USA) + + + R (USA) + + + G (USA) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Pending + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Xbox 360 + + + Xbox + + + Nintendo Wii + + + PSP + + + Windows + + + Mac OS + + + Dreamcast + + + + + PlayStation3 + + + PlayStation2 + + + + + + + + + + + + + diff --git a/xslt/arxiv2tellico.xsl b/xslt/arxiv2tellico.xsl new file mode 100644 index 0000000..8028e6c --- /dev/null +++ b/xslt/arxiv2tellico.xsl @@ -0,0 +1,277 @@ + + + + + + + + Astrophysics + Condensed Matter + Disordered Systems and Neural Networks + Materials Science + Mesoscopic Systems and Quantum Hall Effect + Other + Soft Condensed Matter + Statistical Mechanics + Strongly Correlated Electrons + Superconductivity + General Relativity and Quantum Cosmology + High Energy Physics - Experiment + High Energy Physics - Lattice + High Energy Physics - Phenomenology + High Energy Physics - Theory + Mathematical Physics + Nuclear Experiment + Nuclear Theory + Physics + Accelerator Physics + Atmospheric and Oceanic Physics + Atomic Physics + Atomic and Molecular Clusters + Biological Physics + Chemical Physics + Classical Physics + Computational Physics + Data Analysis, Statistics and Probability + Fluid Dynamics + General Physics + Geophysics + History of Physics + Instrumentation and Detectors + Medical Physics + Optics + Physics Education + Physics and Society + Plasma Physics + Popular Physics + Space Physics + Quantum Physics + Mathematics + Algebraic Geometry + Algebraic Topology + Analysis of PDEs + Category Theory + Classical Analysis and ODEs + Combinatorics + Commutative Algebra + Complex Variables + Differential Geometry + Dynamical Systems + Functional Analysis + General Mathematics + General Topology + Geometric Topology + Group Theory + History and Overview + Information Theory + K-Theory and Homology + Logic + Mathematical Physics + Metric Geometry + Number Theory + Numerical Analysis + Operator Algebras + Optimization and Control + Probability + Quantum Algebra + Representation Theory + Rings and Algebras + Spectral Theory + Statistics + Symplectic Geometry + Nonlinear Sciences + Adaptation and Self-Organizing Systems + Cellular Automata and Lattice Gases + Chaotic Dynamics + Exactly Solvable and Integrable Systems + Pattern Formation and Solitons + Architecture + Artificial Intelligence + Computation and Language + Computational Complexity + Computational Engineering, Finance, and Science + Computational Geometry + Computer Science and Game Theory + Computer Vision and Pattern Recognition + Computers and Society + Cryptography and Security + Data Structures and Algorithms + Databases + Digital Libraries + Discrete Mathematics + Distributed, Parallel, and Cluster Computing + General Literature + Graphics + Human-Computer Interaction + Information Retrieval + Information Theory + Learning + Logic in Computer Science + Mathematical Software + Multiagent Systems + Multimedia + Networking and Internet Architecture + Neural and Evolutionary Computing + Numerical Analysis + Operating Systems + Other + Performance + Programming Languages + Robotics + Software Engineering + Sound + Symbolic Computation + Quantitative Biology + Biomolecules + Cell Behavior + Genomics + Molecular Networks + Neurons and Cognition + Other + Populations and Evolution + Quantitative Methods + Subcellular Processes + Tissues and Organs + Statistics + Applications + Computation + Machine Learning + Methodology + Theory + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="normalize-space(atom:title)"/> + + + + article + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xslt/bluray-logo.png b/xslt/bluray-logo.png new file mode 100644 index 0000000..62ae5c9 Binary files /dev/null and b/xslt/bluray-logo.png differ diff --git a/xslt/cassette-logo.png b/xslt/cassette-logo.png new file mode 100644 index 0000000..ea88f46 Binary files /dev/null and b/xslt/cassette-logo.png differ diff --git a/xslt/cd-logo.png b/xslt/cd-logo.png new file mode 100644 index 0000000..c55d2e8 Binary files /dev/null and b/xslt/cd-logo.png differ diff --git a/xslt/crossref2tellico.xsl b/xslt/crossref2tellico.xsl new file mode 100644 index 0000000..17cddd3 --- /dev/null +++ b/xslt/crossref2tellico.xsl @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="cr:article_title"/> + + + + + + + + + + inproceedings + + + book + + + article + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xslt/delicious2tellico.xsl b/xslt/delicious2tellico.xsl new file mode 100644 index 0000000..e185d58 --- /dev/null +++ b/xslt/delicious2tellico.xsl @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hardback + + + Paperback + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + diff --git a/xslt/discogs2tellico.xsl b/xslt/discogs2tellico.xsl new file mode 100644 index 0000000..3f5539e --- /dev/null +++ b/xslt/discogs2tellico.xsl @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="substring-after(title,' - ')"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="title"/> + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="title"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Compact Disc + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xslt/dvd-logo.png b/xslt/dvd-logo.png new file mode 100644 index 0000000..982b1b2 Binary files /dev/null and b/xslt/dvd-logo.png differ diff --git a/xslt/entry-templates/Album.xsl b/xslt/entry-templates/Album.xsl new file mode 100644 index 0000000..9b6e6f0 --- /dev/null +++ b/xslt/entry-templates/Album.xsl @@ -0,0 +1,497 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="tc:collection/tc:entry[1]//tc:title[1]"/> + <xsl:text> – </xsl:text> + <xsl:value-of select="tc:collection/@title"/> + + + + + + + + + + + + + + +

This template is meant for music collections only.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + +
+ +
+ + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 1 + 2 + + +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +   +
+
+ +
    + +
  • + +
  • +
    +
+
+
+
+ + + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + / + + + + +
+ + + + + + + / + + + + + + +
+ Total: + + + + + + +
+
+ +
diff --git a/xslt/entry-templates/Compact.xsl b/xslt/entry-templates/Compact.xsl new file mode 100644 index 0000000..f523d68 --- /dev/null +++ b/xslt/entry-templates/Compact.xsl @@ -0,0 +1,294 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="tc:collection/tc:entry[1]//tc:title[1]"/> + <xsl:text> – </xsl:text> + <xsl:value-of select="tc:collection/@title"/> + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + : + + + + + + +

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ +   + + +   +
+
+ +
    + +
  • + +
  • +
    +
+
+
+
+ + + + + + + + +
+
+
+
+ +
diff --git a/xslt/entry-templates/Default.xsl b/xslt/entry-templates/Default.xsl new file mode 100644 index 0000000..fcd01fd --- /dev/null +++ b/xslt/entry-templates/Default.xsl @@ -0,0 +1,346 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="tc:collection/tc:entry[1]//tc:title[1]"/> + <xsl:text> – </xsl:text> + <xsl:value-of select="tc:collection/@title"/> + + + + + + + + + + + + + + + + + + + + +

+ + + +
+
+
+

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ + + + + + +
+
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +   +
+
+ +
    + +
  • + +
  • +
    +
+
+
+
+ + + + + + +
+
+
+ +
diff --git a/xslt/entry-templates/Fancy.xsl b/xslt/entry-templates/Fancy.xsl new file mode 100644 index 0000000..875309f --- /dev/null +++ b/xslt/entry-templates/Fancy.xsl @@ -0,0 +1,444 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="tc:collection[1]/tc:entry[1]//tc:title[1]"/> + <xsl:text> – </xsl:text> + <xsl:value-of select="tc:collection[1]/@title"/> + + + + + + + + + + + + + + + + + + + + +

+ + + +
+
+
+

+
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + +
+ + + width: 50%; + + + + float: left; clear: both; + + + float: right; + + + + + + + width: 100%; float: left; clear: both; + + +
+ +

+ +

+ + + + + +

+ + +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +   + + +   +
+
+ +
    + +
  • + +
  • +
    +
+
+
+
+ + + + + + + + + + + + +
+ + : + + + + + +
+ +
+
+ +
+
+
+
+ +
diff --git a/xslt/entry-templates/Makefile.am b/xslt/entry-templates/Makefile.am new file mode 100644 index 0000000..5b1b875 --- /dev/null +++ b/xslt/entry-templates/Makefile.am @@ -0,0 +1,17 @@ +####### kdevelop will overwrite this part!!! (begin)########## + + +EXTRA_DIST = Default.xsl Video.xsl Album.xsl Fancy.xsl Compact.xsl + +####### kdevelop will overwrite this part!!! (end)############ + +xsldir = $(kde_datadir)/tellico/entry-templates +xsl_DATA = Default.xsl Video.xsl Album.xsl Fancy.xsl Compact.xsl + +KDE_OPTIONS = noautodist + +CLEANFILES = *~ + +# probably a better way to do this +uninstall-hook: + -if [ -d $(xsldir) ]; then rmdir $(xsldir); fi diff --git a/xslt/entry-templates/Video.xsl b/xslt/entry-templates/Video.xsl new file mode 100644 index 0000000..c74e88e --- /dev/null +++ b/xslt/entry-templates/Video.xsl @@ -0,0 +1,512 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="tc:collection/tc:entry[1]//tc:title[1]"/> + <xsl:text> – </xsl:text> + <xsl:value-of select="tc:collection/@title"/> + + + + + + + + + + + + + + +

This template is meant for video collections only.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + person + + + role + +   +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +   +
+
+ +
    + +
  • + +
  • +
    +
+
+
+
+ + + + + + +
+
+
+ +
+ +
diff --git a/xslt/gcstar2tellico.xsl b/xslt/gcstar2tellico.xsl new file mode 100644 index 0000000..a45df87 --- /dev/null +++ b/xslt/gcstar2tellico.xsl @@ -0,0 +1,503 @@ + + + + + + + + + + + 2 + + + 3 + + + 4 + + + 7 + + + 8 + + + 11 + + + 13 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + author + + + + + + + + + + + + + true + + + + + + + + + true + + + + + + + + + + + + + + Paperback + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + U (USA) + + + G (USA) + + + PG (USA) + + + PG-13 (USA) + + + R (USA) + + + + + + + + + + + + + + + + + + + + true + + + + + + true + + + + + + true + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <br/> + + <br/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xslt/hddvd-logo.png b/xslt/hddvd-logo.png new file mode 100644 index 0000000..67da5ad Binary files /dev/null and b/xslt/hddvd-logo.png differ diff --git a/xslt/isbndb2tellico.xsl b/xslt/isbndb2tellico.xsl new file mode 100644 index 0000000..c4152f6 --- /dev/null +++ b/xslt/isbndb2tellico.xsl @@ -0,0 +1,205 @@ + + + + + + + Arabic + Catalan + Czech + Dutch + English + French + German + Dutch + Hebrew + Greek + Hindi + Hungarian + Italian + Japanese + Korean + Latin + Lithuanian + Norwegian Bokmål + Norwegian + Norwegian Nynorsk + Polish + Portuguese + Russian + Slovak + Spanish + Swedish + Chinese + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="Title"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <br/><br/> + + + <br/><br/> + + + + + + + + + + + Hardback + + + Paperback + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xslt/mods2tellico.xsl b/xslt/mods2tellico.xsl new file mode 100644 index 0000000..d471498 --- /dev/null +++ b/xslt/mods2tellico.xsl @@ -0,0 +1,521 @@ + + + + + + + + + + Arabic + Catalan + Czech + Dutch + English + French + German + Dutch + Hebrew + Greek + Hindi + Hungarian + Italian + Japanese + Korean + Latin + Lithuanian + Norwegian Bokmål + Norwegian + Norwegian Nynorsk + Polish + Portuguese + Russian + Slovak + Spanish + Swedish + Chinese + + + + + + + + + + + bibtex + + + book + + + + + + + + + + + + + + + + + + 5 + + + 2 + + + + + + + + + publisher + + + + + + abstract + + + + + + address + + + + + + + + + + + + + + + + + + + + + + + + + + + article + + + book + + + book + + + phdthesis + + + article + + + inbook + + + inproceedings + + + incollection + + + book + + + + + + + + + + + + + + <xsl:value-of select="mods:titleInfo/mods:nonSort"/> + <xsl:value-of select="mods:titleInfo/mods:title"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + year + + + pub_year + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <br/><br/> + + + + + + + + + + + + + + + + + + + + + series + + + journal + + + booktitle + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/xslt/pubmed2tellico.xsl b/xslt/pubmed2tellico.xsl new file mode 100644 index 0000000..3f32ec6 --- /dev/null +++ b/xslt/pubmed2tellico.xsl @@ -0,0 +1,190 @@ + + + + + + + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + + + + + + + + + + + + + + institution + + + + + + + + + + + + + + + + + + article + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="Article/ArticleTitle"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + + + diff --git a/xslt/record-logo.png b/xslt/record-logo.png new file mode 100644 index 0000000..956c03e Binary files /dev/null and b/xslt/record-logo.png differ diff --git a/xslt/referencer2tellico.xsl b/xslt/referencer2tellico.xsl new file mode 100644 index 0000000..5bb90be --- /dev/null +++ b/xslt/referencer2tellico.xsl @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="bib_title"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xslt/report-templates/Column_View.xsl b/xslt/report-templates/Column_View.xsl new file mode 100644 index 0000000..3b007fe --- /dev/null +++ b/xslt/report-templates/Column_View.xsl @@ -0,0 +1,310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + number + text + + + + + + + + + + + + number + text + + + + + + + + + + + + number + text + + + + + + + + + + + + Tellico + + + + + + + + +

+

+

+ +

+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text-align: center; padding-left: 5px + + + + + + + + + + + text-align: center; padding-left: 5px + + + + + + + + + + + + + + + + + text-align: center; padding-left: 5px + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + diff --git a/xslt/report-templates/Group_Summary.xsl b/xslt/report-templates/Group_Summary.xsl new file mode 100644 index 0000000..9058f78 --- /dev/null +++ b/xslt/report-templates/Group_Summary.xsl @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tellico + + + + + + + + +

+

+

+ + : Group Summary +

+ + + + + + + + + + + + +
Total number of fields: + + Total number of entries: + +
+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+ +

+ + + + + +
+
+ +
+ + + + padding-left: + + + px; + + () + + +
+
+
+ +

+ Distinct values: +

+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + diff --git a/xslt/report-templates/Group_View.xsl b/xslt/report-templates/Group_View.xsl new file mode 100644 index 0000000..123559e --- /dev/null +++ b/xslt/report-templates/Group_View.xsl @@ -0,0 +1,284 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tellico + + + + + + + + +

+

+

+ +

+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text-align: center; padding-left: 5px + + + + + + + + + + + text-align: center; padding-left: 5px + + + + + + + + + + + + + + + + + text-align: center; padding-left: 5px + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + diff --git a/xslt/report-templates/Image_List.xsl b/xslt/report-templates/Image_List.xsl new file mode 100644 index 0000000..78c596f --- /dev/null +++ b/xslt/report-templates/Image_List.xsl @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tellico + + + + + + + + +

+

+

+ +

+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+ + + + + + + + + + + : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xslt/report-templates/Loan_View.xsl b/xslt/report-templates/Loan_View.xsl new file mode 100644 index 0000000..d52f74c --- /dev/null +++ b/xslt/report-templates/Loan_View.xsl @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tellico + + + + + + + + +

+

+

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + BorrowerLoan DateNote
+ + + + + + +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + Loan DateDue DateNote
+ + + + + + +

+
+ + +
+ +
+ + + + diff --git a/xslt/report-templates/Makefile.am b/xslt/report-templates/Makefile.am new file mode 100644 index 0000000..36c6dca --- /dev/null +++ b/xslt/report-templates/Makefile.am @@ -0,0 +1,21 @@ +####### kdevelop will overwrite this part!!! (begin)########## + + +EXTRA_DIST = Column_View.xsl Title_Listing_(Horizontal).xsl\ + Title_Listing_(Vertical).xsl Group_View.xsl Image_List.xsl \ + Loan_View.xsl Group_Summary.xsl Tri-Column.xsl + +####### kdevelop will overwrite this part!!! (end)############ + +xsldir = $(kde_datadir)/tellico/report-templates +xsl_DATA = Column_View.xsl Title_Listing_(Horizontal).xsl \ + Title_Listing_(Vertical).xsl Group_View.xsl Image_List.xsl \ + Loan_View.xsl Group_Summary.xsl Tri-Column.xsl + +KDE_OPTIONS = noautodist + +CLEANFILES = *~ + +# probably a better way to do this +uninstall-hook: + -if [ -d $(xsldir) ]; then rmdir $(xsldir); fi diff --git a/xslt/report-templates/Title_Listing_(Horizontal).xsl b/xslt/report-templates/Title_Listing_(Horizontal).xsl new file mode 100644 index 0000000..30b9c95 --- /dev/null +++ b/xslt/report-templates/Title_Listing_(Horizontal).xsl @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tellico + + + + + + + + +

+

+

+ +

+ + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + ; +
+
+
+ +
+ +
+ + + + diff --git a/xslt/report-templates/Title_Listing_(Vertical).xsl b/xslt/report-templates/Title_Listing_(Vertical).xsl new file mode 100644 index 0000000..79b6820 --- /dev/null +++ b/xslt/report-templates/Title_Listing_(Vertical).xsl @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tellico + + + + + + + + +

+

+

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + ; +
+
+
+ +
+ +
+ + + + diff --git a/xslt/report-templates/Tri-Column.xsl b/xslt/report-templates/Tri-Column.xsl new file mode 100644 index 0000000..d38dd5f --- /dev/null +++ b/xslt/report-templates/Tri-Column.xsl @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tellico + + + + + + + + +

+ This template is meant for video collections only. +

+
+ + +

+

+

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+ +
+ + + + + + + + + + +
+ + +  + + + + + + + + + + + + + + +
+ + [ + + ; + + ] + +
+ + +  … + +
+
+ +
+ + + + + diff --git a/xslt/shadowAlpha.png b/xslt/shadowAlpha.png new file mode 100644 index 0000000..a24c9c4 Binary files /dev/null and b/xslt/shadowAlpha.png differ diff --git a/xslt/tellico-by-author.xsl b/xslt/tellico-by-author.xsl new file mode 100644 index 0000000..e71948e --- /dev/null +++ b/xslt/tellico-by-author.xsl @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + My Book Collections - sorted by author + + + + + + + + + +
+
+ + + sorted by author +
+
+ + + + +
+ (Empty) +
+
+
    + + + + +
+
+
+ + + +
+ +
+
+
    + + + + + + +
+
+
+
+ + +
  • + +
  • +
    + +
    diff --git a/xslt/tellico-by-title.xsl b/xslt/tellico-by-title.xsl new file mode 100644 index 0000000..de023c4 --- /dev/null +++ b/xslt/tellico-by-title.xsl @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + This stylesheet was designed for Tellico DTD version + + or earlier, but the input data file is version + + . There might be some problems with the output. + + + + + + My Book Collections - sorted by title + + + + + + + + + +
    +
    + + + sorted by title +
    +
    + +
    +
      + + + + +
    +
    +
    + + +
  • +
    +
  • +
    + +
    diff --git a/xslt/tellico-common.xsl b/xslt/tellico-common.xsl new file mode 100644 index 0000000..5a75efc --- /dev/null +++ b/xslt/tellico-common.xsl @@ -0,0 +1,307 @@ + + + + + + + + + + + + + + This stylesheet was designed for Tellico DTD version + + or earlier, but the input data file is version + + . There might be some problems with the output. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ✓ + + + + + + + + + + + + + Buy from Amazon.com + + + + + + + + + + + + - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [...] + + + + + + + + + + + + + + + + + + + : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xslt/tellico-printing.xsl b/xslt/tellico-printing.xsl new file mode 100644 index 0000000..bbc8ee4 --- /dev/null +++ b/xslt/tellico-printing.xsl @@ -0,0 +1,381 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="$page-title"/> + + + + + + + + + +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + entry1 + + + + + entry2 + + + + + + + + + + + + + + + + + + + + + groupEntry1 + + + + + groupEntry2 + + + + + + + + + + +
    + + + + +
    + + + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text-align: left; padding-left: 10px + + + + + + + + + + + + + + + + + + + + + text-align: center; padding-left: 5px + + + + + + + + + + + + + - + + + + +
    +
    + + + + + text-align: center; padding-left: 5px + + + + + + + + + + + + + + + + + text-align: center; padding-left: 5px + + + - + + - + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    + +
    +
    + +
    + + + + diff --git a/xslt/tellico2gcstar.xsl b/xslt/tellico2gcstar.xsl new file mode 100644 index 0000000..b4cf394 --- /dev/null +++ b/xslt/tellico2gcstar.xsl @@ -0,0 +1,286 @@ + + + + + + + + + + isbn + title + publisher + pub_year + language + series + edition + pages + pur_date + pur_date + location + translator + artist + director + year + format + origtitle + binding + medium + format + url + url + read + seen + favorite + label + year + composer + producer + + + + + GCbooks + + + GCfilms + + + GCmusics + + + + + + + + + + + + + + + + + + + GCstar export is not supported for this collection type. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + / + + + + + + + + + 1 + + + 2 + + + 5 + + + 13 + + + 18 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xslt/tellico2html.js b/xslt/tellico2html.js new file mode 100644 index 0000000..8a3f5df --- /dev/null +++ b/xslt/tellico2html.js @@ -0,0 +1,620 @@ +function showAll() { + // for now, assume only 1 table + tbl = document.getElementsByTagName("table")[0]; + bdy = tbl.getElementsByTagName("tbody")[0]; + rows = bdy.getElementsByTagName("tr"); + for(i=0;i to your HTML + Add class="sortable" to any table you'd like to make sortable + Click on the headers to sort + + Thanks to many, many people for contributions and suggestions. + Licenced as X11: http://www.kryogenix.org/code/browser/licence.html + This basically means: do what you want with it. +*/ + + +var stIsIE = /*@cc_on!@*/false; + +sorttable = { + init: function() { + // quit if this function has already been called + if (arguments.callee.done) return; + // flag this function so we don't do the same thing twice + arguments.callee.done = true; + // kill the timer + if (_timer) clearInterval(_timer); + + if (!document.createElement || !document.getElementsByTagName) return; + + sorttable.DATE_RE = /^(\d\d)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; + sorttable.YYMMDD_RE = /^((\d\d)?\d\d)[\/\.-](\d\d?)[\/\.-](\d\d)$/; + + forEach(document.getElementsByTagName('table'), function(table) { + if (table.className.search(/\bsortable\b/) != -1) { + sorttable.makeSortable(table); + } + }); + + }, + + makeSortable: function(table) { + if (table.getElementsByTagName('thead').length == 0) { + // table doesn't have a tHead. Since it should have, create one and + // put the first table row in it. + the = document.createElement('thead'); + the.appendChild(table.rows[0]); + table.insertBefore(the,table.firstChild); + } + // Safari doesn't support table.tHead, sigh + if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; + + if (table.tHead.rows.length != 1) return; // can't cope with two header rows + + // work through each column and calculate its type + headrow = table.tHead.rows[0].cells; + for (var i=0; i5' : ' ▴'; + this.appendChild(sortrevind); + return; + } + if (this.className.search(/\bsorttable_sorted_reverse\b/) != -1) { + // if we're already sorted by this column in reverse, just + // re-reverse the table, which is quicker + sorttable.reverse(this.sorttable_tbody); + this.className = this.className.replace('sorttable_sorted_reverse', + 'sorttable_sorted'); + this.removeChild(document.getElementById('sorttable_sortrevind')); + sortfwdind = document.createElement('span'); + sortfwdind.id = "sorttable_sortfwdind"; + sortfwdind.innerHTML = stIsIE ? ' 6' : ' ▾'; + this.appendChild(sortfwdind); + return; + } + + // remove sorttable_sorted classes + theadrow = this.parentNode; + forEach(theadrow.childNodes, function(cell) { + if (cell.nodeType == 1) { // an element + cell.className = cell.className.replace('sorttable_sorted_reverse',''); + cell.className = cell.className.replace('sorttable_sorted',''); + } + }); + sortfwdind = document.getElementById('sorttable_sortfwdind'); + if (sortfwdind) { sortfwdind.parentNode.removeChild(sortfwdind); } + sortrevind = document.getElementById('sorttable_sortrevind'); + if (sortrevind) { sortrevind.parentNode.removeChild(sortrevind); } + + this.className += ' sorttable_sorted'; + sortfwdind = document.createElement('span'); + sortfwdind.id = "sorttable_sortfwdind"; + sortfwdind.innerHTML = stIsIE ? ' 6' : ' ▾'; + this.appendChild(sortfwdind); + + // build an array to sort. This is a Schwartzian transform thing, + // i.e., we "decorate" each row with the actual sort key, + // sort based on the sort keys, and then put the rows back in order + // which is a lot faster because you only do getInnerText once per row + row_array = []; + col = this.sorttable_columnindex; + rows = this.sorttable_tbody.rows; + for (var j=0; j 12) { + // definitely dd/mm + return sorttable.sort_ddmm; + } else if (second > 12) { + return sorttable.sort_mmdd; + } else { + // looks like a date, but we can't tell which, so assume + // that it's dd/mm (English imperialism!) and keep looking + sortfn = sorttable.sort_ddmm; + } + } + } + } + return sortfn; + }, + + getInnerText: function(node) { + // gets the text we want to use for sorting for a cell. + // strips leading and trailing whitespace. + // this is *not* a generic getInnerText function; it's special to sorttable. + // for example, you can override the cell text with a customkey attribute. + // it also gets .value for fields. + + hasInputs = (typeof node.getElementsByTagName == 'function') && + node.getElementsByTagName('input').length; + + if (node.getAttribute("sorttable_customkey") != null) { + return node.getAttribute("sorttable_customkey"); + } + var innerText = ''; + if (typeof node.textContent != 'undefined' && !hasInputs) { + innerText = node.textContent.replace(/^\s+|\s+$/g, ''); + } + else if (typeof node.innerText != 'undefined' && !hasInputs) { + innerText = node.innerText.replace(/^\s+|\s+$/g, ''); + } + else if (typeof node.text != 'undefined' && !hasInputs) { + innerText = node.text.replace(/^\s+|\s+$/g, ''); + } + if(innerText != '') { + return innerText; + } + else { + switch (node.nodeType) { + case 3: + if (node.nodeName.toLowerCase() == 'input') { + return node.value.replace(/^\s+|\s+$/g, ''); + } + case 4: + return node.nodeValue.replace(/^\s+|\s+$/g, ''); + break; + case 1: + case 11: + if(node.nodeName.toLowerCase() == 'img') { + var tokens = node.src.split('/'); + innerText += tokens[tokens.length-1]; + } + for (var i = 0; i < node.childNodes.length; i++) { + innerText += sorttable.getInnerText(node.childNodes[i]); + } + return innerText.replace(/^\s+|\s+$/g, ''); + break; + default: + return ''; + } + } + }, + + reverse: function(tbody) { + // reverse the rows in a tbody + newrows = []; + for (var i=0; i=0; i--) { + tbody.appendChild(newrows[i]); + } + delete newrows; + }, + + /* sort functions + each sort function takes two parameters, a and b + you are comparing a[0] and b[0] */ + sort_numeric: function(a,b) { + /* could be multiple values separated by semi-colon */ + aa = a[0].split(";")[0]; + bb = b[0].split(";")[0]; + aa = parseFloat(aa.replace(/[^0-9.-]/g,'')); + if (isNaN(aa)) aa = 0; + bb = parseFloat(bb.replace(/[^0-9.-]/g,'')); + if (isNaN(bb)) bb = 0; + return aa-bb; + }, + sort_alpha: function(a,b) { + /* case-insensitive */ + aa = a[0].toLowerCase(); + bb = b[0].toLowerCase(); + if(aa.localeCompare) return aa.localeCompare(bb); /* Robby Stephenson */ + if (aa==bb) return 0; + if (aa 0 ) { + var q = list[i]; list[i] = list[i+1]; list[i+1] = q; + swap = true; + } + } // for + t--; + + if (!swap) break; + + for(var i = t; i > b; --i) { + if ( comp_func(list[i], list[i-1]) < 0 ) { + var q = list[i]; list[i] = list[i-1]; list[i-1] = q; + swap = true; + } + } // for + b++; + + } // while(swap) + } +} + +/* ****************************************************************** + Supporting functions: bundled here to avoid depending on a library + ****************************************************************** */ + +// Dean Edwards/Matthias Miller/John Resig + +/* for Mozilla/Opera9 */ +if (document.addEventListener) { + document.addEventListener("DOMContentLoaded", sorttable.init, false); +} + +/* for Internet Explorer */ +/*@cc_on @*/ +/*@if (@_win32) + document.write(" + +