LP1849137 Patron View hide OPAC header
authorBill Erickson <berickxx@gmail.com>
Tue, 29 Oct 2019 18:25:42 +0000 (14:25 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Tue, 29 Oct 2019 19:22:08 +0000 (12:22 -0700)
Hide the TPAC header (nav links, My Account, etc.) when displaying the
embedded read-only record detail view in the staff catalog Patron View
tab.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/templates/opac/parts/topnav.tt2

index f8dd9ed..f6390b7 100644 (file)
@@ -1,7 +1,7 @@
 [%- IF ctx.maintenance_message -%]
 <div id="maintenance_message">[% ctx.maintenance_message %]</div>
 [%- END -%]
-[% IF !ctx.is_staff %]
+[% IF !ctx.is_staff && !ctx.readonly %]
 <div id="header-wrap">
 <div id="header">
     <div class="float-left">