From d59123f1e1804396971f40f807c90ed271258f7d Mon Sep 17 00:00:00 2001 From: James Fournie Date: Mon, 18 Feb 2013 12:41:20 -0800 Subject: [PATCH] Let's inch towards valid XHTML by making POST and GET lowercase in our forms Signed-off-by: James Fournie Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/myopac/circ_history.tt2 | 2 +- Open-ILS/src/templates/opac/myopac/circs.tt2 | 2 +- Open-ILS/src/templates/opac/myopac/holds.tt2 | 2 +- Open-ILS/src/templates/opac/myopac/holds/edit.tt2 | 2 +- Open-ILS/src/templates/opac/myopac/lists.tt2 | 18 +++++++++--------- Open-ILS/src/templates/opac/myopac/main.tt2 | 2 +- .../src/templates/opac/myopac/main_payment_form.tt2 | 4 ++-- Open-ILS/src/templates/opac/myopac/main_payments.tt2 | 4 ++-- Open-ILS/src/templates/opac/myopac/prefs.tt2 | 2 +- Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 | 2 +- Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 | 2 +- Open-ILS/src/templates/opac/myopac/update_email.tt2 | 2 +- Open-ILS/src/templates/opac/myopac/update_password.tt2 | 2 +- Open-ILS/src/templates/opac/myopac/update_username.tt2 | 2 +- Open-ILS/src/templates/opac/parts/advanced/expert.tt2 | 2 +- Open-ILS/src/templates/opac/parts/advanced/numeric.tt2 | 2 +- Open-ILS/src/templates/opac/parts/advanced/search.tt2 | 2 +- Open-ILS/src/templates/opac/parts/anon_list.tt2 | 4 ++-- Open-ILS/src/templates/opac/parts/login/form.tt2 | 2 +- Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 | 2 +- Open-ILS/src/templates/opac/parts/place_hold.tt2 | 2 +- .../src/templates/opac/parts/place_hold_result.tt2 | 2 +- Open-ILS/src/templates/opac/parts/searchbar.tt2 | 2 +- Open-ILS/src/templates/opac/results.tt2 | 2 +- Open-ILS/src/templates/opac/sms_cn.tt2 | 2 +- Open-ILS/src/templates/opac/temp_warn.tt2 | 2 +- 26 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Open-ILS/src/templates/opac/myopac/circ_history.tt2 b/Open-ILS/src/templates/opac/myopac/circ_history.tt2 index 9b6d78d8ae..3bb04bb836 100644 --- a/Open-ILS/src/templates/opac/myopac/circ_history.tt2 +++ b/Open-ILS/src/templates/opac/myopac/circ_history.tt2 @@ -27,7 +27,7 @@ [% IF ctx.circs.size < limit %] class='invisible' [% END %] >[% l('Next') %] -
+
[%- INCLUDE "opac/parts/preserve_params.tt2" %] diff --git a/Open-ILS/src/templates/opac/myopac/circs.tt2 b/Open-ILS/src/templates/opac/myopac/circs.tt2 index 8ff44ac7fe..b4f0ea2b75 100644 --- a/Open-ILS/src/templates/opac/myopac/circs.tt2 +++ b/Open-ILS/src/templates/opac/myopac/circs.tt2 @@ -31,7 +31,7 @@
[% END %]
- diff --git a/Open-ILS/src/templates/opac/myopac/holds.tt2 b/Open-ILS/src/templates/opac/myopac/holds.tt2 index 5b5a36ab6d..2da8cef5d6 100644 --- a/Open-ILS/src/templates/opac/myopac/holds.tt2 +++ b/Open-ILS/src/templates/opac/myopac/holds.tt2 @@ -52,7 +52,7 @@
- +
diff --git a/Open-ILS/src/templates/opac/myopac/holds/edit.tt2 b/Open-ILS/src/templates/opac/myopac/holds/edit.tt2 index 175d3195b0..3415546110 100644 --- a/Open-ILS/src/templates/opac/myopac/holds/edit.tt2 +++ b/Open-ILS/src/templates/opac/myopac/holds/edit.tt2 @@ -37,7 +37,7 @@

[% l('Status') %]: [% hold.human_status %]

- +
diff --git a/Open-ILS/src/templates/opac/myopac/lists.tt2 b/Open-ILS/src/templates/opac/myopac/lists.tt2 index 2103ae0982..52e06895a9 100644 --- a/Open-ILS/src/templates/opac/myopac/lists.tt2 +++ b/Open-ILS/src/templates/opac/myopac/lists.tt2 @@ -8,7 +8,7 @@
- +

