Alex Buckley and Aleisha Amohia
18 June 2021
Read the blog post
/* Hide the no image found image */
.no-image { display: none; }
/* Hide the MARC view and ISBD view tabs */
#views > .view > a:not(#Normalview)
{ display: none; }
Read the blog post
Using system preferences!
Koha reports wiki
Koha Database Schema
Important
Always run your report on your test site before trying it in production.
Do not query the action_logs table, use the Log Viewer Tool instead.
Do not refresh the page which running a report, and do not press Run more than once.
SELECT biblionumber FROM biblio
SELECT count(*) FROM auth_header
SELECT firstname, surname, email FROM borrowers
SELECT count(*) FROM statistics WHERE type = "issue"
SELECT count(*) FROM items WHERE barcode IS NULL
SELECT count(*) FROM items WHERE barcode IS NOT NULL
SELECT surname AS Surname, firstname AS "First Name", cardnumber AS "Card Number", email AS Email FROM borrowers WHERE email NOT LIKE '%_@__%.__%' ORDER BY email DESC
SELECT DISTINCT(itype) AS 'item types' FROM items
SELECT itemnumber, barcode FROM items WHERE homebranch = 'CPL' AND ccode = 'FIC'
SELECT b.title, b.author, i.itemcallnumber, i.barcode FROM items i LEFT JOIN biblio b USING (biblionumber) WHERE i.barcode IS NOT NULL OR i.ccode IS NOT NULL
SELECT DISTINCT firstname FROM borrowers WHERE NOT firstname LIKE "A%"
SELECT biblio.biblionumber, biblio.title FROM biblio WHERE biblio.frameworkcode=<<Please enter the framework code to filter on>>
SELECT itemnumber, barcode, ccode FROM items WHERE homebranch= <<Select the homebranch|branches>>
SELECT itemcallnumber, barcode FROM items WHERE ccode = <<Enter a collection code|CCODE>>
SELECT surname, firstname FROM borrowers WHERE branchcode=<<Select the borrower branch|branches>> ORDER BY surname, firstname ASC
SELECT surname, firstname FROM borrowers WHERE branchcode=<<Select the borrower branch|branches>> ORDER BY surname DESC, firstname ASC
SELECT * FROM statistics WHERE branch = 'CPL' LIMIT 20
SELECT b.biblionumber, b.title, i.barcode FROM biblio b LEFT JOIN items i USING (biblionumber) WHERE b.frameworkcode=<<Please enter the framework code to filter on>>
SELECT count(items.itemcallnumber) AS 'Number of Items', items.itemcallnumber FROM items GROUP BY items.itemcallnumber ORDER BY items.itemcallnumber ASC
SELECT GROUP_CONCAT(biblionumber SEPARATOR ', ') AS 'Duplicate biblionumbers', isbn FROM biblioitems GROUP BY isbn HAVING COUNT(isbn)>1
SELECT ExtractValue(metadata,'//datafield[@tag="245"]/*') AS 'Full Title information' FROM biblio_metadata WHERE biblionumber=<<Enter a biblionumber>>
SELECT ExtractValue(metadata, '//datafield[@tag="260"]/subfield[@code="b"]') AS PUBLISHER FROM biblio_metadata WHERE biblionumber=14
SELECT c.description, COUNT(*) AS 'Number of patrons expiring after this date' FROM borrowers b LEFT JOIN categories c USING (categorycode) WHERE b.dateexpiry > <<Choose a date|date>> GROUP BY b.categorycode
Read the blog post