Changeset 13157


Ignore:
Timestamp:
2006-10-20T15:52:38+13:00 (18 years ago)
Author:
mdewsnip
Message:

Now only adds * metadata values if the field is specified to have subfields in the FDT file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/ISISPlug.pm

    r12833 r13157  
    230230            }
    231231
    232             # If this is the first subfield then the value is used for the CDS/ISIS ^* field
    233             if ($metadata_value eq "") {
     232            # If this tag has subfields and this is the first, use the value for the CDS/ISIS ^* field
     233            if ($fdt_mapping->{$tag}{'subfields'} ne "" && $metadata_value eq "") {
    234234            $doc_obj->add_utf8_metadata($section, $metadata_name . "^*", $sub_metadata_value);
    235235            }
     
    292292        }
    293293
    294         # If this is the first subfield then the value is used for the CDS/ISIS ^* field
    295         if ($metadata_value eq "") {
     294        # If this tag has subfields and this is the first, use the value for the CDS/ISIS ^* field
     295        if ($fdt_mapping->{$tag}{'subfields'} ne "" && $metadata_value eq "") {
    296296            $doc_obj->add_utf8_metadata($section, $metadata_name . "^*", $sub_metadata_value);
    297297        }
Note: See TracChangeset for help on using the changeset viewer.