From 792945c9c30eb6aff9cde1cd417071660434c1cb Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Fri, 2 Dec 2011 16:08:44 +0000 Subject: [PATCH] Bug 7309 - Add NORMARCslim2intranetDetail.xsl for detail view in intranet Adds two files, to enable XSLT for the detail view in the intranet: koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslimUtils.xsl To test: - Set sysprefs: marcflavour = NORMARC and XSLTDetailsDisplay = "using XSLT stylesheet" - Make sure OPACBaseURL is set correctly - Check that detail display looks ok - Check that automatic links for author, subjects etc work - Check that the "Open in new window" link works as expected - Empty the OPACBaseURL syspref and check that "Open in new window" does not display Signed-off-by: Katrin Fischer Great test plan, could reproduce problem and can confirm patch fixes it. Signed-off-by: Paul Poulain (cherry picked from commit e4c6f1fc20f6d2f658fd5cf56da77708fd9a9c26) Signed-off-by: Chris Nighswonger --- .../en/xslt/NORMARCslim2intranetDetail.xsl | 535 ++++++++++++++++++ .../prog/en/xslt/NORMARCslimUtils.xsl | 205 +++++++ 2 files changed, 740 insertions(+) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl create mode 100644 koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslimUtils.xsl diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl new file mode 100644 index 0000000000..163ed296c4 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl @@ -0,0 +1,535 @@ + + + + + + + + + + + + + + + + + + + + + + + Mon + FV + Mus + Kar + gra + Fil + kom + trd + + + Mon + Per + + + + + + + Bok + Film og video + Musikalier + Kart + Grafisk materiale + Fil + Kombidokument + Tredimensjonal gjenstand + + + Bok + Periodikum + + + + + + + + +

+ + + a + + + : + + b + + + + + ( + h + ) + + + + np + + +

+
+ + + + + +
av + + + + + /cgi-bin/koha/catalogue/search.pl?q=an: + + + /cgi-bin/koha/catalogue/search.pl?q=au: + + + + + .; + + + + + + + /cgi-bin/koha/catalogue/search.pl?q=an: + + + /cgi-bin/koha/catalogue/search.pl?q=au: + + + + .; + + + + + + + /cgi-bin/koha/catalogue/search.pl?q=an: + + + /cgi-bin/koha/catalogue/search.pl?q=au: + + + + .; + + +
+
+
+ + + + Materialtype: + /opac-tmpl/prog/famfamfam/.png + + + + + + + Series: + + + + + + av + + + + + + .; + + + + + + + + av + + + + + + .; + + + + + + + + Utgiver: + + + + + bcg + + + + .; + + + + + + + + Utgave: + + + + + ab + + + + .; + + + + + + + + Beskrivelse: + + + + + abceg + + + + .; + + + + + + + + ISBN: + + + + .; + + + + + + ISSN: + + + .; + + + + + + + + Parallelltittel: + + + + + abhfgnp + + + + .; + + + + + + + + Standardtittel: + + + + + + + + + + + + + + + + .; + + + + + + Emner: + + + + + /cgi-bin/koha/catalogue/search.pl?q=an: + + + /cgi-bin/koha/catalogue/search.pl?q=su: + + + + + + abcdvxyz + vxyz + -- + + + + + + | + + + + + + + + Nettbasert ressurs: + + + + + + y3z + + + + Klikk her for tilgang + + + + + + | + + + + + + + + + a + + + + + + + + + + Fortsettelse av: + + + Delvis fortsettelse av: + + + Avløser: + + + Avløser delvis: + + + Sammenslåing av: ... ; og ... + + + Har tatt opp: + + + Har delvis tatt opp: + + + Utskilt fra: + + + + + + a_t + + + /cgi-bin/koha/catalogue/search.pl?q= + + + + + + + + + + + + + + + + + + + + Fortsettelse i: + + + Fortsettes delvis i: + + + Avløst av: + + + Delvis avløst av: + + + Gått inn i: + + + Delvis gått inn i: + + + Fortsettes av: ...; og ... + + + Slått sammen med: .., til: ... + + + + + + a_t + + + + /cgi-bin/koha/catalogue/search.pl?q= + + + + + + + + + +

OPAC View: + http:///cgi-bin/koha/opac-detail.pl?biblionumber= + _blank + Open in new window +

+
+ +
+ + + + + n + n + fghkdlmor + + + + + p + p + fghkdlmor + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslimUtils.xsl new file mode 100644 index 0000000000..7c2bf21d70 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslimUtils.xsl @@ -0,0 +1,205 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +aq + + + +:,;/ + + + + + + + + + + + + + + + + +cdn + + + + + + +acdeq + + + + + + + + +bc + + + + + + + + + + + + + + + + + + + + + + + + + + display:block; text-align:right; float:right; width:50%; padding-left:20px + rtl + + + display:block; + + + + + + + + + + + + + + + + + + + /cgi-bin/koha/opac-detail.pl?biblionumber= + + + + + + /cgi-bin/koha/opac-search.pl?q=an: + + + + + + /cgi-bin/koha/opac-search.pl?q=: + + + + + + + + + + + + + + + + -- 2.39.5