Bug 15469: Fix authority header search

Introduced by bug 15381.

The logs contain plenty of "detail.pl: No method value!" and the
dropwdown list is not correctly populated (no value for options)

Test plan:
Go to the authority module and have a look at the auth type codes
dropdown list.
Without this patch, the values of the options are empty.
With this patch, the values are correctly filled.

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
  I confirm this patch silence noise in log file.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
This commit is contained in:
Jonathan Druart 2016-01-05 10:49:31 +00:00 committed by Brendan Gallagher
parent f0ac73292b
commit d63d0a6bb5

View file

@ -27,9 +27,9 @@
[% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
[% FOREACH authority_type IN authority_types %]
[% IF authority_type.authtypecode == authtypecode %]
<option value="[% authority_type.value %]" selected="selected">[% authority_type.authtypetext %]</option>
<option value="[% authority_type.authtypecode%]" selected="selected">[% authority_type.authtypetext %]</option>
[% ELSE %]
<option value="[% authority_type.value %]">[% authority_type.authtypetext %]</option>
<option value="[% authority_type.authtypecode %]">[% authority_type.authtypetext %]</option>
[% END %]
[% END %]
</select>
@ -83,9 +83,9 @@
[% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
[% FOREACH authority_type IN authority_types %]
[% IF authority_type.authtypecode == authtypecode %]
<option value="[% authority_type.value %]" selected="selected">[% authority_type.authtypetext %]</option>
<option value="[% authority_type.authtypecode %]" selected="selected">[% authority_type.authtypetext %]</option>
[% ELSE %]
<option value="[% authority_type.value %]">[% authority_type.authtypetext %]</option>
<option value="[% authority_type.authtypecode %]">[% authority_type.authtypetext %]</option>
[% END %]
[% END %]
</select>
@ -139,9 +139,9 @@
[% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
[% FOREACH authority_type IN authority_types %]
[% IF authority_type.authtypecode == authtypecode %]
<option value="[% authority_type.value %]" selected="selected">[% authority_type.authtypetext %]</option>
<option value="[% authority_type.authtypecode %]" selected="selected">[% authority_type.authtypetext %]</option>
[% ELSE %]
<option value="[% authority_type.value %]">[% authority_type.authtypetext %]</option>
<option value="[% authority_type.authtypecode %]">[% authority_type.authtypetext %]</option>
[% END %]
[% END %]
</select>