]> git.koha-community.org Git - koha.git/commit
Bug 12567: Make catalog statistics wizard publication year work for MARC21
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Mon, 10 Nov 2014 21:30:16 +0000 (22:30 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 1 Dec 2014 19:23:03 +0000 (08:23 +1300)
commit5e51a4cb4d217192c84f89fd77c54169dd713a89
tree4af9800f0f15770ce37bd0d4473cdc8eae958b06
parent56135374874818cc3c10c08f40829478da9ffda0
Bug 12567: Make catalog statistics wizard publication year work for MARC21

Publication year was useless for MARC21, as it was using the
biblioitems.publicationyear (UNIMARC) instead of biblio.copyrightdate
(MARC21).

This patch tries to fix the search options to work for both MARC
flavours.

To test:
In Reports > Statistics wizards > Catalog:
- Test the publication year search options on a UNIMARC and
  a MARC21 installation.
- Make sure search results make sense for both.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
The changes are fine with me, but this script is certainly not bug free.
Also note that all its SQL should be moved out according to our
coding guidelines. When doing so, a rewrite would be appropriate.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 865996d097bbc4cc36fdb5231bacfaed822cfd54)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
reports/catalogue_stats.pl