]> git.koha-community.org Git - koha.git/commit
Bug 27947: Add cancellation reason to article request
authorAgustin Moyano <agustinmoyano@theke.io>
Fri, 20 Aug 2021 02:51:38 +0000 (23:51 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 6 Oct 2021 08:09:25 +0000 (10:09 +0200)
commita10af0620330b80841e67d4563227ef7c9d79a07
tree8380c3b319cc43da49e7646cbeef49b046405ff3
parent1b73fac8105aa8968ce87f7a11193820cc767f4c
Bug 27947: Add cancellation reason to article request

This bug adds a cancellation reason authorised values to article requests

To test:
1. apply this patch
2. updatedatabase
3. in staff interface go to /cgi-bin/koha/admin/authorised_values.pl
CHECK => AR_CANCELLATION category should appears
4. place several article requests
5. in staff interface go to /cgi-bin/koha/circ/article-requests.pl
6. select multiple requests, or just one and cancel them
SUCCESS => a modal pops up offering to select a cancellation reason
CHECK => message_queue table has messages with cancellation reason included
7. repeat steps 4 to 6 but for /cgi-bin/koha/circ/request-article.pl
8. cancelling article requests from opac interface should work just as before

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
13 files changed:
Koha/ArticleRequest.pm
Koha/Exceptions/ArticleRequests.pm [new file with mode: 0644]
Koha/REST/V1/ArticleRequests.pm [new file with mode: 0644]
Koha/REST/V1/Patrons.pm
api/v1/swagger/parameters.json
api/v1/swagger/parameters/article_request.json [new file with mode: 0644]
api/v1/swagger/paths.json
api/v1/swagger/paths/article_requests.json [new file with mode: 0644]
api/v1/swagger/paths/public_patrons.json
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/request-article.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt