This updates the reports help for Koha 3.12.

To test:

Visit all reports pages and review the help for textual changes
and correct links.
---
 .../en/modules/help/reports/acquisitions_stats.tt  |    4 +-
 .../prog/en/modules/help/reports/bor_issues_top.tt |    4 +-
 .../prog/en/modules/help/reports/borrowers_out.tt  |    4 +-
 .../en/modules/help/reports/borrowers_stats.tt     |    4 +-
 .../prog/en/modules/help/reports/cat_issues_top.tt |    4 +-
 .../prog/en/modules/help/reports/catalogue_out.tt  |    4 +-
 .../en/modules/help/reports/catalogue_stats.tt     |    4 +-
 .../prog/en/modules/help/reports/dictionary.tt     |    4 +-
 .../prog/en/modules/help/reports/guided_reports.tt |  204 ++++++++++++++------
 .../en/modules/help/reports/issues_avg_stats.tt    |    4 +-
 .../prog/en/modules/help/reports/issues_stats.tt   |    4 +-
 .../prog/en/modules/help/reports/itemslost.tt      |    4 +-
 .../prog/en/modules/help/reports/manager.tt        |    4 +-
 .../prog/en/modules/help/reports/reports-home.tt   |    2 +-
 .../prog/en/modules/help/reports/reserves_stats.tt |    4 +-
 .../prog/en/modules/help/reports/serials_stats.tt  |    4 +-
 16 files changed, 177 insertions(+), 85 deletions(-)

diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/acquisitions_stats.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/acquisitions_stats.tt
index bc4b01e..499e597 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/acquisitions_stats.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/acquisitions_stats.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Acquisitions Statistics</h1>
+<h1>Acquisitions statistics</h1>
 
 <p>Using the form provided, choose which value you would like to appear in the 
Column and which will appear in the Row.</p>
 
@@ -12,6 +12,6 @@
 
 <p>Choosing amount will change your results to appear as the sum of the 
amounts spent.</p>
 
-<p><strong>See the full documentation for Acquisitions Statistics in the <a 
href="http://manual.koha-community.org/3.10/en/statsreports.html#acqstats";>manual</a>
 (online).</strong></p>
