From d320ce6fc4ba9144c529ff2da102f552a0b8274d Mon Sep 17 00:00:00 2001 From: Brendan Lawlor Date: Wed, 30 Oct 2024 02:15:32 +0000 Subject: [PATCH] Bug 32773: Add ability to set biblio_framework.is_fast_add Signed-off-by: Andrew Fuerste Henry --- admin/biblio_framework.pl | 4 +++- .../prog/en/modules/admin/biblio_framework.tt | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/admin/biblio_framework.pl b/admin/biblio_framework.pl index ecad5c2bb2..665f2726e5 100755 --- a/admin/biblio_framework.pl +++ b/admin/biblio_framework.pl @@ -54,10 +54,12 @@ if ( $op eq 'add_form' ) { my $frameworkcode = $input->param('frameworkcode'); my $frameworktext = $input->param('frameworktext'); my $is_a_modif = $input->param('is_a_modif'); + my $is_fast_add = $input->param('is_fast_add') // 0; if ($is_a_modif) { my $framework = Koha::BiblioFrameworks->find($frameworkcode); $framework->frameworktext($frameworktext); + $framework->is_fast_add($is_fast_add); eval { $framework->store; }; if ($@) { push @messages, { type => 'error', code => 'error_on_update' }; @@ -69,6 +71,7 @@ if ( $op eq 'add_form' ) { { frameworkcode => $frameworkcode, frameworktext => $frameworktext, + is_fast_add => $is_fast_add, } ); eval { $framework->store; }; @@ -127,4 +130,3 @@ $template->param( ); output_html_with_http_headers $input, $cookie, $template->output; - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt index b4a85fe021..4b6b517d80 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt @@ -135,6 +135,14 @@ Required +
  • + + [% IF framework.is_fast_add %] + + [% ELSE %] + + [% END %] +
  • @@ -292,7 +300,12 @@ [% FOREACH loo IN frameworks %] [% loo.frameworkcode | html %] - [% loo.frameworktext | html %] + + [% loo.frameworktext | html %] + [% IF loo.is_fast_add %] + Fast add + [% END %] +
    Actions -- 2.39.5