Changeset 11406


Ignore:
Timestamp:
2006-03-17T18:11:00+13:00 (18 years ago)
Author:
kjdon
Message:

more changes to the exercise contents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl-documentation/tutorials/xml-source/tutorial_en.xml

    r11401 r11406  
    12401240<Text id="0469">This displays something that looks like this: </Text>
    12411241<Indent>
    1242 <table><tr><td><img width='15' height='20' src="tutorial_images/itext.gif"/></td><td width='408' valign='top'>A discussion of question five from Tudor Quiz: Henry VIII <br/><i>(quizstuff.html)</i></td></tr></table>
     1242<table><tr><td><img width='15' height='20' src="tutorial_files/itext.gif"/></td><td width='408' valign='top'>A discussion of question five from Tudor Quiz: Henry VIII <br/><i>(quizstuff.html)</i></td></tr></table>
    12431243</Indent>
    12441244<Text id="0472">for a particular document whose <i>Title</i> metadata is <i>A discussion of question five from Tudor Quiz: Henry VIII</i> and whose <i>Source</i> metadata is <i>quizstuff.html</i></Text>
     
    12891289</NumberedItem>
    12901290<NumberedItem>
    1291 <Text id="0489">To insert the <b>[dc.Subject]</b>, position the cursor at the appropriate point and investigate the <b>Variables</b> dropdown menu below--the one that says <b>[Text]</b>. Make it say <b>[dc.Subject]</b> and click <b>Insert </b>to insert this into the <b>HTML Format String</b>. This menu shows all the things that you can put in square brackets in the format statement. The only exception is <b>[Text]</b>, which gives the full text of the document, and can only be used when <b>DocumentText</b> is the <b>Affected Component</b>.</Text>
     1291<Text id="0489">To insert the <b>[dc.Subject]</b>, position the cursor at the appropriate point and either type it in, or use the <b>Variables</b> dropdown menu--the one that says <b>[Text]</b>. Make it say <b>[dc.Subject]</b> and click <b>Insert </b>to insert this into the <b>HTML Format String</b>. This menu shows all the things that you can put in square brackets in the format statement. The only exception is <b>[Text]</b>, which gives the full text of the document, and can only be used when <b>DocumentText</b> is the <b>Affected Component</b>.</Text>
    12921292</NumberedItem>
    12931293<NumberedItem>
    12941294<Text id="0490">Now go to the <b>Create</b> panel and click &lt;<b>Preview</b>&gt;. Documents in the search results list will be displayed like this:</Text>
    1295 <table><tr><td><img width='15' height='20' src="tutorial_images/itext.gif" /></td><td width='408' valign='top'>A discussion of question five from Tudor Quiz: Henry VIII <br/>
     1295<table><tr><td><img width='15' height='20' src="tutorial_files/itext.gif" /></td><td width='408' valign='top'>A discussion of question five from Tudor Quiz: Henry VIII <br/>
    12961296Tudor period|Others</td></tr></table>
    12971297<Text id="0493">(The vertical bar appears because this <i>dc.Subject and Keywords</i> metadata is hierarchical metadata. Unfortunately there is no way to get at individual components of the hierarchy. For most metadata, such as title and author, this isn't a problem.)</Text>
     
    13721372</NumberedItem>
    13731373<NumberedItem>
    1374 <Text id="0523">Remove the plugins <b>TextPlug</b> to <b>NULPlug</b> (<b>ZIPPlug</b>, <b>GAPlug</b> and <b>MARCPlug</b> remain). It is not strictly necessary to remove these redundant plugins, but it is good practice to include only plugins that are needed, to avoid accidentally including stray documents.</Text>
     1374<Text id="0523">Remove the plugins <b>TextPlug</b> to <b>NULPlug</b> by selecting each one in the <b>Currently Assigned Plugins</b> list and clicking <b>Remove Plugin</b> (<b>ZIPPlug</b>, <b>GAPlug</b> and <b>MARCPlug</b> remain). It is not strictly necessary to remove these redundant plugins, but it is good practice to include only plugins that are needed, to avoid accidentally including stray documents.</Text>
    13751375</NumberedItem>
    13761376<NumberedItem>
     
    14041404<NumberedItem>
    14051405<Text id="0532a">Add form searching to the collection by selecting <b>form</b> in the <b>Search Types</b> menu and clicking &lt;<b>Add Search Type</b>&gt;. Remove plain searching by selecting <b>plain</b> in the <b>Currently Assigned Search Types</b> list, and clicking &lt;<b>Remove Search Type</b>&gt;.</Text>
     1406</NumberedItem>
    14061407<NumberedItem>
    14071408<Text id="0533"><b>Build</b> the collection once again, and <b>preview</b> the results. Notice that the collection's home page no longer includes a query box. (This is because the search form is too big to fit here nicely.) To search, you have to click <b>search</b> in the navigation bar. Note that the <i>Preferences </i>page has changed to control the advanced searching options.</Text>
     
    15111512dc.Title,ex.Title
    15121513</Format>
     1514<Text id="0565a">and click <b>&lt;OK&gt;</b>.</Text>
    15131515</Bullet>
    15141516</BulletList>
     
    15351537</Bullet>
    15361538<Bullet>
    1537 <Text id="0574">Add an <b>AZCompactList</b> classifier. Select <b>dc.Format</b> as the metadata field and specify "Category" as the <b>buttonname</b>.</Text>
     1539<Text id="0574">Add an <b>AZCompactList</b> classifier. Select <b>dc.Format</b> as the metadata field and specify "Category" as the <b>buttonname</b>. Click the <b>sort</b> checkbox, and leave <b>Title</b> in the adjacent text box: this will make the classifier display documents in alphabetical order of title.</Text>
    15381540</Bullet>
    15391541</BulletList>
    15401542<Text id="0575"><b>Build</b> the collection again and <b>preview</b> it.</Text>
    15411543</NumberedItem>
    1542 <NumberedItem>
    1543 <Text id="0576">Greenstone has no pre-defined button for "Category", so it appears in the navigation bar as text. It does, however, have a button for <i>browse</i> (it's used in the Beatles collection you looked at in Part I).</Text>
    1544 <BulletList>
    1545 <Bullet>
    1546 <Text id="0577">Go back to the <b>AZCompactList</b> classifier for <b>dc.Format</b>. Click the <b>sort</b> checkbox, and leave <b>Title</b> in the adjacent text box: this will make the classifier display documents in alphabetical order of title. Also, specify "Browse" as the <b>buttonname</b>.</Text>
    1547 </Bullet>
    1548 </BulletList>
    1549 <Text id="0578">You will need to build the collection for this to take effect.</Text>
    1550 </NumberedItem>
    15511544<Heading>
    15521545<Text id="0579">Suppressing dummy text</Text>
     
    15611554<Text id="0582">Ensure that <b>VList</b> is selected, and make the changes that are highlighted below. You need to insert three lines into the first line, and delete the second line.<br/> <br/> Change:</Text>
    15621555<Format>
    1563 &lt;td valign=top&gt;[link][icon][/link]&lt;/td&gt;<br/>
    1564 &lt;td valign=top&gt;<br/>
    1565 [ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]&lt;/td&gt; <br/>
     1556&lt;td valign=top&gt;<highlight>[link][icon][/link]</highlight>&lt;/td&gt;<br/>
     1557<highlight>&lt;td valign=top&gt;[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]&lt;/td&gt; </highlight><br/>
    15661558&lt;td valign=top&gt;[highlight]<br/>
    15671559{Or}{[dls.Title],[dc.Title],[Title],Untitled} <br/>
     
    15711563<Format>
    15721564&lt;td valign=top&gt;<br/>
    1573 {If}{[dc.Format] eq 'Audio', <br/>
    1574 [srclink][srcicon][/srclink], <br/>
    1575 [link][icon][/link]}&lt;/td&gt; <br/>
     1565<highlight>{If}{[dc.Format] eq 'Audio', </highlight><br/>
     1566<highlight>[srclink][srcicon][/srclink], </highlight><br/>
     1567<highlight>[link][icon][/link]}</highlight>&lt;/td&gt; <br/>
    15761568&lt;td valign=top&gt;[highlight] {Or}{[dls.Title],[dc.Title],[Title],Untitled} [/highlight]{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}&lt;/td&gt;
    15771569</Format>
     
    15971589&nbsp;[srclink][srcicon][/srclink],<br/>
    15981590&nbsp;[link][icon][/link]}&lt;/td&gt; <br/>
    1599 &lt;td valign=top&gt;[highlight] {Or}{[dls.Title],[dc.Title],[Title],Untitled} [/highlight]{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}&lt;/td&gt;</Format>
     1591&lt;td valign=top&gt;[highlight] {Or}{[dls.Title],[dc.Title],[Title],Untitled} [/highlight]<highlight>{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}</highlight>&lt;/td&gt;</Format>
    16001592</Bullet>
    16011593</BulletList>
     
    16331625</Heading>
    16341626<NumberedItem>
    1635 <Text id="0606">Make the bookshelves show how many documents they contain by inserting a line in the VList format statement in the <b>Design</b> panel:</Text>
     1627<Text id="0606">Make the bookshelves show how many documents they contain by inserting a line in the VList format statement in the <b>Format Features</b> section of the <b>Design</b> panel:</Text>
    16361628<Format>
    16371629&lt;td valign=top&gt;<br/>
     
    16391631 [srclink][srcicon][/srclink],<br/>
    16401632 [link][icon][/link]}&lt;/td&gt;<br/>
    1641 &lt;td&gt;{If}{[numleafdocs],([numleafdocs])}&lt;/td&gt;<br/>
     1633<highlight>&lt;td&gt;{If}{[numleafdocs],([numleafdocs])}&lt;/td&gt;</highlight><br/>
    16421634&lt;td valign=top&gt;[highlight] {Or}{[dls.Title],[dc.Title],[Title],Untitled} [/highlight]&lt;/td&gt;</Format>
    16431635<Text id="0607">You will find this text in <i>format_tweaks</i>--&gt;</Text>
     
    16531645{If}{[dc.Format] eq 'Audio',<br/>
    16541646 [srclink][srcicon][/srclink],<br/>
    1655  {If}{[dc.Format] eq 'Images',<br/>
    1656  [srclink][thumbicon][/srclink],<br/>
    1657  [link][icon][/link]}}&lt;/td&gt;<br/>
     1647 <highlight>{If}{[dc.Format] eq 'Images',</highlight><br/>
     1648 <highlight>[srclink][thumbicon][/srclink],</highlight><br/>
     1649 [link][icon][/link]}<highlight>}</highlight>&lt;/td&gt;<br/>
    16581650&lt;td&gt;{If}{[numleafdocs],([numleafdocs])}&lt;/td&gt;<br/>
    16591651&lt;td valign=top&gt;[highlight] {Or}{[dls.Title],[dc.Title],[Title],Untitled} [/highlight]&lt;/td&gt;</Format>
     
    16701662<Text id="0617">Note how we assigned dc.Format metadata to all documents in the collection with a minimum of labour. We did this by capitalizing on the folder structure of the original information. Even though we complained earlier about how messy this folder structure is, you can still take advantage of it when assigning metadata.</Text>
    16711663</Comment>
    1672 <Comment>
    1673 <Text id="0618">In the next exercise we incorporate the MIDI files. Greenstone has no MIDI plugin (yet). But that doesn't mean you can't use MIDI files! We also clean up the <i>titles a-z</i> browser.</Text>
    1674 </Comment>
    1675 <Comment>
    1676 <Text id="0621">To do this we must put the Librarian Interface into a different mode. The interface supports four levels of user: Library Assistants, who can add documents and metadata to collections, and create new ones whose structure mirrors that of existing collections; Librarians, who can, in addition, design new collections, but cannot use specialist IT features (e.g. regular expressions); Library Systems Specialists, who can use all design features, but cannot perform troubleshooting tasks (e.g. interpreting debugging output from Perl programs); and Experts, who can perform all functions.</Text>
    1677 </Comment>
    1678 <Comment>
    1679 <Text id="0622">So far you have mostly been operating in Librarian mode. We switch to Library Systems Specialist mode for the next exercise.</Text>
    1680 </Comment>
    16811664<Heading>
    16821665<Text id="0623">Using UnknownPlug</Text>
    16831666</Heading>
    1684 <NumberedItem>
    1685 <Text id="0624">To switch modes, click <Menu>File--&gt;Preferences--&gt;Mode</Menu> and change to <b>Library Systems Specialist</b>. Note from the description that appears that you need to be able to formulate regular expressions to use this mode fully. That is what we do below.</Text>
    1686 </NumberedItem>
     1667<Comment>
     1668<Text id="0618">In this section we incorporate the MIDI files. Greenstone has no MIDI plugin (yet). But that doesn't mean you can't use MIDI files! </Text>
     1669</Comment>
    16871670<NumberedItem>
    16881671<Text id="0627"><b>UnknownPlug</b> is a useful generic plugin. It knows nothing about any given format but can be tailored to process particular document types--like MIDI--based on their filename extension, and set basic metadata.</Text>
     1672<Text id="0627a">In the <b>Document Plugins</b> section of the <b>Design</b> panel:</Text>
    16891673<BulletList>
    16901674<Bullet>
     
    17111695<Text id="0634">Cleaning up a title browser using regular expressions</Text>
    17121696</Heading>
     1697<Comment>
     1698<Text id="0618a">We now clean up the <i>titles a-z</i> browser.</Text>
     1699</Comment>
     1700<Comment>
     1701<Text id="0621">To do this we must put the Librarian Interface into a different mode. The interface supports four levels of user: Library Assistants, who can add documents and metadata to collections, and create new ones whose structure mirrors that of existing collections; Librarians, who can, in addition, design new collections, but cannot use specialist IT features (e.g. regular expressions); Library Systems Specialists, who can use all design features, but cannot perform troubleshooting tasks (e.g. interpreting debugging output from Perl programs); and Experts, who can perform all functions.</Text>
     1702</Comment>
     1703<Comment>
     1704<Text id="0622">So far you have mostly been operating in Librarian mode. We switch to Library Systems Specialist mode for the next exercise.</Text>
     1705</Comment>
     1706<NumberedItem>
     1707<Text id="0624">To switch modes, click <Menu>File--&gt;Preferences--&gt;Mode</Menu> and change to <b>Library Systems Specialist</b>. Note from the description that appears that you need to be able to formulate regular expressions to use this mode fully. That is what we do below.</Text>
     1708</NumberedItem>
    17131709<NumberedItem>
    17141710<Text id="0635">Next we return to our <i>titles a-z</i> browser and clean it up. The aim is to amalgamate variants of titles by stripping away extraneous text. For example, we would like to treat "ANTHOLOGY 1", "ANTHOLOGY 2" and "ANTHOLOGY 3" the same for grouping purposes. To achieve this:</Text>
     
    17471743</Heading>
    17481744<NumberedItem>
    1749 <Text id="0648">Re-Edit your <b>VList</b> format statement to be the following</Text>
    1750 <Format>&lt;td valign=top&gt;<br/>
    1751 {If}{[numleafdocs],[link][icon][/link]}<br/>
    1752 {If}{[dc.Format] eq 'Lyrics',[link]_iconlyrics_[/link]}<br/>
    1753 {If}{[dc.Format] eq 'Discography',[link]_icondisc_[/link]}<br/>
    1754 {If}{[dc.Format] eq 'Tablature',[link]_icontab_[/link]}<br/>
    1755 {If}{[dc.Format] eq 'MARC',[link]_iconmarc_[/link]}<br/>
    1756 {If}{[dc.Format] eq 'Images',[srclink][thumbicon][/srclink]}<br/>
    1757 {If}{[dc.Format] eq 'Supplementary',[srclink][srcicon][/srclink]}<br/>
    1758 {If}{[dc.Format] eq 'Audio',[srclink]{If}{[FileFormat] eq 'MIDI',_iconmidi_,_iconmp3_}[/srclink]}<br/>
    1759 &lt;/td&gt;<br/>
     1745<Text id="0648">Re-Edit your <b>VList</b> format statement to be the following (in <Menu>Design--&gt;Format Features</Menu>)</Text>
     1746<Format><highlight>&lt;td valign=top&gt;</highlight><br/>
     1747<highlight>{If}{[numleafdocs],[link][icon][/link]}</highlight><br/>
     1748<highlight>{If}{[dc.Format] eq 'Lyrics',[link]_iconlyrics_[/link]}</highlight><br/>
     1749<highlight>{If}{[dc.Format] eq 'Discography',[link]_icondisc_[/link]}</highlight><br/>
     1750<highlight>{If}{[dc.Format] eq 'Tablature',[link]_icontab_[/link]}</highlight><br/>
     1751<highlight>{If}{[dc.Format] eq 'MARC',[link]_iconmarc_[/link]}</highlight><br/>
     1752<highlight>{If}{[dc.Format] eq 'Images',[srclink][thumbicon][/srclink]}</highlight><br/>
     1753<highlight>{If}{[dc.Format] eq 'Supplementary',[srclink][srcicon][/srclink]}</highlight><br/>
     1754<highlight>{If}{[dc.Format] eq 'Audio',[srclink]{If}{[FileFormat] eq 'MIDI',_iconmidi_,_iconmp3_}[/srclink]}</highlight><br/>
     1755<highlight>&lt;/td&gt;</highlight><br/>
    17601756&lt;td&gt;<br/>
    17611757{If}{[numleafdocs],([numleafdocs])}<br/>
     
    18661862</NumberedItem>
    18671863<NumberedItem>
    1868 <Text id="0678">Add <b>PagedImgPlug</b> and switch on its <b>screenview</b> configuration option by checking the box. The source images we use were scanned at high resolution and are large files for a browser to download. The <i>screenview</i> option generates smaller screen-resolution images of each page when the collection is built.</Text>
     1864<Text id="0678">In <Menu>Design--&gt;DocumentPlugins</Menu>, add <b>PagedImgPlug</b>. Switch on its <b>screenview</b> configuration option by checking the box. The source images we use were scanned at high resolution and are large files for a browser to download. The <i>screenview</i> option generates smaller screen-resolution images of each page when the collection is built.</Text>
    18691865</NumberedItem>
    18701866<NumberedItem>
     
    18901886</NumberedItem>
    18911887<NumberedItem>
    1892 <Text id="0686">Now add <b>AZCompactList</b> for <i>ex.Title</i> and <b>DateList</b> for <i>ex.Date</i>.</Text>
     1888<Text id="0686">Now add an <b>AZCompactList</b> classifier, setting its <b>metadata</b> option to <i>ex.Title</i>, and add a <b>DateList</b> classifier, setting its <b>metadata</b> option to <i>ex.Date</i>.</Text>
    18931889</NumberedItem>
    18941890<NumberedItem>
     
    19041900<Text id="0692">append</Text>
    19051901<Format>{If}{[numleafdocs],&lt;td&gt;([numleafdocs] items)&lt;/td&gt;}</Format>
     1902<Text id="0692a">and click <b>&lt;Replace Format&gt;</b>.</Text>
    19061903<Comment>
    19071904<Text id="0693">As a consequence of using the AZCompactList classifier, bookshelf icons appear when titles are browsed. This revised format statement has the effect of specifying in brackets how many items are contained within a bookshelf. It works by exploiting the fact that only bookshelf icons define [numleafdocs] metadata.</Text>
     
    19161913<NumberedItem>
    19171914<Text id="0696">Staying within the <b>Format Features</b> section of the <b>Design </b>panel, under "Choose Feature" select <b>DocumentText</b>. Its HTML format string is empty, triggering the default behaviour of displaying the document's plain text, or, if there is none, "This document has no text". Change this to:</Text>
    1918 <Format>&lt;center&gt;<br/>  &lt;table width=_pagewidth_&gt;<br/>  &lt;tr&gt;<br/>  &lt;td valign=top&gt;[srclink][screenicon][/srclink]&lt;/td&gt;<br/>  &lt;td&gt;[Text]&lt;/td&gt;<br/>  &lt;/tr&gt;<br/>  &lt;/table&gt;<br/> &lt;/center&gt;</Format>
     1915<Format>
     1916&lt;center&gt;<br/> 
     1917&lt;table width=_pagewidth_&gt;<br/> 
     1918&lt;tr&gt;<br/> 
     1919&lt;td valign=top&gt;[srclink][screenicon][/srclink]&lt;/td&gt;<br/> 
     1920&lt;td&gt;[Text]&lt;/td&gt;<br/> 
     1921&lt;/tr&gt;<br/> 
     1922&lt;/table&gt;<br/>
     1923&lt;/center&gt;
     1924</Format>
     1925<Text id="0692a">and click <b>&lt;Replace Format&gt;</b>.</Text>
    19191926<Text id="0697">(available as niupepa\doc_tweak.txt)</Text>
    19201927<Comment>
     
    20052012</NumberedItem>
    20062013<NumberedItem>
    2007 <Text id="0722">Next, select <b>DocumentHeading</b> from the <b>Choose Feature</b> pull-down list and make its format statement (which is currently blank) read</Text>
     2014<Text id="0722">Next, select <b>DocumentHeading</b> from the <b>Choose Feature</b> pull-down list and change its format statement to: </Text>
    20082015<Format>&lt;h3&gt;[Subject]&lt;/h3&gt;</Format>
    20092016<Comment>
     
    20122019</NumberedItem>
    20132020<NumberedItem>
    2014 <Text id="0727">Finally, you will have noticed that where the document itself should appear, you see only <i>This document has no text</i>. To rectify this, select <b>DocumentText</b> in the <b>Choose Feature</b> pull-down list and use the following as its format statement (which is currently blank) (this text is in <i>doctxt_tweak.txt</i> in the <i>format_tweaks</i> folder mentioned earlier):</Text>
     2021<Text id="0727">Finally, you will have noticed that where the document itself should appear, you see only <i>This document has no text</i>. To rectify this, select <b>DocumentText</b> in the <b>Choose Feature</b> pull-down list and use the following as its format statement (this text is in <i>doctxt_tweak.txt</i> in the <i>format_tweaks</i> folder mentioned earlier):</Text>
    20152022<Format>&lt;center&gt;&lt;table width=_pagewidth_ border=1&gt;<br/>
    20162023&lt;tr&gt;&lt;td colspan=2 align=center&gt;<br/>
     
    20232030&lt;tr&gt;&lt;td&gt;Rights:&lt;td&gt; [Rights]&lt;/td&gt;&lt;/tr&gt;<br/>
    20242031&lt;/table&gt;&lt;/center&gt;</Format>
     2032<Text id="0727a">Click <b>&lt;Replace Format&gt;</b>.</Text>
    20252033<Text id="0730">This format statement alters how the document view is presented. It includes a screen-sized version of the image that hyperlinks back to the original larger version available on the web. Factual information extracted from the image, such as width, height and type, is also displayed.</Text>
    20262034</NumberedItem>
     
    21022110</NumberedItem>
    21032111<NumberedItem>
    2104 <Text id="0756">Switch to the <b>Design</b> panel select <b>Document Plugins</b>. Remove <b>GAPlug </b>from the list of plug-ins and add <b>METSPlug</b>.</Text>
     2112<Text id="0756">Switch to the <b>Design</b> panel select <b>Document Plugins</b>. Remove <b>GAPlug </b>from the list of plug-ins and add <b>METSPlug</b>, with the default configuration options.</Text>
    21052113</NumberedItem>
    21062114<NumberedItem>
     
    21352143</NumberedItem>
    21362144<NumberedItem>
    2137 <Text id="0766">Using the up and down arrows, <b>Move</b> the position of <b>DSpacePlug</b> to above <b>PDFPlug</b> and below <b>GAPlug</b>.</Text>
     2145<Text id="0766">Using the up and down arrows, <b>Move</b> the position of <b>DSpacePlug</b> to above <b>GAPlug</b> and below <b>ZIPPlug</b>.</Text>
    21382146</NumberedItem>
    21392147<NumberedItem>
Note: See TracChangeset for help on using the changeset viewer.