+ Home
+ › Reports
+ › Guided reports wizard
-[% IF ( saved1 ) %]› Saved reports
-[% ELSIF ( create ) %]› Create from SQL
-[% ELSIF ( showsql ) %]› Saved reports › SQL view
-[% ELSIF ( editsql ) %]› Saved reports › Edit SQL report
-[% ELSIF ( execute ) %]› Saved reports › [% name | html %] Report
-[% ELSIF ( build1 || build2 || build3 || build4 || build5 || build6 ) %]› Build a report
- [% IF ( build1 ) %]› Step 1 of 6: Choose a module
- [% ELSIF ( build2 ) %]› Step 2 of 6: Pick a report type
- [% ELSIF ( build3 ) %]› Step 3 of 6: Select columns for display
- [% ELSIF ( build4 ) %]› Step 4 of 6: Select criteria to limit on
- [% ELSIF ( build5 ) %]› Step 5 of 6: Pick which columns to total
- [% ELSIF ( build6 ) %]› Step 6 of 6: Select how you want the report ordered
+ [% IF ( saved1 ) %]
+ › Saved reports
+ [% ELSIF ( create ) %]
+ › Create from SQL
+ [% ELSIF ( showsql ) %]
+ › Saved reports › SQL view
+ [% ELSIF ( editsql ) %]
+ › Saved reports › Edit SQL report
+ [% ELSIF ( execute ) %]
+ › Saved reports › [% name | html %] Report
+ [% ELSIF ( build1 || build2 || build3 || build4 || build5 || build6 ) %]
+ › Build a report
+ [% IF ( build1 ) %]
+ › Step 1 of 6: Choose a module
+ [% ELSIF ( build2 ) %]
+ › Step 2 of 6: Pick a report type
+ [% ELSIF ( build3 ) %]
+ › Step 3 of 6: Select columns for display
+ [% ELSIF ( build4 ) %]
+ › Step 4 of 6: Select criteria to limit on
+ [% ELSIF ( build5 ) %]
+ › Step 5 of 6: Pick which columns to total
+ [% ELSIF ( build6 ) %]
+ › Step 6 of 6: Select how you want the report ordered
+ [% END %]
[% END %]
-[% END %]
-
-
-
-
Update SQL
-
-
-
Loading
-
-
-
+
+
+
+
Update SQL
+
+
+
Loading
+
+
+
@@ -92,991 +119,1161 @@
- [% INCLUDE "reports-toolbar.inc" %]
+ [% INCLUDE "reports-toolbar.inc" %]
-[% IF ( start ) %]
-
Guided reports
-
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.
+ [% IF ( start ) %]
+
Guided reports
+
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.
-
Build and run reports
- [% IF ( CAN_user_reports_create_reports ) %]
-
- [% END %]
- [% IF ( CAN_user_reports_execute_reports ) %]
-
- [% END %]
- [% IF ( CAN_user_reports_create_reports ) %]
-
- [% END %]
-
Reports Dictionary
-
Use the reports dictionary to define custom criteria to use in your reports
-
-[% END %]
+
Build and run reports
-[% IF report_converted %]
-
- The report "[% report_converted | html %]" has been converted.
-
-[% END %]
-
-[% IF report_converted %]
-
- The report "[% report_converted | html %]" has been converted.
-
-[% END %]
-
-
-[% IF ( saved1 ) %]
-[% IF ( savedreports ) %]
- [% IF ( CAN_user_reports_create_reports ) %]
- Build a new report?
- [% END %]
- [% END %]
-
-[% END %]
-[% END %]
-
-[% INCLUDE 'mana/mana-share-report.inc' %]
-
-[% IF ( build1 ) %]
-[% IF ( cache_error) %]
-
- Please choose a cache_expiry less than 30 days
-
-[% END %]
-
Build a report
-
-
-
-
-[% END %]
-
-
-[% IF ( build2 ) %]
-
Build a report
-
-
-
-
-
-
-
-
-
-[% END %]
-
-[% IF ( build3 ) %]
-
Build a report
-
Step 3 of 6: Select columns for display
-
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.
-
-
-
-
-
-
-
-
-
-
-[% END %]
-
-[% IF ( build4 ) %]
-
Build a report
-
-
-
-
-
-
-
-
-[% IF ( definitions ) %]
-
-[% END %]
-
-
-
-[% END %]
-
-
-[% IF ( build5 ) %]
-
Build a report
-
Step 5 of 6: Pick which columns to total
-
-
-
-
-
-
-
-
-
-
-
-
-[% END %]
-
-
-[% IF ( build6 ) %]
-
Build a report
-
Step 6 of 6: Choose how you want the report ordered
-
-
-
-
-
-
-
-
-
-
-
-
-
-[% END %]
-
-
-[% IF ( showreport ) %]
-
Confirm custom report
-
Your report will be generated with the following SQL statement.
-
-[% sql | html %]
-
-
-
-
-
-
-
-
You will need to save the report before you can execute it
-
-
-[% END %]
-
-[% IF ( save ) %]
-
-
-
-
-
-
-
-
-
-[% END %]
-
-[% IF ( warn_authval_problem ) %]
-
-
Errors found when processing parameters for report: [% name | html %]
- [% FOREACH problematic_authval IN problematic_authvals %]
-
- [% problematic_authval.name | html %]: The authorized value category ([% problematic_authval.authval | html %])
- you selected does not exist.
-
-The following error was encountered:
-[% FOREACH error IN errors %]
- [% IF ( error.sqlerr ) %]This report contains the SQL keyword [% error.sqlerr | html %].
- Use of this keyword is not allowed in Koha reports due to security and data integrity risks. Only SELECT queries are allowed.
- Please return to the "Saved Reports" screen and delete this report or retry creating a new one.
- [% ELSIF ( error.queryerr ) %]The database returned the following error: [% error.queryerr | html %] Please check the log for further details.
- [% ELSIF ( error.cache_expiry ) %]Please select a cache expiry less than 30 days.
- [% ELSE %]
- [% END %]
-
+ The following error was encountered:
+ [% FOREACH error IN errors %]
+ [% IF ( error.sqlerr ) %]
+ This report contains the SQL keyword [% error.sqlerr | html %].
+ Use of this keyword is not allowed in Koha reports due to security and data integrity risks. Only SELECT queries are allowed.
+ Please return to the "Saved Reports" screen and delete this report or retry creating a new one.
+ [% ELSIF ( error.queryerr ) %]
+ The database returned the following error:
+ [% error.queryerr | html %] Please check the log for further details.
+ [% ELSIF ( error.cache_expiry ) %]
+ Please select a cache expiry less than 30 days.
+ [% ELSE %]
+ [% END %]
+
-
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/charts.js") | $raw %]
[% Asset.js("lib/d3c3/d3.min.js") | $raw %]
@@ -1151,7 +1348,6 @@ canned reports and writing custom SQL reports.
validator.resetForm();//remove error class on name elements and clear history
validator.reset();//remove all error and success data
}
-
[% END %]
[% IF ( showsql ) %]
@@ -1180,7 +1376,6 @@ canned reports and writing custom SQL reports.
}
$(document).ready(function(){
-
$("body").on('click',".fetch_chart_data",function(){
if( [% unlimited_total || 0 | $raw %] > 1000 ){
if( confirm("Fetching full chart data for reports with many rows can cause performance issues. Are you sure you with to chart this report?") ){
@@ -1571,6 +1766,7 @@ canned reports and writing custom SQL reports.
load_group_subgroups();
});
[% END %]
+
$(".delete").on("click",function(){
return confirmDelete(MSG_CONFIRM_DELETE);
});