PINES Customization: Fix for NoveList Added Content Display
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 23 May 2017 20:07:27 +0000 (16:07 -0400)
committerTerran McCanna <tmccanna@georgialibraries.org>
Tue, 23 May 2017 20:07:27 +0000 (16:07 -0400)
Additional tweak to NoveList added content section to fix
problem where if you navigated away from it and then back to it,
it did not display.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/opac/parts/record/extras.tt2

index a1ba5e2..fa063f7 100644 (file)
             </div>
         </div>
         <div class='rdetail_extras_div'>
-            [%  IF tab_is_active(name) OR name == 'awards';
+            [%  IF tab_is_active(name);
                     IF name == 'marchtml';
                         ctx.marchtml;
                     ELSE;
                         # Load the template for the selected extra
                         INCLUDE "opac/parts/record/${name}.tt2";
                     END;
+                ELSIF !ctx.is_staff AND name == 'awards' AND !CGI.request_uri.match('expand');
+                    INCLUDE "opac/parts/record/awards.tt2";
                 END; 
             %]
         </div>