- Timestamp:
- 2018-10-23T17:27:36+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugouts/GreenstoneXMLPlugout.pm
r32513 r32533 134 134 } 135 135 } 136 $self->{'short_doc_file'} = &FileUtils::filenameConcatenate($doc_dir, "doc.xml");136 $self->{'short_doc_file'} = $self->get_short_doc_file($doc_dir); #&FileUtils::filenameConcatenate($doc_dir, "doc.xml"); 137 137 138 138 $self->store_output_info_reference($doc_obj); 139 139 140 } 141 142 # can be overridden in subclasses, for instance by GreenstoneSQLPlugout, to produce a different filename 143 # like docsql.xml 144 sub get_short_doc_file { 145 my $self = shift (@_); 146 my ($doc_dir) = @_; 147 return &FileUtils::filenameConcatenate($doc_dir, "doc.xml"); 148 } 149 150 # can be overridden in subclasses, for instance by GreenstoneSQLPlugout, to produce a different filename 151 # like docsql.xml 152 sub get_output_file { 153 my $self = shift (@_); 154 my ($doc_dir) = @_; 155 return &FileUtils::filenameConcatenate($self->{'output_dir'}, $doc_dir, "doc.xml"); 140 156 } 141 157 … … 159 175 $outhandler = $self->{'group_outhandler'}; 160 176 } else { 161 $output_file = &FileUtils::filenameConcatenate($self->{'output_dir'}, $doc_dir, "doc.xml");177 $output_file = $self->get_output_file($doc_dir); #&FileUtils::filenameConcatenate($self->{'output_dir'}, $doc_dir, "doc.xml"); 162 178 # open the new handle 163 179 $self->open_xslt_pipe($output_file, $self->{'xslt_file'});
Note:
See TracChangeset
for help on using the changeset viewer.