From: Ian Walls <[email protected]> In order to allow easier styling with JQuery, including text substitution, this patch adds id attributes to each div tag containing a holds message. The following ids are added, corresponding to the template variables of the same names:
too_much_oweing too_many_reserves bad_biblionumber no_items_selected no_branch_selected no_biblionumber bad_data none_available Signed-off-by: Nicole C. Engard <[email protected]> --- .../opac-tmpl/prog/en/modules/opac-reserve.tt | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 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 25e9a3a..6eabe6c 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt @@ -181,36 +181,36 @@ </div> [% END %] [% IF ( too_much_oweing ) %] - <div class="dialog alert"> + <div id="too_much_oweing" class="dialog alert"> Sorry, you cannot place holds because you owe [% too_much_oweing %]. </div> [% END %] [% IF ( too_many_reserves ) %] - <div class="dialog alert">Sorry, you cannot place more than [% too_many_reserves %] holds. + <div id="too_many_reserves" class="dialog alert">Sorry, you cannot place more than [% too_many_reserves %] holds. </div> [% END %] [% IF ( bad_biblionumber ) %] - <div class="dialog alert">ERROR: No biblio record found for biblionumber [% bad_biblionumber %].</div> + <div id="bad_biblionumber" class="dialog alert">ERROR: No biblio record found for biblionumber [% bad_biblionumber %].</div> [% END %] [% IF ( no_items_selected ) %] - <div class="dialog alert"> + <div id="no_items_selected" class="dialog alert"> You must select at least one item. </div> [% END %] [% IF ( no_branch_selected ) %] - <div class="dialog alert"> + <div id="no_branch_selected" class="dialog alert"> You must select a library for pickup. </div> [% END %] [% IF ( no_biblionumber ) %] - <div class="dialog alert">ERROR: No biblionumber received.</div> + <div id="no_biblionumber" class="dialog alert">ERROR: No biblionumber received.</div> [% END %] [% IF ( bad_data ) %] - <div class="dialog alert">ERROR: Internal error: incomplete hold request.</div> + <div id="bad_data" class="dialog alert">ERROR: Internal error: incomplete hold request.</div> [% END %] [% ELSE %] [% IF ( none_available ) %] - <div class="dialog alert"><strong>Sorry</strong>, none of these items can be placed on hold. + <div id="none_available" class="dialog alert"><strong>Sorry</strong>, none of these items can be placed on hold. </div> [% END %] [% END %]<!-- NAME="message" --> -- 1.7.2.3 _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
