Bug 37234 - Order of subfields when there are multiple of a same subfield
Summary: Order of subfields when there are multiple of a same subfield
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: MARC Authority data support (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-02 15:52 UTC by Caroline Cyr La Rose
Modified: 2024-07-02 16:08 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:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Cyr La Rose 2024-07-02 15:52:22 UTC
Bug 22666 fixed the order of the subfields when using an authority record in a bibliographic record. There is a case when this still doesn't work: if the authority record has multiples of a subfield, but not together. Take the following authority

Music--Social aspects--Asia--History.

it goes $a $x $z $x (notice the two x separated by the z).

When this is copied in a bibliographic record, it is copied as 

Music -- Social aspects -- History -- Asia.

$a $x $x $z; the two x were brought together. 

To recreate:
1. Go to Authorities
2. Click on New authority > Topical term
3. Fill out the mandatory fields (000, 003, 005, 008, 040$a)
4. Click on tab 1
5. Click on 150 - HEADING - TOPICAL TERM
6. Fill out the field
   - a: Music
   - x: Social aspects
   - z: Asia
7. Click on the icon to double the x subfield
8. Type in History
9. Move the History subfield at the end, under Asia
10. Click Save
11. Go to Cataloging > New record
12. Click on tab 6
13. Click on the Tag editor icon next to 650$a
14. In "Search main heading:" type music social
15. Click Choose next to Music Social aspects Asia History
    --> It is copied in the bibliographic record as Music Social aspects **History Asia** (instead of Music Social aspects **Asia History**)