CAT-188 Search result table link repairs
authorBill Erickson <berickxx@gmail.com>
Mon, 24 Sep 2018 15:38:07 +0000 (11:38 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Use the "href" on the source <a> element for the search resutls
new_tab() call.

In the browser client, no special handling is required.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/openils/var/templates_kcls/opac/parts/result/table.tt2

index 044f6cb..bf81683 100644 (file)
         var tabName = element.getAttribute( 'tabname' );
         [% IF ctx.is_staff %]
             [% IF ctx.is_browser_staff %]
-            var href = "oils://remote" + element.getAttribute( 'href' );
-            var content_params = { 
-                'override_tab_lock' : true, 
-                'no_xulG' : true
-            };
+              return true; // Use the <a> as-is
             [% ELSE %]
-            var url = "oils://remote" + element.getAttribute('url');
+            var url = "oils://remote" + element.getAttribute('href');
             var content_params = {
                 'override_tab_lock': true,
                 'no_xulG': false,