JBAS-2226 Catalog title links open new tab
authorBill Erickson <berickxx@gmail.com>
Thu, 14 Mar 2019 19:21:41 +0000 (15:21 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:51:45 +0000 (15:51 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/openils/var/templates_kcls/opac/parts/result/table.tt2

index bf81683..3476cd5 100644 (file)
                                                 [% IF ctx.is_staff %] 
                                                 <a name='record_[% rec.id %]' style="cursor:pointer;" 
                                                     title="[% attrs.title_extended | uri %]" 
-                                                    href = "[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"
+                                                    [% IF ctx.is_browser_staff %]
+                                                      target="_blank"
+                                                      href="/eg/staff/cat/catalog/record/[% rec.id %]"
+                                                    [% ELSE %]
+                                                      href = "[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"
+                                                    [% END %]
                                                     tabname = "[% rec.id %]" 
                                                     recId = "[% rec.id %]" 
                                                     onclick = "new_tab( this )"