change visible labeling of 'Cart' to 'Basket'
authorGalen Charlton <gmc@equinoxintiative.org>
Fri, 10 Aug 2018 22:05:50 +0000 (18:05 -0400)
committerGalen Charlton <gmc@equinoxintiative.org>
Fri, 10 Aug 2018 22:05:50 +0000 (18:05 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxintiative.org>
13 files changed:
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/src/templates/opac/mylist.tt2
Open-ILS/src/templates/opac/mylist/clear.tt2
Open-ILS/src/templates/opac/mylist/email.tt2
Open-ILS/src/templates/opac/mylist/print.tt2
Open-ILS/src/templates/opac/myopac/lists.tt2
Open-ILS/src/templates/opac/parts/anon_list.tt2
Open-ILS/src/templates/opac/parts/cart.tt2
Open-ILS/src/templates/opac/parts/config.tt2
Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2
Open-ILS/src/templates/opac/results.tt2
Open-ILS/src/templates/opac/temp_warn.tt2

index d8780fa..76ea1bd 100644 (file)
@@ -1034,12 +1034,12 @@ tr.result_table_row > td.result_table_pic_header {
 .result_table_row_selected {
     background-color: [% css_colors.item_selected %];
 }
-#selected_records_summary, #clear_cart {
+#selected_records_summary, #clear_basket {
     margin-left: 5em;
 }
 
-/* styles for the cart */
-#record_cart {
+/* styles for the basket */
+#record_basket {
     [% IF rtl == 't' -%]
     float: left;
     margin-left: 5em;
@@ -1048,7 +1048,7 @@ tr.result_table_row > td.result_table_pic_header {
     margin-right: 5em;
     [% END; %]
 }
-#record_cart_icon {
+#record_basket_icon {
     [% IF rtl == 't' -%]
     float: left;
     margin-left: 2em;
@@ -1058,7 +1058,7 @@ tr.result_table_row > td.result_table_pic_header {
     [% END; %]
     position: relative;
 }
-#record_cart_count_floater {
+#record_basket_count_floater {
     background-color: [% css_colors.accent_lighter %];
     position: absolute;
     top: -3px;
@@ -1066,10 +1066,10 @@ tr.result_table_row > td.result_table_pic_header {
     z-index: 2;
     border-radius: 50%;
 }
-#record_cart_count_floater a {
+#record_basket_count_floater a {
     text-decoration: none;
 }
-#cart_actions {
+#basket_actions {
     [% IF rtl == 't' -%]
     float: left;
     [% ELSE; %]
@@ -1083,7 +1083,7 @@ tr.result_table_row > td.result_table_pic_header {
     border: 1px solid [% css_colors.primary %];
     background-color:  [% css_colors.primary_fade %];
 }
-#cart_actions a {
+#basket_actions a {
     color: [% css_colors.button_text %];
     text-decoration: none;
 }
@@ -2470,7 +2470,7 @@ a.preflib_change {
     background-color: [% css_colors.accent_ultralight %] !important;
     color: [% css_colors.primary %] !important;
 }
-/* Styles for the cart entry. */
+/* Styles for the basket entry. */
 .popmenu li:hover li[class~="temporary"] a {
     background-color: [% css_colors.primary %]; 
     color: [% css_colors.accent_ultralight %];
index f4d5ddd..25cb8b1 100644 (file)
@@ -4,7 +4,7 @@
     INCLUDE "opac/parts/topnav.tt2";
     ctx.metalinks.push('<meta name="robots" content="noindex,follow">');
     ctx.page_title = l("Record Detail") %]
-    <h2 class="sr-only">[% l('Cart') %]</h2>
+    <h2 class="sr-only">[% l('Basket') %]</h2>
     <div class="mobile_hide">
     [% INCLUDE "opac/parts/searchbar.tt2" %]
     </div>
@@ -13,7 +13,7 @@
             [%  IF ctx.mylist.size;
                     INCLUDE "opac/parts/anon_list.tt2";
                 ELSE %]
-                <div class="warning_box">[% l("The cart is empty."); %]</div>
+                <div class="warning_box">[% l("The basket is empty."); %]</div>
                 <button type="button" class="opac-button" onclick="window.location='[% ctx.referer | html %]'">[% l('Return') %]</button>
                 [% END %]
             <div class="common-full-pad"></div>        
index 1556766..7795c48 100644 (file)
@@ -2,18 +2,18 @@
     PROCESS "opac/parts/misc_util.tt2";
     WRAPPER "opac/parts/base.tt2";
     INCLUDE "opac/parts/topnav.tt2";
