new branch using new id names
authorRogan Hamby <rogan.hamby@gmail.com>
Thu, 12 Nov 2020 15:51:17 +0000 (10:51 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 9 Mar 2021 21:37:11 +0000 (16:37 -0500)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>

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..686aa80 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_image" 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..f643ba7 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="footer_logo_image" src="[% ctx.media_prefix %]/opac/images/eg_tiny_logo.png[% ctx.cache_key %]"
                 alt="[% l('Evergreen') %]"
             />
         </a>
index 0c79fc6..a631f51 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="topnav_logo_image" alt="[% l('Evergreen Logo') %]" src="[% ctx.media_prefix %]/opac/images/small_logo.png[% ctx.cache_key %]" class="mr-2" />
index 9a97f36..1d9adde 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_image" 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..80f6a8b 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="footer_logo_image" 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..de9de64 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="homesearch_main_logo_image" src="[% ctx.media_prefix %]/opac/images/main_logo.png[% ctx.cache_key %]"
         [% img_alt(l('Evergreen Logo')) %]/>
 </div>
 [% PROCESS carousels %]
index 944eb19..7beff68 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="topnav_logo_image" 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..24dd8b9
--- /dev/null
@@ -0,0 +1,9 @@
+Evergreen now has IDs associated with logos and cart images in the TPAC and Bootstrap OPACs to aid in customization.  Images are as follows:
+
+* small Evergreen logo in navigation bar is 'topnav_logo_image'
+* the large Evergreen logo in the center of the splash page of the TPAC is 'homesearch_main_logo_image' 
+* the cart icon is 'cart_icon_image' 
+* the small logo in the footer is 'footer_logo_image'
+
+The Bootstrap OPAC does not have a homesearch logo icon as it is added in the background by CSS and can be directly styled through the CSS.
+