if (item_cnt >= max_items) {
return output.innerHTML;
}
+ if (vol.getAttribute('deleted') == 't') {
+ return;
+ }
+ if (vol.getAttribute('opac_visible') == 'f') {
+ return;
+ }
dojo.query('copy', vol).forEach(function (cp) {
if (item_cnt >= max_items) {
return;
if (cp.getAttribute('opac_visible') == 'f') {
return;
}
+
+ /* Hardcoded check for copy status 0, 7, or 12 */
+ var ident;
+ dojo.query('status', cp).forEach(function (status) {
+ ident = status.getAttribute('ident');
+ });
+ if (parseInt(ident) !== 0 &&
+ parseInt(ident) != 7 &&
+ parseInt(ident) != 12) {
+ return;
+ }
+
+
+ /* Ensure the circulation library is visible */
+ var lib_vis;
+ dojo.query('circlib', cp).forEach(function (status) {
+ lib_vis = status.getAttribute('opac_visible');
+ });
+ if (lib_vis != 't') {
+ return;
+ }
+
var cp_entry = dojo.create('div');
var loc_visible;
var vol_appended = false;