[% l('Create new list') %]

@@ -96,7 +96,7 @@ [% IF bbag.description %]
[% bbag.description | html %]
[% END %] [% IF ctx.add_rec %] - +
@@ -108,7 +108,7 @@
[% END %] - +
[%- INCLUDE "opac/parts/preserve_params.tt2"; %] @@ -121,7 +121,7 @@ [% END %]
- +
@@ -129,7 +129,7 @@
- +
@@ -138,7 +138,7 @@
[% setting = 'opac.default_list'; %] - +
[%- INCLUDE "opac/parts/preserve_params.tt2"; %] @@ -174,7 +174,7 @@ [% IF CGI.param("bbid") == bbag.id %]
- + [%- INCLUDE "opac/parts/preserve_params.tt2" params=['loc', 'query', 'qtype']; %] [% INCLUDE "opac/parts/filtersort.tt2" @@ -185,7 +185,7 @@
-
+ @@ -218,7 +218,7 @@

- +
diff --git a/Open-ILS/src/templates/opac/myopac/main.tt2 b/Open-ILS/src/templates/opac/myopac/main.tt2 index 793653ba5a..38d5b4f171 100644 --- a/Open-ILS/src/templates/opac/myopac/main.tt2 +++ b/Open-ILS/src/templates/opac/myopac/main.tt2 @@ -8,7 +8,7 @@ myopac_cc_allowed = 1; END %] - + [% IF ctx.fines.circulation.size > 0 %]
diff --git a/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 b/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 index 3bb08c2e57..8da0287e85 100644 --- a/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 +++ b/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 @@ -16,7 +16,7 @@
[% IF last_chance %]

[% l("Are you sure you are ready to charge [_1] to your credit card?", money(ctx.fines.balance_owed)) %]

- + [% FOR k IN CGI.Vars; NEXT UNLESS k; FOR val IN CGI.param(k) %] @@ -25,7 +25,7 @@ [% l('Cancel') %] [% ELSE %] - + [% FOR xact IN CGI.param('xact') %] diff --git a/Open-ILS/src/templates/opac/myopac/main_payments.tt2 b/Open-ILS/src/templates/opac/myopac/main_payments.tt2 index a30edebc55..c3caa584f2 100644 --- a/Open-ILS/src/templates/opac/myopac/main_payments.tt2 +++ b/Open-ILS/src/templates/opac/myopac/main_payments.tt2 @@ -39,11 +39,11 @@ %]
[% money(payment.mp.amount) %] - + -
+
diff --git a/Open-ILS/src/templates/opac/myopac/prefs.tt2 b/Open-ILS/src/templates/opac/myopac/prefs.tt2 index d3178a7660..38b78b47f9 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs.tt2 @@ -191,7 +191,7 @@ [% IF pending_addr OR edit_addr_id == cur_id; update_addr = pending_addr || addr %]
-
+ [% IF pending_addr %] [% ELSE %] diff --git a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 index fcd9f47823..57eed227d8 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 @@ -3,7 +3,7 @@ myopac_page = "prefs"; prefs_page = 'notify' %] - + [% setting = 'opac.hold_notify' %] diff --git a/Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 b/Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 index 84b25544e3..cd3ba175ab 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 @@ -5,7 +5,7 @@ prefs_page = 'settings' %] - + diff --git a/Open-ILS/src/templates/opac/myopac/update_email.tt2 b/Open-ILS/src/templates/opac/myopac/update_email.tt2 index ceb1a6b102..4be2ffe5f4 100644 --- a/Open-ILS/src/templates/opac/myopac/update_email.tt2 +++ b/Open-ILS/src/templates/opac/myopac/update_email.tt2 @@ -17,7 +17,7 @@ [% END %] - + [% IF CGI.param("return_to_referer") %] [% END %] diff --git a/Open-ILS/src/templates/opac/myopac/update_password.tt2 b/Open-ILS/src/templates/opac/myopac/update_password.tt2 index 7b77fe7776..8655faa852 100644 --- a/Open-ILS/src/templates/opac/myopac/update_password.tt2 +++ b/Open-ILS/src/templates/opac/myopac/update_password.tt2 @@ -21,7 +21,7 @@ [% END %] - +
diff --git a/Open-ILS/src/templates/opac/myopac/update_username.tt2 b/Open-ILS/src/templates/opac/myopac/update_username.tt2 index 546c07136d..3dbb908117 100644 --- a/Open-ILS/src/templates/opac/myopac/update_username.tt2 +++ b/Open-ILS/src/templates/opac/myopac/update_username.tt2 @@ -25,7 +25,7 @@ [% END %] - +
[% l('Current Password') %]
[% l('New Password') %]
diff --git a/Open-ILS/src/templates/opac/parts/advanced/expert.tt2 b/Open-ILS/src/templates/opac/parts/advanced/expert.tt2 index b5abd34adb..9d80fe488b 100644 --- a/Open-ILS/src/templates/opac/parts/advanced/expert.tt2 +++ b/Open-ILS/src/templates/opac/parts/advanced/expert.tt2 @@ -1,4 +1,4 @@ - +
[% l("Expert Search") %]
[% l('Current Username') %][% ctx.user.usrname | html %]
[% l('Current Password') %]
diff --git a/Open-ILS/src/templates/opac/parts/advanced/numeric.tt2 b/Open-ILS/src/templates/opac/parts/advanced/numeric.tt2 index 819fd79721..8c1ad4ad0c 100644 --- a/Open-ILS/src/templates/opac/parts/advanced/numeric.tt2 +++ b/Open-ILS/src/templates/opac/parts/advanced/numeric.tt2 @@ -1,4 +1,4 @@ - +
[% l("Numeric Search") %]
diff --git a/Open-ILS/src/templates/opac/parts/advanced/search.tt2 b/Open-ILS/src/templates/opac/parts/advanced/search.tt2 index e90b6d3c1e..ad8cc4404a 100644 --- a/Open-ILS/src/templates/opac/parts/advanced/search.tt2 +++ b/Open-ILS/src/templates/opac/parts/advanced/search.tt2 @@ -2,7 +2,7 @@ PROCESS "opac/parts/misc_util.tt2"; PROCESS get_library; %] - + diff --git a/Open-ILS/src/templates/opac/parts/anon_list.tt2 b/Open-ILS/src/templates/opac/parts/anon_list.tt2 index 00a898dc48..89e771c758 100644 --- a/Open-ILS/src/templates/opac/parts/anon_list.tt2 +++ b/Open-ILS/src/templates/opac/parts/anon_list.tt2 @@ -1,6 +1,6 @@ [% IF ctx.mylist.size %]
- + [% INCLUDE "opac/parts/filtersort.tt2" mode='bookbag' id="anonsort" name="anonsort" value=CGI.param("anonsort") %] @@ -11,7 +11,7 @@
- +

