Changeset 7701
- Timestamp:
- 2004-07-05T11:22:44+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/DBPlug.pm
r7685 r7701 242 242 my $cursection = $doc_obj->get_top_section(); 243 243 244 # if $language not set in config file, will use BasPlug's default 244 245 if (defined($language)) { 245 # if not set in config file, will use BasPlug's default246 246 $doc_obj->add_utf8_metadata($cursection, "Language", $language); 247 247 } 248 # if $encoding not set in config file, will use BasPlug's default 248 249 if (defined($encoding)) { 249 # if not set in config file, will use BasPlug's default 250 # allow some common aliases 251 if ($encoding =~ m/^utf[-_]8$/i) {$encoding="utf8"} 252 $encoding =~ s/-/_/g; # greenstone uses eg iso_8859_1 250 253 $doc_obj->add_utf8_metadata($cursection, "Encoding", $encoding); 251 254 }
Note:
See TracChangeset
for help on using the changeset viewer.