Forced Awards & Suggested Reads tab to always be open
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 29 Apr 2014 18:12:23 +0000 (14:12 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 6 Nov 2014 17:54:18 +0000 (12:54 -0500)
in order to highlight NoveList Select content.

Open-ILS/src/templates/opac/parts/record/extras.tt2

index 39baa41..8f00083 100644 (file)
@@ -1,4 +1,4 @@
-[%
+ [%
     arrow_right = '&#9658;';
     arrow_down = '&#9660;';
 %]
@@ -73,7 +73,7 @@
             <div class="rdetail_extras_hr"></div>
             <div class="rdetail_extras_link">
                 [%  
-                    IF tab_is_active(name);
+                    IF tab_is_active(name) OR name == 'awards'; # force awards section to be open
                         href = mkurl('', {}, ['expand', 'ac']);
                         arrow = arrow_down;
                     ELSE;
@@ -89,7 +89,7 @@
             </div>
         </div>
         <div class='rdetail_extras_div'>
-            [%  IF tab_is_active(name);
+            [%  IF tab_is_active(name) OR name == 'awards'; # force awards section to be open
                     IF name == 'marchtml';
                         ctx.marchtml;
                     ELSE;