Koha/koha-tmpl/intranet-tmpl/prog/en/modules/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.tmpl Fixes for Bug 3958, Standardize vendor/supplier/bookseller terminology 2010-01-25 18:37:12 +01:00
bor_issues_top.tmpl fix for bug 2543: report output by tabulation a bit too literal 2008-10-23 11:44:28 -05:00
borrowers_out.tmpl Bug 3420: Fixes 'Patrons with no checkouts' report. 2009-08-15 09:56:03 -04:00
borrowers_stats.tmpl Bug 3253: Fixes XHTML for the Patron Statistics form page. 2009-05-26 08:51:31 -05:00
cat_issues_top.tmpl Markup corrections, style fixes, and other minor bugs, including fix for Bug 2679 ("Dates Changing on Funds When Editing") 2008-10-22 13:34:36 -05:00
catalogue_out.tmpl Add larger values to numerical limit. 2009-03-11 08:36:50 -05:00
catalogue_stats.tmpl Bug 2553: Alphabetization of branches in the catalogue stats report. 2009-07-22 10:17:53 -04:00
dictionary.tmpl Bug 1542, fixing filter by area in reports dictionary 2009-05-14 06:59:52 -05:00
guided_reports_start.tmpl Improved guided reports (#3929) 2010-01-28 15:11:46 +01:00
issues_avg_stats.tmpl bug 4011 remove blank row on stats form 2009-12-31 10:58:03 +01:00
issues_by_borrower_category.tmpl BugFixing : 1299 /displaying lists for document types and borrower categories 2008-01-17 21:00:59 -06:00
issues_stats.tmpl Bug 3952 changed checkout stats to read circulation stats 2009-12-20 14:31:45 +01:00
itemslost.tmpl Bug 2553: Alphabetizes library and itemtype dropdown lists in Lost Items report. 2009-08-15 09:38:59 -04:00
itemtypes.tmpl Bug 3254: Fixes the Catalog by Item Type report XHTML. 2009-05-26 08:51:30 -05:00
reports-home.tmpl MT 2051, Follow-up : Fixing typo in granular permissions for guided reports 2009-11-19 23:22:55 +01:00
reservereport.tmpl More fixes for Bug 2600, enabling the appearance of HTML tags in item titles. Resubmission. 2008-09-26 09:06:13 -05:00
serials_stats.tmpl Fixes for Bug 3958, Standardize vendor/supplier/bookseller terminology 2010-01-25 18:37:12 +01:00
stats_screen.tmpl Removing hard-coded $ symbols from the template, addressing Bug 2547 2009-06-29 13:47:25 -05:00