Bugzilla – Attachment 184515 Details for
Bug 16631
Show groups/categories of reports to authorized staff
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Bug 16631: 0008-Populate-Library-limitations-selection-with-librarie
0008-Populate-Library-limitations-selection-with-librarie.patch (text/plain), 3.61 KB, created by
Casey Conlin
on 2025-07-22 22:02:48 UTC
(
hide
)
Description:
Bug 16631: 0008-Populate-Library-limitations-selection-with-librarie
Filename:
MIME Type:
Creator:
Casey Conlin
Created:
2025-07-22 22:02:48 UTC
Size:
3.61 KB
patch
obsolete
>From 93b82e5c629c7a2eee4bdaf5fc18070390cb2300 Mon Sep 17 00:00:00 2001 >From: "Cameron E. Tidd" <ctidd@citlink.net> >Date: Sat, 12 Jul 2025 16:11:45 +0000 >Subject: [PATCH 08/16] Populate Library limitations selection with libraries > >--- > .../en/modules/reports/guided_reports_start.tt | 17 ++++++++++++++++- > reports/guided_reports.pl | 13 +++++++++++++ > 2 files changed, 29 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >index b6aa9bc032..56989e0106 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >@@ -1553,7 +1553,22 @@ > <legend>Library limitation:</legend> > <div > ><label for="library_limitation">Library limitation: </label> >- <select id="library_limitation" name="branches" multiple size="10"> >+ [% IF branches_loop.size %] >+ <span class="label"> </span> >+ <div> >+ <select id="library_limitation" name="branches" multiple size="10"> >+ <option value="">(no library)</option> >+ [% FOREACH branch IN branches_loop %] >+ [% IF ( basketbranchcode == branch.branchcode ) %] >+ <option selected="selected" value="[% branch.branchcode | html %]"> [% branch.branchname | html %]</option> >+ [% ELSE %] >+ <option value="[% branch.branchcode | html %]"> [% branch.branchname | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ </div> >+ <!-- #/managing_library_entry --> >+ [% END # /IF branches_loop.size %] > [% PROCESS options_for_libraries libraries => Branches.all( selected => savedreport.savedsql.get_library_limits, unfiltered => 1, do_not_select_my_library => 1 ) %] > </select> > <div class="hint">Limits the use of this report to the selected libraries.</div> >diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl >index 71a5eaf6f5..fbd2d105df 100755 >--- a/reports/guided_reports.pl >+++ b/reports/guided_reports.pl >@@ -90,6 +90,19 @@ $template->param( templates => Koha::Notice::Templates->search( { module => 'rep > #my $cool_filtered_reports = $report_module->search_with_library_limits({}, {}, 'FFL'); > #$template->param( templates => $cool_filtered_reports); > >+my $branches = >+ Koha::Libraries->search( {}, { order_by => ['branchname'] } )->unblessed; >+my @branches_loop; >+foreach my $branch (@$branches) { >+ push @branches_loop, >+ { >+ branchcode => $branch->{branchcode}, >+ branchname => $branch->{branchname} >+ }; >+} >+ >+$template->param( 'branches_loop', \@branches_loop ); >+ > my $filter; > if ( $input->param("filter_set") or $input->param('clear_filters') ) { > $filter = {}; >-- >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 Raw
Actions:
View
Attachments on
bug 16631
:
184422
|
184508
|
184509
|
184510
|
184511
|
184512
|
184513
|
184514
|
184515
|
184516
|
184517
|
184518
|
184519
|
184520
|
184521
|
184522
|
184525
|
184526
|
184657
|
184674
|
184686
|
184687
|
184688
|
184689
|
184690
|
184691
|
184692
|
184693
|
184694
|
184695
|
184845
|
184846
|
184847
|
184848
|
184859
|
184861