@ -1,14 +1,14 @@
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Reports › Guided Reports Wizard
<title>Koha › Reports › Guided reports wizard
[% IF ( saved1 ) %]› Saved Reports
[% ELSIF ( create ) %]› Create from SQL
[% ELSIF ( showsql ) %]› Saved Reports › SQL V iew
[% ELSIF ( execute ) %]› Saved R eports › [% name %] Report
[% ELSIF ( buildx ) %]› Build A Report, S tep [% buildx %] of 6:
[% IF ( build1 ) %]Choose a M odule
[% ELSIF ( build2 ) %]Pick a Report T ype
[% ELSIF ( build3 ) %]Select Columns for D isplay
[% ELSIF ( build4 ) %]Select Criteria to L imit on
[% ELSIF ( showsql ) %]› Saved reports › SQL v iew
[% ELSIF ( execute ) %]› Saved r eports › [% name %] Report
[% ELSIF ( buildx ) %]› Build a report, s tep [% buildx %] of 6:
[% IF ( build1 ) %]Choose a m odule
[% ELSIF ( build2 ) %]Pick a report t ype
[% ELSIF ( build3 ) %]Select columns for d isplay
[% ELSIF ( build4 ) %]Select criteria to l imit on
[% ELSIF ( build5 ) %]Pick which columns to total
[% ELSIF ( build6 ) %]Select how you want the report ordered
[% END %]
@ -66,17 +66,17 @@ $(document).ready(function(){
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
› <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
› <a href="/cgi-bin/koha/reports/guided_reports.pl">Guided Reports W izard</a>
› <a href="/cgi-bin/koha/reports/guided_reports.pl">Guided reports w izard</a>
›
[% IF ( saved1 ) %]Saved R eports
[% IF ( saved1 ) %]Saved r eports
[% ELSIF ( create ) %]Create from SQL
[% ELSIF ( showsql ) %]<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved Reports</a> › SQL V iew
[% ELSIF ( execute ) %]<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved R eports</a> › <em>[% name %]</em> Report
[% ELSIF ( buildx ) %]<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new">Build A R eport</a> › Step [% buildx %] of 6:
[% IF ( build1 ) %]Choose a M odule
[% ELSIF ( build2 ) %]Pick a Report T ype
[% ELSIF ( build3 ) %]Select Columns for D isplay
[% ELSIF ( build4 ) %]Select Criteria to L imit on
[% ELSIF ( showsql ) %]<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports</a> › SQL v iew
[% ELSIF ( execute ) %]<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved r eports</a> › <em>[% name %]</em> Report
[% ELSIF ( buildx ) %]<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new">Build a r eport</a> › Step [% buildx %] of 6:
[% IF ( build1 ) %]Choose a m odule
[% ELSIF ( build2 ) %]Pick a report t ype
[% ELSIF ( build3 ) %]Select columns for d isplay
[% ELSIF ( build4 ) %]Select criteria to l imit on
[% ELSIF ( build5 ) %]Pick which columns to total
[% ELSIF ( build6 ) %]Select how you want the report ordered
[% END %]
@ -90,12 +90,12 @@ $(document).ready(function(){
[% INCLUDE "reports-toolbar.inc" %]
[% IF ( start ) %]
<h2>Guided R eports</h2>
<h2>Guided r eports</h2>
<p>Use the guided reports engine to create non standard reports.
This feature aims to provide some middle ground between the built in
canned reports and writing custom SQL reports.</p>
<h3>Build And Run R eports</h3>
<h3>Build and run r eports</h3>
[% IF ( CAN_user_reports_create_reports ) %]
<form action="/cgi-bin/koha/reports/guided_reports.pl">
<input type="hidden" name="phase" value="Build new" />
@ -117,13 +117,13 @@ canned reports and writing custom SQL reports.</p>
<h3>Reports Dictionary</h3>
<p>Use the reports dictionary to define custom criteria to use in your reports</p>
<form action="/cgi-bin/koha/reports/dictionary.pl">
<input type="hidden" name="phase" value="View D ictionary"/>
<input type="submit" name="submit" value="View D ictionary"/>
<input type="hidden" name="phase" value="View d ictionary"/>
<input type="submit" name="submit" value="View d ictionary"/>
</form>
[% END %]
[% IF ( saved1 ) %]
[% IF ( savedreports ) %]<h1>Saved R eports</h1>
[% IF ( savedreports ) %]<h1>Saved r eports</h1>
<div id="pagertable_reports">
[% INCLUDE 'table-pager.inc' perpage='20' %]
@ -133,12 +133,12 @@ canned reports and writing custom SQL reports.</p>
<thead>
<tr>
<th>ID</th>
<th>Report N ame</th>
<th>Report n ame</th>
<th>Type</th>
<th>Notes</th>
<th>Author</th>
<th>Creation D ate</th>
<th>Saved R esults</th>
<th>Creation d ate</th>
<th>Saved r esults</th>
<th>Saved SQL</th>
<th> </th>
<th> </th>
@ -199,10 +199,10 @@ canned reports and writing custom SQL reports.</p>
[% IF ( build1 ) %]
<h1>Build A R eport</h1>
<h1>Build a r eport</h1>
<form action="/cgi-bin/koha/reports/guided_reports.pl">
<fieldset class="rows">
<legend>Step 1 of 6: Choose a Module to R eport on</legend>
<legend>Step 1 of 6: Choose a module to r eport on</legend>
<ol><li><label for="areas">Choose: </label><select name="areas" id="areas">
[% FOREACH area IN areas %]
<option value="[% area.id %]">[% area.name %]</option>
@ -222,7 +222,7 @@ canned reports and writing custom SQL reports.</p>
<h1>Build A Report</h1>
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
<input type="hidden" name="area" value="[% area %]" />
<fieldset class="rows"><legend>Step 2 of 6: Pick a Report T ype</legend>
<fieldset class="rows"><legend>Step 2 of 6: Pick a report t ype</legend>
<ol><li><label for="types">Choose: </label>
<select id="types" name="types">
<option value="1">Tabular</option>
@ -249,7 +249,7 @@ canned reports and writing custom SQL reports.</p>
[% END %]
[% IF ( build3 ) %]
<h3>Step 3 of 6: Select Columns for D isplay</h3>
<h3>Step 3 of 6: Select columns for d isplay</h3>
<p>Note: Be careful selecting when selecting columns. If your choice is too broad it could result in a very large report that will either not complete, or slow your system down.</p>
<form id="column_submit" action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
@ -303,7 +303,7 @@ canned reports and writing custom SQL reports.</p>
<input type="hidden" name="area" value="[% area %]" />
<input type="hidden" name="type" value="[% type %]" />
<input type="hidden" name="column" value="[% column %]" />
<fieldset><legend>Step 4 of 6: Select Criteria to L imit on</legend>
<fieldset><legend>Step 4 of 6: Select criteria to l imit on</legend>
<table>
[% FOREACH criteri IN criteria %]
<tr>
@ -314,7 +314,7 @@ canned reports and writing custom SQL reports.</p>
[% IF ( criteri.date ) %]
<td>
<input type="text" size="10" id="[% criteri.name %]_value" name="[% criteri.name %]_value" value="" />
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonfrom[% criteri.name %]" style="cursor: pointer;" alt="Show Calendar" title="Show Calendar" />
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonfrom[% criteri.name %]" style="cursor: pointer;" alt="Show calendar" title="Show calendar" />
<script type="text/javascript">
Calendar.setup({
inputField : "[% criteri.name %]_value",
@ -337,7 +337,7 @@ canned reports and writing custom SQL reports.</p>
[% IF ( criteri.daterange ) %]
<td>from
<input type="text" size="10" id="from_[% criteri.name %]_value" name="from_[% criteri.name %]_value" value="" />
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonfromfrom_[% criteri.name %]" style="cursor: pointer;" alt="Show Calendar" title="Show Calendar" />
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonfromfrom_[% criteri.name %]" style="cursor: pointer;" alt="Show calendar" title="Show calendar" />
<script type="text/javascript">
Calendar.setup({
inputField : "from_[% criteri.name %]_value",
@ -348,7 +348,7 @@ canned reports and writing custom SQL reports.</p>
</script>
to
<input type="text" size="10" id="to_[% criteri.name %]_value" name="to_[% criteri.name %]_value" value="" />
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonfromto_[% criteri.name %]" style="cursor: pointer;" alt="Show Calendar" title="Show Calendar" />
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonfromto_[% criteri.name %]" style="cursor: pointer;" alt="Show calendar" title="Show calendar" />
<script type="text/javascript">
Calendar.setup({
inputField : "to_[% criteri.name %]_value",
@ -377,7 +377,7 @@ canned reports and writing custom SQL reports.</p>
</fieldset>
[% IF ( definitions ) %]
<fieldset><legend>Dictionary D efinitions</legend><table>
<fieldset><legend>Dictionary d efinitions</legend><table>
[% FOREACH definition IN definitions %]
<tr><td><input type="checkbox" name="definition" value="[% definition.id %]" /> [% definition.name %]</td></tr>
[% END %]
@ -413,7 +413,7 @@ canned reports and writing custom SQL reports.</p>
[% END %]
</table></fieldset>
<fieldset class="action"><input type="hidden" name="phase" value="Choose These O perations" />
<fieldset class="action"><input type="hidden" name="phase" value="Choose these o perations" />
<input type="button" name="back" value="<< Back" onclick="javascript:history.back()" />
<input type="submit" name="submit" value="Next >>" /></fieldset>
</form>
@ -443,14 +443,14 @@ canned reports and writing custom SQL reports.</p>
</table></fieldset>
<fieldset class="action">
<input type="hidden" name="phase" value="Build R eport" />
<input type="hidden" name="phase" value="Build r eport" />
<input type="submit" name="submit" value="Finish" /></fieldset>
</form>
[% END %]
[% IF ( showreport ) %]
<h1>Confirm Custom R eport</h1>
<h1>Confirm custom r eport</h1>
<p>Your report will be generated with the following SQL statement.</p>
<p>
[% sql |html %]
@ -470,13 +470,13 @@ canned reports and writing custom SQL reports.</p>
<input type="hidden" name="sql" value="[% sql |html %]" />
<input type="hidden" name="type" value="[% type %]" />
<fieldset class="rows">
<legend>Save Your Custom R eport</legend>
<legend>Save your custom r eport</legend>
<ol>
<li><label for="reportname">Report N ame: </label><input type="text" id="reportname" name="reportname" /></li>
<li><label for="reportname">Report n ame: </label><input type="text" id="reportname" name="reportname" /></li>
<li><label for="notes">Notes:</label> <textarea name="notes" id="notes"></textarea></li>
</ol></fieldset>
<fieldset class="action"><input type="hidden" name="phase" value="Save R eport" />
<input type="submit" name="submit" value="Save R eport" /></fieldset>
<fieldset class="action"><input type="hidden" name="phase" value="Save r eport" />
<input type="submit" name="submit" value="Save r eport" /></fieldset>
</form>
[% END %]
@ -490,7 +490,7 @@ canned reports and writing custom SQL reports.</p>
[% IF sql_param.input == 'date' %]
<p>
[% sql_param.entry %]: <input id="date_[% sql_param_entry %]" type="text" value="" size="10" name="sql_params">
<img id="date_picker_[% sql_param_entry %]" alt="Show C alendar" src="/intranet-tmpl/prog/en/lib/calendar/cal.gif">
<img id="date_picker_[% sql_param_entry %]" alt="Show c alendar" src="/intranet-tmpl/prog/en/lib/calendar/cal.gif">
<script type="text/javascript">
Calendar.setup( {
inputField : "date_[% sql_param_entry %]",
@ -526,8 +526,8 @@ canned reports and writing custom SQL reports.</p>
<fieldset class="action">
<label for="format">Download the report: </label>
<select name="format" id="format">
<option value="csv">Comma Separated T ext</option>
<option value="tab">Tab Separated T ext</option>
<option value="csv">Comma separated t ext</option>
<option value="tab">Tab separated t ext</option>
</select>
<input type="hidden" name="sql" value="[% sql |html %]" />
<input type="hidden" name="phase" value="Export" />
@ -539,9 +539,9 @@ canned reports and writing custom SQL reports.</p>
[% IF ( create ) %]
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
<fieldset class="rows">
<legend>Create Report F rom SQL</legend>
<legend>Create report f rom SQL</legend>
<ol>
<li><label for="reportname">Report Name:</label>
<li><label for="reportname">Report name:</label>
[% IF ( reportname ) %]<input type="text" id="reportname" name="reportname" value="[% reportname %]" />
[% ELSE %]<input type="text" id="reportname" name="reportname" />[% END %]
</li>
@ -562,7 +562,7 @@ canned reports and writing custom SQL reports.</p>
</div>
</fieldset>
<fieldset class="action"><input type="hidden" name="phase" value="Save R eport" />
<fieldset class="action"><input type="hidden" name="phase" value="Save r eport" />
<input type="submit" name="submit" value="Save Report" /> <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved" class="cancel">Cancel</a>
</fieldset>
</form>
@ -582,8 +582,8 @@ Sub report:<select name="subreport">
[% END %]
</select>
<br />
<input type="hidden" name="phase" value="Save C ompound" />
<input type="submit" name="submit" value="Save C ompound" />
<input type="hidden" name="phase" value="Save c ompound" />
<input type="submit" name="submit" value="Save c ompound" />
</form>
[% END %]
@ -594,7 +594,7 @@ Sub report:<select name="subreport">
[% IF ( retresults ) %]
<h1>Saved Report R esults</h1>
<h1>Saved report r esults</h1>
<h2>[% name %]</h2>
<p>[% notes %]</p>
<table>
@ -621,7 +621,7 @@ Sub report:<select name="subreport">
<fieldset class="rows">
<legend>Edit SQL report</legend>
<ol>
<li><label for="reportname">Report N ame:</label><input type="text" id="reportname" name="reportname" value="[% reportname %]" size="50" /></li>
<li><label for="reportname">Report n ame:</label><input type="text" id="reportname" name="reportname" value="[% reportname %]" size="50" /></li>
<li><label for="notes">Notes:</label><textarea id="notes" name="notes" cols="50" rows="2">[% notes %]</textarea></li>
<li><textarea id="sql" name="sql" rows="10" cols="60">[% sql %]</textarea></li>
</ol>
@ -643,9 +643,9 @@ Sub report:<select name="subreport">
[% IF ( id ) %]
<li><a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Run%20this%20report">Run this report</a></li>
[% END %]
<li>Access this report from the: <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved Reports P age</a></li>
<li>Schedule this report to run using the: <a href="/cgi-bin/koha/tools/scheduler.pl">Scheduler T ool</a></li>
<li>Return to: <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Guided R eports</a></li>
<li>Access this report from the: <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports p age</a></li>
<li>Schedule this report to run using the: <a href="/cgi-bin/koha/tools/scheduler.pl">Scheduler t ool</a></li>
<li>Return to: <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Guided r eports</a></li>
</ul>
[% END %]
[% END %]
@ -664,7 +664,7 @@ Sub report:<select name="subreport">
[% END %]
</div>
<fieldset class="action"><input type="hidden" name="phase" value="Use saved" />
<input type="submit" name="submit" value="Saved R eports" /></fieldset>
<input type="submit" name="submit" value="Saved r eports" /></fieldset>
</form>
[% END %]
@ -681,7 +681,7 @@ Sub report:<select name="subreport">
<h3>Filter</h3>
<ol>
<li><label for="filter_date">Date:
<img src="[% themelang %]/lib/calendar/cal.gif" id="datedueto_button" alt="Show C alendar" /></label> <input type="text" id="filter_date" name="filter_date" size="10" value="[% filter_date %]" />
<img src="[% themelang %]/lib/calendar/cal.gif" id="datedueto_button" alt="Show c alendar" /></label> <input type="text" id="filter_date" name="filter_date" size="10" value="[% filter_date %]" />
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
<script type="text/javascript">
Calendar.setup(