Bug 30801 - OPAC and staff interface show 856 as link even if there is no $u (MARC21)
Summary: OPAC and staff interface show 856 as link even if there is no $u (MARC21)
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: MARC Bibliographic data support (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-18 15:11 UTC by Caroline Cyr La Rose
Modified: 2022-07-07 01:09 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Cyr La Rose 2022-05-18 15:11:25 UTC
Hi everyone,

If any 856 subfield is filled, the OPAC and staff interface show that information as a link (blue text, clickable, etc.) and uses the content of $u as the href. Which is OK. 

However, if there is no $u, the other subfields still appear as links.

Cases where the electronic resource is a file that is not online would not have a $u.

I'm no cataloging expert, but I think only $u and $y (and maybe $a/$d/$f but I'm not knowledgable enough about those subfields to say for sure) should appear as a link and the rest should be regular text.

Test plan:
1- Create a record
2- Fill in the required fields
3- In 856, fill in $3 with 'In-library access only'
4- Save
5- Click on 'Normal' to view the record
   Note that the text from 856$3 is a link, if you try clicking on it, nothing happens
6- Click on the OPAC view link
   Note that the text from 856$3 is a link, if you try clicking on it, nothing happens