| Summary: | When AutoControlNumber is activated not show 001 in Advanced Editor | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Pablo López Liotti <paliotti> |
| Component: | Cataloging | Assignee: | Bugs List <koha-bugs> |
| Status: | Signed Off --- | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | anneli.osterman, m.de.rooy, sivullinen+koheltaja, stalkernoid |
| Version: | 24.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: | |||
| Attachments: |
Bug 40584: show 001 in Advanced Editor and preserve its existing value instead of overwriting it
Bug 40584: show 001 in Advanced Editor and preserve its existing value instead of overwriting it Bug 40584: show 001 in Advanced Editor and preserve its existing value instead of overwriting it |
||
|
Description
Pablo López Liotti
2025-08-02 14:42:20 UTC
This is bad. Not only does the Advanced Editor hide the 001 field, but it also silently overwrites it, if it existed before. The documentation for autoControlNumber ( https://koha-community.org/manual/24.11/en/html/catalogingpreferences.html#autocontrolnumber ) says: “This will not affect existing records that already have a value in 001. The existing value will be preserved.” Created attachment 186333 [details] [review] Bug 40584: show 001 in Advanced Editor and preserve its existing value instead of overwriting it This patch makes the 001 field visible when editing a record in the advanced editor and fixes a bug where, if the syspref autoControlNumber was set to "generated as biblionumber." editing a record through the advanced editor would overwrite the existing 001 value. 1. Create a new record with a custom "001 Control Number" MARC field, don't use biblionumber as control number. 2. In the system preferences set EnableAdvancedCatalogingEditor to "enable" and autoControlNumber to "generated as biblionumber" 3. Edit record, switch to advanced editor either through option in the "Settings" dropdown menu or switch on top right of the page. 4. In the advanced editor see that it doesn't show 001 field, no need to change anything just use the save button to save the record. 5. On the record page see MARC preview, it's gonna be overwritten by the value of biblionumber. 6. With basic editor change the 001 field to your old custom value. 7. Apply the patch. 8. Use the advanced editor again, 001 field should be visible now. 9. Use the save button to save the record. Make sure that your custom value is still there by using MARC preview on records page. Created attachment 186334 [details] [review] Bug 40584: show 001 in Advanced Editor and preserve its existing value instead of overwriting it This patch makes the 001 field visible when editing a record in the advanced editor and fixes a bug where, if the syspref autoControlNumber was set to "generated as biblionumber," editing a record through the advanced editor would overwrite the existing 001 value. 1. Create a new record with a custom "001 Control Number" MARC field, don't use biblionumber as control number. 2. In the system preferences set EnableAdvancedCatalogingEditor to "enable" and autoControlNumber to "generated as biblionumber" 3. Edit record, switch to advanced editor either through option in the "Settings" dropdown menu or switch on top right of the page. 4. In the advanced editor see that it doesn't show 001 field, no need to change anything just use the save button to save the record. 5. On the record page see MARC preview, it's gonna be overwritten by the value of biblionumber. 6. With basic editor change the 001 field to your old custom value. 7. Apply the patch. 8. Use the advanced editor again, 001 field should be visible now. 9. Use the save button to save the record. Make sure that your custom value is still there by using MARC preview on records page. Created attachment 187188 [details] [review] Bug 40584: show 001 in Advanced Editor and preserve its existing value instead of overwriting it This patch makes the 001 field visible when editing a record in the advanced editor and fixes a bug where, if the syspref autoControlNumber was set to "generated as biblionumber," editing a record through the advanced editor would overwrite the existing 001 value. 1. Create a new record with a custom "001 Control Number" MARC field, don't use biblionumber as control number. 2. In the system preferences set EnableAdvancedCatalogingEditor to "enable" and autoControlNumber to "generated as biblionumber" 3. Edit record, switch to advanced editor either through option in the "Settings" dropdown menu or switch on top right of the page. 4. In the advanced editor see that it doesn't show 001 field, no need to change anything just use the save button to save the record. 5. On the record page see MARC preview, it's gonna be overwritten by the value of biblionumber. 6. With basic editor change the 001 field to your old custom value. 7. Apply the patch. 8. Use the advanced editor again, 001 field should be visible now. 9. Use the save button to save the record. Make sure that your custom value is still there by using MARC preview on records page. Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> |