Main Koha release repository https://koha-community.org
Find a file
Aleisha Amohia 9d8254efd3
Bug 35967: Add REST API endpoint to list patron recalls
This enhancement adds a REST API endpoint to list a patron's recalls:

/api/v1/patrons/{patron_id}/recalls

This depends on the logged in patron having the manage_recalls subpermission.

To test:

1. Log in to the staff interface as your superlibrarian self (Patron A)
2. Go to Koha Administration -> Global system preferences. Enable the UseRecalls system preference
3. Set the relevant recalls circulation and fines rules
4. Search for an item (Item A)
5. Check out Item A to yourself (Patron A)
6. Log in to the OPAC as Patron B, a patron who does not have the manage_recalls permission
7. Search for Item A and request a recall
8. While still logged in to the OPAC as Patron B, hit this URL: https://your-opac-url/api/v1/patrons/patron-b-borrowernumber/recalls (swap out your URL and Patron B's borrowernumber)
9. Confirm you are given an error: "Authorization failure. Missing required permission(s)."
10. Log out of the OPAC and log back in, this time as Patron A
11. Hit the URL again https://your-opac-url/api/v1/patrons/patron-b-borrowernumber/recalls
12. Confirm you are able to view a list of Patron B's recalls
13. Confirm tests pass: t/db_dependent/api/v1/patrons_recalls.t

Sponsored-by: Auckland University of Technology

PA amended: QA follow-up: tidy

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-04-19 19:54:43 +02:00
acqui Bug 36635: Fix vendor's issue show view 2024-04-19 18:06:33 +02:00
admin Bug 35724: Define non-standard ports for EDI SFTP in EDI accounts 2024-04-19 18:31:36 +02:00
api Bug 35967: Add REST API endpoint to list patron recalls 2024-04-19 19:54:43 +02:00
authorities Bug 36552: (QA follow-up) Add a theoretical check on $record 2024-04-12 14:02:44 +02:00
basket
bin
bookings
C4 Bug 35394: Correction to booked items logic 2024-04-19 18:06:34 +02:00
catalogue Bug 36563: Turn into array only if required 2024-04-19 15:55:54 +02:00
cataloguing Bug 27893: Cancel acq orders in addbiblio.pl 2024-04-19 18:06:31 +02:00
circ Bug 8461: Tidy 2024-04-19 18:06:37 +02:00
clubs
course_reserves
debian Bug 30897: (QA follow-up) Enable graceful restart by default 2024-04-11 16:53:43 +02:00
docs
erm
errors
etc Bug 30897: (QA follow-up) Enable graceful restart by default 2024-04-11 16:53:43 +02:00
ill Bug 35331: Add table actions hook to ILL table 2024-03-18 11:03:33 +01:00
installer Bug 35151: DBRev 23.12.00.024 2024-04-19 19:54:36 +02:00
Koha Bug 35967: Add REST API endpoint to list patron recalls 2024-04-19 19:54:43 +02:00
koha-tmpl Bug 19605: Add 'ill_backend' plugin category 2024-04-19 19:54:39 +02:00
labels Bug 36511: Some scripts missing a dependency following Bug 24879 2024-04-10 09:09:50 +02:00
lib/CGI/Session/Serialize
members Bug 30987: Fix relationship fields for patron full and quick add forms 2024-04-18 16:51:13 +02:00
misc Bug 36068: (QA follow-up) Add OPTIONS section in POD 2024-04-19 18:06:31 +02:00
offline_circ
opac Bug 35151: Convert ILLModuleCopyrightClearance system preference to additional contents 2024-04-19 19:54:35 +02:00
patron_lists
patroncards
plugins Bug 30897: Add option to disable automated restart 2024-04-11 16:53:42 +02:00
pos
preservation
recalls
reports Bug 31988: Remove reports/itemtypes.plugin 2024-03-18 18:03:39 +01:00
reserve Bug 35573: Correctly display warning when placing a hold 2024-04-05 11:51:10 +02:00
reviews
rotating_collections
serials Bug 36511: Some scripts missing a dependency following Bug 24879 2024-04-10 09:09:50 +02:00
services
skel
suggestion Bug 34963: Restore the ability to blank fields when editing a suggestion 2024-04-19 18:06:36 +02:00
svc Bug 36418: Catch more cases where header response should be application/json 2024-04-02 17:59:04 +02:00
t Bug 35967: Add REST API endpoint to list patron recalls 2024-04-19 19:54:43 +02:00
tags
tools Bug 36634: Replace cud-show with show in tools/automatic_item_modification_by_age.pl 2024-04-19 18:06:38 +02:00
virtualshelves
xt Bug 24879: Exclude koha_perl_deps.pl 2024-04-03 17:05:51 +02:00
.editorconfig
.eslintrc.json
.gitignore
.htaccess
.mailmap
.perlcriticrc
.perltidyrc
.proverc.dist
.stylelintrc.json
about.pl Bug 36134: Read complete Elasticsearch configuration in about.pl 2024-03-07 17:35:36 +01:00
app.psgi
build-resources.PL
changelanguage.pl
cpanfile Bug 35614: Update cpanfile for Mojolicious::Plugin::OpenAPI v5.09 2024-04-04 15:24:35 +02:00
cypress.config.ts Bug 36012: Extend cypress's requestTimeout value 2024-03-22 15:07:36 +01:00
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 35151: DBRev 23.12.00.024 2024-04-19 19:54:36 +02:00
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP
package.json Bug 36177: Cypress tests - yarn add cypress-mysql 2024-03-12 17:47:33 +01:00
README
README.md
README.robots
rewrite-config.PL
tsconfig.json
webpack.config.js
yarn.lock Bug 36177: Cypress tests - yarn add cypress-mysql 2024-03-12 17:47:33 +01:00

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo