Prevent null 852 $a in marc_export user/dbs/marc_export_fix_location
authorDan Scott <dscott@laurentian.ca>
Wed, 30 Nov 2011 04:09:47 +0000 (23:09 -0500)
committerDan Scott <dscott@laurentian.ca>
Wed, 30 Nov 2011 18:47:27 +0000 (13:47 -0500)
commit4041a7071853c027e15aa13bd01583a4b9b4b38a
tree568f37d6c9e32a46c19107e7fbbd89e02e8e84fb
parentc1202c1492a210ea51610a164d938faef4a4d28c
Prevent null 852 $a in marc_export

852 $a is supposed to correspond to the institution holding the item
from which access is given, according to the MARC Format for Holdings
Data specification. As the org unit shortnames typically don't
correspond to one of the MARC Code List for Organization entries, we've
assumed that users will define the --location parameter; however, if
that parameter isn't defined, the empty string is used and an empty
subfield is generated. This, in turn, makes other MARC-parsing tools
unhappy. So, only generate an 852 $a if we have an actual value for the
--location parameter.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/support-scripts/marc_export.in