Bugzilla – Attachment 173955 Details for
Bug 32773
Have the ability to have more than 1 Fast Add framework
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32773: Add ability to set biblio_framework.is_fast_add
Bug-32773-Add-ability-to-set-biblioframeworkisfast.patch (text/plain), 3.40 KB, created by
Brendan Lawlor
on 2024-11-05 00:57:23 UTC
(
hide
)
Description:
Bug 32773: Add ability to set biblio_framework.is_fast_add
Filename:
MIME Type:
Creator:
Brendan Lawlor
Created:
2024-11-05 00:57:23 UTC
Size:
3.40 KB
patch
obsolete
>From fbff54fc11c189f1a5c31b5f5822e0c8667eb54f Mon Sep 17 00:00:00 2001 >From: Brendan Lawlor <blawlor@clamsnet.org> >Date: Wed, 30 Oct 2024 02:15:32 +0000 >Subject: [PATCH] Bug 32773: Add ability to set biblio_framework.is_fast_add > >--- > admin/biblio_framework.pl | 3 +++ > .../prog/en/modules/admin/biblio_framework.tt | 17 ++++++++++++++++- > 2 files changed, 19 insertions(+), 1 deletion(-) > >diff --git a/admin/biblio_framework.pl b/admin/biblio_framework.pl >index a6f0e10050..3ed5cf29b0 100755 >--- a/admin/biblio_framework.pl >+++ b/admin/biblio_framework.pl >@@ -53,10 +53,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' }; >@@ -67,6 +69,7 @@ if ( $op eq 'add_form' ) { > my $framework = Koha::BiblioFramework->new( > { frameworkcode => $frameworkcode, > frameworktext => $frameworktext, >+ is_fast_add => $is_fast_add, > } > ); > eval { $framework->store; }; >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 7e471c48c6..d0c760f65e 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 >@@ -137,6 +137,16 @@ > <input type="text" name="frameworktext" id="description" size="40" maxlength="80" value="[% framework.frameworktext | html %]" required="required" class="required" /> > <span class="required">Required</span> > </li> >+ <li> >+ <label for="is_fast_add">Use as a Fast Add framework: </label> >+ [% IF framework.frameworkcode == 'FA' %] >+ <input type="checkbox" name="is_fast_add" id="is_fast_add" value="1" checked disabled/> >+ [% ELSIF framework.is_fast_add %] >+ <input type="checkbox" name="is_fast_add" id="is_fast_add" value="1" checked/> >+ [% ELSE %] >+ <input type="checkbox" name="is_fast_add" id="is_fast_add" value="1"/> >+ [% END %] >+ </li> > </ol> > </fieldset> > <fieldset class="action"> >@@ -252,7 +262,12 @@ > [% FOREACH loo IN frameworks %] > <tr> > <td>[% loo.frameworkcode | html %]</td> >- <td>[% loo.frameworktext | html %]</td> >+ <td> >+ [% loo.frameworktext | html %] >+ [% IF loo.is_fast_add %] >+ <span class="badge rounded-pill bg-secondary float-end">Fast Add</span> >+ [% END %] >+ </td> > <td> > <div class="btn-group dropup"> > <a class="btn btn-default btn-xs dropdown-toggle" id="frameworkactions[% loo.frameworkcode | html %]" role="button" data-bs-toggle="dropdown" href="#"> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32773
:
173401
|
173417
|
173878
|
173879
|
173880
|
173881
|
173882
|
173883
|
173954
|
173955
|
173956
|
173957
|
173958
|
173959
|
173960
|
173961
|
174028
|
174029
|
174030
|
174031
|
174032
|
174033
|
174034
|
174035