Changeset 19617
- Timestamp:
- 2009-05-27T13:56:41+12:00 (15 years ago)
- Location:
- gsdl/trunk/perllib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/doc.pm
r19494 r19617 300 300 if (defined $OID) { 301 301 $OID = 'J'.&File::Basename::basename($OID); 302 $OID = ~ s/\.//; #remove any periods302 $OID = &util::tidy_up_oid($OID); 303 303 } else { 304 304 print STDERR "Failed to find base for filename ($filename)...generating hash id\n"; … … 314 314 if (defined $identifier && $identifier ne "") { 315 315 $OID = $identifier; 316 if ($OID =~ /\./) { 317 print STDERR "Warning, assigned identifier $identifier contains periods (.), removing them\n"; 318 $OID =~ s/\.//g; #remove any periods 319 } 320 if ($OID =~ /^[\d]*$/) { 321 print STDERR "Warning, assigned identifier $identifier contains only digits. Prepending 'D'.\n"; 322 $OID = "D" . $OID; 323 } 316 $OID = &util::tidy_up_oid($OID); 324 317 } else { 325 318 # need a hash id -
gsdl/trunk/perllib/plugins/SplitTextFile.pm
r19493 r19617 306 306 if (defined $identifier && $identifier ne "") { 307 307 $full_id = $identifier; 308 $full_id =~ s/\.//g; #remove any periods 309 if ($full_id =~ /^[\d]*$/) { 310 $full_id = "D" . $full_id; 311 print STDERR "OID only contains numbers, adding a D\n"; 312 } 308 $full_id = &util::tidy_up_oid($full_id); 313 309 } 314 310 }
Note:
See TracChangeset
for help on using the changeset viewer.