Copies available… but only if the OPAC language is English
Dear list, as stated in the subject: when I search in the OPAC, in the results page I get "Availability: Copies available for loan:" etc. -- but only if the OPAC language is English. If it's German, Turkish, Spanish, Polish or Russian, I get "No copies available" (in the resp. language) [if it's French i get "Erreur 500"]. Is that a known problem? Does it work as it should for others? Did I do something wrong with the translation files? (I do not really remember how i installed them, I had to do it manually I think). I'm on Koha 3.2.5 using the Debian-packages on Squeeze, OPACXSLTResultsDisplay is on. Any help is appreciated, Mirko
I was able to fix the problem. The non-English XSLT files are not up to date (I only checked with the German version for now but I suppose it's the same problem for all). The most important change seems to be line 5 xmlns:items="http://www.koha.org/items" to xmlns:items="http://www.koha-community.org/items" but there are more differences. I attach a diff-file with (I hope) all differences that are not translation-based. I'm afraid I have not learned how to commit a real patch to Koha yet. I will file a bug and include the solution tomorrow (it's 1:30am here). If there is a walkthrough explaining how to provide a patch for Koha please guide me to it. Good night, Mirko schrieb Mirko am 04.03.2011 23:30:
Dear list,
as stated in the subject: when I search in the OPAC, in the results page I get "Availability: Copies available for loan:" etc. -- but only if the OPAC language is English. If it's German, Turkish, Spanish, Polish or Russian, I get "No copies available" (in the resp. language) [if it's French i get "Erreur 500"].
Is that a known problem? Does it work as it should for others? Did I do something wrong with the translation files? (I do not really remember how i installed them, I had to do it manually I think). I'm on Koha 3.2.5 using the Debian-packages on Squeeze, OPACXSLTResultsDisplay is on.
Any help is appreciated,
Mirko _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
2011/3/5 Mirko <5p4m@gmx.de>:
I was able to fix the problem. The non-English XSLT files are not up to date (I only checked with the German version for now but I suppose it's the same problem for all). The most important change seems to be line 5
xmlns:items="http://www.koha.org/items"
to
xmlns:items="http://www.koha-community.org/items"
I can confirm that this difference in namespaces lead to "no copies available", I had the same problem with my work-in-progress XSLT files for NORMARC, but assumed it was only a problem for me because I hadn't updated my files. Your problem may have been solved by updating the templates with "translate install xx-YY", but for future reference, here is a page that describes how to submit patches to Koha: http://wiki.koha-community.org/wiki/Version_Control_Using_Git Best regards, Magnus Enger libriotech.no
participants (2)
-
Magnus Enger -
Mirko