Koha/api/v1/swagger/definitions/hold.json
Agustin Moyano d390b2f7cf Bug 22789: Add non priority feature to C4 classes and staff interface
This patch implements necesary code to implement non priority feature

To test:
1) Apply all patches.
2) Run updatedatabase.
3) Checkout a specific item for patron1.
4) Place a hold on the same item for patron2 (do not check non priority
   hold checkbox).
5) Try to renew the item for patron1.
CHECK => in checkouts table, there is a message that the item could not
be renewed because there was a hold.
6) Cleanup all checkouts and holds.
7) repeat steps 3 to 5, but this time check the non priority checkbox.
SUCCESS => item was renewed
8) prove t/db_dependent/Holds.t

Signed-off-by: Lisette Scheer <lisettes@latahlibrary.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-31 16:10:25 +02:00

87 lines
2.5 KiB
JSON

{
"type": "object",
"properties": {
"hold_id": {
"type": "integer",
"description": "Internal hold identifier"
},
"patron_id": {
"type": "integer",
"description": "Internal patron identifier"
},
"hold_date": {
"type": ["string", "null"],
"format": "date",
"description": "The date the hold was placed"
},
"biblio_id": {
"type": "integer",
"description": "Internal biblio identifier"
},
"pickup_library_id": {
"type": ["string", "null"],
"description": "Internal library identifier for the pickup library"
},
"cancellation_date": {
"type": ["string", "null"],
"format": "date",
"description": "The date the hold was cancelled"
},
"notes": {
"type": ["string", "null"],
"description": "Notes related to this hold"
},
"priority": {
"type": ["integer", "null"],
"description": "Where in the queue the patron sits"
},
"status": {
"type": ["string", "null"],
"description": "A one letter code defining what the status of the hold is after it has been confirmed"
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp for the latest hold update"
},
"item_id": {
"type": ["string", "null"],
"description": "Internal item identifier"
},
"waiting_date": {
"type": ["string", "null"],
"format": "date",
"description": "The date the item was marked as waiting for the patron at the library"
},
"expiration_date": {
"type": ["string", "null"],
"format": "date",
"description": "The date the hold expires"
},
"lowest_priority": {
"type": "boolean",
"description": "Controls if the hold is given the lowest priority on the queue"
},
"suspended": {
"type": "boolean",
"description": "Controls if the hold is suspended"
},
"suspended_until": {
"type": ["string", "null"],
"format": "date-time",
"description": "Date until which the hold has been suspended"
},
"non_priority": {
"description": "Set this hold as non priority",
"type": "boolean"
},
"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"
}
}
}