JBAS-1705 New heading remove TCN href
authorBill Erickson <berickxx@gmail.com>
Mon, 23 Jan 2017 15:15:32 +0000 (10:15 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Display TCN as a regular text value instead of a link, since it's mainly
used for copy/paste.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/cat/authority/new_headings.tt2
Open-ILS/web/js/ui/default/cat/authority/new_headings.js

index f708abd..c51ab81 100644 (file)
             <tr>
               <td>From TCN:</td>
               <td>
-                <a href='[% ctx.base_path %]/opac/record/'
-                  target='_blank' name='bib_record-catalog-link'>
-                  <span name='bib_record'></span>
-                </a>
+                <span name='bib_record'></span>
                 <span> </span>
                 <span>Indexed As:</span>
                 <span><span name='field_label'></span></span>
index 70fb018..af98393 100644 (file)
@@ -285,28 +285,6 @@ function draw() {
                     node.innerHTML = heading.next_bib_record() ? 'B: ' : 'A: ';
                 }
             }
-
-            if (heading_field == 'bib_record') {
-                var link = openils.Util.getNodeByName(
-                  'bib_record-catalog-link', row);
-
-                // append the bib record ID to the in-template catalog link.
-                link.setAttribute('href', link.getAttribute('href') + value);
-
-                if (openils.XUL.isXUL()) {
-                    // open a new staff client tab to view the bib record
-                    var target_url = oilsBasePath + '/opac/record/' + value;
-
-                    link.onclick = function() {
-                        openils.XUL.newTabEasy(
-                            xulG.url_prefix(
-                                'chrome://open_ils_staff_client/content/cat/opac.xul'),
-                            null, {'opac_url' : target_url}
-                        );
-                        return false;
-                    }
-                }
-            }
         });
     });
 }