Koha/reports
Eivin Giske Skaaren cf529864ce Bug 10154 Add Call number in the filter of most circulated items
This patch adds call number, collection code and shelving location to
the filter.

To test:

It is of course a prerequisite to have items in the DB with the correct
MARC fields and that they have been checked out etc. to get a valid
result when testing.

1. Apply patch to koha synced to master.
2. Go to /cgi-bin/koha/reports/cat_issues_top.pl
3. Select filters, the new ones are Call number, Collection code and
   Shelving location
4. Hit submit.

Expected result:
The filters chosen will be printed under "Filtered on".
A table with the result is shown.

For manual verification here is some SQL to run:

SELECT DISTINCT biblio.title, COUNT(biblio.biblionumber) AS RANK, biblio.biblionumber AS ID, itemcallnumber as CALLNUM, ccode as CCODE, location as LOC FROM `old_issues`
                  LEFT JOIN items USING(itemnumber)
                  LEFT JOIN biblio USING(biblionumber)
                  LEFT JOIN biblioitems USING(biblionumber)
                  LEFT JOIN borrowers USING(borrowernumber)
                  WHERE 1 AND biblioitems.itemtype like 'BK' AND itemcallnumber like '005.2/762' AND ccode like 'NFIC' AND location like 'CART' AND borrowers.categorycode like 'PT' group by biblio.biblionumber order by RANK DESC;

Put in your valid values in the WHERE clause for the values in the
single quotes ''.

Sponsored-by: Halland county library

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
  It works as described. Valid results, tested in various combinations.
  Follows the coding (awful) style of the original script, without
  introducing any regression. It would have been great to have
  callnumber interval, but anyway...

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2015-12-31 16:16:10 +00:00
..
acquisitions_stats.pl Bug 15250: Fix Perl error on acqisition stats page 2015-12-04 14:24:55 +00:00
bor_issues_top.pl Bug 14965: Remove C4::Dates from 'lists' in folder reports 2015-11-05 09:56:52 -03:00
borrowers_out.pl Bug 14965: Remove C4::Dates from 'lists' in folder reports 2015-11-05 09:56:52 -03:00
borrowers_stats.pl Bug 15373: More changes of Zip to ZIP on intranet 2015-12-30 16:30:35 +00:00
cat_issues_top.pl Bug 10154 Add Call number in the filter of most circulated items 2015-12-31 16:16:10 +00:00
catalogue_out.pl Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
catalogue_stats.pl Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
dictionary.pl Bug 14982: Remove C4::Dates from guided report wizard and dictionary 2015-10-26 11:20:11 -03:00
guided_reports.pl Bug 15366 - Fix breadcrumbs and html page title in guided reports 2015-12-29 20:44:08 +00:00
issues_avg_stats.pl Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
issues_by_borrower_category.plugin Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
issues_stats.pl Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
itemslost.pl Bug 14965: Remove C4::Dates from 'lists' in folder reports 2015-11-05 09:56:52 -03:00
itemtypes.plugin Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
manager.pl Bug 9006: Remove AUTOLOAD in C4::Context 2015-07-20 10:11:41 -03:00
reports-home.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
reserves_stats.pl Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
serials_stats.pl Bug 14961: Remove C4::Dates from files reports/*_stats.pl 2015-10-26 11:19:36 -03:00
stats.print.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
stats.screen.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00