Koha-clms/Koha/ERM/EUsage
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
..
CounterFile.pm Bug 36627: Record who is importing sushi data 2025-03-19 23:57:16 +01:00
CounterFiles.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
CounterLog.pm Bug 36627: (QA follow-up): Rename borrowernumber -> patron_id 2025-03-19 23:57:22 +01:00
CounterLogs.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
DefaultUsageReport.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
DefaultUsageReports.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
MonthlyUsage.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
MonthlyUsages.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
SushiCounter.pm Bug 33339: (Follow up) Fix more cases of formula=empty 2024-11-14 10:46:31 +01:00
UsageDataProvider.pm Bug 39823: Identify error messages based on code 2025-06-19 09:39:14 +02:00
UsageDataProviders.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsageDatabase.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsageDatabases.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsageItem.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsageItems.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsagePlatform.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsagePlatforms.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsageTitle.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
UsageTitles.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
YearlyUsage.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
YearlyUsages.pm Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00