Changeset 15604 for gsdl/trunk/perllib/plugouts/FedoraMETSPlugout.pm
- Timestamp:
- 2008-05-20T18:41:24+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/plugouts/FedoraMETSPlugout.pm
r15583 r15604 497 497 498 498 499 500 501 499 sub doctxt_to_xlink 502 500 { … … 522 520 523 521 my $gsdl_href = "$working_dir/$fname"; 524 525 $collectparent =~ s/\\/|/g; # Temporarily replace any back slashes in the file path with | 526 $gsdl_href =~ s/^$collectparent(\/)?//; 527 $gsdl_href = "/gsdl/$gsdl_href"; 528 $collectparent =~ s/\|/\\/g; # Change the | in the file path back into backslashes 529 522 $collectparent =~ s/\\/\\\\/g; # escape reserved metacharacter \ in path (by replacing it with \\) for substitution 523 $gsdl_href =~ s/^$collectparent(\/|\\)?//; # remove the collectparent path in gsdl_href and any trailing slash 524 $gsdl_href =~ s/\\/\//g; # make sure we have url paths (which only use / not \) 525 $gsdl_href = "/gsdl/$gsdl_href"; # prepend gsdl 526 530 527 my $fserver = $ENV{'FEDORA_HOSTNAME'}; 531 528 my $fport = $ENV{'FEDORA_SERVER_PORT'}; … … 646 643 647 644 my $gsdl_href = "$working_dir/$assfilePath"; 648 649 $gsdl_href =~ s/^$collectparent(\/)?//; 650 $gsdl_href = "/gsdl/$gsdl_href"; 651 645 $collectparent =~ s/\\/\\\\/g; # escape reserved metacharacter \ in path (by replacing it with \\) for substitution 646 $gsdl_href =~ s/^$collectparent(\/|\\)?//; # remove the collectparent path in gsdl_href and any trailing slash 647 $gsdl_href =~ s/\\/\//g; # make sure we have url paths (which only use / not \) 648 $gsdl_href = "/gsdl/$gsdl_href"; # prepend gsdl 649 652 650 my $fserver = $ENV{'FEDORA_HOSTNAME'}; 653 651 my $fport = $ENV{'FEDORA_SERVER_PORT'};
Note:
See TracChangeset
for help on using the changeset viewer.