Koha/koha-tmpl/intranet-tmpl/prog/en
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
..
css Merge commit 'pianohacker-koha/prefs-submit' into master 2010-01-26 20:26:17 -05:00
includes MT2232 : members/notices.pl and members/messaging.pl are doing the same thing 2010-01-28 15:11:45 +01:00
js Merge commit 'pianohacker-koha/prefs-submit' into master 2010-01-26 20:26:17 -05:00
lib Merge commit 'pianohacker-koha/prefs-submit' into master 2010-01-26 20:26:17 -05:00
modules Improved guided reports (#3929) 2010-01-28 15:11:46 +01:00
xslt Bug 3921 - Add Intranet MARC21 XSL file based on OPAC one 2010-01-26 14:50:39 -05:00
columns.def MT 2050 : Fast cataloging 2009-11-19 23:09:46 +01:00