Bug 41821

Summary: Cataloguing plugin for 007 changes defaults on Save
Product: Koha Reporter: Janet McGowan <janet.mcgowan>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: anneli.osterman, m.de.rooy, maura.stephens
Version: 25.11   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Janet McGowan 2026-02-11 14:54:59 UTC
Cataloguers have reported a problem with the marc21_field_007.pl plugin changing positional values that have previously been set in the plugin.

Example - in a bib record edit mode
- 007 set to Material Type Electronic resource
- set 007 position 01 to r- Remote
- set 007 position 09 File formats to a- One file format
- set 007 position 11 Antecedent/Source to c- File reproduced from an electronic resource
- set 007 position 13 Reformatting Quality to |-No attempt to code
- other positions are set to No attempt to code

Save the plugin. 

Result in the bib record = 
cr |||---a|c||

Save the bib record

Edit the bib record again. The 007 still shows as 
cr |||---a|c||

but if you edit using the 007 plugin again it changes the values:
10 Quality assurance target has changed to a- Absent
11 Antecedent/Source has changed to a- File reproduced from original
13 Reformatting Quality has changed to a- Access

If you don't realise the plugin has changed values and save the record it changes the values 
cr |||---aaa|a

I'm not a cataloguer so am not sure if there are any other fixed field dependencies that might be affecting this, but it looks like the plugin values aren't sticking.
Comment 1 Anneli Österman 2026-02-12 08:17:26 UTC
I can confirm that this happens in main (in a sandbox). You do not have to save the bibliographic record, just click again the Tag editor of field 007.

In version 25.05 the behaviour is more erratic. Depending on the previous choices they will change or will not change after clicking the tag editor again.

For example, if you have 

cr ||||||||c|| it will be changed to cr ||||||||||a

But if you click again after this change, it will change to cr |||||||||||


cr ||||||m||b| changes to cr ||||||||m||

cr ||||||||m|| changes to cr ||||||||||a

and so on..