Bug 40774

Summary: EBSCO Packages search box is missing
Product: Koha Reporter: Christian Nelson <christian.nelson>
Component: ERMAssignee: Jonathan Druart <jonathan.druart>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: jonathan.druart, jonathan.field, martin.renvoize, matt.blenkinsop, pedro.amorim
Version: unspecifiedKeywords: rel_25_05_candidate
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 37930    
Bug Blocks:    
Attachments: Bug 40774: Fix EBSCO's package list view
Bug 40774: Fix get_lib_from_av calls
Bug 40774: Fix content type description
Bug 40774: Fix EBSCO's package list view
Bug 40774: Fix get_lib_from_av calls
Bug 40774: Fix content type description

Description Christian Nelson 2025-09-09 11:31:13 UTC
In ERM module (/cgi-bin/koha/erm/eholdings/ebsco/packages) the EBSCO packages search box is missing. Instead of the search box an empty page is shown.

Chrome Console says:
runtime-core.esm-bundler.js:275 TypeError: Cannot read properties of undefined (reading 'authorised_values')
    at Proxy.<anonymous> (EHoldingsEBSCOPackagesList.vue:14:36)
    at a7 (runtime-core.esm-bundler.js:6502:16)
    at A.s [as fn] (runtime-core.esm-bundler.js:5319:46)
    at A.run (reactivity.esm-bundler.js:225:19)
    at U (runtime-core.esm-bundler.js:5454:5)
    at P (runtime-core.esm-bundler.js:5229:7)
    at I (runtime-core.esm-bundler.js:5182:9)
    at y (runtime-core.esm-bundler.js:4700:11)
    at A.s [as fn] (runtime-core.esm-bundler.js:5406:9)
    at A.run (reactivity.esm-bundler.js:225:19)

The EBSCO titles search (/cgi-bin/koha/erm/eholdings/ebsco/titles) seems to be working normally.
Comment 1 Jonathan Druart 2025-09-09 11:54:34 UTC
Created attachment 186283 [details] [review]
Bug 40774: Fix EBSCO's package list view

TypeError: can't access property "authorised_values", e.type is undefined
Comment 2 Jonathan Druart 2025-09-09 12:02:52 UTC
Created attachment 186285 [details] [review]
Bug 40774: Fix get_lib_from_av calls

The authorised value category for 'authorisedValues.av_title_publication_types' is not defined.
Comment 3 Jonathan Druart 2025-09-09 12:09:32 UTC
Created attachment 186286 [details] [review]
Bug 40774: Fix content type description

The authorised value category for 'EBook' is not defined.
Comment 4 Jonathan Druart 2025-09-09 12:10:56 UTC
I found several bugs.

The description of the content types on the package list view was not correctly shown.

On the title list it was the publication types.

Everything should be fixed now.
Comment 5 OpenFifth Sandboxes 2025-09-09 13:26:31 UTC
Created attachment 186296 [details] [review]
Bug 40774: Fix EBSCO's package list view

TypeError: can't access property "authorised_values", e.type is undefined
Signed-off-by: cnelson <christian.nelson@uwasa.fi>
Comment 6 OpenFifth Sandboxes 2025-09-09 13:26:33 UTC
Created attachment 186297 [details] [review]
Bug 40774: Fix get_lib_from_av calls

The authorised value category for 'authorisedValues.av_title_publication_types' is not defined.

Signed-off-by: cnelson <christian.nelson@uwasa.fi>
Comment 7 OpenFifth Sandboxes 2025-09-09 13:26:35 UTC
Created attachment 186298 [details] [review]
Bug 40774: Fix content type description

The authorised value category for 'EBook' is not defined.

Signed-off-by: cnelson <christian.nelson@uwasa.fi>
Comment 8 Christian Nelson 2025-09-09 13:28:38 UTC
Seems to be working fine now, thank you!