Koha/reports
Paul Poulain 7d8b369ba4 Improved guided reports (#3929)
added runtime parameters for guided reports. Online help:

Can I have run-time defined parameters?

Yes, you can: there is a specific syntax that Koha will understand as 'ask for values when running the report'. The syntax is <<Question to ask|authorised_value>>.

The << and >> are just delimiters. You must put << at the beginning and >> at the end of your parameter
The Question to ask will be displayed on the left of the string to enter.
The authorised_value can be omitted if not applicable. If it contains an authorised value category, or <strong>branches</strong> or <strong>itemtype</strong> or <strong>categorycode</strong>, a list with the Koha authorised values will be displayed instead of a free field

Note that you can have more than one parameter in a given SQL
Note that entering nothing at run time won't probably work as you expect. It will be considered as "value empty" not as "ignore this parameter". For example entering nothing for : "title=&lt;&lt;Enter title&gt;&gt;" will display results with title='' (no title). If you want to have to have something not mandatory, use "title like &lt;&lt;Enter title&gt;&gt;" and enter a % at run time instead of nothing
Sample :
SELECT surname,firstname FROM borrowers WHERE branchcode=&lt;&lt;Enter patrons library|branches&gt;&gt; AND surname like &lt;&lt;Enter filter for patron surname (% if none)&gt;&gt;
2010-01-28 15:11:46 +01:00
..
acquisitions_stats.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
bor_issues_top.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
borrowers_out.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
borrowers_stats.pl (bug #4038) fix birth date filter in borrowers stats 2010-01-15 10:00:07 +01:00
cat_issues_top.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
catalogue_out.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
catalogue_stats.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
dictionary.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
guided_reports.pl Improved guided reports (#3929) 2010-01-28 15:11:46 +01:00
issues_avg_stats.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
issues_by_borrower_category.plugin Still fixing permission and first line of scripts 2008-08-20 20:23:54 -05:00
issues_stats.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
itemslost.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
itemtypes.plugin Still fixing permission and first line of scripts 2008-08-20 20:23:54 -05:00
manager.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
reports-home.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
reservereport.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
serials_stats.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00
stats.print.pl functions that were in C4::Interface::CGI::Output are now in C4::Output. 2007-04-24 13:54:28 +00:00
stats.screen.pl MT 2051 : granular permissions for guided reports 2009-10-16 23:55:50 +02:00