Koha/reports
Mark Tompsett 82c65678bf Bug 13141: Add ability for biblio_framework to be a dropdown in Guided Reports
By tweaking the GetReservedAuthorisedValues function in
C4::Reports::Guided, biblio_framework can be added as a dropdown
list into the guided reports parameters.

The change in C4/Reports/Guided.pm required a test, which is
found in t/db_dependent/ReportsGuided.t

Code was then added to reports/guided_reports.pl to build the
appropriate hash to trigger the proper dropdown list.

TEST PLAN
---------
1) Apply patch
2) prove -v t/db_dependent/ReportsGuided.t
   -- all should pass, this confirms that both
      C4/Reports/Guided.pm and this test file work.
3) Log into staff client
4) Reports
5) Create from SQL
6) Enter appropriate information like:
Report name: Test 13141
-- no need to change Report group or Report is public or Notes or Type
SQL:
SELECT CONCAT('<a href=\"/cgi-bin/koha/catalogue/detail.pl?biblionumber=',
     biblio.biblionumber,'\">',biblio.biblionumber,'</a>') AS
     BiblioNumbers, title, author, frameworkcode
FROM biblio
WHERE frameworkcode=<<Enter the frameworkcode|biblio_framework>>

7) Save report
8) Run report
   -- The parameter entry page should have a drop down of
      framework codes.
9) Select a framework code, and click Run the report
   -- The displayed SQL should have a "frameworkcode=" portion
      matching the selected framework.
10) Run the koha qa test tool.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Test plan followed successfully.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-10-31 13:14:59 -03:00
..
acquisitions_stats.pl Bug 11349: Make the QA script happy 2014-07-17 11:06:06 -03:00
bor_issues_top.pl Bug 12587 - Improve output of filter information on patrons with the most checkouts report 2014-09-09 10:39:18 -03:00
borrowers_out.pl Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
borrowers_stats.pl Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
cat_issues_top.pl Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
catalogue_out.pl
catalogue_stats.pl Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
dictionary.pl Bug 11672: Untranslatable dropdown on Guided Reports and dictionary 2014-09-23 15:32:21 -03:00
guided_reports.pl Bug 13141: Add ability for biblio_framework to be a dropdown in Guided Reports 2014-10-31 13:14:59 -03:00
issues_avg_stats.pl
issues_by_borrower_category.plugin
issues_stats.pl Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
itemslost.pl
itemtypes.plugin
manager.pl
reports-home.pl
reservereport.pl
reserves_stats.pl Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
serials_stats.pl Bug 12706: Remove CGI::scrolling_list from serial_stats.pl 2014-08-15 14:45:11 -03:00
stats.print.pl
stats.screen.pl