Bug 19263: Rancor - 001 widget - changes to address QA issues
Changes were made to address QA issues from Comment 17 Tests: 1) Verify that a new entry for CONTROL_NUM_SEQUENCE is added to table authorised_value_categories 2) Edit a bib record using advanced editor and note that the 001 widget isn't there when adding/editing 001 field 3) Add a new row into authorised_values table with: a) CONTROL_NUM_SEQUENCE in category column b) authorised_value column has a string ending with a number i.e. sprLib0001 c) lib column has a short string indicating the type of control number i.e. "Springfield Library" 4) Edit a bib record using the advanced editor and note that the 001 widget is there when adding / editing 001 field Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
6f8fe7e22a
commit
4a70f3a1ca
2 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ INSERT IGNORE INTO authorised_value_categories( category_name )
|
|||
('HINGS_C'),
|
||||
('HINGS_AS'),
|
||||
('HINGS_RD'),
|
||||
('STACK')
|
||||
('STACK'),
|
||||
('CONTROL_NUM_SEQUENCE');
|
||||
|
||||
-- UNIMARC specific?
|
||||
|
|
|
@ -128,7 +128,7 @@ require( [ 'koha-backend', 'widget' ], function( KohaBackend, Widget ) {
|
|||
+ '<span class="control-number-widget-contents"></span>'
|
||||
+ '<button class="control-number-widget-assign">' + _("Assign next") + '</button>'
|
||||
+ '<select class="control-number-widget-sequence"></select>'
|
||||
+ '<button class="control-number-widget-override">Override</button>'
|
||||
+ '<button class="control-number-widget-override">' + _("Override") + '</button>'
|
||||
+ '</span>'
|
||||
);
|
||||
|
||||
|
@ -158,7 +158,7 @@ require( [ 'koha-backend', 'widget' ], function( KohaBackend, Widget ) {
|
|||
if ( result ) widget.setControlNumber( result );
|
||||
} ).end();
|
||||
|
||||
var sequence_list = $.map( KohaBackend.GetAuthorisedValues( 'CONTROL_NUM_SEQUENCE' ), function( authval ) {
|
||||
var sequence_list = $.map( reg001 , function( authval ) {
|
||||
return authval.lib;
|
||||
} );
|
||||
sequence_list.sort();
|
||||
|
|
Loading…
Reference in a new issue