[Koha-patches] [PATCH] [SIGNED-OFF] Fix for Bug 6458 - incorrect parsing result in translation processing
Katrin Fischer
katrin.fischer at bsz-bw.de
Fri Sep 2 16:03:14 CEST 2011
From: Owen Leonard <oleonard at myacpl.org>
Correction in opac holds template. Corrections made are logically
consistent, but I couldn't reproduce the combination of factors
to trigger the "disabled" attribute on the branch selector. In
that respect this hasn't been tested 100%.
Signed-off-by: Katrin Fischer <katrin.fischer at bsz-bw.de>
---
.../opac-tmpl/prog/en/modules/opac-reserve.tt | 33 +++++++++++++------
1 files changed, 22 insertions(+), 11 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt
index 4d81a17..543b469 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt
@@ -423,17 +423,28 @@
[% IF ( bibitemloo.holdable ) %]
[% IF ( choose_branch ) %]
<td>
- <select name="branch" id="branch_[% bibitemloo.biblionumber %]"
- [% UNLESS ( bibitemloo.holdable ) %]disabled="disabled"[% END %] >
- [% FOREACH branchChoicesLoo IN bibitemloo.branchChoicesLoop %]
- [% IF ( branchChoicesLoo.selected ) %]
- <option value="[% branchChoicesLoo.value %]" selected="selected">[% branchChoicesLoo.branchname %]</option>
- [% ELSE %]
- <option value="[% branchChoicesLoo.value %]">[% branchChoicesLoo.branchname %]</option>
- [% END %]
- [% END %]
- </select>
- </td>
+ [% UNLESS ( bibitemloo.holdable ) %]
+ <select name="branch" id="branch_[% bibitemloo.biblionumber %]" disabled="disabled">
+ [% FOREACH branchChoicesLoo IN bibitemloo.branchChoicesLoop %]
+ [% IF ( branchChoicesLoo.selected ) %]
+ <option value="[% branchChoicesLoo.value %]" selected="selected">[% branchChoicesLoo.branchname %]</option>
+ [% ELSE %]
+ <option value="[% branchChoicesLoo.value %]">[% branchChoicesLoo.branchname %]</option>
+ [% END %]
+ [% END %]
+ </select>
+ [% ELSE %]
+ <select name="branch" id="branch_[% bibitemloo.biblionumber %]">
+ [% FOREACH branchChoicesLoo IN bibitemloo.branchChoicesLoop %]
+ [% IF ( branchChoicesLoo.selected ) %]
+ <option value="[% branchChoicesLoo.value %]" selected="selected">[% branchChoicesLoo.branchname %]</option>
+ [% ELSE %]
+ <option value="[% branchChoicesLoo.value %]">[% branchChoicesLoo.branchname %]</option>
+ [% END %]
+ [% END %]
+ </select>
+ [% END %]
+ </td>
[% END %]
[% END %]
[% END %]
--
1.6.3.3
More information about the Koha-patches
mailing list