- Timestamp:
- 2010-02-16T19:57:37+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugouts/FedoraMETSPlugout.pm
r21687 r21719 68 68 69 69 my $self = new METSPlugout($plugoutlist,$inputargs,$hashArgOptLists); 70 70 71 71 return bless $self, $class; 72 72 } … … 544 544 $gsdl_href =~ s/\\/\//g; # make sure we have url paths (which only use / not \) 545 545 my $localfedora = &util::filename_cat($ENV{'GSDL3SRCHOME'}, "packages", "tomcat", "conf", "Catalina", "localhost", "fedora.xml"); 546 if($ENV{'GSDL3SRCHOME'} && -e $localfedora) { # prepend gsdl 547 $gsdl_href = "/greenstone3/sites/localsite/$gsdl_href"; # Fedora uses Greenstone's tomcat 546 547 my $greenstone_url_prefix = &util::get_greenstone_url_prefix(); 548 # prepend url_prefix (which will contain the forward slash upfront) 549 if($ENV{'GSDL3SRCHOME'} && -e $localfedora) { # Fedora uses Greenstone's tomcat. 550 $gsdl_href = "$greenstone_url_prefix/sites/localsite/$gsdl_href"; # Default: /greenstone3/sites/localsite/$gsdl_href 548 551 } else { 549 $gsdl_href = " /gsdl/$gsdl_href";552 $gsdl_href = "$greenstone_url_prefix/$gsdl_href"; # By default: "/greenstone/$gsdl_href"; 550 553 } 551 554 … … 680 683 $gsdl_href =~ s/\\/\//g; # make sure we have url paths (which only use / not \) 681 684 my $localfedora = &util::filename_cat($ENV{'GSDL3SRCHOME'}, "packages", "tomcat", "conf", "Catalina", "localhost", "fedora.xml"); 682 if($ENV{'GSDL3SRCHOME'} && -e $localfedora) { # prepend gsdl 683 $gsdl_href = "/greenstone3/sites/localsite/$gsdl_href"; # Fedora uses Greenstone's tomcat 685 686 my $greenstone_url_prefix = &util::get_greenstone_url_prefix(); 687 # prepend url_prefix (which will contain the forward slash upfront) 688 if($ENV{'GSDL3SRCHOME'} && -e $localfedora) { # Fedora uses Greenstone's tomcat. 689 $gsdl_href = "$greenstone_url_prefix/sites/localsite/$gsdl_href"; # Default: /greenstone3/sites/localsite/$gsdl_href 684 690 } else { 685 $gsdl_href = " /gsdl/$gsdl_href";691 $gsdl_href = "$greenstone_url_prefix/$gsdl_href"; # By default: "/greenstone/$gsdl_href"; 686 692 } 687 693
Note:
See TracChangeset
for help on using the changeset viewer.