Bugzilla – Attachment 138769 Details for
Bug 23111
Setting a custom framework as the default for cataloguing is not possible
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23111: (follow-up) Add a column to show default framework
Bug-23111-follow-up-Add-a-column-to-show-default-f.patch (text/plain), 3.31 KB, created by
Aleisha Amohia
on 2022-08-08 03:55:11 UTC
(
hide
)
Description:
Bug 23111: (follow-up) Add a column to show default framework
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2022-08-08 03:55:11 UTC
Size:
3.31 KB
patch
obsolete
>From 845991b6c042eee5d2cfba1187a1431845b42837 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Sat, 24 Oct 2020 14:56:13 +1300 >Subject: [PATCH] Bug 23111: (follow-up) Add a column to show default framework > >--- > admin/biblio_framework.pl | 8 +++++++- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt | 4 ++++ > 2 files changed, 11 insertions(+), 1 deletion(-) > >diff --git a/admin/biblio_framework.pl b/admin/biblio_framework.pl >index 16d49fb9f10..3d05196b87f 100755 >--- a/admin/biblio_framework.pl >+++ b/admin/biblio_framework.pl >@@ -121,12 +121,18 @@ if ( $op eq 'add_form' ) { > > if ( $op eq 'list' ) { > my $frameworks = Koha::BiblioFrameworks->search( {}, { order_by => ['frameworktext'], } ); >- $template->param( frameworks => $frameworks, ); >+ my $default_framework = Koha::BiblioFrameworks->get_default; >+ $template->param( >+ frameworks => $frameworks, >+ default_framework => ( $default_framework && $default_framework->frameworkcode ne '' ) ? $default_framework->frameworkcode : '', >+ ); > } > >+my $default_framework = Koha::BiblioFrameworks->get_default; > $template->param( > messages => \@messages, > op => $op, >+ default_framework => ( $default_framework && $default_framework->frameworkcode ne '' ) ? $default_framework->frameworkcode : '', > ); > > 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 bb928f9bd53..4263bfa8ef9 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 >@@ -133,6 +133,7 @@ MARC frameworks › Administration › Koha > [% ELSE %] > <input type="checkbox" name="is_default" id="is_default" value="1"> > [% END %] >+ <span class="hint">Unset to revert default framework to Default</span> > </li> > </ol> > </fieldset> >@@ -173,6 +174,7 @@ MARC frameworks › Administration › Koha > <tr> > <th>Code</th> > <th>Description</th> >+ <th class="is_default">Is default?</th> > <th> </th> > </tr> > </thead> >@@ -180,6 +182,7 @@ MARC frameworks › Administration › Koha > <tr> > <td> </td> > <td>Default framework</td> >+ <td class="is_default">[% IF default_framework == '' %]Yes[% ELSE %]No[% 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-toggle="dropdown" href="#"> >@@ -248,6 +251,7 @@ MARC frameworks › Administration › Koha > <tr> > <td>[% loo.frameworkcode | html %]</td> > <td>[% loo.frameworktext | html %]</td> >+ <td class="is_default">[% IF loo.is_default %]Yes[% ELSE %]No[% 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-toggle="dropdown" href="#"> >-- >2.11.0
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 23111
:
90550
|
90587
|
90588
|
91039
|
91040
|
91791
|
92184
|
102602
|
102603
|
104058
|
104059
|
104060
|
104061
|
104062
|
106560
|
112354
|
112468
|
138766
|
138767
|
138768
|
138769
|
138770
|
141565
|
141566
|
141567
|
141568
|
141569
|
157717
|
157718
|
157719
|
157720
|
157721
|
157722
|
157723