- Timestamp:
- 2009-04-21T15:56:39+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
collections/documented-examples/trunk/pagedimg-e/etc/collect.cfg
r19060 r19168 8 8 plugin GreenstoneXMLPlugin 9 9 # We want the two types of paged documents to be treated differently: paged 10 # and hierarchical. So include two PagedImgPlug plugins and modify the process_exp. 10 # and hierarchical. So include two PagedImagePlugin plugins and modify the 11 # process_exp. 11 12 plugin PagedImagePlugin -create_screenview true -minimumsize 100 -documenttype hierarchy -process_exp xml.*\.item$ 12 13 plugin PagedImagePlugin -create_screenview true -minimumsize 100 -documenttype paged … … 37 38 format AllowExtendedOptions true 38 39 39 # We want to add in fullsize/preview/text buttons to switch between the different versions of each page 40 # We want to add in fullsize/preview/text buttons to switch between the 41 # different versions of each page 40 42 41 43 format DocumentHeading "<center><table width=_pagewidth_> … … 44 46 [DocumentButtonDetach][DocumentButtonHighlight] 45 47 {If}{_cgiargp_ eq 'fullsize',{If}{[screenicon],_document:viewpreview_} 46 {If}{[ Text] ne \'This document has no text. \',_document:viewtext_},48 {If}{[NoText] eq \'1\',,_document:viewtext_}, 47 49 {If}{_cgiargp_ eq 'preview',{If}{[srcicon],_document:viewfullsize_} 48 {If}{[ Text] ne \'This document has no text. \',_document:viewtext_},50 {If}{[NoText] eq \'1\',,_document:viewtext_}, 49 51 {If}{[srcicon],_document:viewfullsize_} 50 52 {If}{[screenicon],_document:viewpreview_}}} … … 56 58 #fullsize/preview/text versions. 57 59 format DocumentText "<center><table width=_pagewidth_><tr><td> 58 {If}{_cgiargp_ eq 'fullsize',[srcicon],59 {If}{_cgiargp_ eq 'preview',[screenicon],{If}{[Text] ne \'This document has no text. \',[Text]}}}60 {If}{_cgiargp_ eq \'fullsize\',[srcicon], 61 {If}{_cgiargp_ eq \'preview\',[screenicon],{If}{[NoText] eq \'1\',,[Text]}}} 60 62 </td></tr></table></center>" 61 63 … … 74 76 <p>Each newspaper issue consists of a set of images, one per page, and a set 75 77 of text files for the OCR'd text. An item file links the set of pages into a 76 single newspaper document. PagedIm gPlugis used to process the item files.78 single newspaper document. PagedImagePlugin is used to process the item files. 77 79 <p>There are two styles of item files, and this collection demonstrates both. 78 80 The first uses a text based format, and consists of a list of metadata for the … … 91 93 or with next and previous page arrows, and a goto page box 92 94 (e.g. <a href='?a=d&c=pagedimg&d=HASH01f4f2a92e501cdfa5d243bb.2&p=preview'>this one</a>). 93 This is specified by the <tt>-documenttype (hierarchy|paged)</tt> option to PagedIm gPlug.95 This is specified by the <tt>-documenttype (hierarchy|paged)</tt> option to PagedImagePlugin. 94 96 The next and previous arrows suit the linear sequence documents, while the table of contents 95 97 suits the hierarchically organised document. Ordinarily, a Greenstone collection … … 97 99 the same processing. In this case, we want to treat the XML-based item files 98 100 differently from the text-based item files. We can achieve this by adding two 99 PagedIm gPlugplugins to the collection, and configuring them differently.100 <p><tt>plugin PagedIm gPlug-screenview -minimumsize 100 -documenttype hierarchy -process_exp xml.*\.item$<br/>101 plugin PagedIm gPlug-screenview -minimumsize 100 -documenttype paged </tt>101 PagedImagePlugin plugins to the collection, and configuring them differently. 102 <p><tt>plugin PagedImagePlugin -screenview -minimumsize 100 -documenttype hierarchy -process_exp xml.*\.item$<br/> 103 plugin PagedImagePlugin -screenview -minimumsize 100 -documenttype paged </tt> 102 104 103 105 <p>XML based newpapers have been grouped into a folder called <tt>xml</tt>. 104 106 This enables us to process these files differently, by utilising the 105 <tt>process_exp</tt> option which all plugins support. The first PagedIm gPlug107 <tt>process_exp</tt> option which all plugins support. The first PagedImagePlugin 106 108 in the list looks for item files underneath the xml folder. These documents 107 109 will be processed as hierarchical documents. Item files that don't match the 108 110 process expression (i.e. aren't underneath the xml folder) will be passed onto 109 the second PagedImgPlug, and these are treated as paged documents. 110 <p>Note that GLI will not let you add two of the same plugin (apart from 111 UnknownPlug), so this must be added to the collect.cfg file manually. The 112 collection must not be open in GLI while you are doing this. 111 the second PagedImagePlugin, and these are treated as paged documents. 112 113 113 <p><b>Formatting</b> 114 114 <p>We have modified the document formatting to display fullsized images,
Note:
See TracChangeset
for help on using the changeset viewer.