Koha/api/v1/swagger/definitions/library.json
Andrew Isherwood afd13b6a9b Bug 22818: (follow-up) Respond to feedback
This commit fixes this bug, it was broken in a number of ways.

Fixes include:

- Added necessary config block in C4::Letters to enable the TT notice
syntax introduced in an earlier commit to work
- Changed template variables to refer to singular objects rather than
multiple e.g. borrowers -> borrower
- Fixed missing / misnamed variables

This commit also implements the additional syspref checks suggested by
Katrin in comment #87

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-11-11 08:35:10 +01:00

98 lines
2.8 KiB
JSON

{
"type": "object",
"properties": {
"library_id": {
"$ref": "../x-primitives.json#/library_id"
},
"name": {
"type": "string",
"description": "Printable name of library"
},
"address1": {
"type": ["string", "null"],
"description": "the first address line of the library"
},
"address2": {
"type": ["string", "null"],
"description": "the second address line of the library"
},
"address3": {
"type": ["string", "null"],
"description": "the third address line of the library"
},
"postal_code": {
"type": ["string", "null"],
"description": "the postal code of the library"
},
"city": {
"type": ["string", "null"],
"description": "the city or province of the library"
},
"state": {
"type": ["string", "null"],
"description": "the reqional state of the library"
},
"country": {
"type": ["string", "null"],
"description": "the county of the library"
},
"phone": {
"type": ["string", "null"],
"description": "the primary phone of the library"
},
"fax": {
"type": ["string", "null"],
"description": "the fax number of the library"
},
"email": {
"type": ["string", "null"],
"description": "the primary email address of the library"
},
"illemail": {
"type": ["string", "null"],
"description": "the ILL staff email address of the library"
},
"reply_to_email": {
"type": ["string", "null"],
"description": "the email to be used as a Reply-To"
},
"return_path_email": {
"type": ["string", "null"],
"description": "the email to be used as Return-Path"
},
"url": {
"type": ["string", "null"],
"description": "the URL for your library or branch's website"
},
"ip": {
"type": ["string", "null"],
"description": "the IP address for your library or branch"
},
"notes": {
"type": ["string", "null"],
"description": "notes related to your library or branch"
},
"opac_info": {
"type": ["string", "null"],
"description": "HTML that displays in OPAC"
},
"geolocation": {
"type": ["string", "null"],
"description": "geolocation of your library"
},
"marc_org_code": {
"type": [ "string", "null" ],
"description": "MARC Organization Code, see http://www.loc.gov/marc/organizations/orgshome.html, when empty defaults to syspref MARCOrgCode"
},
"pickup_location": {
"type": "boolean",
"description": "If the library can act as a pickup location"
},
"smtp_server": {
"type": ["object", "null"],
"description": "The library effective SMTP server"
}
},
"additionalProperties": false,
"required": ["library_id", "name"]
}