[open-ils-commits] [GIT] Evergreen ILS branch master updated. a2b7721969e23bcdbf0841473e533bcbc40f6934

Evergreen Git git at git.evergreen-ils.org
Tue Jan 10 11:32:34 EST 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  a2b7721969e23bcdbf0841473e533bcbc40f6934 (commit)
      from  6c87bbe67e65036ed4e6923623de27304b08aa0d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a2b7721969e23bcdbf0841473e533bcbc40f6934
Author: Dan Scott <dscott at laurentian.ca>
Date:   Tue Nov 29 23:09:47 2011 -0500

    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 at laurentian.ca>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/src/support-scripts/marc_export.in b/Open-ILS/src/support-scripts/marc_export.in
index c0ba796..588f8dd 100755
--- a/Open-ILS/src/support-scripts/marc_export.in
+++ b/Open-ILS/src/support-scripts/marc_export.in
@@ -400,10 +400,8 @@ sub add_bib_holdings {
                 for my $cp ( @$cn_map_list ) {
                     $count{cp}++;
                             
-                    $r->append_fields(
-                        MARC::Field->new(
-                            852, '4', '', 
-                            a => $location,
+                    $r->insert_grouped_field( MARC::Field->new( '852', '4', ' ',
+                            ($location ? ( 'a' => $location ) : ()),
                             b => $orgs{$cn->owning_lib}->shortname,
                             b => $orgs{$cp->circ_lib}->shortname,
                             c => $shelves{$cp->location}->name,

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/support-scripts/marc_export.in |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list