From 67b02f05351f7493bf693c6a90dcf079adff544c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 8 Jun 2020 16:00:48 +0200 Subject: [PATCH] Bug 25728: Create AV when adding a new item We do a bit of refactoring to make the code reusable. Test plan: Same as the first patch but when adding/editing an item QA note: There is a warning from the QA tools FAIL koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt FAIL js_in_body A [% Asset.js("js/cataloging.js") | $raw %] [% INCLUDE 'strings.inc' %] [% Asset.js("js/browser.js") | $raw %] @@ -477,75 +480,6 @@ [% Asset.css("css/addbiblio.css") | $raw %] [% INCLUDE 'select2.inc' %] - - @@ -955,47 +889,7 @@ [%# End of fields for fast cataloging %] - + [% INCLUDE 'modals/cataloguing_create_av.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 463edf4e08..e82b5c9262 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -7,6 +7,9 @@ [% INCLUDE 'doc-head-close.inc' %] [% Asset.css("css/addbiblio.css") | $raw %] [% INCLUDE 'datatables.inc' %] + [% Asset.js("js/cataloging.js") | $raw %] [% INCLUDE 'columns_settings.inc' %] [% INCLUDE 'strings.inc' %] @@ -150,7 +153,7 @@ [% IF ( mv.readonly ) %] +