Bug 5910: [SIGNED-OFF] only add "All authority types" for UNIMARC
UNIMARC is the only marcflavour that does not already have an option for searching all authority types, so check that the marcflavour is UNIMARC before displaying the additional "All authority types" option. Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
parent
434b4559eb
commit
7bc4a6025b
|
|
@ -177,5 +177,7 @@ $template->param(
|
|||
authtypesloop => \@authtypesloop,
|
||||
);
|
||||
|
||||
$template->{VARS}->{marcflavour} = C4::Context->preference("marcflavour");
|
||||
|
||||
# Print the page
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
|
|
|||
|
|
@ -241,5 +241,7 @@ $template->param(authid => $authid,
|
|||
authtypetext => $authtypes->{$authtypecode}{'authtypetext'},
|
||||
authtypesloop => \@authtypesloop,
|
||||
);
|
||||
|
||||
$template->{VARS}->{marcflavour} = C4::Context->preference("marcflavour");
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<input type="hidden" name="op" value="do_search" />
|
||||
<input type="hidden" name="type" value="intranet" />
|
||||
<select name="authtypecode">
|
||||
<option value="">All Authority Types</option>
|
||||
[% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
|
||||
[% FOREACH authtypesloo IN authtypesloop %]
|
||||
[% IF ( authtypesloo.selected ) %]
|
||||
<option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
<input type="hidden" name="op" value="do_search" />
|
||||
<input type="hidden" name="type" value="intranet" />
|
||||
<select name="authtypecode">
|
||||
<option value="">All Authority Types</option>
|
||||
[% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
|
||||
[% FOREACH authtypesloo IN authtypesloop %]
|
||||
[% IF ( authtypesloo.selected ) %]
|
||||
<option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
|
||||
|
|
@ -70,7 +70,7 @@
|
|||
<input type="hidden" name="op" value="do_search" />
|
||||
<input type="hidden" name="type" value="intranet" />
|
||||
<select name="authtypecode">
|
||||
<option value="">All Authority Types</option>
|
||||
[% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
|
||||
[% FOREACH authtypesloo IN authtypesloop %]
|
||||
[% IF ( authtypesloo.selected ) %]
|
||||
<option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
|
||||
|
|
|
|||
Loading…
Reference in New Issue