Bugzilla – Attachment 194538 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: Update change framework and new record dropdowns
Bug-32773-Update-change-framework-and-new-record-d.patch (text/plain), 6.44 KB, created by
ByWater Sandboxes
on 2026-03-05 17:11:22 UTC
(
hide
)
Description:
Bug 32773: Update change framework and new record dropdowns
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2026-03-05 17:11:22 UTC
Size:
6.44 KB
patch
obsolete
>From 94a5e22fce1b96e2e7919120bd0373eb66878e57 Mon Sep 17 00:00:00 2001 >From: Brendan Lawlor <blawlor@clamsnet.org> >Date: Thu, 31 Oct 2024 18:35:56 +0000 >Subject: [PATCH] Bug 32773: Update change framework and new record dropdowns > >Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> >Signed-off-by: Miranda Nero <mnero@oslri.net> >--- > .../prog/en/modules/cataloguing/addbiblio.tt | 28 ++++++++++--------- > .../en/modules/cataloguing/cataloging-home.tt | 12 ++++++-- > 2 files changed, 25 insertions(+), 15 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >index 809cc3abfa..7ef9a206c2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >@@ -953,18 +953,7 @@ > <a class="dropdown-item" href="#" id="marcTagsSelect"><i class="fa fa-check-square"></i> Show tags</a> > </li> > [% END %] >- <li><h6 class="dropdown-header">Change framework</h6></li> >- <li> >- <a class="dropdown-item change-framework" href="#" data-frameworkcode=""> >- [% IF ( frameworkcode ) %] >- <i class="fa fa-fw"> </i> >- [% ELSE %] >- <i class="fa fa-fw fa-check"></i> >- [% END %] >- Default >- </a> >- </li> >- [% FOREACH framework IN frameworks%] >+ [% BLOCK framework_link %] > <li> > <a class="dropdown-item change-framework" href="#" data-frameworkcode="[% framework.frameworkcode | html %]"> > [% IF framework.frameworkcode == frameworkcode %] >@@ -972,10 +961,23 @@ > [% ELSE %] > <i class="fa fa-fw"> </i> > [% END %] >- [% framework.frameworktext | html %] >+ [% !framework ? 'Default' : framework.frameworktext | html %] > </a> > </li> > [% END %] >+ [% IF CAN_user_editcatalogue_edit_catalogue %] >+ <li><h6 class="dropdown-header">Change framework</h6></li> >+ [% FOREACH framework IN frameworks %] >+ [% IF loop.first %][% INCLUDE framework_link framework='' %][% END %] >+ [% IF !framework.is_fast_add %][% INCLUDE framework_link %][% END %] >+ [% END %] >+ [% END %] >+ [% IF CAN_user_editcatalogue_fast_cataloging %] >+ <li><h6 class="dropdown-header">Change Fast Add framework</h6></li> >+ [% FOREACH framework IN frameworks %] >+ [% IF framework.is_fast_add %][% INCLUDE framework_link %][% END %] >+ [% END %] >+ [% END %] > </ul> <!-- /#settings-menu --> > </div> <!-- /.btn-group --> > [% UNLESS (circborrowernumber) %][%# Hide in fast cataloging %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt >index 15cdf690cd..e4e0364518 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt >@@ -39,7 +39,11 @@ > <ul class="dropdown-menu dropdown-menu-end"> > <li><a class="dropdown-item" id="newRecordDefault" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li> > [% FOREACH framework IN frameworks %] >- <li><a class="dropdown-item" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li> >+ [% IF !framework.is_fast_add %]<li><a class="dropdown-item" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li>[% END %] >+ [% END %] >+ [% FOREACH framework IN frameworks %] >+ [% IF loop.first %]<li><h6 class="dropdown-header">Fast add frameworks</h6></li>[% END %] >+ [% IF framework.is_fast_add %]<li><a class="dropdown-item" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li>[% END %] > [% END %] > </ul> > </div> >@@ -50,7 +54,11 @@ > <ul class="dropdown-menu dropdown-menu-end"> > <li id="Default" class="z3950searchFw"><a class="dropdown-item" href="#">Default framework</a></li> > [% FOREACH framework IN frameworks %] >- <li id="[% framework.frameworkcode | html %]" class="z3950searchFw"><a class="dropdown-item" href="#">[% framework.frameworktext | html %]</a></li> >+ [% IF !framework.is_fast_add %]<li id="[% framework.frameworkcode | html %]" class="z3950searchFw"><a class="dropdown-item" href="#">[% framework.frameworktext | html %]</a></li>[% END %] >+ [% END %] >+ [% FOREACH framework IN frameworks %] >+ [% IF loop.first %]<li><h6 class="dropdown-header">Fast add frameworks</h6></li>[% END %] >+ [% IF framework.is_fast_add %]<li id="[% framework.frameworkcode | html %]" class="z3950searchFw"><a class="dropdown-item" href="#">[% framework.frameworktext | html %]</a></li>[% END %] > [% END %] > </ul> > </div> >-- >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
|
176927
|
176928
|
176929
|
176930
|
176931
|
176932
|
176933
|
176934
|
176935
|
177860
|
177861
|
177862
|
177863
|
177864
|
177865
|
177866
|
177867
|
186210
|
186211
|
186212
|
186213
|
186214
|
186215
|
186216
|
186217
|
186218
|
186219
|
186220
|
186221
|
186222
|
186223
|
186224
|
186225
|
186226
|
186227
|
187051
|
187052
|
187053
|
187054
|
187055
|
187056
|
187057
|
187058
|
187059
|
192066
|
192067
|
192068
|
192069
|
192070
|
192071
|
192072
|
192073
|
192120
|
194535
|
194536
|
194537
| 194538 |
194539
|
194540
|
194541
|
194542