Bug 35486 - When editing an authority show all subfields of the heading field
Summary: When editing an authority show all subfields of the heading field
Status: In Discussion
Alias: None
Product: Koha
Classification: Unclassified
Component: MARC Authority data support (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Fridolin Somers
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-05 07:03 UTC by Fridolin Somers
Modified: 2023-12-23 13:41 UTC (History)
2 users (show)

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


Attachments
Bug 35486: When editing an authority show all subfields of the heading field (5.69 KB, patch)
2023-12-05 07:35 UTC, Fridolin Somers
Details | Diff | Splinter Review
Bug 35486: When editing an authority show all subfields of the heading field (5.76 KB, patch)
2023-12-14 13:24 UTC, PTFS Europe Sandboxes
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin Somers 2023-12-05 07:03:52 UTC
Currently when creating/editing and authority, only mandatory fields are shown.
This patch changes to show all subfields for the heading tag.
For example in UNIMARC authorities NP show subfields of 200 : $a surname, $b firstname ...
Comment 1 Fridolin Somers 2023-12-05 07:29:09 UTC
For example in MARC21 authorities Personal Name show subfields of 100
Comment 2 Fridolin Somers 2023-12-05 07:35:21 UTC
Created attachment 159576 [details] [review]
Bug 35486: When editing an authority show all subfields of the heading field

Currently when creating/editing and authority, only mandatory fields are shown.
This patch changes to show all subfields for the heading tag.
For example in UNIMARC authorities NP show subfields of 200 : $a surname, $b firstname ...
For example in MARC21 authorities Personal Name show subfields of 100

This will make cataloguing easier since heading subfields are usually filled.

Test plan :
1) Use MARC21 database
2) Create a new authority type 'Personal Name'
3) In section 0 you see for example field 40 showing only mandatory
   subfield $a
4) Go to section 1
5) You see all subfields of field 100 because it is the heading
Comment 3 Owen Leonard 2023-12-06 13:37:21 UTC
Is this a functional gap in the options we have for editing authority frameworks?

Shouldn't we enable the option of making subfields visible or not in authority frameworks instead of hard-coding the choice?
Comment 4 Fridolin Somers 2023-12-07 07:09:58 UTC
(In reply to Owen Leonard from comment #3)
> Is this a functional gap in the options we have for editing authority
> frameworks?
Sort of

> 
> Shouldn't we enable the option of making subfields visible or not in
> authority frameworks instead of hard-coding the choice?

Indeed
But this may be more work
Comment 5 Katrin Fischer 2023-12-07 09:15:36 UTC
I think the right fix here is to make the "collapsable" option available in the fameworks configuration so it matches up with the bibliographic frameworks.

As the headings have many subfields a library might almost never use, showing them all by default might just give us the next bug report. The library should be able to control what is immediately visible and what is visible after clicking on the tag.
Comment 6 Barbara Petritsch 2023-12-14 11:29:23 UTC
Patch works but I agree with Katrin and maybe there is a middle way so that some fields which are important are shown.
Comment 7 PTFS Europe Sandboxes 2023-12-14 13:24:03 UTC
Created attachment 159834 [details] [review]
Bug 35486: When editing an authority show all subfields of the heading field

Currently when creating/editing and authority, only mandatory fields are shown.
This patch changes to show all subfields for the heading tag.
For example in UNIMARC authorities NP show subfields of 200 : $a surname, $b firstname ...
For example in MARC21 authorities Personal Name show subfields of 100

This will make cataloguing easier since heading subfields are usually filled.

Test plan :
1) Use MARC21 database
2) Create a new authority type 'Personal Name'
3) In section 0 you see for example field 40 showing only mandatory
   subfield $a
4) Go to section 1
5) You see all subfields of field 100 because it is the heading

Signed-off-by: Barbara Petritsch <barbara.petritsch@wienmuseum.at>