From 28fb7c48170942ebef0a626bb240da21df6ceb0a Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Mon, 13 May 2013 16:45:09 +0200 Subject: [PATCH] Bug 10236 - software error greek authorities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When displaying at OPAC an authority containing several languages forms, we get a software error. There is in authority template page a call to "language" function but this function does not exist. This patch copies behaviour from bug 8870 (pushed in 3.10) which introduces the "language function". Test plan (unimarc) : - create an authority with 2 fields 700 with : 700$7 ba0yga0y $8 fregrc $a Κίνναμος 700$7 ba0yba0a $8 frefre $a Cinnamos - display this authority at OPAC => you should see : See also Greek term: Κίνναμος See also French term: Cinnamos Signed-off-by: Chris Cormack --- koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt index 672d4e3..52c3995 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt @@ -32,6 +32,16 @@ [% ELSE %][% heading %] [% END %] [% END %] +[% BLOCK language %] + [% SWITCH lang %] + [% CASE ['en', 'eng'] %]English + [% CASE ['fr', 'fre'] %]French + [% CASE ['it', 'ita'] %]Italian + [% CASE ['de', 'ger', 'deu'] %]German + [% CASE ['es', 'spa'] %]Spanish + [% CASE %][% lang %] + [% END %] +[% END %] [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Entry [% INCLUDE 'doc-head-close.inc' %] [% IF ( displayhierarchy ) %] @@ -139,7 +149,7 @@ function showChildren(mynumber) { [% IF marcflavour == 'UNIMARC' && summary.otherscript %]
[% FOREACH otherscrip IN summary.otherscript %] -
See also[% PROCESS language lang=otherscript.lang | trim %] term: +
See also [% PROCESS language lang=otherscrip.lang | trim %] term: [% otherscrip.term %]
[% END %] -- 1.8.3.1