Bugzilla – Attachment 127116 Details for
Bug 29351
Add missing cn_source parameter to reports parameter menu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29351: Add missing cn_source parameter to reports parameter menu
Bug-29351-Add-missing-cnsource-parameter-to-report.patch (text/plain), 3.06 KB, created by
Katrin Fischer
on 2021-10-31 00:20:57 UTC
(
hide
)
Description:
Bug 29351: Add missing cn_source parameter to reports parameter menu
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-10-31 00:20:57 UTC
Size:
3.06 KB
patch
obsolete
>From 5b8a23dcafd0f51481135438d7f966f83b56c7c6 Mon Sep 17 00:00:00 2001 >From: Owen <oleonard@myacpl.org> >Date: Thu, 28 Oct 2021 14:15:12 +0000 >Subject: [PATCH] Bug 29351: Add missing cn_source parameter to reports > parameter menu > >This patch adds an option to insert "Source of classification or >shelving scheme" as a runtime parameter in SQL reports. The ability to >use cn_source as a parameter seems to have always been part of this >feature but wasn't documented. > >To test, apply the patch and go to Reports -> Create from SQL. > > - Click the "Insert runtime parameter" button and select > "Classification source." > - Customize the parameter label if you wish and click "Insert > parameter." > - The parameter should be inserted like this: > > <<Source of classification or shelving scheme|cn_source>> > > - Use it to create a valid SQL report, for example: > > SELECT * FROM items WHERE cn_source = <<Source of classification or > shelving scheme|cn_source>> LIMIT 10 > > - Confirm that upon running the report you are prompted to select a > classification source. > - Confirm that the report runs correctly. > >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt | 8 +++++++- > 1 file changed, 7 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 8b1ed4f447..4a4d5de9e3 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 >@@ -1531,6 +1531,11 @@ > $("label[for='authorised_value']").addClass("required"); > $("#authorised_value").prop("required", true ).attr("required", "required").addClass("required"); > break; >+ case "insertCnSource": >+ modalTitle.text( _("Insert classification source parameter") ); >+ $("#paramLabel").val( _("Source of classification or shelving scheme") ); >+ $("#param_category").val("cn_source"); >+ break; > case "insertDate": > modalTitle.text( _("Insert date parameter") ); > $("#paramLabel").val( _("Date") ); >@@ -2278,7 +2283,8 @@ > Insert runtime parameter <span class="caret"></span> > </button> > <ul class="dropdown-menu"> >- <li><a href="#" class="insertParam" id="insertAuthVal">Authorized value</a></li> >+ <li><a href="#" class="insertParam" id="insertAuthVal">Authorized values</a></li> >+ <li><a href="#" class="insertParam" id="insertCnSource">Classification sources</a></li> > <li><a href="#" class="insertParam" id="insertDate">Date</a></li> > <li><a href="#" class="insertParam" id="insertItemtypes">Item types</a></li> > <li><a href="#" class="insertParam" id="insertBranches">Libraries</a></li> >-- >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 29351
:
127063
|
127069
| 127116