From ab994986e5448c616c53ef64c1346c2e07a30f27 Mon Sep 17 00:00:00 2001 From: Cori Lynn Arnold Date: Mon, 8 Oct 2018 20:47:04 +0000 Subject: [PATCH] Bug 19263: Rancor - Add auto control number (001) widget 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) Edit a record using advanced editor and note that widget does NOT show for 001 field 3) Enter a new value for authorised_values table with: CONTROL_NUM_SEQUENCE in category column authorised_value column has string ending with a number lib column has a short string indicating type of control seq ("FAW") 4) Edit a record using advanced editor and note that the widget does show for 001 field Change inclues database update for new installations. --- .../intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc index 8ce82b0..970f58e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc @@ -113,9 +113,9 @@ require( [ 'koha-backend', 'widget' ], function( KohaBackend, Widget ) { }, } ); - /* Check to see if there are any Control Number entries - * in the authorised values table. - * If not, let's not show the widget + /* Check to see if there are any Control Number entries + * in the authorised values table. + * If not, let's not show the widget */ var reg001 = KohaBackend.GetAuthorisedValues( 'CONTROL_NUM_SEQUENCE'); if(reg001) { -- 2.1.4