Koha/C4
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
..
AuthoritiesMarc added C4/AuthoritesMarc/*.pm missed in previous patch 2008-01-04 19:08:30 -06:00
Barcodes bug 2509: fix file permissions 2008-08-21 18:55:02 -05:00
Cache Modules for caching - C4::Cache is the base class, C4::Cache::Memcached and C4::Cache::FastMemcached are subclasses 2009-09-06 09:23:32 -04:00
ClassSortRoutine bug 2505: enable warnings in call number normalization modules 2009-06-07 20:09:23 -05:00
Creators [6/30] C4::Creators module 2010-01-11 18:17:04 -05:00
External bug 3204: tweaks to AWS request signing 2009-08-13 09:29:57 -04:00
Form bug 3222: moved messaging preference editing 2009-05-22 13:20:56 -05:00
Heading bug 2479: allow MARC21 bib 440 to link to authorities 2008-08-06 14:49:55 -05:00
ILSDI ran ILS-DI code through perltidy 2009-09-06 13:41:26 -04:00
Labels Bugfix: Various Label Creator bugs 2010-01-19 22:27:09 -05:00
Members Adding a function in C4/Members/Attributes.pm 2009-09-30 11:30:37 +02:00
Output New framework for AJAX services 2009-05-14 07:29:18 -05:00
Patroncards [30/30] Removing depricated files 2010-01-11 18:21:43 -05:00
Reports Improved guided reports (#3929) 2010-01-28 15:11:46 +01:00
Search FRBR: added OPAC search result grouping option 2008-02-11 16:35:17 -06:00
Serials oups, sorry, fixing mistake in previous patch 2009-11-19 23:09:47 +01:00
SIP Modifying Members : Add Mod and GetMember 2009-09-30 11:29:23 +02:00
tests Patch from Galen Charlton, removing $Id$ $Log$ and $Revision$ from files 2007-10-18 20:22:01 -05:00
VirtualShelves Interface corrections and improvements to OPAC lists 2010-01-05 13:54:09 +01:00
Accounts.pm Modifying Members : Add Mod and GetMember 2009-09-30 11:29:23 +02:00
Acquisition.pm Merge branch 'patroncards-wip' of git://git.foundations.edu/koha into community 2010-01-20 23:16:34 +01:00
Auth.pm OpacAddMastheadLibraryPulldown 2010-01-20 22:38:23 +01:00
Auth_with_cas.pm Added debug mode for CAS warn messages 2009-11-23 16:34:31 +01:00
Auth_with_ldap.pm Adding Extended Attributes management to Auth_with_LDAP 2010-01-20 22:29:10 +01:00
AuthoritiesMarc.pm Bug Fix : 3343 MT1313 Authorities MARC summary 2009-11-11 20:59:32 +01:00
BackgroundJob.pm C4 - BEGIN blocks and 1; __END__ for modules 2008-01-07 20:02:18 -06:00
Barcodes.pm bug 2509: fix file permissions 2008-08-21 18:55:02 -05:00
Biblio.pm (bug #3783) fix marcurls 2009-11-18 19:04:52 +01:00
Bookseller.pm [replace previous] fix for 3612 (bookseller improvements) 2009-09-30 11:30:34 +02:00
Boolean.pm Using warn instead of die 2009-09-30 11:30:07 +02:00
Branch.pm (bug #3778) GetBranchesLoop and searchMyLibraryFirst 2009-11-18 19:12:45 +01:00
Breeding.pm bug 2505: enable warnings in C4::Breeding 2009-06-07 20:09:25 -05:00
Budgets.pm Fix for Bugs 3998, 3968. Includes other markup corrections and reformats 2010-01-20 22:31:58 +01:00
Cache.pm Modules for caching - C4::Cache is the base class, C4::Cache::Memcached and C4::Cache::FastMemcached are subclasses 2009-09-06 09:23:32 -04:00
Calendar.pm Bug 3268: Adds the ability to edit the description of a holiday. 2009-06-03 13:26:40 -05:00
Category.pm remove editor settings 2009-02-04 14:47:42 -06:00
Charset.pm Adding a test in C4::Charset in UNIMARC_Encoding 2009-11-17 16:27:13 +01:00
Circulation.pm UpdateDataBase for smart-rules modification 2009-09-30 11:22:21 +02:00
ClassSortRoutine.pm bug 2505: enable warnings in call number normalization modules 2009-06-07 20:09:23 -05:00
ClassSource.pm bug 2505: enable warnings in call number normalization modules 2009-06-07 20:09:23 -05:00
Context.pm Merge commit 'pianohacker-koha/prefs-submit' into master 2010-01-26 20:26:17 -05:00
Contract.pm [MT1234] Huge rewritte to use the API instead of hardcoded SQL in the script 2010-01-28 15:11:44 +01:00
Csv.pm Removing global database handler, breaking tests and dangerous if we ever use mod_perl - All tests now passing 2009-12-20 14:31:37 +01:00
Dates.pm Bug 2842: ->regexp('syspref') failed for users of iso dateformat. 2009-01-06 20:24:46 -06:00
Debug.pm C4::Debug - should resolve conflict w/ CGI upload. Debug no longer uses CGI. 2008-03-16 08:32:20 -05:00
Heading.pm Porting SimpleSearch return changes to all code calling it. 2008-04-17 05:52:45 -05:00
ImportBatch.pm Bug 3930 link to biblio was missing in manage staged marc import 2009-12-20 14:31:43 +01:00
Input.pm mostly reindenting 2009-09-30 11:30:19 +02:00
Installer.pm Enhancement: Make web installer log errors to error log 2010-01-15 10:00:36 +01:00
ItemCirculationAlertPreference.pm remove editor settings 2009-02-04 14:47:42 -06:00
Items.pm Bug 3294 Use cn_sort field to sort inventory list output 2010-01-23 15:33:23 +01:00
ItemType.pm remove editor settings 2009-02-04 14:47:42 -06:00
Koha.pm MT 1717 : Opac descriptions for authorised values 2009-09-30 11:30:28 +02:00
Languages.pm graceful degradation if memcached option is not configured in koha-conf.xml 2009-08-24 07:53:59 -04:00
Letters.pm Overdue Notices: Add a Bcc to messages 2010-01-15 09:59:32 +01:00
Log.pm bug 2505: enable warnings in C4::Log 2009-06-07 20:09:24 -05:00
Maintainance.pm rel_3_0 moved to HEAD (introducing new files) 2007-03-09 15:34:17 +00:00
Matcher.pm Code Improvement : C4/Matcher.pm 2009-10-05 07:48:52 +02:00
Members.pm enhancement C4::Members.pm Improving POD 2009-11-06 12:33:15 +01:00
Message.pm remove editor settings 2009-02-04 14:47:42 -06:00
NewsChannels.pm bug 3303: removed references to news_channels* 2009-06-07 20:09:18 -05:00
Output.pm Merge commit 'pianohacker-koha/prefs-submit' into master 2010-01-26 20:26:17 -05:00
Overdues.pm fixing overdue checking (today is not late) 2009-11-10 22:23:48 +01:00
Print.pm Bug 2900: fix GetPendingIssues. 2009-01-08 11:08:27 -06:00
Record.pm Merge fixes and removing warnings 2009-09-30 11:30:40 +02:00
Reports.pm removing comments 2009-05-28 17:32:39 -05:00
Reserves.pm Fixing bug with CanBookBeReserved ... rules for default borrower codes were being ignored 2009-12-20 14:31:37 +01:00
Review.pm bug 2505: turn on warnings in seven modules 2009-06-07 20:09:16 -05:00
Ris.pm Adding RIS and bibtex export 2009-09-30 11:22:22 +02:00
RotatingCollections.pm Rotating Collections 2010-01-20 22:35:15 +01:00
Scheduler.pm Bug 2400 [2/18]: fixing pod syntax in C4/Scheduler.pm 2008-08-12 19:39:23 -05:00
Scrubber.pm Unescape Comment, now that we trust Scrubber to block bad markup. 2008-05-29 06:30:51 -05:00
Search.pm followup : auto_truncation 3287252c0 2010-01-28 15:11:43 +01:00
Serials.pm Fixes for Bug 3376, Serials Display in OPAC 2010-01-19 22:11:35 +01:00
Service.pm Add new system preferences editor 2009-09-06 23:02:47 -06:00
SMS.pm Bug 2400 [5/18]: fixing pod syntax in C4/SMS.pm 2008-08-12 19:40:03 -05:00
SQLHelper.pm SearchInTable : problem with primary key searches 2010-01-28 15:11:45 +01:00
Stats.pm bug 2505: turn on warnings in seven modules 2009-06-07 20:09:16 -05:00
Suggestions.pm subs declared twice 2009-11-10 22:23:49 +01:00
Tags.pm bugfix for ??? 2009-09-30 11:30:14 +02:00
UploadedFile.pm C4 - BEGIN blocks and 1; __END__ for modules 2008-01-07 20:02:18 -06:00
Utils.pm Big LDAP changes, module test for Context.pm, still more yet to come. 2007-12-04 17:27:06 -06:00
VirtualShelves.pm Function GetRecentShelves modified so it can tell "koha" user and no user apart 2009-10-02 16:06:13 +02:00
XISBN.pm Syndetics and Amazon bugfix enhancements 2009-03-27 17:23:51 -05:00
XSLT.pm Translated & to &amp; in xmlrecord 2009-12-20 14:26:35 +01:00
Z3950.pm Z3950.pm - BEGIN block VERSION and vars related to export. 2008-01-07 20:02:50 -06:00