[% l('Temporary List') %]

diff --git a/Open-ILS/src/templates/opac/parts/login/form.tt2 b/Open-ILS/src/templates/opac/parts/login/form.tt2 index e4c633c1f3..0bdebc0a33 100644 --- a/Open-ILS/src/templates/opac/parts/login/form.tt2 +++ b/Open-ILS/src/templates/opac/parts/login/form.tt2 @@ -16,7 +16,7 @@
diff --git a/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 b/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 index 5cddf4538d..f0685e097b 100644 --- a/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 +++ b/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 @@ -41,7 +41,7 @@ [% money(ctx.user_stats.fines.balance_owed) %]
[% IF (ctx.fines.grocery.size OR ctx.fines.circulation.size) AND ctx.get_org_setting(ctx.user.home_ou, 'credit.payments.allow') == 1 %] - [% END %] diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2 index 5b6171b415..1162aed798 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2 @@ -4,7 +4,7 @@

[% l('Place Hold') %]

-
+ [% redirect = CGI.param('hold_source_page') || CGI.param('redirect_to') || CGI.referer; diff --git a/Open-ILS/src/templates/opac/parts/place_hold_result.tt2 b/Open-ILS/src/templates/opac/parts/place_hold_result.tt2 index bf2a654bdc..017a163f12 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold_result.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold_result.tt2 @@ -9,7 +9,7 @@

[% l('Place Hold') %]

- + [% FOR k IN ctx.orig_params.keys %] diff --git a/Open-ILS/src/templates/opac/parts/searchbar.tt2 b/Open-ILS/src/templates/opac/parts/searchbar.tt2 index b75752f19a..c3886b1252 100644 --- a/Open-ILS/src/templates/opac/parts/searchbar.tt2 +++ b/Open-ILS/src/templates/opac/parts/searchbar.tt2 @@ -1,7 +1,7 @@ [% PROCESS "opac/parts/org_selector.tt2" %]