Hi Michael, There _may_ be a syntax error in your customised stylesheet. What I tend to do whenever I make changes to our .xsl files is to test the validity of the output by running the following in a terminal: xsltproc <STYLESHEET_FILENAME> <SAMPLE_MARCXML_DATA> ... and then I inspect the output. You can create a file with sample MARCXML data with an SQL query like this: SELECT metadata FROM biblio_metadata WHERE biblionumber = 1786 INTO OUTFILE '/tmp/biblio1786.marcxml' FIELDS TERMINATED BY '' OPTIONALLY ENCLOSED BY '' ESCAPED BY '' LINES TERMINATED BY '' ; I hope this helps. Kind regards, Andreas On Thu, 15 Nov 2018 at 23:56, Michael Kuhn <mik@adminkuhn.ch> wrote:
Hi
Our library has two Koha instances. For one of them we need to customize the XSLT stylesheets used for the detail page - for this instance we need to have our own detail page in English (en) and our own detail page in German (de-DE).
According to
https://koha-community.org/manual/18.05/en/html/02_administration.html#opacx... I tried to do the following under Koha 18.05 in my own demo installation:
* I created the files "/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/en/MARC21slim2OPACDetail-CUSTOM.xsl"
and "/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/de-DE/MARC21slim2OPACDetail-CUSTOM.xsl"
using the original stylesheets but just making some slight changes for a start (for example writing "XXXEdition: " instead of "Edition: " which works without problems when changing the standard file) ...I also tried using other paths but to no avail...
* In Koha system preference "OPACXSLTDetailsDisplay" I entered
"/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/{langcode}/MARC21slim2OPACDetail-CUSTOM.xsl"
* I restarted Koha using "service koha-common restart"
* I also restarted the Apache HTTP Server using "service apache2 restart"
However, when searching the OPAC in the normal view the actual details won't show up at all anymore, just the tags, the stars and the holdings table of the respective record; MARC view and ISBD view show the data is there. There seems to be something wrong when using paths, even when not using {langcode}... And it also doesn't work when using an external URL like http://adminkuhn.ch/download/MARC21slim2OPACDetail.xsl
Has anyone done this before, how can this actually be achieved? What am I missing?
Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha