Bugzilla – Attachment 12801 Details for
Bug 8916
Hide Curriculum index in advanced search for unimarc marcflavor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8916: Hide Curriculum index in advanced search if marcflavor = unimarc
Bug-8916-Hide-Curriculum-index-in-advanced-search-.patch (text/plain), 2.29 KB, created by
Chris Cormack
on 2012-10-13 20:28:16 UTC
(
hide
)
Description:
Bug 8916: Hide Curriculum index in advanced search if marcflavor = unimarc
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-10-13 20:28:16 UTC
Size:
2.29 KB
patch
obsolete
>From edbf3ea4dc0b2f72d01be0e0a999f22007acb0ae Mon Sep 17 00:00:00 2001 >From: Mathieu Saby <mathieu.saby@univ-rennes2.fr> >Date: Sat, 13 Oct 2012 10:36:37 +0200 >Subject: [PATCH] Bug 8916: Hide Curriculum index in advanced search if > marcflavor = unimarc > >This patch hides curriculum option value in koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc and koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt if marcflavor = UNIMARC > >To test >- set marcflavour to UNIMARC, this option should be hidden in the index list in opac and staff interface advanced search >- set marcflavour to MARC21, this option should be visible, as before > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc | 4 +++- > koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt | 2 ++ > 2 files changed, 5 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc >index 09e748b..8102201 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc >@@ -26,7 +26,9 @@ > <option value="callnum"> Call number</option> > <option value="ln,rtrn">Language</option> > <option value="nt">Notes/Comments</option> >- <option value="curriculum">Curriculum</option> >+ [% IF (marcflavour != 'UNIMARC' ) %] >+ <option value="curriculum">Curriculum</option> >+ [% END %] > <option value="pb">Publisher</option> > <option value="pl">Publisher location</option> > <option value="yr">Publication date (yyyy)</option> >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt >index 515d954..55eea18 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt >@@ -92,7 +92,9 @@ > [% END %] > [% IF ( expanded_options ) %] > <option value="nt">Notes/Comments</option> >+ [% IF (marcflavour != 'UNIMARC') %] > <option value="curriculum">Curriculum</option> >+ [% END %] > [% END %] > <option value="pb,wrdl">Publisher</option> > <option value="pl,wrdl">Publisher location</option> >-- >1.7.10.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 8916
:
12800
| 12801