For library administration, accreditation audits, and collection development, an item-by-item list is often too granular. A Title-Wise Administrative Report groups holdings by bibliographic record while summarizing copy counts, live availability, and total collection value. Below is a production-ready, institution-agnostic SQL report you can paste directly into Koha → Reports → Create from SQL . Title-Wise Administrative Report SQL SELECT b.biblionumber AS Biblio_ID, IFNULL(NULLIF(TRIM(BOTH ' /:;.,' FROM REGEXP_REPLACE( CONCAT_WS(' : ', NULLIF(TRIM(BOTH ' /:;.,' FROM b.title), ''), NULLIF(TRIM(BOTH ' /:;.,' FROM ExtractValue(bm.metadata, '//datafield[@tag="245"]/subfield[@code="b"]')), '') ), '[[:space:]]+', ' ' )), ''), '-') AS Title, IFNULL(NULLIF(TRIM(BOTH ' /:;.,' FROM REGEXP_REPLACE(b.author, ...
Essential Koha SQL Reports: Librarian Circulation Tracking, Item Type Inventory & Cataloguing Status
In Koha Integrated Library System (ILS) , standard circulation and cataloguing reports often miss key operational details—such as which staff member processed a check-in/checkout, or a unified view of item status, acquisition source, subject, and department. Below are production-tested, institution-agnostic SQL reports that any library can use directly in Koha → Reports → Create from SQL . 1. Date-Wise Check-in Report with Staff ID & Librarian Name In Koha's action_logs table, RETURN transactions store the patron's borrowernumber in object and the returned itemnumber in info . Matching on both within a short timestamp window reliably identifies the staff member who processed the check-in. SELECT DATE_FORMAT(s.datetime, '%d %b %Y %h:%i %p') AS Return_Date, DATE_FORMAT(s.datetime, '%d %b %Y') AS Date, i.barcode AS Barcode, b.title AS Title, b.author AS Author, p.cardnumber AS Card_No, p.firstname AS First_Name, p.surna...