Bugzilla – Attachment 187188 Details for
Bug 40584
When AutoControlNumber is activated not show 001 in Advanced Editor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
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.patch (text/plain), 2.55 KB, created by
OpenFifth Sandboxes
on 2025-10-01 12:52:10 UTC
(
hide
)
Description:
Bug 40584: show 001 in Advanced Editor and preserve its existing value instead of overwriting it
Filename:
MIME Type:
Creator:
OpenFifth Sandboxes
Created:
2025-10-01 12:52:10 UTC
Size:
2.55 KB
patch
obsolete
>From b5323ca9a1e1c7c2065d341188c206252d665aa2 Mon Sep 17 00:00:00 2001 >From: Petro Vashchuk <stalkernoid@gmail.com> >Date: Wed, 10 Sep 2025 18:37:08 +0300 >Subject: [PATCH] Bug 40584: show 001 in Advanced Editor and preserve its > existing value instead of overwriting it >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc >index 3ba6d17293..1d0891c185 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc >@@ -410,7 +410,7 @@ > > backends[ parts[0] ].get( parts[1], function( record ) { > if ( !record.error ) { >- var remove_control_num = [% IF Koha.Preference('autoControlNumber') == 'OFF' %] false [% ELSE %] true [% END %]; >+ var remove_control_num = ([% IF Koha.Preference('autoControlNumber') == 'OFF' %] false [% ELSE %] true [% END %]) && (parts[0] === 'duplicate'); > if( remove_control_num ){ record.removeField("001"); } > if( parts[0] === 'duplicate' ) { > let today = new Date(); >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40584
:
186333
|
186334
| 187188