Changeset 8370 for trunk/greenorg
- Timestamp:
- 2004-10-19T09:53:19+13:00 (20 years ago)
- Location:
- trunk/greenorg/macros
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/greenorg/macros/english.dm
r8331 r8370 1028 1028 1029 1029 _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?} 1030 1032 1031 1033 _headingcustomize_ {Customizing Your Greenstone Library} … … 1587 1589 1588 1590 <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> </td> 1596 </tr> 1597 <tr> 1589 1598 <td> PDFPlug </td> 1590 1599 <td> </td> … … 1715 1724 </ol> 1716 1725 } 1726 1727 _unknownplug_ {UnknownPlug is a simple plugin for importing files in formats 1728 that Greenstone doesn't know anything about. A dummy document will be 1729 created for every such file, and the file itself will be passed to Greenstone 1730 as the \"associated file\" of the document. 1731 <p> 1732 Here's an example where it is useful: A collection has pictures and includes 1733 a couple of quicktime movie files with names like DCP_0163.MOV. 1734 Rather than write a new plugin for quicktime movies, add this line to the 1735 collection configuration file: 1736 <center> 1737 <small><tt>plugin UnknownPlug -process_exp "*.MOV" -assoc_field "movie"</tt></small></center> 1738 <p> 1739 A document is created for each movie, with the associated movie 1740 file's name in the "movie" metadata field. In the collection's 1741 format strings, use the \{If\} macro to output different text for 1742 each type of file, like this: 1743 1744 <center> 1745 <small><tt> \{If\}\{[movie],<HTML for displaying movie>\}<br> 1746 \{If\}\{[Image],<HTML for displaying image>\}</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> 1751 The <tt>-process_exp</tt> option is a regular expression that matches filenames which should be processed by UnknownPlug. You can have several UnknownPlugs specified 1752 for a collection, each processing a different kind of file. 1753 <p> 1754 The <tt>-assoc_field</tt> option is the name of the metadata field that will hold the 1755 associated file's name. This can be used to test for these files. You can also specify the mime type of the files to 1756 be processed using the <tt>-mime_type</tt> option. To display the original file, use <tt>[srclink][/srclink]</tt> metadata. 1757 } 1758 1717 1759 1718 1760
Note:
See TracChangeset
for help on using the changeset viewer.