Bugzilla – Attachment 4740 Details for
Bug 6547
Add ids to divs in opac-reserve.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
bug6547.patch (text/plain), 3.33 KB, created by
Nicole C. Engard
on 2011-07-25 18:55:05 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2011-07-25 18:55:05 UTC
Size:
3.33 KB
patch
obsolete
>From 0b1b70a39540d86156755e6968e577c73cf655af Mon Sep 17 00:00:00 2001 >From: Ian Walls <ian.walls@bywatersolutions.com> >Date: Mon, 25 Jul 2011 11:07:31 -0400 >Subject: [PATCH] Bug 6547: Add id attributes to messages in opac-reserve.tt > >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 >--- > .../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.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6547
: 4740