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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 1 Dec 2014 13:18:29 +0000 (10:18 -0300)
commit865996d097bbc4cc36fdb5231bacfaed822cfd54
tree500b2040fdea474c26bf8b32079c23cfdf97e962
parente232f3b64abe50eb24b37ae2308678b0f3351481
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>
reports/catalogue_stats.pl