Bug 24860: Implement reserves.item_group_id

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

Signed-off-by: Rebecca Coert <rcoert@arlingtonva.us>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle M Hall 2020-02-28 14:45:44 -05:00 committed by Tomas Cohen Arazi
parent 5b7410fe2b
commit 9670e71b00
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
4 changed files with 18 additions and 0 deletions

View File

@ -192,6 +192,7 @@ sub AddReserve {
my $found = $params->{found};
my $itemtype = $params->{itemtype};
my $non_priority = $params->{non_priority};
my $item_group_id = $params->{item_group_id};
$resdate ||= dt_from_string;
@ -240,6 +241,7 @@ sub AddReserve {
{
borrowernumber => $borrowernumber,
biblionumber => $biblionumber,
item_group_id => $item_group_id,
reservedate => $resdate,
branchcode => $branch,
priority => $priority,

View File

@ -70,6 +70,7 @@ sub add {
my $item;
my $biblio_id = $body->{biblio_id};
my $item_group_id = $body->{item_group_id};
my $pickup_library_id = $body->{pickup_library_id};
my $item_id = $body->{item_id};
my $patron_id = $body->{patron_id};
@ -197,6 +198,7 @@ sub add {
found => undef, # TODO: Why not?
itemtype => $item_type,
non_priority => $non_priority,
item_group_id => $item_group_id,
}
);

View File

@ -16,6 +16,11 @@ properties:
biblio_id:
type: integer
description: Internal biblio identifier
item_group_id:
type:
- string
- "null"
description: Internal item_group identifier
pickup_library_id:
type:
- string

View File

@ -24,6 +24,10 @@
in: query
description: Internal biblio identifier
type: integer
- name: item_group_id
in: query
description: Internal item group identifier
type: integer
- name: pickup_library_id
in: query
description: Internal library identifier for the pickup library
@ -140,6 +144,11 @@
type:
- integer
- "null"
item_group_id:
description: Internal item group identifier
type:
- integer
- "null"
hold_date:
description: The date the hold was placed
type: