Changeset 19168


Ignore:
Timestamp:
2009-04-21T15:56:39+12:00 (15 years ago)
Author:
kjdon
Message:

modified description

File:
1 edited

Legend:

Unmodified
Added
Removed
  • collections/documented-examples/trunk/pagedimg-e/etc/collect.cfg

    r19060 r19168  
    88plugin      GreenstoneXMLPlugin
    99# 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.
    1112plugin      PagedImagePlugin -create_screenview true -minimumsize 100 -documenttype hierarchy -process_exp xml.*\.item$
    1213plugin      PagedImagePlugin -create_screenview true -minimumsize 100 -documenttype paged
     
    3738format AllowExtendedOptions  true
    3839
    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
    4042
    4143format DocumentHeading "<center><table width=_pagewidth_>
     
    4446[DocumentButtonDetach][DocumentButtonHighlight]
    4547{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_},
    4749{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_},
    4951{If}{[srcicon],_document:viewfullsize_}
    5052{If}{[screenicon],_document:viewpreview_}}}
     
    5658#fullsize/preview/text versions.
    5759format 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]}}}
    6062</td></tr></table></center>"
    6163
     
    7476<p>Each newspaper issue consists of a set of images, one per page, and a set
    7577of text files for the OCR'd text. An item file links the set of pages into a
    76 single newspaper document. PagedImgPlug is used to process the item files.
     78single newspaper document. PagedImagePlugin is used to process the item files.
    7779<p>There are two styles of item files, and this collection demonstrates both.
    7880The first uses a text based format, and consists of a list of metadata for the
     
    9193or with next and previous page arrows, and a goto page box
    9294(e.g. <a href='?a=d&amp;c=pagedimg&amp;d=HASH01f4f2a92e501cdfa5d243bb.2&p=preview'>this one</a>).
    93 This is specified by the <tt>-documenttype (hierarchy|paged)</tt> option to PagedImgPlug.
     95This is specified by the <tt>-documenttype (hierarchy|paged)</tt> option to PagedImagePlugin.
    9496The next and previous arrows suit the linear sequence documents, while the table of contents
    9597suits the hierarchically organised document. Ordinarily, a Greenstone collection
     
    9799the same processing. In this case, we want to treat the XML-based item files
    98100differently from the text-based item files. We can achieve this by adding two
    99 PagedImgPlug plugins to the collection, and configuring them differently.
    100 <p><tt>plugin PagedImgPlug -screenview -minimumsize 100 -documenttype hierarchy -process_exp xml.*\.item$<br/>
    101 plugin  PagedImgPlug -screenview -minimumsize 100 -documenttype paged </tt>
     101PagedImagePlugin plugins to the collection, and configuring them differently.
     102<p><tt>plugin PagedImagePlugin -screenview -minimumsize 100 -documenttype hierarchy -process_exp xml.*\.item$<br/>
     103plugin  PagedImagePlugin -screenview -minimumsize 100 -documenttype paged </tt>
    102104
    103105<p>XML based newpapers have been grouped into a folder called <tt>xml</tt>.
    104106This enables us to process these files differently, by utilising the
    105 <tt>process_exp</tt> option which all plugins support. The first PagedImgPlug
     107<tt>process_exp</tt> option which all plugins support. The first PagedImagePlugin
    106108in the list looks for item files underneath the xml folder. These documents
    107109will be processed as hierarchical documents. Item files that don't match the
    108110process 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.
     111the second PagedImagePlugin, and these are treated as paged documents.
     112
    113113<p><b>Formatting</b>
    114114<p>We have modified the document formatting to display fullsized images,
Note: See TracChangeset for help on using the changeset viewer.