This changes the behavior of --items
authorJason Etheridge <jason@esilibrary.com>
Fri, 19 Dec 2014 20:11:14 +0000 (15:11 -0500)
committerJason Etheridge <jason@esilibrary.com>
Fri, 19 Dec 2014 21:07:17 +0000 (16:07 -0500)
commit4c0a382bcb327514cc4b2555a4f0764391cf1cdb
tree592aaab968b4e42dd51b51c67479e20e8c54c01f
parent8a3d755ac189b1b50c94446729b6b68dd005b815
This changes the behavior of --items

And adds an option for --exclude-itemless-bibs.  Previously, bib records without
items would not be exported at all with the --items argument.  Now they will (*),
but the --exclude-itemless-bibs argument will restore the original behavior.

* - This change was accomplished by performing a LEFT JOIN against the call number
and copy tables, but if the --library option is used, then the original vanilla
JOIN is still used, so whether an itemless bib will export or not with that
argument will depend on whether there is a non-deleted call number on the bib.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/support-scripts/marc_export.in