Changeset 8370


Ignore:
Timestamp:
2004-10-19T09:53:19+13:00 (20 years ago)
Author:
kjdon
Message:

added a new faq about using UnknownPlug

Location:
trunk/greenorg/macros
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/greenorg/macros/english.dm

    r8331 r8370  
    10281028
    10291029_tfaqplugins2title_ {I'm having problems with my PDF files! What's wrong?}
     1030
     1031_tfaqplugins3title_ {How do I use UnknownPlug to handle my new format?}
    10301032
    10311033_headingcustomize_ {Customizing Your Greenstone Library}
     
    15871589
    15881590<tr>
     1591  <td> PagedImgPlug </td>
     1592  <td> Image, ImageHeight, ImageSize, ImageType, ImageWidth, ScreenHeight,
     1593        screenicon, ScreenSize, ScreenType, ScreenWidth, Source, srclink,
     1594        srcicon, Thumb, ThumbHeight, ThumbType, ThumbWidth </td>
     1595  <td>&nbsp;</td>
     1596</tr>
     1597<tr>
    15891598  <td> PDFPlug </td>
    15901599  <td>&nbsp;</td>
     
    17151724</ol>
    17161725}
     1726
     1727_unknownplug_ {UnknownPlug is a simple plugin for importing files in formats
     1728that Greenstone doesn't know anything about.  A dummy document will be
     1729created for every such file, and the file itself will be passed to Greenstone
     1730as the \"associated file\" of the document.
     1731<p>
     1732Here's an example where it is useful: A collection has pictures and includes
     1733a couple of quicktime movie files with names like DCP_0163.MOV. 
     1734Rather than write a new plugin for quicktime movies, add this line to the
     1735collection configuration file:
     1736<center>
     1737<small><tt>plugin UnknownPlug -process_exp "*.MOV" -assoc_field "movie"</tt></small></center>
     1738<p>
     1739A document is created for each movie, with the associated movie
     1740file's name in the "movie" metadata field.  In the collection's
     1741format strings, use the \{If\} macro to output different text for
     1742each type of file, like this:
     1743
     1744<center>
     1745<small><tt> \{If\}\{[movie],&lt;HTML for displaying movie&gt;\}<br>
     1746\{If\}\{[Image],&lt;HTML for displaying image&gt;\}</tt></small></center>
     1747<p>
     1748 You can also add extra metadata, such as the Title, Subject, and
     1749 Duration, using the Librarian Interface (or with metadata.xml files and RecPlug). 
     1750<p>
     1751The <tt>-process_exp</tt> option is a regular expression that matches filenames which should be processed by UnknownPlug. You can have several UnknownPlugs specified
     1752for a collection, each processing a different kind of file.
     1753<p>
     1754The <tt>-assoc_field</tt> option is the name of the metadata field that will hold the
     1755associated file's name. This can be used to test for these files. You can also specify the mime type of the files to
     1756be processed using the <tt>-mime_type</tt> option. To display the original file, use <tt>[srclink][/srclink]</tt> metadata.
     1757}
     1758
    17171759
    17181760
Note: See TracChangeset for help on using the changeset viewer.