@@ -, +, @@ (001) widget In advanced editor mode for cataloging, the 001 widget will automatically assign the next control number if a format is defined in authorised_values table. To test you need access to the database. 1) Verify that a new entry for CONTROL_NUM_SEQUENCE is added to table authorised_value_categories 2) Enter a new value for authorised_values with the authorised_value column ending in a number 3) Edit a record using the advanced editor, specifically the 001 field 4) Note the new widget and option to increment or assign manually. The buttons fit within the widget now, and there's a database update to create the CONTROL_NUM_SEQUENCE. --- installer/data/mysql/atomicupdate/bug_19263.perl | 10 ++++++++++ koha-tmpl/intranet-tmpl/prog/css/cateditor.css | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_19263.perl --- a/installer/data/mysql/atomicupdate/bug_19263.perl +++ a/installer/data/mysql/atomicupdate/bug_19263.perl @@ -0,0 +1,10 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + # insert the authorized_value_category for CONTROL_NUM_SEQUENCE + $dbh->do( "INSERT IGNORE INTO authorised_value_categories values ('CONTROL_NUM_SEQUENCE');" ); + + + # Always end with this (adjust the bug info) + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 19263 - Advanced Editor - Rancor - Add auto control number (001) widget)\n"; +} --- a/koha-tmpl/intranet-tmpl/prog/css/cateditor.css +++ a/koha-tmpl/intranet-tmpl/prog/css/cateditor.css @@ -137,6 +137,8 @@ body { #editor .subfield-widget button { font-family: inherit; font-size: inherit; + height: 1.5em; + line-height: 1em; margin-left: 5px; vertical-align: middle; } --