@ -6,67 +6,57 @@
"tags" : [ "patrons" , "holds" ] ,
"parameters" : [
{
"name" : "reserve _id" ,
"name" : "hold _id" ,
"in" : "query" ,
"description" : "Internal reserve identifier" ,
"type" : "integer"
} ,
{
"name" : "borrowernumber " ,
"name" : "patron_id " ,
"in" : "query" ,
"description" : "Internal patron identifier" ,
"type" : "integer"
} ,
{
"name" : "reserve date" ,
"name" : "hold_ date" ,
"in" : "query" ,
"description" : "Reserve date" ,
"type" : "string"
"description" : "Hold" ,
"type" : "string" ,
"format" : "date"
} ,
{
"name" : "biblionumber " ,
"name" : "biblio_id " ,
"in" : "query" ,
"description" : "Internal biblio identifier" ,
"type" : "integer"
} ,
{
"name" : "branchcode" ,
"in" : "query" ,
"description" : "Branch code" ,
"type" : "string"
} ,
{
"name" : "notificationdate" ,
"name" : "pickup_library_id" ,
"in" : "query" ,
"description" : "Notification date " ,
"description" : "Internal library identifier for the pickup library" ,
"type" : "string"
} ,
{
"name" : "reminder date" ,
"name" : "cancelation_date" ,
"in" : "query" ,
"description" : "Reminder date" ,
"type" : "string"
} ,
{
"name" : "cancellationdate" ,
"in" : "query" ,
"description" : "Cancellation date" ,
"type" : "string"
"description" : "The date the hold was cancelled" ,
"type" : "string" ,
"format" : "date"
} ,
{
"name" : "reserve notes" ,
"name" : "notes" ,
"in" : "query" ,
"description" : "Reserve notes " ,
"description" : "Notes related to this hold" ,
"type" : "string"
} ,
{
"name" : "priority" ,
"in" : "query" ,
"description" : "Priority " ,
"description" : "Where in the queue the patron sits " ,
"type" : "integer"
} ,
{
"name" : "found " ,
"name" : "status " ,
"in" : "query" ,
"description" : "Found status" ,
"type" : "string"
@ -78,37 +68,37 @@
"type" : "string"
} ,
{
"name" : "itemnumber " ,
"name" : "item_id " ,
"in" : "query" ,
"description" : "Internal item identifier" ,
"type" : "integer"
} ,
{
"name" : "waitingdate" ,
"name" : "waiting_ date" ,
"in" : "query" ,
"description" : "Date the item was marked as waiting for the patron" ,
"type" : "string"
} ,
{
"name" : "expirationdate" ,
"name" : "expiration_ date" ,
"in" : "query" ,
"description" : "Date the hold expires" ,
"type" : "string"
} ,
{
"name" : "lowestP riority" ,
"name" : "lowest_p riority" ,
"in" : "query" ,
"description" : "Lowest priority" ,
"type" : "integer "
"type" : "boolean "
} ,
{
"name" : "suspend" ,
"name" : "suspended " ,
"in" : "query" ,
"description" : "Suspended" ,
"type" : "integer "
"type" : "boolean "
} ,
{
"name" : "suspend_until" ,
"name" : "suspended _until" ,
"in" : "query" ,
"description" : "Suspended until" ,
"type" : "string"
@ -154,8 +144,6 @@
}
} ,
"x-koha-authorization" : {
"allow-owner" : true ,
"allow-guarantor" : true ,
"permissions" : {
"borrowers" : "edit_borrowers"
}
@ -173,32 +161,37 @@
"schema" : {
"type" : "object" ,
"properties" : {
"borrowernumber " : {
"patron_id " : {
"description" : "Internal patron identifier" ,
"type" : "integer"
} ,
"biblionumber " : {
"description" : "Biblio internal identifier" ,
"type" : "integer"
"biblio_id " : {
"description" : "Internal biblio identifier" ,
"type" : [ "integer", "null" ]
} ,
"itemnumber " : {
"description" : "Item i nternal identifier" ,
"type" : "integer"
"item_id " : {
"description" : "Internal item identifier" ,
"type" : [ "integer", "null" ]
} ,
"branchcode " : {
"description" : "Pickup location " ,
"pickup_library_id " : {
"description" : "Internal library identifier for the pickup library " ,
"type" : "string"
} ,
"expirationdate" : {
"expiration_ date" : {
"description" : "Hold end date" ,
"type" : "string",
"type" : [ "string", "null" ] ,
"format" : "date"
} ,
"itemtype" : {
"notes" : {
"description" : "Notes related to this hold" ,
"type" : [ "string" , "null" ]
} ,
"item_type" : {
"description" : "Limit hold on one itemtype (ignored for item-level holds)" ,
"type" : "string"
"type" : [ "string", "null" ]
}
}
} ,
"required" : [ "patron_id" , "pickup_library_id" ]
}
}
] ,
@ -249,20 +242,19 @@
}
} ,
"x-koha-authorization" : {
"allow-owner" : true ,
"permissions" : {
"reserveforothers" : "1"
}
}
}
} ,
"/holds/{reserve _id}" : {
"/holds/{hold _id}" : {
"put" : {
"x-mojo-to" : "Hold#edit" ,
"operationId" : "editHold" ,
"tags" : [ "holds" ] ,
"parameters" : [ {
"$ref" : "../parameters.json#/holdIdPathParam "
"$ref" : "../parameters.json#/hold_id_pp "
} , {
"name" : "body" ,
"in" : "body" ,
@ -336,8 +328,6 @@
}
} ,
"x-koha-authorization" : {
"allow-owner" : true ,
"allow-guarantor" : true ,
"permissions" : {
"reserveforothers" : "1"
}
@ -348,7 +338,7 @@
"operationId" : "deleteHold" ,
"tags" : [ "holds" ] ,
"parameters" : [ {
"$ref" : "../parameters.json#/holdIdPathParam "
"$ref" : "../parameters.json#/hold_id_pp "
}
] ,
"produces" : [ "application/json" ] ,