-    ctx.page_title = l("Confirm Clearing of Cart") %]
-    <h2 class="sr-only">[% l('Confirm Clearing of Cart') %]</h2>
+    ctx.page_title = l("Confirm Clearing of Basket") %]
+    <h2 class="sr-only">[% l('Confirm Clearing of Basket') %]</h2>
     [% INCLUDE "opac/parts/searchbar.tt2" %]
     <div id="content-wrapper">
         <div id="main-content">
-             <p class="big-strong">[% l('Please confirm that you want to remove all [_1] titles from the cart.', ctx.mylist.size) %]
+             <p class="big-strong">[% l('Please confirm that you want to remove all [_1] titles from the basket.', ctx.mylist.size) %]
              <form method="post" action="[% mkurl(ctx.opac_root _ '/cache/clear', {}, 1) %]">
              <input type="hidden" name="redirect_to" value="[% ctx.referer %]" />
              <input id="print_cart_submit" type="submit" name="submit"
                value="[% l('Confirm') %]" title="[% l('Confirm') %]"
                alt="[% l('Confirm') %]" class="opac-button" />
-             <input type="reset" name="cancel" onclick="window.location='[% ctx.referer | html %]'" value="[% l('Cancel') %]" id="clear_cart_cancel" class="opac-button" />
+             <input type="reset" name="cancel" onclick="window.location='[% ctx.referer | html %]'" value="[% l('Cancel') %]" id="clear_basket_cancel" class="opac-button" />
              </form>
             <div class="common-full-pad"></div>        
         </div>
index 4229a08..04a7a3b 100644 (file)
@@ -2,25 +2,25 @@
     PROCESS "opac/parts/misc_util.tt2";
     WRAPPER "opac/parts/base.tt2";
     INCLUDE "opac/parts/topnav.tt2";
-    ctx.page_title = l("Confirm Cart Email") %]
-    <h2 class="sr-only">[% l('Confirm Cart Email') %]</h2>
+    ctx.page_title = l("Confirm Basket Email") %]
+    <h2 class="sr-only">[% l('Confirm Basket Email') %]</h2>
     [% INCLUDE "opac/parts/searchbar.tt2" %]
     <div id="content-wrapper">
         <div id="main-content">
           [% IF ctx.mylist.size %]
-             <p class="big-strong">[% l('Please confirm that you want to email the [_1] titles in the cart.', ctx.mylist.size) %]
+             <p class="big-strong">[% l('Please confirm that you want to email the [_1] titles in the basket.', ctx.mylist.size) %]
              <form method="post" action="[% mkurl(ctx.opac_root _ '/mylist/doemail', {}, 1) %]">
              <input type="hidden" name="redirect_to" value="[% ctx.referer %]" />
-             <input type="checkbox" name="clear_cart" value="on" />
-             <label for="clear_cart">[% l('Clear cart after emailing it.') %]</label>
+             <input type="checkbox" name="clear_basket" value="on" />
+             <label for="clear_basket">[% l('Clear basket after emailing it.') %]</label>
              <br />
              <input id="print_cart_submit" type="submit" name="submit"
                value="[% l('Confirm') %]" title="[% l('Confirm') %]"
                alt="[% l('Confirm') %]" class="opac-button" />
-             <input type="reset" name="cancel" onclick="window.location='[% ctx.referer | html %]'" value="[% l('Cancel') %]" id="clear_cart_cancel" class="opac-button" />
+             <input type="reset" name="cancel" onclick="window.location='[% ctx.referer | html %]'" value="[% l('Cancel') %]" id="clear_basket_cancel" class="opac-button" />
              </form>
           [% ELSE %]
-            <div class="warning_box">[% l("The cart is empty."); %]</div>
+            <div class="warning_box">[% l("The basket is empty."); %]</div>
             <button type="button" class="opac-button" onclick="window.location='[% ctx.referer | html %]'">[% l('Return') %]</button>
           [% END %]
             <div class="common-full-pad"></div>        
index 7a680e1..ac53a21 100644 (file)
@@ -2,25 +2,25 @@
     PROCESS "opac/parts/misc_util.tt2";
     WRAPPER "opac/parts/base.tt2";
     INCLUDE "opac/parts/topnav.tt2";
-    ctx.page_title = l("Confirm Cart Printing") %]
-    <h2 class="sr-only">[% l('Confirm Cart Printing') %]</h2>
+    ctx.page_title = l("Confirm Basket Printing") %]
+    <h2 class="sr-only">[% l('Confirm Basket Printing') %]</h2>
     [% INCLUDE "opac/parts/searchbar.tt2" %]
     <div id="content-wrapper">
         <div id="main-content">
           [% IF ctx.mylist.size %]
