Signed-off-by: Jason Etheridge <jason@esilibrary.com>
<!ENTITY common.hold.issuance "Issuance Hold">
<!ENTITY common.hold.advanced "Advanced Hold Options">
<!ENTITY common.hold.delivery "Please select a physical location where your hold can be delivered.">
+<!ENTITY common.hold.part_required "Please select a specific monographic part to hold.">
<!ENTITY common.hold.checked_out "This item is already checked out.">
<!ENTITY common.hold.checked_out.override "This item is already checked out. Would you like to place the hold anyway?">
<!ENTITY common.hold.exists "A hold already exists on the requested item.">
else
hold.email_notify(0);
- var part = getSelectorVal($('holds_parts_selector'));
- if(part) {
- holdArgs.type = 'P';
- holdArgs.part = part;
+ if(holdArgs.recordParts && holdArgs.recordParts.length) {
+ var part = getSelectorVal($('holds_parts_selector'));
+ if(part) {
+ holdArgs.type = 'P';
+ holdArgs.part = part;
+ } else {
+ alertId('holds_pick_part');
+ return;
+ }
}
var target = holdArgs[holdTargetTypeMap[holdArgs.type]];
<span class='hide_me' id='holds_explain_adv'>&holds.advanced_options;</span>
<span class='hide_me' id='holds_pick_good_org'>&common.hold.delivery;</span>
+ <span class='hide_me' id='holds_pick_part'>&common.hold.part_required;</span>
<span class='hide_me' id='hold_dup_exists'>&common.hold.exists;</span>
<span class='hide_me' id='hold_checked_out'>&common.hold.checked_out;</span>