[greenstone-users] associate_ext and associate_tail_re not working on Greenstone 2.84rc1

From Library, SEAFDEC/AQD
DateThu Jan 13 16:01:30 2011
Subject [greenstone-users] associate_ext and associate_tail_re not working on Greenstone 2.84rc1
In-Reply-To (4D2E31CD-5040303-cs-waikato-ac-nz)
Hello Katherine,

>From what line of BasePlugin.pm should I copy to DirectoryPlugin.pm? I tried
commenting the line that says
"$self->block_filename($block_hash,"$prefix$e");" and I can build my
collection successfully but I have lots of WARNING: no plugin could
recognize filefile.pdf although equivlink showed up on the enrich pane of
GLI.

Thanks and regards

On Thu, Jan 13, 2011 at 6:57 AM, Katherine Don <kjdon@cs.waikato.ac.nz>wrote:

> Hi
>
> Thanks for trying out the 2.84rc release. You have discovered a bug. I have
> fixed it for the next version.
>
> In the meantime, you can fix it by copying the block_filename method from
> perllib/plugins/BasePlugin.pm into perllib/plugins/DirectoryPlugin.pm. This
> is not how I fixed it, but I think this should work for now.
>
> Regards,
> Katherine
>
>
> Library, SEAFDEC/AQD wrote:
>
>> Dear Greenstone Team,
>>
>> I can't build my collection if I enable associate_ext or
>> associate_tail_re in HTMLPlugin. I have this error:
>>
>> import.pl> Can't locate object method "block_filename" via package
>> "DirectoryPlugin" at C:Documents and
>> SettingsuserGreenstoneperllibpluginsDirectoryPlugin.pm line 237.
>> import.pl> Error: Failed to run: "C:Documents and
>> SettingsuserGreenstonebinwindowsperlbinPerl.exe" -S import.pl
>> -removeold "-gli" "-language" "en" "-collectdir" "C:Documents and
>> SettingsuserGreenstonecollect" "-OIDtype" "assigned" "-OIDmetadata"
>> "Source" "seafdecp"
>> import.pl> Command failed.
>>
>> My associate files were all pdfs. If I didn't tick associate_ext or
>> associate_tail_re, I can build my collection successfully, but then I
>> am using ex.equivlink in my format statements, so obviously there
>> would be no pdf version that will appear in my lists. Here's some
>> portion of my collect.cfg:
>> buildtype mgpp
>>
>> indexes allfields text dc.Title,ex.Title
>> dc.Creator,ex.Author,ex.Creator dc.Subject,ex.Subjects
>> defaultindex text
>>
>> levels document section
>>
>> indexoptions accentfold casefold stem
>>
>> defaultlevel section
>>
>> plugin ZIPPlugin
>> plugin GreenstoneXMLPlugin
>> plugin HTMLPlugin -nolinks -sectionalise_using_h_tags
>> -description_tags -hunt_creator_metadata -keep_head
>> -no_strip_metadata_html all -metadata_fields Author,Creator
>> -rename_assoc_files -associate_tail_re (?i)(.pdf)$
>> plugin MetadataXMLPlugin
>> plugin ArchivesInfPlugin
>> plugin DirectoryPlugin
>>
>> classify AZList -metadata Title
>> classify AZCompactList -metadata ex.Creator,ex.Author -buttonname
>> Authors -allvalues -sort ex.Title
>> classify Hierarchy -metadata ex.Subjects -allvalues -reverse_sort
>> -documents_last -sort ex.Date
>> classify DateList -metadata ex.Date -buttonname Year
>> classify List -metadata Source -partition_type_within_level
>> approximate_size
>>
>> Thanks and more power to the Greenstone team!
>>
>>
>>
>


--
Elvi S. Nemiz
Information Assistant
Library and Databank Services
Aquaculture Department
Southeast Asian Fisheries Development Center
Tigbauan, Iloilo 5021
PHILIPPINES
Tel. (63-33) 511-9170, 511-9171 local 409, 413
Fax (63-33) 511 8709
Email: library@seafdec.org.ph, esnemiz@seafdec.org.ph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-users/attachments/20110113/e6c14281/attachment.html