From e21706bfe46ce8fd2932fce40a3f2f79244a69f2 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 %] @@ -483,75 +486,6 @@ [% Asset.css("css/addbiblio.css") | $raw %] [% INCLUDE 'select2.inc' %] - - @@ -961,47 +895,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 2d64bef70f..53ab1c45b8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -8,6 +8,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' %] @@ -160,7 +163,7 @@ [% IF ( mv.readonly ) %] +