From 0a40e6f22d4319e2709873bc2450632ddd51622c Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 16 Apr 2009 20:42:18 +0000 Subject: [PATCH] don't append to the catalog link if it's already set git-svn-id: svn://svn.open-ils.org/ILS/trunk@12897 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/acq/common/li_table.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index e9e300fe96..e5e488cc2c 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -372,7 +372,9 @@ function AcqLiTable() { if(li.eg_bib_id()) { openils.Util.show('acq-lit-info-cat-link'); var link = dojo.byId('acq-lit-info-cat-link').getElementsByTagName('a')[0]; - link.setAttribute('href', link.getAttribute('href') + li.eg_bib_id()); + var href = link.getAttribute('href'); + if(href.match(/=$/)) + link.setAttribute('href', href + li.eg_bib_id()); } else { openils.Util.hide('acq-lit-info-cat-link'); } -- 2.11.0