From d227d5fda5bd17ee0b8654b863b2803616409804 Mon Sep 17 00:00:00 2001 From: Cori Lynn Arnold Date: Mon, 8 Oct 2018 16:10:16 +0000 Subject: [PATCH] Bug 19263: Advanced Editor - Rancor - Add auto control number (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. Signed-off-by: Nick Clemens --- 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 diff --git a/installer/data/mysql/atomicupdate/bug_19263.perl b/installer/data/mysql/atomicupdate/bug_19263.perl new file mode 100644 index 0000000..556e665 --- /dev/null +++ b/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"; +} diff --git a/koha-tmpl/intranet-tmpl/prog/css/cateditor.css b/koha-tmpl/intranet-tmpl/prog/css/cateditor.css index 7fc4119..989e8dd 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/cateditor.css +++ b/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; } -- 2.1.4