lp1902309 adding ids to logs and cart icon user/rogan/lp1902309_logos_should_have_ids
authorRogan Hamby <rogan.hamby@gmail.com>
Tue, 10 Nov 2020 14:24:03 +0000 (09:24 -0500)
committerRogan Hamby <rogan.hamby@gmail.com>
Tue, 10 Nov 2020 14:24:03 +0000 (09:24 -0500)
Open-ILS/src/templates-bootstrap/opac/parts/cart_nav.tt2
Open-ILS/src/templates-bootstrap/opac/parts/footer.tt2
Open-ILS/src/templates-bootstrap/opac/parts/topnav_logo.tt2
Open-ILS/src/templates/opac/parts/cart.tt2
Open-ILS/src/templates/opac/parts/footer.tt2
Open-ILS/src/templates/opac/parts/homesearch.tt2
Open-ILS/src/templates/opac/parts/topnav_logo.tt2
docs/RELEASE_NOTES_NEXT/OPAC/logos_now_have_ids.adoc [new file with mode: 0644]

index 4466361..efa9ede 100755 (executable)
@@ -2,7 +2,7 @@
   <div id="basket_actions">
   <div id="select_basket_action" class="dropdown">
       <a href="#" class="no-dec" id="cartDropdown" data-toggle="dropdown">
-        <img src="[% ctx.media_prefix %]/images/cart-sm.png[% ctx.cache_key %]" alt="[% l('View Basket') %]">
+        <img id="cart_icon" src="[% ctx.media_prefix %]/images/cart-sm.png[% ctx.cache_key %]" alt="[% l('View Basket') %]">
          <div id="record_basket_count_floater">
             <span id="record_basket_count">[% ctx.mylist.size %]</span>
             <span class="sr-only">[% l('Records In Basket') %]</span>
index e752366..e5fe2b4 100755 (executable)
@@ -38,7 +38,7 @@
     <div id="footer_logo">
         [% l('Powered by') %]
         <a href="http://evergreen-ils.org">
-            <img src="[% ctx.media_prefix %]/opac/images/eg_tiny_logo.png[% ctx.cache_key %]"
+            <img id="eg_tiny_logo" src="[% ctx.media_prefix %]/opac/images/eg_tiny_logo.png[% ctx.cache_key %]"
                 alt="[% l('Evergreen') %]"
             />
         </a>
index 0c79fc6..1da880a 100755 (executable)
@@ -1 +1 @@
-<img alt="[% l('Evergreen Logo') %]" src="[% ctx.media_prefix %]/opac/images/small_logo.png[% ctx.cache_key %]" class="mr-2" />
\ No newline at end of file
+<img id="top_nav_logo" alt="[% l('Evergreen Logo') %]" src="[% ctx.media_prefix %]/opac/images/small_logo.png[% ctx.cache_key %]" class="mr-2" />
index 9a97f36..f0f3ddf 100644 (file)
@@ -18,7 +18,7 @@
   </div>
   <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 Basket') %]">
+       <img id="cart_icon" src="[% ctx.media_prefix %]/images/cart-sm.png[% ctx.cache_key %]" alt="[% l('View Basket') %]">
      </a>
      <div id="record_basket_count_floater">
        <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab="">
index 81758e7..152c3e3 100644 (file)
@@ -25,7 +25,7 @@
     <div id="footer_logo">
         [% l('Powered by') %]
         <a href="http://evergreen-ils.org">
-            <img src="[% ctx.media_prefix %]/opac/images/eg_tiny_logo.png[% ctx.cache_key %]"
+            <img id="eg_tiny_logo" src="[% ctx.media_prefix %]/opac/images/eg_tiny_logo.png[% ctx.cache_key %]"
                 style="border:none; width: 94px; height: 16px;"
                 alt="[% l('Evergreen') %]"
             />
index f0be431..773aa22 100644 (file)
@@ -1,5 +1,5 @@
 <div id="homesearch_main_logo">
-    <img src="[% ctx.media_prefix %]/opac/images/main_logo.png[% ctx.cache_key %]"
+    <img id="main_logo" src="[% ctx.media_prefix %]/opac/images/main_logo.png[% ctx.cache_key %]"
         [% img_alt(l('Evergreen Logo')) %]/>
 </div>
 [% PROCESS carousels %]
index 944eb19..bf20828 100644 (file)
@@ -1,2 +1,2 @@
-       <div id="topnav_logo"> <a href="/"><img alt="[% l('Evergreen Logo') %]" 
+       <div id="topnav_logo"> <a href="/"><img id="top_nav_logo" alt="[% l('Evergreen Logo') %]" 
             src="[% ctx.media_prefix %]/opac/images/small_logo.png[% ctx.cache_key %]" /></a></div>
diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/logos_now_have_ids.adoc b/docs/RELEASE_NOTES_NEXT/OPAC/logos_now_have_ids.adoc
new file mode 100644 (file)
index 0000000..7514862
--- /dev/null
@@ -0,0 +1,3 @@
+== OPAC Logos and Cart Now Have IDs  ==
+
+Evergreen now has IDs associated with logos and cart images in the TPAC and Bootstrap OPACs to aid in customization.  The small logo in the footer is "eg_tiny_logo".   The cart icon is “cart_icon”.  The top navbar logo is “top_nav_logo”.  The main logo in the TPAC is “main_logo” but the logo in the Bootstrap OPAC is loaded via CSS as a background image and can be directly replaced through styling that.