-             <p class="big-strong">[% l('Please confirm that you want to print the [_1] titles in the cart.', ctx.mylist.size) %]
+             <p class="big-strong">[% l('Please confirm that you want to print the [_1] titles in the basket.', ctx.mylist.size) %]
              <form method="post" action="[% mkurl(ctx.opac_root _ '/mylist/doprint', {}, 1) %]">
              <input type="hidden" name="redirect_to" value="[% ctx.referer %]" />
              <input type="checkbox" name="clear_cart" value="on" />
-             <label for="clear_cart">[% l('Clear cart after printing it.') %]</label>
+             <label for="clear_basket">[% l('Clear basket after printing it.') %]</label>
              <br />
              <input id="print_cart_submit" type="submit" name="submit"
                value="[% l('Confirm') %]" title="[% l('Confirm') %]"
                alt="[% l('Confirm') %]" class="opac-button" />
-             <input type="reset" name="cancel" onclick="window.location='[% ctx.referer | html %]'" value="[% l('Cancel') %]" id="clear_cart_cancel" class="opac-button" />
+             <input type="reset" name="cancel" onclick="window.location='[% ctx.referer | html %]'" value="[% l('Cancel') %]" id="clear_basket_cancel" class="opac-button" />
              </form>
           [% ELSE %]
-            <div class="warning_box">[% l("The cart is empty."); %]</div>
+            <div class="warning_box">[% l("The basket is empty."); %]</div>
             <button type="button" class="opac-button" onclick="window.location='[% ctx.referer | html %]'">[% l('Return') %]</button>
           [% END %]
             <div class="common-full-pad"></div>        
index 0830cd3..b34bba7 100644 (file)
@@ -62,7 +62,7 @@
             [% IF ctx.mylist.size %]
             <tr>
                 <td class="list_create_table_label">
-                    <label for="list_move_cart">[% l('Move contents of cart to this list?') %]</label>
+                    <label for="list_move_cart">[% l('Move contents of basket to this list?') %]</label>
                 </td>
                 <td>
                     <select name="move_cart" id="list_move_cart">
@@ -89,7 +89,7 @@
         </table>
     </form>
 
-    <h1>[% l("My Existing Cart and Lists") %]</h1>
+    <h1>[% l("My Existing Basket and Lists") %]</h1>
     [% INCLUDE "opac/parts/anon_list.tt2" %]
     [% IF ctx.bookbags.size %]
     <div class="header_middle">
index 0f564dc..db0fcce 100644 (file)
@@ -1,6 +1,6 @@
         [% IF ctx.mylist.size %]
         <div class="bookbag-specific">
-        <p class="big-strong">[% l('Cart') %]</p>
+        <p class="big-strong">[% l('Basket') %]</p>
         <div class="sort">
             <form method="get">
                 <label for="anonsort">[% l("Sort cart items by: ") %]</label>
@@ -20,7 +20,7 @@
                 <option value="place_hold">[% l('Place hold') %]</option>
                 <option value="print">[% l('Print title details') %]</option>
                 <option value="email">[% l('Email title details') %]</option>
-                <option value="delete">[% l('Remove from cart') %]</option>
+                <option value="delete">[% l('Remove from basket') %]</option>
                 [% IF ctx.user AND ctx.bookbags.size %]
                     <optgroup label="[% l('Move selected items to list:') %]">
                     [% FOR bbag IN ctx.bookbags %]]
index a89f89d..0daf7fc 100644 (file)
@@ -1,29 +1,29 @@
-<div id="record_cart">
-  <ul id="cart_actions" class="popmenu">
-    <li><a href="#" class="no-dec">[% l('Cart Actions') %]</a>
+<div id="record_basket">
+  <ul id="basket_actions" class="popmenu">
+    <li><a href="#" class="no-dec">[% l('Basket Actions') %]</a>
       <ul>
-        <li><a href="[% mkurl(ctx.opac_root _ '/mylist', {}) %]">[% l('View Cart') %]</a></li>
+        <li><a href="[% mkurl(ctx.opac_root _ '/mylist', {}) %]">[% l('View Basket') %]</a></li>
         <li><a href="[% mkurl(ctx.opac_root _ '/mylist/move', { action => 'place_hold', entire_list => 1 }) %]">[% l('Place Holds') %]</a></li>
         <li><a href="[% mkurl(ctx.opac_root _ '/mylist/print', {}) %]">[% l('Print Title Details') %]</a></li>
         <li><a href="[% mkurl(ctx.opac_root _ '/mylist/email', {}) %]">[% l('Email Title Details') %]</a></li>
         [% IF !ctx.is_browser_staff %]
