- Timestamp:
- 2018-10-24T20:11:33+13:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugouts/GreenstoneXMLPlugout.pm
r32534 r32536 94 94 $outhandler = $self->{'group_outhandler'}; 95 95 } else { 96 $output_file = $self->get_output_file($doc_dir); #&FileUtils::filenameConcatenate($self->{'output_dir'}, $doc_dir, "doc.xml"); 96 $output_file = &FileUtils::filenameConcatenate( 97 $self->{'output_dir'}, $doc_dir, $self->get_doc_xml_filename($doc_obj)); 97 98 # open the new handle 98 99 $self->open_xslt_pipe($output_file, $self->{'xslt_file'}); … … 134 135 } 135 136 } 136 $self->{'short_doc_file'} = $self->get_short_doc_file($doc_dir); #&FileUtils::filenameConcatenate($doc_dir, "doc.xml"); 137 $self->{'short_doc_file'} = &FileUtils::filenameConcatenate( 138 $doc_dir, $self->get_doc_xml_filename($doc_obj)); 137 139 138 140 $self->store_output_info_reference($doc_obj); … … 142 144 # can be overridden in subclasses, for instance by GreenstoneSQLPlugout, to produce a different filename 143 145 # 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"); 146 sub get_doc_xml_filename { 147 my $self = shift (@_); 148 my ($doc_obj) = @_; 149 return "doc.xml"; 156 150 } 157 151 … … 175 169 $outhandler = $self->{'group_outhandler'}; 176 170 } else { 177 $output_file = $self->get_output_file($doc_dir); #&FileUtils::filenameConcatenate($self->{'output_dir'}, $doc_dir, "doc.xml"); 171 $output_file = $output_file = &FileUtils::filenameConcatenate( 172 $self->{'output_dir'}, $doc_dir, $self->get_doc_xml_filename($doc_obj)); 178 173 # open the new handle 179 174 $self->open_xslt_pipe($output_file, $self->{'xslt_file'}); … … 235 230 } 236 231 } 237 $self->{'short_doc_file'} = $self->get_short_doc_file($doc_dir); #&FileUtils::filenameConcatenate($doc_dir, "doc.xml"); 232 $self->{'short_doc_file'} = &FileUtils::filenameConcatenate( 233 $doc_dir, $self->get_doc_xml_filename($doc_obj)); 238 234 239 235 $self->store_output_info_reference($doc_obj);
Note:
See TracChangeset
for help on using the changeset viewer.