From 09fcd6980301bae3daad68f8cc27a2d5e7d488e4 Mon Sep 17 00:00:00 2001 From: Zeno Tajoli Date: Wed, 30 Oct 2013 19:36:41 +0100 Subject: [PATCH] Bug 11174: fix OPAC search links built from authority 5xx fields In the templates opac-authoritiessearchresultlist of prog and bootstrap the incorrect parameter 'valuec' is changed to 'value' To test: 1) Insert an authority record with a 5xx field (on MARC21 or UNIMARC) 2) Index the record 3) Search for the record in using OPAC authorities search. 4) Click one of the "see also" links built from the 5xx field, the link doesn't work 5) Apply the patch 6) Close the browser 7) Open the opac and select the english interface 8) Redo the search 9) Now the link works 10) To use the patch in others languages you need to regenerate the templates. Signed-off-by: Marcel de Rooy Tested with bootstrap. Signed-off-by: Jonathan Druart Following commit remove the use to valuec: commit 31f41e2c1db9d8dca82e0249050acb8f906c8164 Bug 8206: Specify index in OPAC authority search Signed-off-by: Galen Charlton --- .../bootstrap/en/modules/opac-authoritiessearchresultlist.tt | 2 +- .../prog/en/modules/opac-authoritiessearchresultlist.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt index f9710c011a..6256f180c2 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt @@ -85,7 +85,7 @@ [% FOREACH resul IN result %] - [% PROCESS authresult summary=resul.summary link="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operatorc=contains&marclistc=mainentry&and_orc=and&orderby=HeadingAsc&valuec=" %] + [% PROCESS authresult summary=resul.summary link="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operatorc=contains&marclistc=mainentry&and_orc=and&orderby=HeadingAsc&value=" %] [% resul.authtype %] [% UNLESS ( resul.isEDITORS ) %] diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt index 71ad40e6ac..6f889b0f12 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt @@ -59,7 +59,7 @@ [% ELSE %] [% END %] - [% PROCESS authresult summary=resul.summary link="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operatorc=contains&marclistc=mainentry&and_orc=and&orderby=HeadingAsc&valuec=" %] + [% PROCESS authresult summary=resul.summary link="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operatorc=contains&marclistc=mainentry&and_orc=and&orderby=HeadingAsc&value=" %] [% resul.authtype %] [% UNLESS ( resul.isEDITORS ) %] -- 2.39.5