Changeset 11505


Ignore:
Timestamp:
2006-03-27T17:41:39+12:00 (18 years ago)
Author:
kjdon
Message:

replaced 'perform the first four steps of ...' with the actual steps from the other tutorial. Also indentation for format statements

File:
1 edited

Legend:

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

    r11496 r11505  
    12611261&lt;td&gt;[link][icon][/link]&lt;/td&gt; <br/>
    12621262&lt;td&gt;[ex.Title]&lt;br&gt;<br/>
    1263 &lt;i&gt;([ex.Source])&lt;/i&gt;<br/>
     1263&nbsp;&nbsp;&nbsp;&nbsp;&lt;i&gt;([ex.Source])&lt;/i&gt;<br/>
    12641264&lt;/td&gt;
    12651265</Format>
     
    12911291&lt;td&gt;[link][icon][/link]&lt;/td&gt;<br/>
    12921292&lt;td&gt;[ex.Title]&lt;br&gt;<br/>
    1293    [dc.Subject]<br/>
     1293&nbsp;&nbsp;&nbsp;&nbsp;[dc.Subject]<br/>
    12941294&lt;/td&gt;<br/>
    12951295</Format>
     
    15701570&lt;td valign=top&gt;<br/>
    15711571<highlight>{If}{[dc.Format] eq 'Audio', </highlight><br/>
    1572 <highlight>[srclink][srcicon][/srclink], </highlight><br/>
    1573 <highlight>[link][icon][/link]}</highlight>&lt;/td&gt; <br/>
     1572<highlight>&nbsp;&nbsp;[srclink][srcicon][/srclink], </highlight><br/>
     1573<highlight>&nbsp;&nbsp;[link][icon][/link]}</highlight>&lt;/td&gt; <br/>
    15741574&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;
    15751575</Format>
     
    15821582<Path>sample_files &rarr; beatles &rarr; format_tweaks &rarr; audio_tweak.txt</Path>
    15831583<Text id="0586">(Be sure to use WordPad rather than Notepad, because Notepad does not display the line breaks correctly.) Place it in the copy buffer by highlighting the text in WordPad and selecting <Menu>Edit &rarr; Copy</Menu>. Now move back to the Librarian Interface, highlight all the text that makes up the current VList format statement, and use <Menu>Edit &rarr; Paste</Menu> to transform the old statement to the new one. Remember to press &lt;<b>Replace Format</b>&gt; when finished.</Text>
    1584 <Text id="0589"><b>Preview</b> the result. If you are using the Greenstone Local Library server, change to the <b>Create </b>panel and click &lt;<b>Preview Collection</b>&gt;, which causes the local library server to rescan the format statements. You do not need to build the collection again because format statements are only used by the runtime system.</Text>
    1585 <Text id="0592">However, you may need to click the browser's &lt;<b>Reload</b>&gt; button to force it to re-load the page.</Text>
     1584<Text id="0589"><b>Preview</b> the result. You may need to click the browser's &lt;<b>Reload</b>&gt; button to force it to re-load the page.</Text>
    15861585</NumberedItem>
    15871586<NumberedItem>
     
    15931592&lt;td valign=top&gt;<br/>
    15941593{If}{[dc.Format] eq 'Audio',<br/>
    1595 &nbsp;[srclink][srcicon][/srclink],<br/>
    1596 &nbsp;[link][icon][/link]}&lt;/td&gt; <br/>
     1594&nbsp;&nbsp;[srclink][srcicon][/srclink],<br/>
     1595&nbsp;&nbsp;[link][icon][/link]}&lt;/td&gt; <br/>
    15971596&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>
    15981597</Bullet>
     
    16321631&lt;td valign=top&gt;<br/>
    16331632{If}{[dc.Format] eq 'Audio',<br/>
    1634  [srclink][srcicon][/srclink],<br/>
    1635  [link][icon][/link]}&lt;/td&gt;<br/>
     1633&nbsp;&nbsp;[srclink][srcicon][/srclink],<br/>
     1634&nbsp;&nbsp;[link][icon][/link]}&lt;/td&gt;<br/>
    16361635<highlight>&lt;td&gt;{If}{[numleafdocs],([numleafdocs])}&lt;/td&gt;</highlight><br/>
    16371636&lt;td valign=top&gt;[highlight] {Or}{[dls.Title],[dc.Title],[Title],Untitled} [/highlight]&lt;/td&gt;</Format>
     
    16461645<Format>&lt;td valign=top&gt;<br/>
    16471646{If}{[dc.Format] eq 'Audio',<br/>
    1648  [srclink][srcicon][/srclink],<br/>
    1649  <highlight>{If}{[dc.Format] eq 'Images',</highlight><br/>
    1650  <highlight>[srclink][thumbicon][/srclink],</highlight><br/>
    1651  [link][icon][/link]}<highlight>}</highlight>&lt;/td&gt;<br/>
     1647&nbsp;&nbsp;[srclink][srcicon][/srclink],<br/>
     1648&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Images',</highlight><br/>
     1649&nbsp;&nbsp;&nbsp;&nbsp;<highlight>[srclink][thumbicon][/srclink],</highlight><br/>
     1650&nbsp;&nbsp;&nbsp;&nbsp;[link][icon][/link]}<highlight>}</highlight>&lt;/td&gt;<br/>
    16521651&lt;td&gt;{If}{[numleafdocs],([numleafdocs])}&lt;/td&gt;<br/>
    16531652&lt;td valign=top&gt;[highlight] {Or}{[dls.Title],[dc.Title],[Title],Untitled} [/highlight]&lt;/td&gt;</Format>
     
    17471746<Text id="0648">Re-Edit your <b>VList</b> format statement to be the following (in <Menu>Design &rarr; Format Features</Menu>)</Text>
    17481747<Format><highlight>&lt;td valign=top&gt;</highlight><br/>
    1749 <highlight>{If}{[numleafdocs],[link][icon][/link]}</highlight><br/>
    1750 <highlight>{If}{[dc.Format] eq 'Lyrics',[link]_iconlyrics_[/link]}</highlight><br/>
    1751 <highlight>{If}{[dc.Format] eq 'Discography',[link]_icondisc_[/link]}</highlight><br/>
    1752 <highlight>{If}{[dc.Format] eq 'Tablature',[link]_icontab_[/link]}</highlight><br/>
    1753 <highlight>{If}{[dc.Format] eq 'MARC',[link]_iconmarc_[/link]}</highlight><br/>
    1754 <highlight>{If}{[dc.Format] eq 'Images',[srclink][thumbicon][/srclink]}</highlight><br/>
    1755 <highlight>{If}{[dc.Format] eq 'Supplementary',[srclink][srcicon][/srclink]}</highlight><br/>
    1756 <highlight>{If}{[dc.Format] eq 'Audio',[srclink]{If}{[FileFormat] eq 'MIDI',_iconmidi_,_iconmp3_}[/srclink]}</highlight><br/>
     1748&nbsp;&nbsp;<highlight>{If}{[numleafdocs],[link][icon][/link]}</highlight><br/>
     1749&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Lyrics',[link]_iconlyrics_[/link]}</highlight><br/>
     1750&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Discography',[link]_icondisc_[/link]}</highlight><br/>
     1751&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Tablature',[link]_icontab_[/link]}</highlight><br/>
     1752&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'MARC',[link]_iconmarc_[/link]}</highlight><br/>
     1753&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Images',[srclink][thumbicon][/srclink]}</highlight><br/>
     1754&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Supplementary',[srclink][srcicon][/srclink]}</highlight><br/>
     1755&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Audio',[srclink]{If}{[FileFormat] eq 'MIDI',_iconmidi_,_iconmp3_}[/srclink]}</highlight><br/>
    17571756<highlight>&lt;/td&gt;</highlight><br/>
    17581757&lt;td&gt;<br/>
     
    17841783body.bgimage \{ background-image: url("_httpcimages_/beat_margin.gif");  \}<br/>
    17851784\#page \{ margin-left: 120px; \}<br/>
    1786 &lt;style&gt;<br/>
     1785&lt;/style&gt;<br/>
    17871786}
    17881787</Format>
     
    17941793#body.bgimage \{ background-image: url("_httpcimages_/beat_margin.gif");  \}<br/>
    17951794#\#page \{ margin-left: 120px; \} <br/>
    1796 #&lt;style&gt;<br/>
     1795#&lt;/style&gt;<br/>
    17971796#}<br/>
    17981797<br/>
     
    18001799&lt;style&gt;<br/>
    18011800body.bgimage \{ background-image: url("_httpcimages_/tile.jpg");  \}<br/>
    1802 &lt;style&gt;<br/>
     1801&lt;/style&gt;<br/>
    18031802}
    18041803</Format>
     
    18251824</Bullet>
    18261825<Bullet>
    1827 <Text id="0664">Start a new collection called <i>advbeat_large</i> (<Menu>File &rarr; New</Menu>).</Text>
     1826<Text id="0664">Start a new collection called <i>advbeat</i> (<Menu>File &rarr; New</Menu>).</Text>
    18281827</Bullet>
    18291828<Bullet>
     
    18321831<Bullet>
    18331832<Text id="0666">Copy the content of <Path>sample_files &rarr; beatles &rarr; advbeat_large &rarr; import</Path> into this newly formed collection. Since there are considerably more files in this set of documents the copy will take longer.</Text>
     1833</Bullet>
     1834<Bullet>
    18341835<Text id="0670"><b>Build</b> the collection and preview the result. (If you want the collection to have an icon, you will have to add it from the <b>Design</b> panel.)</Text>
    18351836</Bullet>
     
    19171918<Format>
    19181919&lt;center&gt;<br/> 
    1919 &lt;table width=_pagewidth_&gt;<br/> 
    1920 &lt;tr&gt;<br/> 
    1921 &lt;td valign=top&gt;[srclink][screenicon][/srclink]&lt;/td&gt;<br/> 
    1922 &lt;td&gt;[Text]&lt;/td&gt;<br/> 
    1923 &lt;/tr&gt;<br/> 
    1924 &lt;/table&gt;<br/>
     1920&nbsp;&nbsp;&lt;table width=_pagewidth_&gt;<br/> 
     1921&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br/> 
     1922&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td valign=top&gt;[srclink][screenicon][/srclink]&lt;/td&gt;<br/> 
     1923&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;[Text]&lt;/td&gt;<br/> 
     1924&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br/> 
     1925&nbsp;&nbsp;&lt;/table&gt;<br/>
    19251926&lt;/center&gt;
    19261927</Format>
     
    20012002<Format>
    20022003&lt;td&gt;<br/>
    2003 {If}{[numleafdocs],[link][icon][/link],[link][thumbicon]<br/>
    2004  [/link]}<br/>
     2004&nbsp;&nbsp;{If}{[numleafdocs],[link][icon][/link],[link][thumbicon][/link]}<br/>
    20052005&lt;/td&gt;<br/>
    20062006&lt;td valign=middle&gt;<br/>
    2007  {If}{[numleafdocs],[Title],&lt;i&gt;[Description]&lt;/i&gt;}<br/>
     2007&nbsp;&nbsp;{If}{[numleafdocs],[Title],&lt;i&gt;[Description]&lt;/i&gt;}<br/>
    20082008&lt;/td&gt;
    20092009</Format>
     
    21882188<NumberedItem>
    21892189<Text id="0780">Now select the <b>Format Features </b>section of the <b>Design</b> panel and replace the <b>VList</b> format statement with this:</Text>
    2190 <Format>&lt;td valign=top&gt;[link][icon][/link]&lt;/td&gt;<br/> &lt;td valign=top&gt;<br/>  [srclink][srcicon][/srclink]<br/> &lt;/td&gt;<br/> &lt;td valign=top&gt;<br/> [highlight]{Or}{[dc.Title],[ex.Title],Untitled}[/highlight]<br/>  {If}{[ex.Source],&lt;br&gt;<br/>  &lt;i&gt;([ex.Source])&lt;/i&gt;}{If}{[equivlink],&lt;br&gt;<br/>  Also available as:[equivlink]}<br/> &lt;/td&gt; </Format>
     2190<Format>
     2191&lt;td valign=top&gt;[link][icon][/link]&lt;/td&gt;<br/>
     2192&lt;td valign=top&gt;<br/>
     2193&nbsp;&nbsp;[srclink][srcicon][/srclink]<br/>
     2194&lt;/td&gt;<br/>
     2195&lt;td valign=top&gt;<br/>
     2196&nbsp;&nbsp;[highlight]{Or}{[dc.Title],[ex.Title],Untitled}[/highlight]<br/>
     2197&nbsp;&nbsp;{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}<br/>
     2198&nbsp;&nbsp;{If}{[equivlink],&lt;br&gt;Also available as:[equivlink]}<br/>
     2199&lt;/td&gt;
     2200</Format>
    21912201<Text id="0781">You will find this text in the file <i>format_tweak.txt </i>in the <i>dspace </i>folder of <i>sample_files</i>, and you can copy and paste this. Remember to press &lt;<b>Replace Format</b>&gt; when finished.</Text>
    21922202</NumberedItem>
     
    22022212&lt;td valign=top&gt;[link][icon][/link]&lt;/td&gt;<br/>
    22032213&lt;td valign=top&gt;<br/> 
    2204 [srclink][srcicon][/srclink]<br/>
     2214&nbsp;&nbsp;[srclink][srcicon][/srclink]<br/>
    22052215&lt;/td&gt;<br/>
    22062216&lt;td valign=top&gt;<br/>
    2207 [highlight] <br/> 
    2208 {If}{[numleafdocs],([numleafdocs]) [ex.Title],[dc.Title]}<br/>
    2209 [/highlight]<br/>
    2210   {If}{[ex.Source],&lt;br&gt;<br/>
    2211   &lt;i&gt;([ex.Source])&lt;/i&gt;}{If}{[equivlink],&lt;br&gt;<br/>
    2212   Also available as:[equivlink]}<br/>
    2213  &lt;/td&gt;</Format>
     2217&nbsp;&nbsp;[highlight]<br/> 
     2218&nbsp;&nbsp;&nbsp;&nbsp;{If}{[numleafdocs],([numleafdocs]) [ex.Title],[dc.Title]}<br/>
     2219&nbsp;&nbsp;[/highlight]<br/>
     2220&nbsp;&nbsp;{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}<br/>
     2221&nbsp;&nbsp;{If}{[equivlink],&lt;br&gt;Also available as:[equivlink]}<br/>
     2222&lt;/td&gt;
     2223</Format>
    22142224<Text id="0784">and click &lt;<b>Add Format</b>&gt;. This will display the number of documents for each bookshelf in the authors classifier.</Text>
    22152225<Text id="0785">You will find this text in the file <i>format_contributor.txt </i>in the <i>dspace </i>folder of <i>sample_files</i>, and you can copy and paste this.</Text>
     
    22372247</Heading>
    22382248<NumberedItem>
    2239 <Text id="0791">Perform the first four steps of the <TutorialRef id="OAI_downloading"/> exercise: open a command window, change directory to where Greenstone is installed, run <i>setup.bat</i>,and change directory once again, this time into <i>collect\stoned</i>, the collection you built in the last exercise.</Text>
     2249<Text id="0790a">Open a DOS window to access the command-line prompt. This facility should be located somewhere within your <Menu>Start &rarr; Programs</Menu> menu, but details vary between different Windows systems. If you cannot locate it, select <Menu>Start &rarr; Run</Menu> and enter <i>cmd</i> in the popup window that appears.</Text>
     2250</NumberedItem>
     2251<NumberedItem>
     2252<Text id="0790b">In the DOS window, move to the home directory where you installed Greenstone. This is accomplished by something like:</Text>
     2253<Command>cd C:\Program Files\Greenstone</Command>
     2254</NumberedItem>
     2255<NumberedItem>
     2256<Text id="0790c">Type:</Text>
     2257<Command>setup.bat</Command>
     2258<Text id="0790d">to set up the ability to run Greenstone command-line programs.</Text>
     2259</NumberedItem>
     2260<NumberedItem>
     2261<Text id="0790e">Change directory into the folder containing the StoneD collection you built in the last exercise.</Text>
     2262<Command>cd collect\stoned</Command>
    22402263</NumberedItem>
    22412264<NumberedItem>
Note: See TracChangeset for help on using the changeset viewer.