Bug 9834: (QA follow-up) API Corrections
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
5be6c78e6e
commit
5aaae31a78
|
|
@ -464,6 +464,7 @@ our $to_api_mapping = {
|
|||
suspend => 'suspended',
|
||||
suspend_until => 'suspended_until',
|
||||
itemtype => 'item_type',
|
||||
item_level_hold => 'item_level',
|
||||
};
|
||||
|
||||
=head3 $to_model_mapping
|
||||
|
|
@ -486,6 +487,7 @@ our $to_model_mapping = {
|
|||
suspended => 'suspend',
|
||||
suspended_until => 'suspend_until',
|
||||
item_type => 'itemtype',
|
||||
item_level => 'item_level_hold',
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -349,8 +349,9 @@ __PACKAGE__->belongs_to(
|
|||
);
|
||||
|
||||
__PACKAGE__->add_columns(
|
||||
'+lowestPriority' => { is_boolean => 1 },
|
||||
'+suspend' => { is_boolean => 1 }
|
||||
'+item_level_hold' => { is_boolean => 1 },
|
||||
'+lowestPriority' => { is_boolean => 1 },
|
||||
'+suspend' => { is_boolean => 1 }
|
||||
);
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -74,6 +74,10 @@
|
|||
"item_type": {
|
||||
"type": ["string", "null"],
|
||||
"description": "If record level hold, the optional itemtype of the item the patron is requesting"
|
||||
},
|
||||
"item_level": {
|
||||
"type": "boolean",
|
||||
"description": "If the hold is placed at item level"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue