- Timestamp:
- 2013-10-31T11:27:57+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugouts/FedoraMETSPlugout.pm
r24829 r28562 137 137 $section_fnum =~ s/\./_/g; 138 138 139 my $doc_txt_file = & util::filename_cat($working_dir,"doctxt$section_fnum.xml");139 my $doc_txt_file = &FileUtils::filenameConcatenate ($working_dir,"doctxt$section_fnum.xml"); 140 140 141 141 $self->open_xslt_pipe($doc_txt_file,$self->{'xslt_txt'}); … … 280 280 if ($num_subsections>0) { 281 281 282 my $doc_txt_file = & util::filename_cat($working_dir,"doctoc.xml");282 my $doc_txt_file = &FileUtils::filenameConcatenate ($working_dir,"doctoc.xml"); 283 283 284 284 $self->open_xslt_pipe($doc_txt_file,$self->{'xslt_txt'}); … … 601 601 if (defined $ENV{'GSDL3SRCHOME'}) { # we're dealing with a GS3 server 602 602 if(defined $ENV{'GSDL3HOME'}) { # in case the web directory is located in a separate place 603 $collectparent = & util::filename_cat($ENV{'GSDL3HOME'},"sites","localsite");603 $collectparent = &FileUtils::filenameConcatenate($ENV{'GSDL3HOME'},"sites","localsite"); 604 604 } 605 605 else { # try the default location for the web directory 606 $collectparent = & util::filename_cat($ENV{'GSDL3SRCHOME'},"web","sites","localsite");606 $collectparent = &FileUtils::filenameConcatenate($ENV{'GSDL3SRCHOME'},"web","sites","localsite"); 607 607 } 608 608 } … … 612 612 } 613 613 614 my $gsdl_href = & util::filename_cat($working_dir, $fname);614 my $gsdl_href = &FileUtils::filenameConcatenate($working_dir, $fname); 615 615 $collectparent = &util::filename_to_regex($collectparent); # escape reserved metacharacter \ in path (by replacing it with \\) for substitution 616 616 $gsdl_href =~ s/^$collectparent(\/|\\)?//; # remove the collectparent path in gsdl_href and any trailing slash 617 617 $gsdl_href =~ s/\\/\//g; # make sure we have url paths (which only use / not \) 618 my $localfedora = & util::filename_cat($ENV{'GSDL3SRCHOME'}, "packages", "tomcat", "conf", "Catalina", "localhost", "fedora.xml");618 my $localfedora = &FileUtils::filenameConcatenate($ENV{'GSDL3SRCHOME'}, "packages", "tomcat", "conf", "Catalina", "localhost", "fedora.xml"); 619 619 620 620 my $greenstone_url_prefix = &util::get_greenstone_url_prefix(); … … 732 732 if (defined $ENV{'GSDL3SRCHOME'}) { # we're dealing with a GS3 server 733 733 if(defined $ENV{'GSDL3HOME'}) { # in case the web directory is located in a separate place 734 $collectparent = & util::filename_cat($ENV{'GSDL3HOME'},"sites","localsite");734 $collectparent = &FileUtils::filenameConcatenate($ENV{'GSDL3HOME'},"sites","localsite"); 735 735 } 736 736 else { # try the default location for the web directory 737 $collectparent = & util::filename_cat($ENV{'GSDL3SRCHOME'},"web","sites","localsite");737 $collectparent = &FileUtils::filenameConcatenate($ENV{'GSDL3SRCHOME'},"web","sites","localsite"); 738 738 } 739 739 } … … 743 743 } 744 744 745 my $gsdl_href = & util::filename_cat($working_dir,$assfilePath);745 my $gsdl_href = &FileUtils::filenameConcatenate($working_dir,$assfilePath); 746 746 $collectparent = &util::filename_to_regex($collectparent); # escape reserved metacharacter \ in path (by replacing it with \\) for substitution 747 747 $gsdl_href =~ s/^$collectparent(\/|\\)?//; # remove the collectparent path in gsdl_href and any trailing slash 748 748 $gsdl_href =~ s/\\/\//g; # make sure we have url paths (which only use / not \) 749 my $localfedora = & util::filename_cat($ENV{'GSDL3SRCHOME'}, "packages", "tomcat", "conf", "Catalina", "localhost", "fedora.xml");749 my $localfedora = &FileUtils::filenameConcatenate($ENV{'GSDL3SRCHOME'}, "packages", "tomcat", "conf", "Catalina", "localhost", "fedora.xml"); 750 750 751 751 my $greenstone_url_prefix = &util::get_greenstone_url_prefix();
Note:
See TracChangeset
for help on using the changeset viewer.