View | Details | Raw Unified | Return to bug 9834
Collapse All | Expand All

(-)a/Koha/REST/V1/Holds.pm (+2 lines)
Lines 464-469 our $to_api_mapping = { Link Here
464
    suspend          => 'suspended',
464
    suspend          => 'suspended',
465
    suspend_until    => 'suspended_until',
465
    suspend_until    => 'suspended_until',
466
    itemtype         => 'item_type',
466
    itemtype         => 'item_type',
467
    item_level_hold  => 'item_level',
467
};
468
};
468
469
469
=head3 $to_model_mapping
470
=head3 $to_model_mapping
Lines 486-491 our $to_model_mapping = { Link Here
486
    suspended         => 'suspend',
487
    suspended         => 'suspend',
487
    suspended_until   => 'suspend_until',
488
    suspended_until   => 'suspend_until',
488
    item_type         => 'itemtype',
489
    item_type         => 'itemtype',
490
    item_level        => 'item_level_hold',
489
};
491
};
490
492
491
1;
493
1;
(-)a/Koha/Schema/Result/Reserve.pm (-2 / +3 lines)
Lines 349-356 __PACKAGE__->belongs_to( Link Here
349
);
349
);
350
350
351
__PACKAGE__->add_columns(
351
__PACKAGE__->add_columns(
352
    '+lowestPriority' => { is_boolean => 1 },
352
    '+item_level_hold' => { is_boolean => 1 },
353
    '+suspend' => { is_boolean => 1 }
353
    '+lowestPriority'  => { is_boolean => 1 },
354
    '+suspend'         => { is_boolean => 1 }
354
);
355
);
355
356
356
1;
357
1;
(-)a/api/v1/swagger/definitions/hold.json (-1 / +4 lines)
Lines 74-79 Link Here
74
    "item_type": {
74
    "item_type": {
75
      "type": ["string", "null"],
75
      "type": ["string", "null"],
76
      "description": "If record level hold, the optional itemtype of the item the patron is requesting"
76
      "description": "If record level hold, the optional itemtype of the item the patron is requesting"
77
    },
78
    "item_level": {
79
      "type": "boolean",
80
      "description": "If the hold is placed at item level"
77
    }
81
    }
78
  }
82
  }
79
}
83
}
80
- 

Return to bug 9834