-        <li><a href="[% mkurl(ctx.opac_root _ '/myopac/lists', { move_cart_by_default => 1 }) %]">[% l('Add Cart to Saved List') %]</a></li>
+        <li><a href="[% mkurl(ctx.opac_root _ '/myopac/lists', { move_cart_by_default => 1 }) %]">[% l('Add Basket to Saved List') %]</a></li>
         [% END %]
         [% IF ctx.is_browser_staff %]
-        <li><a id="add_cart_to_bucket">[% l('Add Cart to Bucket') %]</a></li>
+        <li><a id="add_cart_to_bucket">[% l('Add Basket to Bucket') %]</a></li>
         [% END %]
-        <li><a href="[% mkurl(ctx.opac_root _ '/mylist/clear', {}) %]">[% l('Clear Cart') %]</a></li>
+        <li><a href="[% mkurl(ctx.opac_root _ '/mylist/clear', {}) %]">[% l('Clear Basket') %]</a></li>
       </ul>
     </li>
   </ul>
-  <div id="record_cart_icon">
+  <div id="record_basket_icon">
      <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab="">
-       <img src="[% ctx.media_prefix %]/images/cart-sm.png[% ctx.cache_key %]" alt="[% l('View Cart') %]">
+       <img src="[% ctx.media_prefix %]/images/cart-sm.png[% ctx.cache_key %]" alt="[% l('View Basket') %]">
      </a>
-     <div id="record_cart_count_floater">
+     <div id="record_basket_count_floater">
        <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab="">
-         <span id="record_cart_count">[% ctx.mylist.size %]</span>
-         <span class="sr-only">[% l('records in cart') %]</span>
+         <span id="record_basket_count">[% ctx.mylist.size %]</span>
+         <span class="sr-only">[% l('records in basket') %]</span>
        </a>
      </div>
   </div>
index a592ff5..ac85bdf 100644 (file)
@@ -266,7 +266,7 @@ ctx.exclude_electronic_checkbox = 0;
 ctx.hide_badge_scores = 'false';
 
 ##############################################################################
-# Maximum number of items allowed to be stored in a cart
+# Maximum number of items allowed to be stored in a basket
 ##############################################################################
 ctx.max_cart_size = 500;
 
index 57bfb2d..3779c6e 100644 (file)
             [% operation = ctx.mylist.grep('^' _ ctx.bre_id _ '$').size ? "delete" : "add";
                 addhref = mkurl(ctx.opac_root _ '/mylist/add',    {record => ctx.bre_id}, stop_parms);
                 delhref = mkurl(ctx.opac_root _ '/mylist/delete', {record => ctx.bre_id}, stop_parms);
-                label = (operation == "add") ? l("Add to Cart") : l("Remove from Cart");
+                label = (operation == "add") ? l("Add to Basket") : l("Remove from Basket");
             %]
                 <a href="[% addhref %]" id="mylist_add_[% ctx.bre_id %]"
                     rel="nofollow" vocab=""
                     data-recid="[% ctx.bre_id %]" data-action="add"
                     class="no-dec mylist_action [% IF ctx.mylist.grep('^' _ ctx.bre_id _ '$').size %]hidden[% END %]"
-                    title="[% l("Add [_1] to cart", attrs.title) %]" rel="nofollow" vocab="">
+                    title="[% l("Add [_1] to basket", attrs.title) %]" rel="nofollow" vocab="">
                     <img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="" />
-                    [% l("Add to cart") %]
+                    [% l("Add to basket") %]
                 </a>
                 <a href="[% delhref %]" id="mylist_delete_[% ctx.bre_id %]"
                      rel="nofollow" vocab=""
                     data-recid="[% ctx.bre_id %]" data-action="delete"
                     class="mylist_action [% IF !ctx.mylist.grep('^' _ ctx.bre_id _ '$').size %]hidden[% END %]"
-                    title="[% l("Remove [_1] from cart", attrs.title) %]" rel="nofollow" vocab="">
+                    title="[% l("Remove [_1] from basket", attrs.title) %]" rel="nofollow" vocab="">
                     <img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="" />
-                    [% l("Remove from cart") %]
+                    [% l("Remove from basket") %]
                 </a>
             </div>
             <div class="rdetail_aux_utils toggle_list">
                      [% IF ctx.mylist.size %]
                         [%- IF ctx.user; %]
