Koha-clms/Koha/ERM
Pedro Amorim 3c3347260d Bug 39823: Identify error messages based on code
Even if severity does not exist. Additionally, only add severity to message if it exists.

Test plan:
1) Apply tests patches. Run tests (they should fail):
prove t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t
2) Apply this patch and run tests again (they should pass this time).

UI test:
1) Create a new data provider linked to Gale Cengage, service url:
https://api.siqcloud.online/counterapi/r51
2) Add report release 5, customer id: '123', requestor id: '123', report types: 'TR_J1'
3) Run a report for this data provider, from Feb 2025 to Apr 2025. Notice that before applying patches, the job report results in a red bar with no error message.
4) Apply patches, repeat 3. Notice it now results in a nice error message.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 023f935360)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
(cherry picked from commit b801888856)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2025-06-19 09:39:14 +02:00
..
Agreement Bug 32030: Add users to licenses - Preparation 2022-11-08 09:44:47 -03:00
EHoldings Bug 37577: Add additional fields for ERM packages 2024-11-08 16:09:19 +01:00
EUsage Bug 39823: Identify error messages based on code 2025-06-19 09:39:14 +02:00
Providers Bug 38177: Do not use stash to retrieve parameters 2024-10-23 19:14:51 +02:00
Agreement.pm Bug 37576: Add additional fields for ERM agreements 2024-11-08 16:09:17 +01:00
Agreements.pm Bug 37576: Add additional fields for ERM agreements 2024-11-08 16:09:17 +01:00
Document.pm Bug 36627: Fix typo "embeded" 2025-03-19 23:57:21 +01:00
Documents.pm Bug 32030: Max document file size - server-side validation 2022-11-08 09:44:45 -03:00
License.pm Bug 35287: Preparation: AdditionalFields License Mixin 2024-10-24 13:38:18 +02:00
Licenses.pm Bug 35287: (Follow-up 37389): ExtendedAttributes 2024-10-24 13:38:21 +02:00
UserRole.pm Bug 32030: Add users to licenses - Preparation 2022-11-08 09:44:47 -03:00
UserRoles.pm Bug 32030: Add users to licenses - Preparation 2022-11-08 09:44:47 -03:00