Bug 41081

Summary: Link from 856$u points to http://%20%20%20%20
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: CatalogingAssignee: Marcel de Rooy <m.de.rooy>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: m.de.rooy
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Crowdfunding goal: 0
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 41081: Remove spaces around 856$u in results and detail xslt

Description Marcel de Rooy 2025-10-23 08:41:16 UTC
http://%20%20%20%20
We should not provide such useless links. The field only contained four spaces.
Comment 1 Marcel de Rooy 2025-10-23 09:03:26 UTC
Created attachment 188311 [details] [review]
Bug 41081: Remove spaces around 856$u in results and detail xslt

This patch does prevent creating useless links built on spaces like
http://%20%20%20%20 on the bug report.
A next step would be to stop preventing to create them when validating
during cataloguing.

Test plan:
Check without patch.
Create biblio with 856u having just a few spaces.
Verify that you see a useless Online resources link on OPAC or intranet
(detail and results).
Apply patch.
Restart all. Verify that you do not see the link anymore.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 2 Marcel de Rooy 2025-10-23 09:03:58 UTC
Trivial fix. Four lines in xslt. Self SO