[open-ils-commits] r12897 - trunk/Open-ILS/web/js/ui/default/acq/common (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Apr 16 16:42:22 EDT 2009
Author: erickson
Date: 2009-04-16 16:42:18 -0400 (Thu, 16 Apr 2009)
New Revision: 12897
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
Log:
don't append to the catalog link if it's already set
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2009-04-16 20:37:29 UTC (rev 12896)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2009-04-16 20:42:18 UTC (rev 12897)
@@ -372,7 +372,9 @@
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');
}
More information about the open-ils-commits
mailing list