-                        <a href="[% mkurl(ctx.opac_root _ '/myopac/lists') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/clipboard.png[% ctx.cache_key %]" alt="[% l('View Cart') %]" />[% l(' View Cart') %]</a>
+                        <a href="[% mkurl(ctx.opac_root _ '/myopac/lists') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/clipboard.png[% ctx.cache_key %]" alt="[% l('View Basket') %]" />[% l(' View Basket') %]</a>
                         [%- ELSE %]
-                        <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="[% l('View My Cart') %]" />[% l(' View My Cart') %]</a>
+                        <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="[% l('View My Basket') %]" />[% l(' View My Basket') %]</a>
                         [%- END %]
                     [% END %]
                 </div>
index 48f2fec..eacfb75 100644 (file)
                                                 [% IF !ctx.is_meta; %]
                                                 <input type="checkbox" id="select-[% rec.bre_id %]" name="selected_record"
                                                     [% IF is_selected %] checked="checked" [% END %]
-                                                    title="[% l('Add to Cart') %]"
+                                                    title="[% l('Add to Basket') %]"
                                                     class="result_record_selector hidden" value="[% rec.bre_id %]"></input>
                                                 [% END %]
                                                 [% result_count; result_count = result_count + 1 %].
@@ -485,16 +485,16 @@ END;
                                                             <a href="[% addhref %]" id="mylist_add_[% rec.id %]"
                                                                 data-recid="[% rec.id %]" data-action="add"
                                                                 class="mylist_action [% IF ctx.mylist.grep('^' _ rec.id _ '$').size %]hidden[% END %]"
-                                                                title="[% l("Add [_1] to cart", attrs.title) %]" rel="nofollow" vocab="">
+                                                                title="[% l("Add [_1] to basket", attrs.title) %]" rel="nofollow" vocab="">
                                                                 <img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="" />
-                                                                [% l("Add to cart") %]
+                                                                [% l("Add to basket") %]
                                                             </a>
                                                             <a href="[% delhref %]" id="mylist_delete_[% rec.id %]"
                                                                 data-recid="[% rec.id %]" data-action="delete"
                                                                 class="mylist_action [% IF !ctx.mylist.grep('^' _ rec.id _ '$').size %]hidden[% END %]"
-                                                                title="[% l("Remove [_1] from cart", attrs.title) %]" rel="nofollow" vocab="">
+                                                                title="[% l("Remove [_1] from basket", attrs.title) %]" rel="nofollow" vocab="">
                                                                 <img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="" />
-                                                                [% l("Remove from cart") %]
+                                                                [% l("Remove from basket") %]
                                                             </a>
                                                             [%  IF ctx.user;
                                                                 INCLUDE "opac/parts/bookbag_actions.tt2";
index ab6dd51..53b8dfd 100644 (file)
@@ -57,9 +57,9 @@
                 [% IF ctx.mylist.size %]
                 <div class="results_header_btns">
                     [%- IF ctx.user; %]
-                    <a href="[% mkurl(ctx.opac_root _ '/myopac/lists') %]">[% l('View My Cart') %]</a>
+                    <a href="[% mkurl(ctx.opac_root _ '/myopac/lists') %]">[% l('View My Basket') %]</a>
                     [%- ELSE %]
-                    <a href="[% mkurl(ctx.opac_root _ '/mylist') %]">[% l('View My Cart') %]</a>
+                    <a href="[% mkurl(ctx.opac_root _ '/mylist') %]">[% l('View My Basket') %]</a>
                     [%- END %]
                 </div>
                 [% END %]
index 829394d..8fdea97 100644 (file)
@@ -2,12 +2,12 @@
     PROCESS "opac/parts/misc_util.tt2";
     WRAPPER "opac/parts/base.tt2";
     INCLUDE "opac/parts/topnav.tt2";
-    ctx.page_title = l("Cart Warning") %]
-    <h2 class="sr-only">[% l('Cart Warning') %]</h2>
+    ctx.page_title = l("Basket Warning") %]
+    <h2 class="sr-only">[% l('Basket Warning') %]</h2>
     [% INCLUDE "opac/parts/searchbar.tt2" %]
     <div id="content-wrapper">
         <div id="main-content">
-             <p class="big-strong">[% l('You are adding to a cart.') %]
+             <p class="big-strong">[% l('You are adding to a basket.') %]
                 [% IF ctx.user ;
                       l('This information will disappear when you logout, unless you save it to a permanent list.');
                    ELSE;