Koha-clms/Koha/REST/V1
Jonathan Druart 2fdf9e7388
Bug 38446: Add a dedicated route to retrieve ERM-related additional fields
In order to prevent permission errors to user without the 'parameters'
permission we are introducing a separate endpoint for the ERM module to
retrieve additional fields for this specific module.

* Adds a new endpoint /erm/extended_attribute_types
* Adjusts Cypress and REST API tests
* Adds REST API swagger specs

I wanted to keep the code as simple as possible and decided to create a
wrapper for the additional fields API client. The magic is in
koha-tmpl/intranet-tmpl/prog/js/fetch/additional-fields-api-client.js
Ideally we should provide a test for this but I failed to write them.
If required by QA I would suggest to deal with them on a separate bug to
not delay this bugfix. The code has been kept designed to be used in
other contexts but the api client is not used outside of Vue and
outside of the ERM module.

Test plan:
Confirm that user without the 'parameters' permission can use the ERM
module with additional fields.

Sponsored-by: Karlsruhe Institute of Technology (KIT)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit e0ca94ae18)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-11-25 17:36:12 +01:00
..
Acquisitions Bug 40868: Restore full list of permissions to the vendors app 2025-10-23 23:06:43 +02:00
Auth Bug 36536: Make REST APIs validateUserAndPassword update borrowers.lastseen 2025-09-20 10:43:14 +02:00
Biblios Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
CashRegisters Bug 39091: Add cash registers list REST API endpoint 2025-08-22 09:47:56 +02:00
Clubs Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Config/SMTP Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ERM Bug 37622: Error in erm module when editing an agreement, a license, a package or a titles 2025-10-23 23:06:37 +02:00
ILL Bug 39600: Rewrite API controllers 2025-04-25 19:23:41 +02:00
OAuth Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patrons Bug 37622: Fix add_debit 2025-10-23 23:06:37 +02:00
Preservation Bug 37622: Remove location from 2 preservation 'update' routes 2025-10-23 23:06:38 +02:00
StockRotation Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
AdditionalContents.pm Bug 39900: REST API specs and class changes 2025-09-20 10:42:42 +02:00
AdvancedEditorMacro.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ArticleRequests.pm Bug 28907: REST - Remove allow-owner from public article requests cancel route 2025-03-06 13:54:33 +01:00
Auth.pm Bug 40275: Use Koha::Patrons->find_by_identifier in the codebase 2025-09-20 10:43:37 +02:00
AuthorisedValueCategories.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
AuthorisedValues.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Authorities.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
BackgroundJobs.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Biblios.pm Bug 39336: Public Biblio endpoint should honour OpacSuppression syspref 2025-11-25 17:36:02 +01:00
Bookings.pm Bug 38175: (QA follow-up) DRY out PATCH handling 2024-10-24 18:27:24 +02:00
Checkouts.pm Bug 9762: (Alternative) Log circulation overrides 2025-09-20 10:43:25 +02:00
CirculationRules.pm Bug 40419: Fix wrong license 2025-07-24 10:23:34 +02:00
Cities.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
DeletedBiblios.pm Bug 37791: Fix 'Biblio not found' messages on the API 2024-10-11 12:21:29 +02:00
ERM.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ExtendedAttributeTypes.pm Bug 38446: Add a dedicated route to retrieve ERM-related additional fields 2025-11-25 17:36:12 +01:00
Holds.pm Bug 40866: Implement Alternative pattern for holds override logging (Part 4) 2025-10-29 10:02:18 +01:00
ImportBatchProfiles.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ImportRecordMatches.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ItemTypes.pm
…
Items.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Libraries.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Lists.pm Bug 28965: (QA follow-up) Fix misc qa issues 2024-11-08 16:09:22 +01:00
OAuth.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patrons.pm Bug 39408: Don't attempt to send a message if one is not generated 2025-10-29 10:02:25 +01:00
Preservation.pm
…
Quotes.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
RecordSources.pm Bug 37513: Handle Koha::Exceptions::Object::FKConstraintDeletio in controller 2024-08-27 12:14:24 +02:00
ReturnClaims.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
SearchFilter.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Static.pm Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
Suggestions.pm Bug 40419: Fix wrong license 2025-07-24 10:23:34 +02:00
Tickets.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
TransferLimits.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
TwoFactorAuth.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00