[open-ils-commits] r544 - conifer/trunk/web/opac/skin/default/js (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jun 23 23:52:30 EDT 2009
Author: dbs
Date: 2009-06-23 23:52:27 -0400 (Tue, 23 Jun 2009)
New Revision: 544
Modified:
conifer/trunk/web/opac/skin/default/js/result_common.js
Log:
Prevent displaying "Place Hold" link on metarecord result pages
Modified: conifer/trunk/web/opac/skin/default/js/result_common.js
===================================================================
--- conifer/trunk/web/opac/skin/default/js/result_common.js 2009-06-24 03:49:50 UTC (rev 543)
+++ conifer/trunk/web/opac/skin/default/js/result_common.js 2009-06-24 03:52:27 UTC (rev 544)
@@ -734,6 +734,7 @@
}
var i = 0;
+ var metarecords = (findCurrentPage() == MRESULT);
while(copy_counts[i] != null) {
var cell = $("copy_count_cell_" + i +"_" + pagePosition);
var cts = copy_counts[i];
@@ -741,7 +742,7 @@
if (!enableHoldsOnAvailable && (i == (copy_counts.length - 1))) {
var resultTBody = findParentByNodeName(cell, 'TBODY');
- if (cts.available == 0 && cts.count > 0) {
+ if (cts.available == 0 && cts.count > 0 && !metarecords) {
dojo.query('[name="place_hold_span"]', resultTBody).removeClass('hide_me');
} else {
dojo.query('[name="place_hold_span"]', resultTBody).addClass('hide_me');
More information about the open-ils-commits
mailing list