Bugzilla – Attachment 91844 Details for
Bug 23386
Add language of original in advanced search - staff client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23386: Add language of original in advanced search
Bug-23386-Add-language-of-original-in-advanced-sea.patch (text/plain), 3.08 KB, created by
Maryse Simard
on 2019-07-26 19:44:53 UTC
(
hide
)
Description:
Bug 23386: Add language of original in advanced search
Filename:
MIME Type:
Creator:
Maryse Simard
Created:
2019-07-26 19:44:53 UTC
Size:
3.08 KB
patch
obsolete
>From df2842447332c7da69d9683f4a361bd02020c2e1 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >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 <maryse.simard@inlibro.com> >--- > .../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 b41c45f..e1da783 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' %] > </head> > >+[%- BLOCK language_limit_select -%] >+<select name="limit" id="[% ln_id | html %]"> >+ <option value="">No limit</option> >+ [% FOREACH ln_loo IN ln_loop %] >+ [% IF ( ln_loo.selected ) %] >+ <option value="[% ln_index | html %],rtrn:[% ln_loo.iso639_2_code | html %]" selected="selected"> >+ [% ln_loo.language_description | html %] >+ </option> >+ [% ELSE %] >+ <option value="[% ln_index | html %],rtrn:[% ln_loo.iso639_2_code | html %]"> >+ [% ln_loo.language_description | html %] >+ </option> >+ [% END %] >+ [% END %] >+</select> >+[%- END -%] >+ > <body id="catalog_advsearch" class="catalog"> > [% INCLUDE 'header.inc' %] > [% INCLUDE 'adv-search.inc' %] >@@ -140,18 +157,12 @@ > </fieldset> > <fieldset id="language"> > <!-- LANGUAGE LIMIT --> >- <p><label for="language-limit">Language: </label> >- <select name="limit" id="language-limit"> >- <option value="">No limit</option> >- [% FOREACH search_languages_loo IN search_languages_loop %] >- [% IF ( search_languages_loo.selected ) %] >- <option value="ln,rtrn:[% search_languages_loo.iso639_2_code | html %]" selected="selected">[% search_languages_loo.language_description | html %]</option> >- [% ELSE %] >- <option value="ln,rtrn:[% search_languages_loo.iso639_2_code | html %]">[% search_languages_loo.language_description | html %]</option> >- [% END %] >- >- [% END %] >- </select></p><!-- <a href="">Show all languages</a>--> >+ <p> >+ <label for="language-limit">Language: </label> >+ [% PROCESS language_limit_select ln_loop=search_languages_loop ln_id='language-limit' ln_index='ln' %] >+ <label for="language-original-limit">Language of original: </label> >+ [% PROCESS language_limit_select ln_loop=search_languages_loop ln_id='language-original-limit' ln_index='language-original' %] >+ </p> > <!-- /LANGUAGE LIMIT --> > </fieldset> > </fieldset> >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23386
:
91815
|
91844
|
91866