- Timestamp:
- 2023-09-23T18:25:57+12:00 (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/cgiactions/modmetadataaction.pm
r37734 r38190 279 279 } 280 280 281 if($found == 0){ 282 $doc_rec->{$metaname} = [ $metavalue ]; 281 if($found == 0){ 282 print STDERR "**** Warning: could not find $prevmetavalue to replace. Appending (accumulating) replacement value.\n"; 283 ##$doc_rec->{$metaname} = [ $metavalue ]; # if prevmetavalue not found, don't overwrite all previous values. 284 # Accumulate is less destructive. But should the correct behaviour be to not do Anything? 285 286 if(defined $doc_rec->{$metaname}) { 287 push(@{$doc_rec->{$metaname}}, $metavalue); # accumulate the value for that metaname 288 } else { 289 $doc_rec->{$metaname} = [ $metavalue ]; 290 } 283 291 } 284 292 }
Note:
See TracChangeset
for help on using the changeset viewer.