<!ENTITY myopac.holds.processing "Processing holds... This may take a moment.">
<!ENTITY myopac.holds.actions 'Actions for selected holds'>
<!ENTITY myopac.holds.cancel.confirm 'Are you sure you wish to cancel the selected holds?'>
-<!ENTITY myopac.holds.freeze.confirm 'Are you sure you wish to freeze the selected holds?'>
+<!ENTITY myopac.holds.freeze.confirm 'Are you sure you wish to freeze the selected holds?
+Note that if an item has already been selected to fulfill the hold, it will not be frozen'>
<!ENTITY myopac.holds.thaw.confirm 'Are you sure you wish to un-freeze the selected holds?'>
<!ENTITY myopac.holds.thaw_date.confirm 'Are you sure you wish to change the un-freeze date for the selected holds?'>
<!ENTITY myopac.holds.freeze.select_thaw "Select an 'Un-Freeze' date. This is the date at which the holds will become active again.
- If no date is chosen, the holds will remain frozen until they are manually un-frozen.">
+If no date is chosen, the holds will remain frozen until they are manually un-frozen.">
<!ENTITY opac.holds.freeze "Freeze this hold">
<!ENTITY opac.holds.freeze.help "A 'frozen' will retain its place in the queue, but will not be fulfilled until it has been unfrozen.">
var fleshedUser = null;
var fleshedContainers = {};
var holdCache = {};
+var holdStatusCache = {};
function clearNodes( node, keepArray ) {
var hold = r.hold;
var status = r.getResultObject();
+ holdStatusCache[hold.id()] = status;
+
var row = $("myopac_holds_row_" + r.hold.id());
if( status < 3 )
var holds = [];
for(var i = 0; i < selectedRows.length; i++) {
hold = holdCache[myopacHoldIDFromRow(selectedRows[i])];
+ var status = holdStatusCache[hold.id()];
switch(action) {
case 'cancel':
holds.push(hold);
holds.push(hold);
break;
case 'freeze':
- if(!isTrue(hold.frozen()))
+ if(!isTrue(hold.frozen()) && status < 3)
holds.push(hold);
break;
}
if(++myopacProcessedHolds >= myopacTotalHoldsToProcess) {
myopacHideHoldProcessing();
holdCache = {};
+ holdStatusCache = {};
myopacForceHoldsRedraw = true;
myOPACShowHolds();
}