Changeset 21564 for main/trunk/greenstone2/perllib/classify.pm
- Timestamp:
- 2010-01-21T15:59:35+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/classify.pm
r20575 r21564 204 204 # but do want things like hastxt and archivedir 205 205 my @items = split /@/, $doc_db_hash->{$key}; 206 # metadata is all from gdbmso should already be in utf8206 # metadata is all from the info database so should already be in utf8 207 207 map {$doc_obj->add_utf8_metadata ($cursection, $key, $_); } @items; 208 208 … … 214 214 sub db_rec_to_hash { 215 215 216 my ($ gdb_str_ref) = @_;216 my ($infodb_str_ref) = @_; 217 217 218 218 my $hashref = {}; 219 219 220 my @entries = split(/\n/, $ gdb_str_ref);220 my @entries = split(/\n/, $infodb_str_ref); 221 221 foreach my $entry (@entries) { 222 222 my($key, $value) = ($entry =~ /^<([^>]*)>(.*?)$/ );
Note:
See TracChangeset
for help on using the changeset viewer.