+<p><strong>See the full documentation for Acquisitions Statistics in the <a 
href="http://manual.koha-community.org/3.12/en/statsreports.html#acqstats";>manual</a>
 (online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
\ No newline at end of file
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/bor_issues_top.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/bor_issues_top.tt
index 080a16d..717c5cb 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/bor_issues_top.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/bor_issues_top.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Patrons With The Most Checkouts</h1>
+<h1>Patrons with the most checkouts</h1>
 
 <p>This report will simply list the patrons who have the most checkouts.</p>
 
@@ -8,6 +8,6 @@
 
 <p>You can also choose to export to a file that you can manipulate to your 
needs.</p>
 
-<p><strong>See the full documentation for the Patrons with the most Checkouts 
report in the <a 
href="http://manual.koha-community.org/3.10/en/statsreports.html#mostcheckouts";>manual</a>
 (online).</strong></p>
+<p><strong>See the full documentation for the Patrons with the most Checkouts 
report in the <a 
href="http://manual.koha-community.org/3.12/en/statsreports.html#mostcheckouts";>manual</a>
 (online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
\ No newline at end of file
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/borrowers_out.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/borrowers_out.tt
index 40f369f..e9032c8 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/borrowers_out.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/borrowers_out.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Patrons With No Checkouts</h1>
+<h1>Patrons with no checkouts</h1>
 
 <p>This report will list for you the patrons in your system who haven't 
checked any items out.</p>
 
@@ -8,6 +8,6 @@
 
 <p>You can also choose to export to a file that you can manipulate to your 
needs.</p>
 
-<p><strong>See the full documentation for the Patrons with no Checkouts report 
in the <a 
href="http://manual.koha-community.org/3.10/en/statsreports.html#patnocheckouts";>manual</a>
 (online).</strong></p>
+<p><strong>See the full documentation for the Patrons with no Checkouts report 
in the <a 
href="http://manual.koha-community.org/3.12/en/statsreports.html#patnocheckouts";>manual</a>
 (online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
\ No newline at end of file
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/borrowers_stats.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/borrowers_stats.tt
index 310e952..36309c0 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/borrowers_stats.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/borrowers_stats.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Patron Statistics</h1>
+<h1>Patron statistics</h1>
 
 <p>Using the form provided, choose which value you would like to appear in the 
Column and which will appear in the Row.</p>
 
@@ -8,7 +8,7 @@
 
 <p>Based on your selections, you may see some query information above your 
results table. You can also choose to export to a file that you can manipulate 
to your needs.</p>
 
-<p><strong>See the full documentation for Patron Statistics in the <a 
href="http://manual.koha-community.org/3.10/en/statsreports.html#patstats";>manual</a>
 (online).</strong></p>
+<p><strong>See the full documentation for Patron Statistics in the <a 
href="http://manual.koha-community.org/3.12/en/statsreports.html#patstats";>manual</a>
 (online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
 
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/cat_issues_top.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/cat_issues_top.tt
index cf615e9..ab569e3 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/cat_issues_top.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/cat_issues_top.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Most Circulated Items</h1>
+<h1>Most circulated items</h1>
 
 <p>This report will simply list the items that have the been checked out the 
most.</p>
 
@@ -8,6 +8,6 @@
 
 <p>You can also choose to export to a file that you can manipulate to your 
needs.</p>
 
-<p><strong>See the full documentation for the Most Circulation Items report in 
the <a 
href="http://manual.koha-community.org/3.10/en/statsreports.html#mostcirculated";>manual</a>
 (online).</strong></p>
+<p><strong>See the full documentation for the Most Circulation Items report in 
the <a 
href="http://manual.koha-community.org/3.12/en/statsreports.html#mostcirculated";>manual</a>
 (online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
\ No newline at end of file
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/catalogue_out.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/catalogue_out.tt
index 93e70a7..31f71b8 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/catalogue_out.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/catalogue_out.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Items With No Checkouts</h1>
+<h1>Items with no checkouts</h1>
 
 <p>This report will list items in your collection that have never been checked 
out.</p>
 
@@ -8,6 +8,6 @@
 
 <p>You can also choose to export to a file that you can manipulate to your 
needs.</p>
 
-<p><strong>See the full documentation for the Items with no Checkouts report 
in the <a 
href="http://manual.koha-community.org/3.10/en/statsreports.html#itemnocheckouts";>manual</a>
 (online).</strong></p>
+<p><strong>See the full documentation for the Items with no Checkouts report 
in the <a 
href="http://manual.koha-community.org/3.12/en/statsreports.html#itemnocheckouts";>manual</a>
 (online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
\ No newline at end of file
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/catalogue_stats.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/catalogue_stats.tt
index 3a54696..9678d20 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/catalogue_stats.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/catalogue_stats.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Catalog Statistics</h1>
+<h1>Catalog statistics</h1>
 
 <p>Using the form provided, choose which value you would like to appear in the 
Column and which will appear in the Row.</p>
 
@@ -8,7 +8,7 @@
 
 <p>You can also choose to export to a file that you can manipulate to your 
needs.</p>
 
-<p><strong>See the full documentation for Catalog Statistics in the <a 
href="http://manual.koha-community.org/3.10/en/statsreports.html#catstats";>manual</a>
 (online).</strong></p>
+<p><strong>See the full documentation for Catalog Statistics in the <a 
href="http://manual.koha-community.org/3.12/en/statsreports.html#catstats";>manual</a>
 (online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
 
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/dictionary.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/dictionary.tt
index 191e437..cdaf397 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/dictionary.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/dictionary.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Reports Dictionary</h1>
+<h1>Reports dictionary</h1>
 
 <p>The report dictionary is a way to pre-define common filters you'd like to 
apply to your reports. This is a good way to add in filters that the report 
wizard doesn't include by default. To add a new definition, or filter, click 
'New Definition' on the Reports Dictionary page and follow the 4 step 
process.</p>
 
@@ -18,6 +18,6 @@
 
 <p>Then when generating reports on the module you created the value for you 
will see an option to limit by the definition at the bottom of the usual 
filters.</p>
 
-<p><strong>See the full documentation for the Reports Dictionary in the <a 
href="http://manual.koha-community.org/3.10/en/reportdic.html";>manual</a> 
(online).</strong></p>
+<p><strong>See the full documentation for the Reports Dictionary in the <a 
href="http://manual.koha-community.org/3.12/en/reportdic.html";>manual</a> 
(online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
\ No newline at end of file
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/guided_reports.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/guided_reports.tt
index 33f46c6..c138ecf 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/guided_reports.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/guided_reports.tt
@@ -1,103 +1,195 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Add a Custom Report</h1>
+<h1>Add a custom report</h1>
 
-<h2>Guided Report Wizard</h2>
+<h3>Guided report wizard</h3>
 
-<p>If the report you need is not already available, the 'Guided Reports' 
Wizard will walk you through creating a custom report.</p>
+<p>The guided report wizard will walk you through a six step process to 
generate a report.</p>
 
+<p><strong>Step 1:</strong> Choose the module you want to report on. This will 
determine what tables and fields are available for you to query.</p>
+
+<p>'Report is public' should be left to the default of 'No' in most cases. A 
report can be made public if you intend to allow access to it through the JSON 
webservice interface. This is a system that can be used by developers to make 
custom presentations of the data from the report, for example displaying it 
using a graphing API. To learn more speak to your local developer.</p>
 <ul>
-<li>Go to the 'Reports' module (usually under 'More' in your Global Nav)</li>
-<li>Choose 'Guided Reports' under 'Guided Reports Wizard'</li>
+    <li>A public report is accessible via a URL that looks like this: 
http://MYOPAC/cgi-bin/koha/svc/report?id=REPORTID</li>
 </ul>
+<p><strong>Step 2:</strong> Choose a report type. For now, Tabular is the only 
option available.</p>
+
+<p><strong>Step 3:</strong> Choose the fields you want in your report. You can 
select multiple fields and add them all at once by using CTRL+Click on each 
item you want to add before clicking the Add button.</p>
+
+<p><strong>Step 4:</strong> Choose any limits you might want to apply to your 
report (such as item types or branches). If you don't want to apply any limits, 
simply click Next instead of making an option.</p>
+
+<p><strong>Step 5:</strong> Perform math functions. If you don't want to do 
any calculations, simply click Next instead of making an option.</p>
+
+<p><strong>Step 6:</strong> Choose data order. If you want the data to print 
out in the order it's found in the database, simply click Finish.</p>
+
+<p>When you are finished you will be presented with the SQL generated by the 
report wizard. From here you can choose to save the report by clicking 'Save' 
or copy the SQL and make edits to it by hand.</p>
 
-<p>Answer the 6 questions presented in order to create your report.</p>
+<p>If you choose to save the report you will be asked to name your report, 
sort it in to groups and subgroups and enter any notes regarding it.</p>
 
-<p><strong>Step 1: Choose a Module to Report on</strong></p>
+<p>Once your report is saved it will appear on the 'Use Saved' page with all 
other saved reports.</p>
 
+<p>From here you can make edits, run the report, or schedule a time to have 
the report run. To find the report you created you can sort by any of the 
columns by clicking the on the column header (creation date is the best bet for 
finding the report you just added). You can also filter your results using the 
filter menu on the left or use the tabs to find reports based on your custom 
groups.</p>
+
+<h3>Report from SQL</h3>
+
+<p>In addition to the report wizard, you have the option to write your own 
queries using SQL. To find reports written by other Koha users, visit the Koha 
Wiki: <a href="http://wiki.koha-community.org/wiki/SQL_Reports_Library"; 
target="blank">http://wiki.koha-community.org/wiki/SQL_Reports_Library</a>. You 
can also find your database structure in 
/installer/data/mysql/kohastructure.sql or online at: <a 
href="http://schema.koha-community.org"; 
target="blank">http://schema.koha-community.org</a>.</p>
+
+<p>To add your query, click the link to 'Create from SQL' on the main reports 
module or the 'New report' button at the top of the 'Saved reports' page.</p>
+
+<p>Fill in the form presented</p>
+<ul>
+       <li>The 'Name' is what will appear on the Saved Reports page to help 
you identify the report later. It will also be searchable using the filters 
found the left of the Saved Reports page.</li>
+       <li>You can use the 'Report group' to organize your reports so that you 
can easily filter reports by groups. Report groups are set in the REPORT_GROUP 
authorized value category or can be added on the fly when creating the report 
by choosing the 'or create' radio button.
 <ul>
-<li>Choose a Koha module to build a report on (patrons, circ, cataloging, 
etc)</li>
-<li>Click 'Next'</li>
+       <li style="background-color: #ffe599;">Tip: If you're adding a report 
group on the fly, remember that you code should be fewer than 10 characters and 
should not include special characters or spaces.</li>
 </ul>
+</li>
+       <li>You can use 'Report subgroup' to further organize your reports so 
that you can easily filter reports by groups and subgroups. Report subgroups 
are set in the REPORT_SUBGROUP authorized value category or can be added on the 
fly when creating the report by choosing the 'or create' radio button.
+<ul>
+       <li style="background-color: #ffe599;">Tip: If you're adding a report 
subgroup on the fly, remember that you code should be fewer than 10 characters 
and should not include special characters or spaces.</li>
+</ul>
+</li>
+       <li>'Report is public' should be left to the default of 'No' in most 
cases. A report can be made public if you intend to allow access to it through 
the JSON webservice interface. This is a system that can be used by developers 
to make custom presentations of the data from the report, for example 
displaying it using a graphing API. To learn more speak to your local developer.
+<ul>
+       <li>A public report is accessible via a URL that looks like this: 
http://MYOPAC/cgi-bin/koha/svc/report?id=REPORTID</li>
+</ul>
+</li>
+       <li>'Notes' will also appear on the Saved Reports page, this can be 
used to provide more details about the report or tips on how to enter values 
when it runs</li>
+       <li>The type should always be 'Tabular' at this time since the other 
formats have not been implemented</li>
+       <li>In the 'SQL' box you will type or paste the SQL for the report</li>
+       <li>If you feel that your report might be too resource intensive you 
might want to consider using runtime parameters to your query. Runtime 
parameters basically make a filter appear before the report is run to save your 
system resources.There is a specific syntax that Koha will understand as 'ask 
for values when running the report'. The syntax is &lt;&lt;Question to ask 
authorized_value&gt;&gt;.
+<ul>
+       <li>The &lt;&lt; and &gt;&gt; are just delimiters. You must put 
&lt;&lt; at the beginning and &gt;&gt; at the end of your parameter</li>
+       <li>The 'Question to ask' will be displayed on the left of the string 
to enter.</li>
+       <li>The authorized_value can be omitted if not applicable. If it 
contains an authorized value category, or branches or itemtype or categorycode, 
a list with the Koha authorized 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</li>
+</ul>
+</li>
+       <li>Examples:
+<ul>
+       <li>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;</li>
+       <li>SELECT * FROM items WHERE homebranch = &lt;&lt;Pick your 
branch|branches&gt;&gt; and barcode like &lt;&lt;Partial barcode value 
here&gt;&gt;</li>
+</ul>
+</li>
+       <li style="background-color: #ffe599;">Tip: To generate a date picker 
calendar to the right of the field when running a report you can use the 'date' 
keyword like this: &lt;&lt;Enter Date|date&gt;&gt;
+</li>
+       <li style="background-color: #ffe599;">Tip: You have to put "%" in a 
text box to 'leave it blank'. Otherwise, it literally looks for "" (empty 
string) as the value for the field.</li>
+       <li style="color: #990000;">Important: In addition to using any 
authorized value code to generate a dropdown, you can use the following values 
as well: Branches (branches), Item Types (itemtypes) and Patron Categories 
(categorycode). For example a branch pull down would be generated like this 
&lt;&lt;Branch|branches&gt;&gt;</li>
+</ul>
+
+<p><strong>Note</strong>: There is a limit of 10,000 records put on SQL 
statements entered in Koha. To get around this you want to add 'LIMIT 100000' 
to the end of your SQL statement (or any other number above 10,000.</p>
+
+<p>Once everything is entered click the 'Save Report' button and you'll be 
presented with options to run it. Once a report is saved you do not have to 
recreate it you can simply find it on the Saved Reports page and run or edit 
it.</p>
+
+<h3>Duplicate Report</h3>
+
+<p>Reports can also be added by duplicating an existing report. Visit the 
'Saved reports' page to see all of the reports listed on your system 
already.</p>
+
+<p>To the right of every report there is a 'Duplicate' link in the 'Saved SQL' 
column. Click that 'Duplicate' link to use an existing report as the basis for 
your new report. That will populate the new report form with the existing SQL 
for easy editing and resaving.</p>
 
-<p><strong>Step 2: Pick a Report Type</strong></p>
+<h3>Edit Custom Reports</h3>
 
-<ul><li style="color: #990000">IMPORTANT: Only Tabular should be chosen with 
this option</li></ul>
+<p>Every report can be edited from the reports lists. To see the list of 
reports already stored in Koha, click 'Use Saved.'</p>
 
-<p><strong>Step 3: Select Columns for Display</strong></p>
+<p>To find the report you'd like to edit you can sort by any of the columns by 
clicking the on the column header. You can also filter your results using the 
filter menu on the left or use the tabs to find reports based on your custom 
groups.</p>
 
-<p><strong>Step 4: Select Criteria to Limit</strong></p>
+<p>From this list you can edit any custom report by clicking 'Edit' in the 
'Saved SQL' column.</p>
 
-<ul><li>This is optional, if you don't want to limit results by any one field, 
just leave this section blank.</li></ul>
+<h3>Running Custom Reports</h3>
 
-<p><strong>Step 5: Pick which columns to perform mathmatical functions 
on</strong></p>
+<p>Once custom reports are saved to Koha, you can run them by going to the 
Saved Reports page and clicking the 'Run' link to the right of the report.</p>
 
-<ul><li>This is optional, if you don't want to do any math on the results, 
just leave this section blank.</li></ul>
+<p>When you report runs you will either be asked for some value or you will 
see the results right away</p>
 
-<p><strong>Step 6: Choose how you want the report ordered</strong></p>
+<p>From the results you can choose to rerun the report by clicking 'Run 
report' at the top, edit the report by clicking the 'Edit' button or starting 
over and creating a new report by using the 'New' button. You can also download 
your results by choosing a file type at the bottom of the results next to the 
'Download the report' label and clicking 'Download.'</p>
 
-<ul><li>This is optional, if you want the results to come out as they are in 
the table, just leave this section blank.</li></ul>
+<p style="background-color: #ffe599;">Tip:  A Comma Separated Text file is a 
CSV file and it can be opened by any spreadsheet application.</p>
 
-<h2>Edit Reports</h2>
+<h3>DB table value for reports</h3>
 
-<p>Custom reports can be edited in their entirety from the Saved Guided 
Reports page.</p>
+<p><strong>Question:</strong> What do the codes in the accounttype field in 
the accountlines table stand for?</p>
 
-<ul><li><em>Get there:</em> More > Reports > Guided Reports > Use 
Saved</li></ul>
+<p><strong>Answer:</strong></p>
 
 <ul>
-<li>To edit a report click 'Edit SQL' beside the report</li>
-<li>A page with editable fields will open so that you can change the title, 
notes and SQL related to the report</li>
+       <li>A = Account management fee</li>
+       <li>C = Credit</li>
+       <li>F = Overdue fine</li>
+       <li>FOR = Forgiven</li>
+       <li>FU = Overdue, still acccruing</li>
+       <li>L = Lost item</li>
+       <li>LR = Lost item returned/refunded</li>
+       <li>M = Sundry</li>
+       <li>N = New card</li>
+       <li>PAY = Payment</li>
+       <li>W = Writeoff</li>
 </ul>
 
-<h2>Report from SQL</h2>
+<p><strong>Question:</strong> What are the possible codes for the type field 
in the statistics table?</p>
 
-<p>In addition to the report wizard, you have the option to write your own 
queries using SQL. To find reports written by other Koha users, visit the Koha 
Wiki: <a href="http://wiki.koha-community.org/wiki/SQL_Reports_Library"; 
target="_top">http://wiki.koha-community.org/wiki/SQL_Reports_Library</a>. You 
can also find your database structure in 
/installer/data/mysql/kohastructure.sql or online at: <a 
href="http://schema.koha-community.org/"; 
target="_top">http://schema.koha-community.org</a>.</p>
+<p><strong>Answer:</strong></p>
 
-<p>To add your query, click the link to 'Create from SQL' on the main reports 
module or the New button at the top of the Saved Reports page.</p>
-
-<p>Fill in the form presented</p>
 <ul>
-    <li>The 'Name' is what will appear on the Saved Reports page to help you 
identify the report later. It will also be searchable using the filters found 
the left of the Saved Reports page.</li>
-    <li>You can use the 'Report group' to organize your reports so that you 
can easily filter reports by groups. Report groups are set in the REPORT_GROUP 
authorized value category.</li>
-    <li>You can use 'Report subgroup' to further organize your reports so that 
you can easily filter reports by groups and subgroups. Report subgroups are set 
in the REPORT_SUBGROUP authorized value category.</li>
-    <li>'Report is public' should be left to the default of 'No' in most 
cases. A report can be made public if you intend to allow access to it through 
the JSON webservice interface. This is a system that can be used by developers 
to make custom presentations of the data from the report, for example 
displaying it using a graphing API. To learn more speak to your local developer.
+       <li>localuse
 <ul>
-    <li>A public report is accessible via a URL that looks like this: 
http://MYOPAC/cgi-bin/koha/svc/report?id=REPORTID</li>
+       <li>Registers if an item that had been checked out to a statistics 
patron (category type = 'X') is returned</li>
 </ul>
 </li>
-    <li>'Notes' will also appear on the Saved Reports page, this can be used 
to provide more details about the report or tips on how to enter values when it 
runs</li>
-    <li>The type should always be 'Tabular' at this time since theother 
formats have not been implemented</li>
-    <li>In the 'SQL' box you will type or paste the SQL for the report</li>
-    <li>If you feel that your report might be too resource intensive you might 
want to consider using runtime parameters to your query. Runtime parameters 
basically make a filter appear before the report is run to save your system 
resources.There is a specific syntax that Koha will understand as 'ask for 
values when running the report'. The syntax is &lt;&lt;Question to 
ask|authorized_value&gt;&gt;.
+       <li>issue</li>
+       <li>return</li>
+       <li>renew</li>
+       <li>writeoff</li>
+       <li>payment</li>
+       <li>CreditXXX
 <ul>
-    <li>The &lt;&lt; and &gt;&gt; are just delimiters. You must put &lt;&lt; 
at the beginning and &gt;&gt; at the end of your parameter</li>
-    <li>The 'Question to ask' will be displayed on the left of the string to 
enter.</li>
-    <li>The authorized_value can be omitted if not applicable. If it contains 
an authorized value category, or libraries or itemtype or categorycode, a list 
with the Koha authorized 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</li>
+       <li>stores different types of fee credits, so a query to catch them all 
would include a clause like "type LIKE 'Credit%'"</li>
 </ul>
-<p>Examples:</p>
+</li>
+</ul>
+
+<p><strong>Question</strong>: What are the possible codes for the found field 
in the reserves and old_reserves tables?</p>
+
+<p><strong>Answer</strong>:</p>
+
 <ul>
-    <li>SELECT surname, firstname<br />
-FROM borrowers <br />
-WHERE branchcode=&lt;&lt;Enter patrons library|branches&gt;&gt; AND surname 
like &lt;&lt;Enter filter for patron surname (% if none)&gt;&gt;</li>
-    <li>SELECT * <br />
-FROM items <br />
-WHERE homebranch = &lt;&lt;Pick your library|branches&gt;&gt; AND barcode like 
&lt;&lt;Partial barcode value here&gt;&gt;</li>
+       <li>NULL: means the patron requested the 1st available, and we haven't 
chosen the item</li>
+       <li>T = Transit: the reserve is linked to an item but is in transit to 
the pickup branch</li>
+       <li>W =Waiting: the reserve is linked to an item, is at the pickup 
branch, and is waiting on the hold shelf</li>
+       <li>F = Finished: the reserve has been completed, and is done</li>
 </ul>
-</li>
-    <li>Tip: To generate a date picker calendar to the right of the field when 
running a report you can use the 'date' keyword like this: &lt;&lt;Enter 
Date|date&gt;&gt;</li>
-    <li>Tip: You have to put "%" in a text box to 'leave it blank'. Otherwise, 
it literally looks for "" (empty string) as the value for the field.</li>
-    <li style="color: #990000">Important: In addition to using any authorized 
value code to generate a dropdown, you can use the following values as well: 
Libraries (branches), Item Types (itemtypes) and Patron Categories 
(categorycode). For example a library pull down would be generated like this 
&lt;&lt;Library|branches&gt;&gt;</li>
+
+<p><strong>Question</strong>: What are the possible codes for the area field 
in the reports_dictionary table?</p>
+
+<p><strong>Answer</strong>:</p>
+
+<ul>
+       <li>1 = Circulation</li>
+       <li>2 = Catalog</li>
+       <li>3 = Patrons</li>
+       <li>4 = Acquistions</li>
+       <li>5 = Accounts</li>
 </ul>
 
-<p>Note: There is a limit of 10,000 records put on SQL statements entered in 
Koha. To get around this you want to add 'LIMIT 100000' to the end of your SQL 
statement (or any other number above 10,000.</p>
+<p><strong>Question</strong>: What are the possible codes for the message_type 
field in the messages table?</p>
 
-<p>Once everything is entered click the 'Save Report' button and you'll be 
presented with options to run it. Once a report is saved you do not have to 
recreate it you can simply find it on the Saved Reports page and run or edit 
it.</p>
+<p><strong>Answer</strong>:</p>
+
+<ul>
+       <li>L = For Librarians</li>
+       <li>B = For Patrons/Borrowers</li>
+</ul>
 
-<p><strong>Is there a repository for reports?</strong></p>
+<p><strong>Question</strong>: What are the possible codes for the status field 
in the serial table"?</p>
 
-<p>There is a page on the Koha Wiki: <a 
href="http://wiki.koha-community.org/wiki/SQL_Reports_Library"; 
target="_new">http://wiki.koha-community.org/wiki/SQL_Reports_Library</a> with 
reports written by Koha libraries around the world.</p>
+<p><strong>Answer</strong>:</p>
 
-<p>NEKLS also has a great page (<a 
href="http://www.nexpresslibrary.org/training/reports-training/"; 
target="_new">http://www.nexpresslibrary.org/training/reports-training/</a>) 
with a list of reports they have written.</p>
+<ul>
+       <li>1 = Expected</li>
+       <li>2 = Arrived</li>
+       <li>3 = Late</li>
+       <li>4 = Missing</li>
+       <li>5 = Not Available</li>
+       <li>6 = Delete</li>
+</ul>
 
 <p><strong>See the full documentation for Custom Reports in the <a 
href="http://manual.koha-community.org/3.10/en/reports.html#customreports";>manual</a>
 (online).</strong></p>
 
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/issues_avg_stats.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/issues_avg_stats.tt
index 16c025b..479e9a3 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/issues_avg_stats.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/issues_avg_stats.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Average Loan Time</h1>
+<h1>Average loan time</h1>
 
 <p>This report will list the average time items are out on loan based on the 
criteria you enter</p>
 
@@ -8,6 +8,6 @@
 
 <p>You can also choose to export to a file that you can manipulate to your 
needs.</p>
 
-<p><strong>See the full documentation for the Average Loan Time report in the 
<a 
href="http://manual.koha-community.org/3.10/en/statsreports.html#avloantime";>manual</a>
 (online).</strong></p>
+<p><strong>See the full documentation for the Average Loan Time report in the 
<a 
href="http://manual.koha-community.org/3.12/en/statsreports.html#avloantime";>manual</a>
 (online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
\ No newline at end of file
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/issues_stats.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/issues_stats.tt
index 6117f00..068bff8 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/issues_stats.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/issues_stats.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Circulation Statistics</h1>
+<h1>Circulation statistics</h1>
 
 <p>Using the form provided, choose which value you would like to appear in the 
Column and which will appear in the Row.</p>
 
@@ -19,6 +19,6 @@
        <li>For a single day, an example would be: 11/15/2009 to 11/16/2009 to 
find what circulated on the 15th</li>
 </ul>
 
-<p><strong>See the full documentation for Circulation Statistics in the <a 
href="http://manual.koha-community.org/3.10/en/statsreports.html#circstats";>manual</a>
 (online).</strong></p>
+<p><strong>See the full documentation for Circulation Statistics in the <a 
href="http://manual.koha-community.org/3.12/en/statsreports.html#circstats";>manual</a>
 (online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/itemslost.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/itemslost.tt
index 5d48ded..4e33125 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/itemslost.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/itemslost.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Lost Items</h1>
+<h1>Lost items</h1>
 
 <p> This one-step report will show you how many items of each item type are 
currently in your library or libraries.</p>
 
@@ -16,6 +16,6 @@
                </ul>
        </div>  
 
-<p><strong>See the full documentation for the Lost Items report in the <a 
href="http://manual.koha-community.org/3.10/en/statsreports.html#lostreport";>manual</a>
 (online).</strong></p>
+<p><strong>See the full documentation for the Lost Items report in the <a 
href="http://manual.koha-community.org/3.12/en/statsreports.html#lostreport";>manual</a>
 (online).</strong></p>
        
 [% INCLUDE 'help-bottom.inc' %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/manager.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/manager.tt
index a9f3c02..3dd9ca2 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/manager.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/manager.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Catalog by Item Type</h1>
+<h1>Catalog by item type</h1>
 
 <p>This report will list the total number of items of each item type per 
library.</p>
 
@@ -8,6 +8,6 @@
 
 <p>You can also choose to export to a file that you can manipulate to your 
needs.</p>
 
-<p><strong>See the full documentation for the Catalog by Item Type report in 
the <a 
href="http://manual.koha-community.org/3.10/en/statsreports.html#catbyitem";>manual</a>
 (online).</strong></p>
+<p><strong>See the full documentation for the Catalog by Item Type report in 
the <a 
href="http://manual.koha-community.org/3.12/en/statsreports.html#catbyitem";>manual</a>
 (online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/reports-home.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/reports-home.tt
index c64c1a0..c7914cf 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/reports-home.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/reports-home.tt
@@ -19,6 +19,6 @@
 </li>
 </ul>
 
-<p><strong>See the full documentation for Reports in the <a 
href="http://manual.koha-community.org/3.10/en/reports.html";>manual</a> 
(online).</strong></p>
+<p><strong>See the full documentation for Reports in the <a 
href="http://manual.koha-community.org/3.12/en/reports.html";>manual</a> 
(online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
\ No newline at end of file
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/reserves_stats.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/reserves_stats.tt
index 463f441..91be5b8 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/reserves_stats.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/reserves_stats.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Holds Statistics</h1>
+<h1>Holds statistics</h1>
 
 <p><strong>Note:</strong> These reports are limited in what data they can look 
at, so it's often recommended to use custom reports for official end of the 
year statistics.</p>
 
@@ -10,6 +10,6 @@
 
 <p>You can also choose to export to a file that you can manipulate to your 
needs.</p>
 
-<p><strong>See the full documentation for Holds Statistics in the <a 
href="manual.koha-community.org/3.10/en/statsreports.html#holdstats">manual</a> 
(online).</strong></p>
+<p><strong>See the full documentation for Holds Statistics in the <a 
href="manual.koha-community.org/3.12/en/statsreports.html#holdstats">manual</a> 
(online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
\ No newline at end of file
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/serials_stats.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/serials_stats.tt
index dcb7d4b..1519f0d 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/serials_stats.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/serials_stats.tt
@@ -1,6 +1,6 @@
 [% INCLUDE 'help-top.inc' %]
 
-<h1>Serials Statistics</h1>
+<h1>Serials statistics</h1>
 
 <p>Using the form provided, choose how you would like to list the serials in 
your system.</p>
 
@@ -8,6 +8,6 @@
 
 <p>You can also choose to export to a file that you can manipulate to your 
needs.</p>
 
-<p><strong>See the full documentation for Serials Statistics in the <a 
href="http://manual.koha-community.org/3.10/en/statsreports.html#serialstats";>manual</a>
 (online).</strong></p>
+<p><strong>See the full documentation for Serials Statistics in the <a 
href="http://manual.koha-community.org/3.12/en/statsreports.html#serialstats";>manual</a>
 (online).</strong></p>
 
 [% INCLUDE 'help-bottom.inc' %]
\ No newline at end of file
-- 
1.7.2.3

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to