Bug 21677 - MARC detail view may show field header info erroneously
Summary: MARC detail view may show field header info erroneously
Status: RESOLVED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-26 08:00 UTC by paxed
Modified: 2023-10-08 00:44 UTC (History)
2 users (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 paxed 2018-10-26 08:00:50 UTC
If the fields in the marcxml are not in order, and LabelMARCView is set to compact, the MARC detail view can show the field headers multiple times.

To reproduce:

1) Turn on LabelMARCView
2) Turn on EnableAdvancedCatalogingEditor (Rancor allows entering fields in any order, unlike the old editor)
3) Catalogue a new record with the following fields in this order:

655 _ _ ‡afoo
100 _ _ ‡abar
655 _ _ ‡abaz
650 _ _ ‡aqwerty
655 _ _ ‡aqux
655 _ _ ‡aquux

4) Go to that record's MARC detail view. In the 6xx tab, you will see three separate entries for 655 fields:

655
    $a foo
655
    $a baz
655
    $a qux
    $a quux


How it should look:

655
    $a foo
    $a baz
    $a qux
    $a quux
Comment 1 paxed 2018-10-26 08:04:08 UTC
Whoops. Missed the 650 from the example...

4) Go to that record's MARC detail view. In the 6xx tab, you will see three separate entries for 655 fields:

655
    $a foo
655
    $a baz
650
    $a qwerty
655
    $a qux
    $a quux


How it should look:

650
    $a qwerty
655
    $a foo
    $a baz
    $a qux
    $a quux


... I'd argue the fields should be shown in numerical order...
Comment 2 Katrin Fischer 2019-02-10 11:32:25 UTC
I am not sure if that is always the wanted behavior (to sort and group them). I have learned that sequence in MARC can have a meaning and sometimes people reorder on purpose. Might need some of the MARC21 catalogers to weigh in.
Comment 3 Katrin Fischer 2019-02-10 11:37:50 UTC
see bug7882 comment 1
Comment 4 Katrin Fischer 2023-10-08 00:44:12 UTC
I feel the current display is correct, as it reflects the MARC record exactly. Any changes would likely cause more confusion than being of any help.