TLR - settings

Settings for title-level requests will be stored in mod-configuration (module=SETTINGS, configName=TLR). Value is a JSON-containing string.

JSON schema:

{
"type": "object",
"description": "Title level requests feature settings",
"properties": {
"titleLevelRequestsFeatureEnabled": {
"description": "Allow title level requests",
"type": "boolean"
},
"createTitleLevelRequestsByDefault": {
"description": "'Create title level requests' selected by default",
"type": "boolean"
},
"confirmationPatronNoticeTemplateId": {
"description": "Confirmation patron notice template ID",
"type": "string"
},
"cancellationPatronNoticeTemplateId": {
"description": "Confirmation patron notice template ID",
"type": "string"
},
"expirationPatronNoticeTemplateId": {
"description": "Expiration patron notice template ID",
"type": "string"
}
}
}

Examples of valid JSONs

No settings (equivalent of not having any settings):

{
"titleLevelRequestsFeatureEnabled": false,
"createTitleLevelRequestsByDefault": false,
"confirmationPatronNoticeTemplateId": null,
"cancellationPatronNoticeTemplateId": null,
"expirationPatronNoticeTemplateId": null
}

TLR feature enabled:

{
"titleLevelRequestsFeatureEnabled": true,
"createTitleLevelRequestsByDefault": false,
"confirmationPatronNoticeTemplateId": "e5f5a317-10a3-44e7-a944-0c3ac5a15940",
"cancellationPatronNoticeTemplateId": null,
"expirationPatronNoticeTemplateId": null
}