From 2905ff0bf87ba0fd71c2fb3bc54bf368fc9d95ce Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 26 Jul 2019 16:50:23 +0200 Subject: [PATCH] Bug 23386: Add language of original in advanced search In advanced search there is a language limit (UNIMARC 101$a), add language of original (UNIMARC 101$c). This patch adds a TT BLOCK to avoid copy the code. Test plan: 1) Create some records with language and language of original 2) Go to advanced search page 3) Check limit on language is OK 4) Check limit on language of the original is OK 5) Check using both is OK Signed-off-by: Maryse Simard Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- .../prog/en/modules/catalogue/advsearch.tt | 35 ++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt index b41c45f577..e1da7838aa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt @@ -7,6 +7,23 @@ [% INCLUDE 'doc-head-close.inc' %] +[%- BLOCK language_limit_select -%] + +[%- END -%] + [% INCLUDE 'header.inc' %] [% INCLUDE 'adv-search.inc' %] @@ -140,18 +157,12 @@
-

-

+

+ + [% PROCESS language_limit_select ln_loop=search_languages_loop ln_id='language-limit' ln_index='ln' %] + + [% PROCESS language_limit_select ln_loop=search_languages_loop ln_id='language-original-limit' ln_index='language-original' %] +

-- 2.39.5