Bug 36293

Summary: OpenURL shows on wrong entries in OPAC result list
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
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: 8995    
Bug Blocks:    

Description Katrin Fischer 2024-03-11 16:01:31 UTC
When the OpenURL display is limited to a certain item type, they might display with wrong OpenURL-Links.

To test:

Config:
*  OPACOpenURLItemTypes limit to one item type code in your system
*  OPACShowOpenURL: Activate
*  OpenURLResolverURL: http://just-a-test.de/openurl?
*  OpenURLText: Online Access

Test:
* Create a search that returns records with different item types.
* Adjust sorting, so that the OpenURL results are at the top of the search.
* Verify now the entries without OpenURL show an OpenURL as well
* Check the URL generated, it should contain the title of the last entry with matching item type.