|
Line 0
Link Here
|
|
|
1 |
{ |
| 2 |
"type": "object", |
| 3 |
"properties": { |
| 4 |
"suggestion_id": { |
| 5 |
"type": "string", |
| 6 |
"description": "unique identifier assigned automatically by Koha" |
| 7 |
}, |
| 8 |
"suggested_by": { |
| 9 |
"type": ["string", "null"], |
| 10 |
"description": "patron_id for the person making the suggestion, foreign key linking to the borrowers table" |
| 11 |
}, |
| 12 |
"suggestion_date": { |
| 13 |
"type": ["string", "null"], |
| 14 |
"format": "date", |
| 15 |
"description": "the suggestion was submitted" |
| 16 |
}, |
| 17 |
"managed_by": { |
| 18 |
"type": ["string", "null"], |
| 19 |
"description": "patron_id for the librarian managing the suggestion, foreign key linking to the borrowers table" |
| 20 |
}, |
| 21 |
"managed_date": { |
| 22 |
"type": ["string", "null"], |
| 23 |
"format": "date", |
| 24 |
"description": "date the suggestion was updated" |
| 25 |
}, |
| 26 |
"accepted_by": { |
| 27 |
"type": ["string", "null"], |
| 28 |
"description": "patron_id for the librarian who accepted the suggestion, foreign key linking to the borrowers table" |
| 29 |
}, |
| 30 |
"accepted_date": { |
| 31 |
"type": ["string", "null"], |
| 32 |
"format": "date", |
| 33 |
"description": "date the suggestion was marked as accepted" |
| 34 |
}, |
| 35 |
"rejected_by": { |
| 36 |
"type": ["string", "null"], |
| 37 |
"description": "patron_id for the librarian who rejected the suggestion, foreign key linking to the borrowers table" |
| 38 |
}, |
| 39 |
"rejected_date": { |
| 40 |
"type": ["string", "null"], |
| 41 |
"format": "date", |
| 42 |
"description": "date the suggestion was marked as rejected" |
| 43 |
}, |
| 44 |
"last_modification_by": { |
| 45 |
"type": ["string", "null"], |
| 46 |
"description": "patron the suggestion was last modified by" |
| 47 |
}, |
| 48 |
"last_modification_date": { |
| 49 |
"type": ["string", "null"], |
| 50 |
"format": "date", |
| 51 |
"description": "date the suggestion was last modified" |
| 52 |
}, |
| 53 |
"status": { |
| 54 |
"type": "string", |
| 55 |
"description": "Suggestion status", |
| 56 |
"enum": [ |
| 57 |
"ASKED", |
| 58 |
"CHECKED", |
| 59 |
"ACCEPTED", |
| 60 |
"REJECTED" |
| 61 |
] |
| 62 |
}, |
| 63 |
"note": { |
| 64 |
"type": ["string", "null"], |
| 65 |
"description": "note entered on the suggestion" |
| 66 |
}, |
| 67 |
"author": { |
| 68 |
"type": ["string", "null"], |
| 69 |
"description": "author of the suggested item" |
| 70 |
}, |
| 71 |
"title": { |
| 72 |
"type": ["string", "null"], |
| 73 |
"description": "title of the suggested item" |
| 74 |
}, |
| 75 |
"copyright_date": { |
| 76 |
"type": ["string", "null"], |
| 77 |
"format": "date", |
| 78 |
"description": "copyright date of the suggested item" |
| 79 |
}, |
| 80 |
"publisher_code": { |
| 81 |
"type": ["string", "null"], |
| 82 |
"description": "publisher of the suggested item" |
| 83 |
}, |
| 84 |
"date_created": { |
| 85 |
"type": ["string", "null"], |
| 86 |
"description": "timestamp of date created" |
| 87 |
}, |
| 88 |
"volume_desc": { |
| 89 |
"type": ["string", "null"], |
| 90 |
"description": "volume description" |
| 91 |
}, |
| 92 |
"publication_year": { |
| 93 |
"type": ["string", "null"], |
| 94 |
"description": "year of publication" |
| 95 |
}, |
| 96 |
"publication_place": { |
| 97 |
"type": ["string", "null"], |
| 98 |
"description": "publication place of the suggested item" |
| 99 |
}, |
| 100 |
"isbn": { |
| 101 |
"type": ["string", "null"], |
| 102 |
"description": "isbn of the suggested item" |
| 103 |
}, |
| 104 |
"biblio_id": { |
| 105 |
"type": ["string", "null"], |
| 106 |
"description": "foreign key linking the suggestion to the biblio table after the suggestion has been ordered" |
| 107 |
}, |
| 108 |
"reason": { |
| 109 |
"type": ["string", "null"], |
| 110 |
"description": "reason for accepting or rejecting the suggestion" |
| 111 |
}, |
| 112 |
"patron_reason": { |
| 113 |
"type": ["string", "null"], |
| 114 |
"description": "reason for making the suggestion" |
| 115 |
}, |
| 116 |
"budget_id": { |
| 117 |
"type": ["string", "null"], |
| 118 |
"description": "foreign key linking the suggested budget to the aqbudgets table" |
| 119 |
}, |
| 120 |
"library_id": { |
| 121 |
"type": ["string", "null"], |
| 122 |
"description": "foreign key linking the suggested branch to the branches table" |
| 123 |
}, |
| 124 |
"collection_title": { |
| 125 |
"type": ["string", "null"], |
| 126 |
"description": "collection name for the suggested item" |
| 127 |
}, |
| 128 |
"item_type": { |
| 129 |
"type": ["string", "null"], |
| 130 |
"description": "suggested item type" |
| 131 |
}, |
| 132 |
"quantity": { |
| 133 |
"type": ["string", "null"], |
| 134 |
"description": "suggested quantity to be purchased" |
| 135 |
}, |
| 136 |
"currency": { |
| 137 |
"type": ["string", "null"], |
| 138 |
"description": "suggested currency for the suggested price" |
| 139 |
}, |
| 140 |
"item_price": { |
| 141 |
"type": ["number", "null"], |
| 142 |
"description": "suggested price" |
| 143 |
}, |
| 144 |
"total_price": { |
| 145 |
"type": ["string", "null"], |
| 146 |
"description": "suggested total cost (price*quantity updated for currency)" |
| 147 |
}, |
| 148 |
"archived": { |
| 149 |
"type": ["boolean", "null"], |
| 150 |
"description": "archived (processed) suggestion" |
| 151 |
} |
| 152 |
}, |
| 153 |
"additionalProperties": false |
| 154 |
} |