Bug 28703

Summary: Display problem in 505$a field
Product: Koha Reporter: Holly <hc>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: amy, fridolin.somers, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29604
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29455
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: 19616    
Bug Blocks:    
Attachments: Appearance of arrows in 505 field
MARC
MARC record

Description Holly 2021-07-13 10:13:55 UTC
Created attachment 122798 [details]
Appearance of arrows in 505 field

Content in the 505$ a field (Formatted contents note) is displaying arrows at the beginning and end of the content. This was not appearing on the 19.11 release of Koha.
Comment 1 Katrin Fischer 2021-07-14 10:53:54 UTC
Hi Holly, we changed it up a bit to display more subfields. Can you share the MARC that creates this display please?
Comment 2 Holly 2021-07-14 15:18:31 UTC
Created attachment 122844 [details]
MARC

Here is the MARC
Comment 3 Owen Leonard 2021-07-14 15:54:16 UTC
(In reply to Holly from comment #2)
> Here is the MARC

What we need for proper testing is a copy of the MARC record itself. You can get a copy from the bibliographic detail page using the toolbar button Save -> MARC (Unicode/UTF-8).
Comment 4 Holly 2021-07-15 08:27:53 UTC
Created attachment 122845 [details]
MARC record

This should be what you need.
Comment 5 Katrin Fischer 2021-11-11 16:42:24 UTC
Confirming the problem, a bit puzzled at my own changes on bug 28703. Will try to come up with a fix.
Comment 6 Katrin Fischer 2021-11-12 08:11:17 UTC
Hm, it might just need changing the "after" to "before" here:

-    .r {
-        display: inline;
+    .newline::after {
+        content: "\A → ";
+        white-space: pre;
     }
Comment 7 Amy Schapiro 2021-12-02 17:43:04 UTC
According to the most recent MARC rules at LOC - https://www.loc.gov/marc/bibliographic/bd505.html
Two hyphens are the appropriate way to separate these fields. 
Thanks everyone!
Comment 8 Katrin Fischer 2021-12-05 23:01:38 UTC
(In reply to Amy Schapiro from comment #7)
> According to the most recent MARC rules at LOC -
> https://www.loc.gov/marc/bibliographic/bd505.html
> Two hyphens are the appropriate way to separate these fields. 
> Thanks everyone!

Hi Amy, that's correct and it is what happens in the XSLT in current versions now. There is an issue where an extra -> (used at the beginning of the line, but you could change it to something else) appears at the end of the list.
Comment 9 Fridolin Somers 2021-12-22 07:43:40 UTC
Duplicate of Bug 29604?
Comment 10 Katrin Fischer 2023-01-02 18:10:44 UTC
(In reply to Fridolin Somers from comment #9)
> Duplicate of Bug 29604?

No, totally different thing. This is about showing an extra --> that has no content after.
Comment 11 Fridolin Somers 2023-03-04 02:02:34 UTC
A librarian found this bug.

The record has an only 505 :

<datafield tag="505" ind1="0" ind2=" ">
<subfield code="a">
Introduction: the audio media revolution -- Splatters of shit: story, science and digital speech on radiolab -- You are not alone: podcast communities, audiences, and welcome to night vale -- In bed with radiotopians: podcast intimacy, empathy and narrative -- Don't look back: the new possibilities of podcast drama -- A utopian moment: podium.me, diversity and youth podcasting -- Blood culture: gaming the podcast system -- The truth about serial: it's not really about a murder -- The lucky strike: success, value and independence in the golden age of podcasting.
</subfield>
</datafield>