Changeset 21308
- Timestamp:
- 2009-12-09T13:21:38+13:00 (14 years ago)
- Location:
- main/trunk/greenstone2/perllib/plugins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/ArchivesInfPlugin.pm
r21285 r21308 147 147 } 148 148 149 sub remove old{149 sub remove_all { 150 150 my $self = shift (@_); 151 151 my ($pluginfo, $base_dir, $processor, $maxdocs) = @_; 152 152 153 153 } 154 155 sub remove_one { 156 my $self = shift (@_); 157 my ($file, $oids) = @_; 158 159 } 160 161 154 162 # called at the end of each plugin pass 155 163 sub end { -
main/trunk/greenstone2/perllib/plugins/BasePlugin.pm
r21286 r21308 314 314 } 315 315 316 # In case a plugin (eg PharosImageIndexer) needs to do something extra 317 sub removeold { 316 # This is called once if removeold is set with import.pl. Most plugins will do 317 # nothing but if a plugin does any stuff outside of creating doc obj, then 318 # it may need to clear something. 319 sub remove_all { 318 320 my $self = shift (@_); 319 321 my ($pluginfo, $base_dir, $processor, $maxdocs) = @_; 322 } 323 324 # This is called per document for docs that have been deleted from the 325 # collection. Most plugins will do nothing 326 # but if a plugin does any stuff outside of creating doc obj, then it may need 327 # to clear something. 328 sub remove_one { 329 my $self = shift (@_); 330 331 my ($file, $oids) = @_; 320 332 } 321 333 -
main/trunk/greenstone2/perllib/plugins/DirectoryPlugin.pm
r21285 r21308 141 141 } 142 142 143 sub remove old{143 sub remove_all { 144 144 my $self = shift (@_); 145 145 my ($pluginfo, $base_dir, $processor, $maxdocs) = @_; 146 146 147 147 } 148 149 sub remove_one { 150 my $self = shift (@_); 151 my ($file, $oids) = @_; 152 153 } 154 155 148 156 # called at the end of each plugin pass 149 157 sub end { … … 567 575 568 576 my $tmpfile = Encode::encode_utf8($subfile); 569 #print STDERR "subfile = $subfile, tmpfile = $tmpfile\n";570 577 # Next add metadata read in XML files (if it is supplied) 571 578 if ($additionalmetadata == 1) {
Note:
See TracChangeset
for help on using the changeset viewer.