Subversion Repositories sopac

Rev

Rev 145 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 145 Rev 146
Line 349... Line 349...
349
  // Should be how it comes back from locum
349
  // Should be how it comes back from locum
350
  $holds_by_bnum = array();
350
  $holds_by_bnum = array();
351
  foreach ($holds as $hold) {
351
  foreach ($holds as $hold) {
352
    $holds_by_bnum[$hold['bnum']] = $hold;
352
    $holds_by_bnum[$hold['bnum']] = $hold;
353
  }
353
  }
354
 
-
 
355
  $submitted_holds = $form_state['values']['holds'];
354
  $submitted_holds = $form_state['values']['holds'];
356
 
355
 
357
  $change_pickup = variable_get('sopac_changeable_pickup_location', FALSE);
356
  $change_pickup = variable_get('sopac_changeable_pickup_location', FALSE);
358
  $suspend_holds = variable_get('sopac_suspend_holds', FALSE);
357
  $suspend_holds = variable_get('sopac_suspend_holds', FALSE);
359
  if ($suspend_holds) {
358
  if ($suspend_holds) {
Line 363... Line 362...
363
    $date_object = new DateTime(now, new DateTimeZone($sClosedByTimezone));
362
    $date_object = new DateTime(now, new DateTimeZone($sClosedByTimezone));
364
  }
363
  }
365
 
364
 
366
  foreach ($submitted_holds as $bnum => $hold_data) {
365
  foreach ($submitted_holds as $bnum => $hold_data) {
367
    if ($hold_data['cancel']) {
366
    if ($hold_data['cancel']) {
368
      $cancellations[$bnum] = $cancel_requested;
367
      $cancellations[$bnum] = TRUE;
369
      $update_holds = TRUE;
368
      $update_holds = TRUE;
370
      continue;
369
      continue;
371
    }
370
    }
372
    $freeze_requested = $hold_data['freeze'];
371
    $freeze_requested = $hold_data['freeze'];
373
    if ($freeze_requested != $holds_by_bnum[$bnum]['is_frozen']) {
372
    if ($freeze_requested != $holds_by_bnum[$bnum]['is_frozen']) {