From 03e0a35ce08e4c97e8d28fb4e1924948f1abbd46 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Wed, 7 Aug 2019 10:57:01 +0200 Subject: [PATCH] Bug 23436: add a label for duplicate backend Reproduce issue: - Enable "EnableAdvancedCatalogingEditor" preference - Go to cataloguing and click on advanced editor - Click on the down arrow in "Save to catalog" menu - You should see an undefined named save backend Test patch: - Enable "EnableAdvancedCatalogingEditor" preference - Go to cataloguing and click on advanced editor to save preference to the cookie - Click on the down arrow in "Save to catalog" menu - You should see a "Duplicate" named backend Test Bug 16232 for no regression: - Search for a biblio in catalog - Click on edit => Edit as new (duplicate) - Advanced editor should appear. SUCCESS => browser url ends with #duplicate/{original biblionumber} => Title above toolbar is "Editing duplicate record of #{original biblionumber}" - Save SUCCESS => browser url ends with #catalog/{new biblionumber} => Title above toolbar is "Editing catalog record #{new biblionumber}" More test: - Search for a biblio in catalog - Click on "Edit record" - Advanced editor should appear - Click on the down arrow in "Save to catalog" menu and click on Duplicate, - Record should be saved as a new one (same behavior) --- koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc | 1 + 1 file changed, 1 insertion(+) 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 da2201c..78d1f50 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -243,6 +243,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr }, 'duplicate': { titleForRecord: _("Editing duplicate record of #{ID}"), + saveLabel: _("Duplicate"), get: function( id, callback ) { if ( !id ) return false; -- 2.7.4