Changeset 24414 for main/trunk/greenstone2/perllib
- Timestamp:
- 2011-08-16T21:17:46+12:00 (13 years ago)
- Location:
- main/trunk/greenstone2/perllib/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/EmbeddedMetadataPlugin.pm
r24404 r24414 139 139 140 140 # this plugin will look for metadata in any file through its 141 # metadata_read() returning undef here means anything else further141 # metadata_read(). Returning undef here means anything else further 142 142 # down the pipeline can do the same 143 143 … … 297 297 298 298 # we don't want to process directories 299 if (!-f $filename_full_path || !$self->can_process_this_file($filename_full_path)) {299 if (!-f $filename_full_path) { 300 300 return undef; 301 301 } -
main/trunk/greenstone2/perllib/plugins/PDFPlugin.pm
r24290 r24414 213 213 } 214 214 215 # Even if a plugin can extract metadata in its metadata_read pass, 216 # make the default return 'undef' so processing of the file continues 217 # down the pipeline, so other plugins can also have the opportunity to 218 # locate metadata and set it up in the extrametakeys variables that 219 # are passed around. 220 sub can_process_this_file_for_metadata { 221 my $self = shift(@_); 222 223 # this plugin will look for metadata in any file through its 224 # metadata_read(). Returning undef here means anything else further 225 # down the pipeline can do the same 226 227 return 0; 228 } 229 215 230 sub init { 216 231 my $self = shift (@_);
Note:
See TracChangeset
for help on using the changeset viewer.