Changeset 15620 for gsdl/trunk/bin/script/export.pl
- Timestamp:
- 2008-05-21T20:10:00+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/bin/script/export.pl
r14942 r15620 287 287 my $val = $field_hash->{$k}; 288 288 289 290 ### print STDERR "*** $k = $field_hash->{$k}\n"; 289 ### print STDERR "*** $k = $field_hash->{$k}\n"; 291 290 292 291 my $md_label = "ex.$field"; … … 303 302 $doc_obj->add_utf8_metadata($section,$md_label, $val); 304 303 304 # see cfgread4gs3.pm: GS2's "collectionextra" is called "description" in GS3, 305 # while "collectionname" in GS2 is called "name" in GS3. 306 # Variable $nameMap variable in cfgread4gs3.pm maps between GS2 and GS3 305 307 if (($md_label eq "ex.collectionname^en") || ($md_label eq "ex.collectionname")) 306 308 { … … 617 619 my $doc_obj = new doc($configfilename,"nonindexed_doc"); 618 620 $doc_obj->set_OID("collection"); 619 621 620 622 my $col_name = undef; 621 623 my $col_meta = $collectcfg->{'collectionmeta'}; 624 622 625 if (defined $col_meta) 623 626 { 624 store_collectionmeta($col_meta,"collectionname",$doc_obj); 625 store_collectionmeta($col_meta,"collectioextra",$doc_obj); 626 627 } 628 627 store_collectionmeta($col_meta,"collectionname",$doc_obj); # in GS3 this is a collection's name 628 store_collectionmeta($col_meta,"collectionextra",$doc_obj); # in GS3 this is a collection's description 629 630 } 629 631 $processor->process($doc_obj); 630 632 }
Note:
See TracChangeset
for help on using the changeset viewer.