CREW
Cantankerous Reports for Extraordinary Weeding
Apologies . . .
CREW�https://www.tsl.texas.gov/ld/pubs/crew/index.html
A weeding report
WHEN b.copyrightdate <= year(date_sub(curdate(),interval age year)) THEN 'Weed for age'
WHEN coalesce(i.datelastborrowed,i.dateaccessioned) <= date_sub(curdate(),interval last_circ year) THEN 'Weed for usage'
A workable option
If it’s non-fiction, do some complicated nonsense. Otherwise, use the display value of the collection code.
SELECT
FROM
( SELECT
FROM
(SELECT
FROM items
LEFT JOIN biblio
LEFT JOIN authorised_values
LEFT JOIN CREW [list of all items with CREW values]
) SPEW [list of all items with action]
) BLEW [subtotals grouped by action & call number]
LEFT JOIN BLEW_EE [subtotals grouped by call number]
Conclusion?
Andrew Fuerste-Henry
Koha-US System Administration SIG, 10am CT,2nd Tuesday