[Koha-bugs] [Bug 10936] Standardnumber doubled up in Advanced search - more options

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Mar 16 21:25:51 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10936

--- Comment #10 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Comment on attachment 26322
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26322
Bug 10936 - Standardnumber doubled up in Advanced search - more options

Review of attachment 26322:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=10936&attachment=26322)
-----------------------------------------------------------------

::: koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt
@@ +84,2 @@
>                                              [% END %]
>                                              <option value="sn">Standard number</option>

I am sorry, but this won't work quite right. Let me try to explain:

[% IF ( numbersphr) %]

refers to the system preference OPACNumbersPreferPhrase. It switches the index,
one time it's sn,phr and the other time it's sn. 

If you apply the current patch and set OPACNumbersPreferPhrase to 'use', the
index will still show up twice, because the IF is true and there is another 

<option value="sn">Standard number</option> 

below the former IF-ELSE construct.

If you delete this <option> instead, and keep the IF-ELSE as before, it should
work alright.

Hope that did make some kind of sense :)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list