source: trunk/gsdl-documentation/tutorials/xml-source/tutorial_en.xml@ 11535

Last change on this file since 11535 was 11535, checked in by kjdon, 18 years ago

fixed up link to image (in tutorial_files)

  • Property svn:keywords set to Author Date Id Revision
File size: 161.9 KB
Line 
1<?xml version="1.0"?>
2<!DOCTYPE TutorialList [
3 <!ENTITY nbsp "&#160;">
4 <!ENTITY rarr "&#8594;">
5 <!ENTITY mdash "&#8212;">
6]>
7<TutorialList>
8<Title>
9<Text id="0001">Greenstone tutorial exercises (March 2006)</Text>
10</Title>
11<SupplementaryText>
12<Text id="title">Greenstone tutorial exercise</Text>
13<Text id="prereq">Prerequisite:</Text>
14<Text id="sample">Sample files:</Text>
15<Text id="original">Devised for Greenstone version:</Text>
16<Text id="current">Modified for Greenstone version:</Text>
17<Text id="index">Back to index</Text>
18<Text id="print">Print version</Text>
19</SupplementaryText>
20<Comment>
21<Text id="intro">If you are working from a Greenstone CD-ROM, sample files for these exercises are in the folder <i>sample_files</i>; otherwise they can be downloaded from <Link url="http://sourceforge.net/project/showfiles.php?group_id=12123&amp;package_id=152231">sourceforge</Link>.</Text>
22</Comment>
23<Comment>
24<Text id="intro2">The text sometimes uses Windows terminology, but the exercises work equally well on other systems if you make appropriate changes to the pathnames.</Text>
25</Comment>
26<Tutorial id="unaids_cdrom">
27<Title>
28<Text id="0082">Working with a pre-packaged collection (UNAIDS)</Text>
29</Title>
30<Version initial="UNAIDS 2.0 CD-ROM" current="UNAIDS 2.0 CD-ROM"/>
31<Content>
32<Comment>
33<Text id="0083">You will need the Greenstone UNAIDS CD-ROM</Text>
34</Comment>
35<Heading>
36<Text id="0084">Installing a pre-packaged Greenstone collection</Text>
37</Heading>
38<NumberedItem>
39<Text id="0085">On inserting the <b>UNAIDS CD-ROM</b>, for many computers installation will begin automatically. If not, "auto-run"&mdash;a configurable setting under Windows&mdash;is disabled on your computer and you need to double-click <i>setup.exe</i> on the CD-ROM.</Text>
40<Menu>
41<Text id="0086">My Computer &rarr; UNAIDS20 &rarr; setup.exe</Text>
42</Menu>
43</NumberedItem>
44<NumberedItem>
45<Text id="0089">The InstallShield Wizard begins to install the UNAIDS pre-packaged collection. Select the English language.</Text>
46</NumberedItem>
47<NumberedItem>
48<Text id="0090">Click the <b>&lt;next&gt;</b> button.</Text>
49</NumberedItem>
50<NumberedItem>
51<Text id="0091">Choose <b>Run from CD-ROM (standard) </b>as the setup type. This is the default and is already selected. Then click <b>&lt;next&gt;</b>.</Text>
52</NumberedItem>
53<NumberedItem>
54<Text id="0092">Click <b>&lt;next&gt; </b>again to install the UNAIDS collection in the default folder, which is <b>C:\Program Files\UNAIDS Library 2.0 [CD-ROM]</b>.</Text>
55<Comment>
56<Text id="0093">Installation Wizard copies the required files from CD-ROM to disk</Text>
57</Comment>
58</NumberedItem>
59<NumberedItem>
60<Text id="0094">Click <b>&lt;OK</b>&gt; to confirm completion of UNAIDS collection (twice).</Text>
61<Comment>
62<Text id="0095">InstallShield quits&mdash;the UNAIDS Library is installed.</Text>
63</Comment>
64</NumberedItem>
65<Comment>
66<Text id="0097">CD-ROMs like this one that contain pre-packaged Greenstone collections do not include the full Greenstone software. Instead they embody a mini version of Greenstone that allows you to view the collection but not to build new ones.</Text>
67</Comment>
68<Heading>
69<Text id="0098">Browsing around a Greenstone collection</Text>
70</Heading>
71<NumberedItem>
72<Text id="0099">Launch the prebuilt library by clicking:</Text>
73<Menu>
74<Text id="0100">Start &rarr; All Programs &rarr; UNAIDS Library 2.0 [CD-ROM] &rarr; UNAIDS Library 2.0 (Standard Version).</Text>
75</Menu>
76<Comment>
77<Text id="0104">To access Greenstone through the Local Library Server, it is sometimes necessary to turn off the proxy settings of the browser. Greenstone normally detects this and pops up a window alerting you to the problem.</Text>
78</Comment>
79</NumberedItem>
80<NumberedItem>
81<Text id="0105">Click <b>&lt;Enter Library&gt; </b>in the dialog box and your browser (typically Internet Explorer by default) will display the Greenstone home page.</Text>
82</NumberedItem>
83<NumberedItem>
84<Text id="0106">Within the web browser, click <b>titles a-z</b> (in the centre of the navigation bar near the top of the page).</Text>
85</NumberedItem>
86<NumberedItem>
87<Text id="0107">Access the <b>first book</b> in the list of titles by clicking the <b>book icon</b> next to the title:</Text>
88<Text id="0108"><i>About UNAIDS</i>.</Text>
89</NumberedItem>
90<NumberedItem>
91<Text id="0109">Use the scroll bar to view the full length of the page.</Text>
92</NumberedItem>
93<NumberedItem>
94<Text id="0110">In the table of contents near the top, click the <b>page icon </b>next to the heading <i>Guiding principles of UNAIDS</i> to view this section.</Text>
95</NumberedItem>
96<NumberedItem>
97<Text id="0111">Click the <b>page icon</b> next to the heading <i>Global and local impact</i> to view the next section.</Text>
98</NumberedItem>
99<Comment>
100<Text id="0112">This style of interaction can be continued to further expand and contract folders and switch to a different section.</Text>
101</Comment>
102<NumberedItem>
103<Text id="0113">To fully expand the contents of this introduction chapter, click <b>Expand Document or Chapter</b> in the upper left portion of the page, under the picture of the document's front cover.</Text>
104</NumberedItem>
105<NumberedItem>
106<Text id="0114">You can return to the currently selected page of document titles by clicking the <b>book icon </b>next to the title of the book at the top of the table of contents (this signifies closing the book). You also get to the document titles using <b>titles a-z</b> in the navigation bar, in this case to the titles beginning with A-D.</Text>
107<Comment>
108<Text id="0115">If the table of contents is open at the top level&mdash;showing all the chapters&mdash;then clicking <b>Expand Document or Chapter</b> expands the full document. For long documents, which take some time to load in, Greenstone seeks confirmation for this action: clicking 'continue' loads the full document.</Text>
109</Comment>
110</NumberedItem>
111<NumberedItem>
112<Text id="0116">Browse around and peruse some other documents in the collection.</Text>
113</NumberedItem>
114<Heading>
115<Text id="0117">Searching within a Greenstone collection</Text>
116</Heading>
117<NumberedItem>
118<Text id="0118">Access the search page by clicking <b>search</b> in the navigation bar.</Text>
119</NumberedItem>
120<NumberedItem>
121<Text id="0119">In the query box under <b>Search for chapters in any language which contain some of the words</b>,<b> </b>enter the term <b>gender</b> then click <b>&lt;Begin Search&gt;</b>.</Text>
122<Comment>
123<Text id="0120">After a short pause, the web browser loads a fresh page showing the results of the search.</Text>
124</Comment>
125</NumberedItem>
126<NumberedItem>
127<Text id="0121">Click the <b>page icon </b>for the <b>first matching document</b> in the result set (</Text>
128<Text id="0122"><i>Five Year Implementation Review of the Vienna Declaration and Programme of Action</i>) to view the document. Because the search was at the chapter level, you are taken directly to the matching chapter within the document.</Text>
129</NumberedItem>
130<NumberedItem>
131<Text id="0123">Experiment further with searching, and with the interface in general. For example, there is a detailed <b>Help</b> page. It contains a <b>Preferences</b> section through which you can control some search settings.</Text>
132<Comment>
133<Text id="0124">The Preferences options in the UNAIDS collection are intentionally minimalist. Most collections have a separate Preferences button that offers more features.</Text>
134</Comment>
135<Comment>
136<Text id="0125">The home page of the UNAIDS library collection cycles through a sequence of front cover images, updated every 5 seconds or so. Clicking a particular image takes you directly to that document.</Text>
137</Comment>
138</NumberedItem>
139<Heading>
140<Text id="0126">Leaving the Greenstone digital library</Text>
141</Heading>
142<NumberedItem>
143<Text id="0127">There are two ways of leaving Greenstone:</Text>
144<NumberedItem>
145<Text id="0128">Exit from the Greenstone Software server. Click on the <b>Greenstone Software</b> in the task bar, then choose <b>Exit</b> from the <b>Browser Selection and Settings</b> menu (or click on the exit hotspot, the red cross at the top right). The Greenstone Software exits, but your web browser continues to run.</Text>
146</NumberedItem>
147<NumberedItem>
148<Text id="0129">Exit from your web browser. Leave your web browser in the usual way. The Greenstone server detects when you exit from the browser and generates a popup window that asks whether to close down the server as well. (The reason is that other people may be using Greenstone over the network, and should not be rudely terminated.)</Text>
149</NumberedItem>
150</NumberedItem>
151<Heading>
152<Text id="0130">Exercise: Use the UNAIDS collection to answer these questions</Text>
153</Heading>
154<BulletList>
155<Bullet>
156<Question>
157<Text id="0131">How many publications are there in the collection?</Text>
158</Question>
159<Answer>900</Answer>
160</Bullet>
161<Bullet>
162<Question>
163<Text id="0132">How many documents are there that mention <i>Australia</i> in the title?</Text>
164</Question>
165<Answer>15</Answer>
166</Bullet>
167<Bullet>
168<Question>
169<Text id="0133">How many top-level subject categories are there?</Text>
170</Question>
171<Answer>21</Answer>
172</Bullet>
173<Bullet>
174<Question>
175<Text id="0134">What does AAVP stand for?</Text>
176</Question>
177<Answer>African Aids Vaccination Programme</Answer>
178</Bullet>
179<Bullet>
180<Question>
181<Text id="0136">What does AIDS stand for?</Text>
182</Question>
183<Answer>Acquired Immuno-Deficiency Syndrome
184<Text id="0138">(Search for "AIDS stands for")</Text>
185</Answer>
186</Bullet>
187<Bullet>
188<Question>
189<Text id="0139">Considering lower case variants only, how many times does the word "condom" appear in the collection? <br/>How many times for "condoms"?</Text>
190</Question>
191<Answer>6789<br/> 5243</Answer>
192</Bullet>
193<Bullet>
194<Question>
195<Text id="0140">If case sensitivity does not matter, how many times does the word "condom" appear in the collection? <br/>How many times for "condoms"?</Text>
196</Question>
197<Answer>7905<br/> 5571</Answer>
198</Bullet>
199<Bullet>
200<Question>
201<Text id="0141">If word endings are ignored, how many times does "condom" and variants such as "condoms" appear in the collection?</Text>
202</Question>
203<Answer>13477</Answer>
204</Bullet>
205<Bullet>
206<Question>
207<Text id="0142">How many <i>chapters</i> contain some variations of the word "condom"? <br/>Does this make it a useful search term?</Text>
208</Question>
209<Answer>
210<Text id="0143">2413 chapters. <br/> No, since there are only 900 documents</Text>
211</Answer>
212</Bullet>
213<Bullet>
214<Question>
215<Text id="0144">What year saw the first reported case of AIDS in New Zealand?</Text>
216</Question>
217<Answer>1983</Answer>
218</Bullet>
219</BulletList>
220</Content>
221</Tutorial>
222<Tutorial id="IITE_cdrom">
223<Title>
224<Text id="0145">Working with a pre-packaged collection (Digital Libraries in Education)</Text>
225</Title>
226<Version initial="IITE Digital Libraries in Education CD-ROM" current="IITE Digital Libraries in Education CD-ROM"/>
227<Content>
228<Comment>
229<Text id="0146">You will need the Greenstone <i>Digital Libraries in Education</i> CD-ROM</Text>
230</Comment>
231<Heading>
232<Text id="0147">Installing a pre-packaged collection</Text>
233</Heading>
234<NumberedItem>
235<Text id="0148">Insert your CD-ROM for the course <i>Digital libraries in education</i> into a Windows computer. If the installation process does not start up straightaway (because the AutoPlay feature is disabled on your computer), navigate to your CD-ROM/DVD drive (normally D:), open the folder <i>prebuilt</i>, and double click on <b>Setup.exe</b>.</Text>
236</NumberedItem>
237<NumberedItem>
238<Text id="0149">During installation you are offered a choice of folder to install in: we recommend the default, which is <i>C:\GSDL</i>.</Text>
239</NumberedItem>
240<NumberedItem>
241<Text id="0150">You are also presented with the option to run Greenstone from the CD-ROM or to copy the entire CD-ROM. We recommend the latter: please check the box that says <b>Install all collection files</b>. It will take at least a couple of minutes to copy the files across.</Text>
242</NumberedItem>
243<NumberedItem>
244<Text id="0151">Finally, the installer offers to install the Netscape browser for you. Do <i>not</i> request this except in the unlikely event that you do not already have a web browser on your computer.</Text>
245</NumberedItem>
246<Comment>
247<Text id="0152">CD-ROMs like this one that contain pre-packaged Greenstone collections do not include the full Greenstone software. Instead they embody a mini version of Greenstone that allows you to view the collection but not to build new ones.</Text>
248</Comment>
249<Heading>
250<Text id="0153">Browsing around a Greenstone collection</Text>
251</Heading>
252<NumberedItem>
253<Text id="0154">To run Greenstone, open the Windows Start menu, Programs, and select <i>Greenstone</i>, then the submenu item<i> Digital Libraries in Education</i>: then &lt;<b><i>Enter Library</i></b>&gt;.</Text>
254</NumberedItem>
255<NumberedItem>
256<Text id="0155">Click the Digital libraries in Education collection's icon. This takes you to the collection's home page, often called the "about" page.</Text>
257<Comment>
258<Text id="0156">The home page contains an access bar with buttons called search, contents, authors a-z, modules, and acronyms. This access bar is the key to finding information in any Greenstone collection.</Text>
259</Comment>
260</NumberedItem>
261<NumberedItem>
262<Text id="0157">Click &lt;<b>authors a-z</b>&gt;. A list of bookshelf icons appears. Click the one called Marchionini, G. to see the two course readings by Gary Marchionini.</Text>
263</NumberedItem>
264<NumberedItem>
265<Text id="0158">One of these items is a PDF file and the other is an HTML file. Click them both in turn to open up the documents.</Text>
266</NumberedItem>
267<NumberedItem>
268<Text id="0159">Click the &lt;<b>contents</b>&gt; button in the access bar. This shows two bookshelves, one for this Study Guide and the other for the Course Readings. Choose one and look at what it contains.</Text>
269</NumberedItem>
270<NumberedItem>
271<Text id="0160">Clicking a bookshelf that is open closes it. Close the bookshelf you have just opened and then choose the other one and examine its contents.</Text>
272</NumberedItem>
273<NumberedItem>
274<Text id="0161">Click &lt;<b>acronyms</b>&gt; in the access bar and find the meaning of the acronym "LOM".</Text>
275</NumberedItem>
276<NumberedItem>
277<Text id="0162">Click &lt;<b>search</b>&gt; and search for the word "LOM". Check out the difference between searching text and searching titles (use the pull-down box on the search page).</Text>
278</NumberedItem>
279<NumberedItem>
280<Text id="0163">Click the collection icon <b>Digital Libraries in Education </b>at the top left. This takes you back to the collection's <b>about</b> page.</Text>
281<Text id="0164">Beneath the access bar on the collection's about page is a search box (just the same as the one that appears on the search page), a description of the collection under the heading <b>About this collection</b>, and instructions on how to find information in this collection.</Text>
282<Text id="0165">Above the access bar is the collection's icon, saying <b>Digital Libraries in Education</b>. On the right is an icon saying <b>about</b>, above which are three buttons, <b>home</b>, <b>help</b>, and <b>preferences</b>.</Text>
283</NumberedItem>
284<NumberedItem>
285<Text id="0166">Click &lt;<b>home</b>&gt;. This returns you to the Greenstone home page.</Text>
286</NumberedItem>
287<NumberedItem>
288<Text id="0167">Return to the collection (by clicking its icon), and click &lt;<b>help</b>&gt;. This gives more information about how to access the collection.</Text>
289</NumberedItem>
290<NumberedItem>
291<Text id="0168">Click &lt;<b>preferences</b>&gt;. This takes you to a page where you can change some of the settings.</Text>
292</NumberedItem>
293<NumberedItem>
294<Text id="0169">Now explore the collection by navigating freely around it. Click liberally: all images that appear on the screen are clickable. If you hold the mouse stationary over an image, most browsers will soon pop up a brief "mouse-over" message that tells you what will happen if you click. Experiment! Choose common words like "the" or "and" to search for&mdash;that should evoke some response, and nothing will break. (Note: unlike many search systems, Greenstone indexes all words, including these ones.)</Text>
295</NumberedItem>
296<Heading>
297<Text id="0170">Exercise: Read the Help page; then answer these questions</Text>
298</Heading>
299<BulletList>
300<Bullet>
301<Text id="0171">What does this collection contain?</Text>
302</Bullet>
303<Bullet>
304<Text id="0172">Name five ways to navigate to a target document in this collection.</Text>
305</Bullet>
306<Bullet>
307<Text id="0173">How many documents in the collection are written by Erik Duval?</Text>
308</Bullet>
309<Bullet>
310<Text id="0174">Compare the number of times the words "he" and "she" appear in the collection.</Text>
311</Bullet>
312<Bullet>
313<Text id="0175">How many times does the word "metadata" appear in titles? In the text itself?</Text>
314</Bullet>
315<Bullet>
316<Text id="0176">What's the difference between a <i>some</i> and an <i>all</i> search?</Text>
317</Bullet>
318<Bullet>
319<Text id="0177">What does "MODS" stand for?</Text>
320</Bullet>
321<Bullet>
322<Text id="0178">How do you switch the interface from English to Russian? Does it stay in Russian when you go to the Greenstone home page?</Text>
323</Bullet>
324<Bullet>
325<Text id="0179">Find a search term that yields different results depending on whether you have <i>ignore word endings</i> or <i>whole word must match</i> set on the Preferences page.</Text>
326</Bullet>
327<Bullet>
328<Text id="0180">What's the difference between Graphical and Textual interface format (on the Preferences page)?</Text>
329</Bullet>
330</BulletList>
331<Heading>
332<Text id="0181">Exercise: Use the How to build a digital library collection to answer these questions.</Text>
333</Heading>
334<BulletList>
335<Bullet>
336<Text id="0182">How many sentences contain the word education?</Text>
337</Bullet>
338<Bullet>
339<Text id="0183">What story from the School Journal collection is featured in the book?</Text>
340</Bullet>
341<Bullet>
342<Text id="0184">How many acronyms used in the book begin with the word Standard?</Text>
343</Bullet>
344<Bullet>
345<Text id="0185">What does tapu mean?</Text>
346</Bullet>
347<Bullet>
348<Text id="0186">How many times does the word library appear? The word libraries?</Text>
349</Bullet>
350<Bullet>
351<Text id="0187">How many times does Library appear with an initial capital letter?</Text>
352</Bullet>
353<Bullet>
354<Text id="0188">How many times does some derivative of the word form appear?</Text>
355</Bullet>
356<Bullet>
357<Text id="0189">Name an English poem that was probably written in about 1000 A.D.</Text>
358</Bullet>
359<Bullet>
360<Text id="0190">Who is Alan Kay?</Text>
361</Bullet>
362<Bullet>
363<Text id="0191">On what page is the first mention of some aspect of Chinese culture?</Text>
364</Bullet>
365</BulletList>
366<Comment>
367<Text id="0192">Most of these questions would be rather difficult to answer from the printed book.</Text>
368</Comment>
369</Content>
370</Tutorial>
371<Tutorial id="install_greenstone">
372<Title>
373<Text id="0193">Installing Greenstone</Text>
374</Title>
375<Version initial="2.60" current="2.70"/>
376<Content>
377<Heading>
378<Text id="0194">Installing Greenstone on a Windows system</Text>
379</Heading>
380<Text id="0195">There are various ways of getting Greenstone:</Text>
381<NumberedItem>
382<Text id="0196">From a UNESCO CD-ROM (version 2.70) (or FAO IMARK CD-ROM, but this is an earlier version 2.51)</Text>
383<Text id="0197">These CD-ROMs contain the <b>Greenstone software</b>, plus <b>documented example collections</b>, four <b>language interfaces</b> (English French Spanish Russian), the <b>Export to CD-ROM</b> package, the <b>ImageMagick</b> graphics package, the <b>Java runtime environment</b>, and an <b>installer</b> that installs all of these.</Text>
384</NumberedItem>
385<NumberedItem>
386<Text id="0198">From the IITE Digital Libraries in Education CD-ROM, or a Greenstone workshop CD-ROM</Text>
387<Comment>
388<Text id="0199">In addition to all the above software, these CD-ROMs contain the tutorial exercises and a set of <b>sample files</b> to be used for these exercises.</Text>
389<Text id="0199a">CD-ROMs with Greenstone version 2.62 or earlier also include the <b>Greenstone Language Pack</b>, which gives reader's interfaces in many languages (currently about 40). This has its own installer which you have to invoke separately, after you have installed Greenstone.</Text>
390<Text id="0199b">CD-ROMs with version 2.70 or later now come with reader's interfaces in all available languages. Textual images have been removed from the interface; they are now done using CSS (Cascading Style Sheets). The Greenstone Language Pack is no longer needed. Instead, these CD-ROMs come with the <b>Classic Interface Pack</b>, which contains the old text images for use with a backwards compatibility macro file.</Text>
391</Comment>
392<Comment>
393<Text id="0200">All these CD-ROMs contain the full Greenstone software, which allows you to view collections and build new ones. They are not the same as CD-ROMs that contain a pre-packaged Greenstone collection, which only allow you to view that collection.</Text>
394</Comment>
395</NumberedItem>
396<NumberedItem>
397<Text id="0201">From <Link>http://www.greenstone.org</Link></Text>
398<Text id="0202">Most people download the Windows distribution from <Link>http://www.greenstone.org</Link>, which contains the latest version of Greenstone. There are several optional modules that must be downloaded separately (to avoid a single massive download): <b>documented example collections</b>, the <b>Export to CD-ROM</b> package, the <b>Language Pack</b> (Greenstone 2.62 and earlier) and <b>Classic Interface Pack</b> (Greenstone 2.63 and later). There is also the set of <b>sample files</b> used in these exercises. (To reduce the download size the documented example collections are distributed in unbuilt form and need to be built.)</Text>
399<Text id="0203">You need <b>Java</b> to run Greenstone. You might already have it; otherwise download it from <Link>http://java.sun.com</Link>. To work with image collections, you need <b>ImageMagick</b> (from <Link>http://www.imagemagick.org</Link>). </Text>
400</NumberedItem>
401<Text id="0204">Most Greenstone CD-ROMs start the installation process as soon as they are inserted into the drive, assuming that the AutoPlay feature is enabled on your computer. If installation does not begin by itself, locate the file <i>setup.exe</i> and double click it to start the installation process. (On the IMARK CD-ROM this file resides in the folder <Path>software_tools &rarr; Greenstone</Path>). If you download Greenstone over the web, what you get is the installer&mdash;just double-click it.</Text>
402<Text id="0206"><b>If Greenstone has been installed on your computer before, you should completely remove the old version before installing a new one</b>. (However, you need not remove any pre-packaged collections that you may have installed.) To do this, see <TutorialRef id="update_greenstone_installation"/>.</Text>
403<Text id="0207">Here is what you need to do to install Greenstone. Older versions of the installer follow much the same sequence but use slightly different wording.</Text>
404<BulletList>
405<Bullet>
406<Text id="0208">Select the language for this installation. We choose <b>English</b></Text>
407</Bullet>
408<Bullet>
409<Text id="0209">Welcome to the InstallShield Wizard for the Greenstone Digital Library Software. Click &lt;<b>Next</b>&gt;</Text>
410</Bullet>
411<Bullet>
412<Text id="0210">License Agreement. Accept the agreement and then click &lt;<b>Next</b>&gt;</Text>
413</Bullet>
414<Bullet>
415<Text id="0211">Choose location to install Greenstone. Leave at the default and click &lt;<b>Next</b>&gt;</Text>
416</Bullet>
417<Bullet>
418<Text id="0212">Setup Type. Leave at the default (Local Library) and click &lt;<b>Next</b>&gt;</Text>
419</Bullet>
420<Bullet>
421<Text id="0213">(For older installers you must now select collections. Leave at the default, Documented Example Collections, and click &lt;<b>Next</b>&gt;)</Text>
422</Bullet>
423<Bullet>
424<Text id="0214">Set admin password. Choose a suitable password and click &lt;<b>Next</b>&gt; (If your computer will not be serving collections online, the password doesn't matter)</Text>
425</Bullet>
426<Bullet>
427<Text id="0215">Click &lt;<b>Install</b>&gt; to complete the installation</Text>
428</Bullet>
429<Bullet>
430<Text id="0216">Files are copied across</Text>
431</Bullet>
432<Bullet>
433<Text id="0217">Installation is complete. If you are installing from a CD-ROM, the installer will offer to install ImageMagick (see below), and Java, if necessary.</Text>
434</Bullet>
435</BulletList>
436<Text id="0218">To invoke the Greenstone Reader's interface, go to the <i>Greenstone Digital Library Software </i>item under <i>Programs</i> on the Windows <i>Start</i> menu and select <i>Greenstone Digital Library</i>. To invoke the Librarian interface, go to the same item and select <i>Greenstone Librarian Interface</i>.</Text>
437<Heading>
438<Text id="0219">Installing ImageMagick on a Windows system</Text>
439</Heading>
440<Text id="0220">Once Greenstone has been installed, you should ensure that ImageMagick is installed on your computer if you wish to build any image collections. If you are installing from a Greenstone CD-ROM, you will be asked whether you want to install ImageMagick: say <b>Yes</b>. If you are not, you will need to download ImageMagick (from <Link>http://www.imagemagick.org</Link>). To install this program you must have Windows "Administrator" privileges. (If you do not have Windows Administrator privileges, the ImageMagick installer will give a cryptic error complaining that it failed to set a particular Windows registry value. If this happens you can continue your work with Greenstone, but you will not be able to build collections of images.)</Text>
441<Text id="0221"> The remaining steps are straightforward, and, as before, we recommend the default settings. Here is what you need to do.</Text>
442<BulletList>
443<Bullet>
444<Text id="0222">"This will install ImageMagick 5.5.7 Q8. Do you wish to continue?" <b>Yes</b></Text>
445</Bullet>
446<Bullet>
447<Text id="0223">"Welcome to the ImageMagick Setup Wizard Click &lt;<b>Next</b>&gt;</Text>
448</Bullet>
449<Bullet>
450<Text id="0224">"Information: Please read the following ..." Click &lt;<b>Next</b>&gt;</Text>
451</Bullet>
452<Bullet>
453<Text id="0225">"Select Destination Directory ..." Leave at default and click &lt;<b>Next</b>&gt;</Text>
454</Bullet>
455<Bullet>
456<Text id="0226">"Select Start Menu Folder ..." Leave at default and click &lt;<b>Next</b>&gt;</Text>
457</Bullet>
458<Bullet>
459<Text id="0227">"Select Additional Tasks ..." Leave at default and click &lt;<b>Next</b>&gt;</Text>
460</Bullet>
461<Bullet>
462<Text id="0228">"Ready to Install". Click &lt;<b>Install</b>&gt;</Text>
463</Bullet>
464<Bullet>
465<Text id="0229">Files are copied across</Text>
466</Bullet>
467<Bullet>
468<Text id="0230">"You have now installed ..." Click &lt;<b>Next</b>&gt;</Text>
469</Bullet>
470<Bullet>
471<Text id="0231">"Setup has finished ...". Deselect "View index.html" and click &lt;<b>Finish</b>&gt;.</Text>
472</Bullet>
473</BulletList>
474</Content>
475</Tutorial>
476<Tutorial id="update_greenstone_installation">
477<Title>
478<Text id="0232">Updating a Greenstone installation</Text>
479</Title>
480<Prerequisite id="install_greenstone"/>
481<Version initial="2.60" current="2.70"/>
482<Content>
483<Comment>
484<Text id="0233">These tutorial exercises assume that you are using Greenstone 2.60 or above.</Text>
485</Comment>
486<Comment>
487<Text id="0234">Before updating to a new version of Greenstone, ensure that the computer is not running the Greenstone Librarian Interface or the Greenstone local library server. Normally, quitting your web browser, or quitting the Librarian Interface, also quits the server.</Text>
488</Comment>
489<Heading>
490<Text id="0235">Removing Greenstone from a Windows system</Text>
491</Heading>
492<Comment>
493<Text id="0236">Completely remove the existing version before you install a new version of Greenstone.</Text>
494</Comment>
495<NumberedItem>
496<Text id="0237">Ensure that you are not running Greenstone.</Text>
497</NumberedItem>
498<NumberedItem>
499<Text id="0238">Remove the old version by going to the Windows Control Panel (from the <i>Settings</i> item on the <i>Start</i> menu). Click <b>Add or Remove Programs</b>, select <b>Greenstone Digital Library Software</b>, and <b>Remove</b> it. (To do this you may need Windows "Administrator" privileges.)</Text>
500</NumberedItem>
501<NumberedItem>
502<Text id="0239">At the end of this procedure you will be asked whether you would like all your Greenstone collections to be removed: you should probably say <i>No</i> if you wish to preserve your work.</Text>
503</NumberedItem>
504<Comment>
505<Text id="0240">Occasionally, problems are encountered if older Greenstone installations are not fully removed. To clean up your system, move your Greenstone collect folder, which contains all your collections, to the desktop. Then check for the folder C:\Program Files\gsdl or C:\Program Files\Greenstone, which is where Greenstone is usually installed, and remove it completely if it exists.</Text>
506</Comment>
507<Heading>
508<Text id="0241">Reinstalling Greenstone on a Windows system</Text>
509</Heading>
510<NumberedItem>
511<Text id="0242">The reinstallation procedure is exactly the same as the original installation procedure, described in <TutorialRef id="install_greenstone"/>. If you already have ImageMagick, you do not need to install it again.</Text>
512</NumberedItem>
513<Comment>
514<Text id="0243">There have been some superficial changes to the installation procedure in moving to Greenstone Version 2.60, because it uses a different installer program.</Text>
515</Comment>
516<Comment>
517<Text id="0244">There is another important difference that you should be aware of: Versions 2.60 and above are installed in the folder Program Files\Greenstone, whereas prior versions were placed in the folder Program Files\gsdl (these are both default locations that you could have changed during installation.) When upgrading to Version 2.60, if you want to save existing collections you must explicitly move the contents of your collect folder from the old place to the new one. Future Greenstone versions will be installed in the new place, Program Files\Greenstone, so this problem will not happen again.</Text>
518</Comment>
519<Heading>
520<Text id="0245">Amalgamating different Greenstone collections</Text>
521</Heading>
522<NumberedItem>
523<Text id="0246">If you have previously installed the Greenstone Digital Library software in a non-standard place, you should amalgamate your collections by moving them from the <i>collect</i> folder in the old place into the folder <i>Program Files\Greenstone\collect</i>.</Text>
524</NumberedItem>
525<NumberedItem>
526<Text id="0247">If you have installed collections from pre-packaged Greenstone CD-ROMs, they reside in a different place: <i>C:\GSDL\collect</i>. To amalgamate these with your main Greenstone installation, move them into the folder <i>Program Files\Greenstone\collect</i>. The mini version of Greenstone that is associated with the pre-packaged collections is no longer necessary. To uninstall it, select <i>Uninstall</i> on the Greenstone menu of the Windows <i>Start</i> menu.</Text>
527</NumberedItem>
528<Heading>
529<Text id="0248">Installing the Greenstone language pack (2.62 and earlier)</Text>
530</Heading>
531<Comment>
532<Text id="0249">If you go to the Preferences page of any Greenstone collection, and look at the <b>Interface language</b> menu, you will probably find that only English, Spanish, French and Russian interfaces are installed.</Text>
533</Comment>
534<NumberedItem>
535<Text id="0250">Locate the Greenstone Language Pack (glp-x.xx.exe/glp-x.xx-linux.bin/gli-x.xx-macOSx.command). This may be on the CD-ROM from which you installed Greenstone, or you may have to download it from <Link>http://www.greenstone.org</Link>. </Text>
536</NumberedItem>
537<NumberedItem>
538<Text id="0251">Run the executable file (double click it on Windows); this will start the installer. Accept all the defaults</Text>
539</NumberedItem>
540<NumberedItem>
541<Text id="0252f">Restart the Greenstone Digital Library and look at the interface language menu again. Now you should see about 40 different languages.</Text>
542</NumberedItem>
543<Heading>
544<Text id="0252z">Enabling other languages (2.63 and later)</Text>
545</Heading>
546<Comment>
547<Text id="0252y">If you have downloaded Greenstone from the web, then all the laguanges will be enabled by default. However, if you have installed Greenstone from a UNESCO CD-ROM, then only English, French, Spanish and Russian will be enabled.</Text>
548</Comment>
549<NumberedItem>
550<Text id="0252x">To enable a new language, edit the file <Path>greenstone\etc\main.cfg</Path>. Look for the appropriate "Language" line, and uncomment it (i.e. remove the # from the start). Check that the required encoding is also enabled.</Text>
551<Text id="0252w">For example, suppose that we want to enable Turkish. The Language line for Turkish looks like:</Text>
552<Format>#Language shortname=tr longname=Turkish default_encoding=windows-1254</Format>
553<Text id="0252v">To enable it, we remove the #, i.e. make it look like:</Text>
554<Format>Language shortname=tr longname=Turkish default_encoding=windows-1254</Format>
555<Text id="0252p">The default encoding for Turkish is windows-1254. So we look for the windows-1254 Encoding line:</Text>
556<Format>Encoding shortname=windows-1254 "longname=Turkish (Windows-1254)" map=win1254.ump</Format>
557<Text id="0252u">This is already enabled (no # at the start) so we don't need to do anything else.</Text>
558</NumberedItem>
559<Heading>
560<Text id="0252a">Installing the Classic Interface Pack (2.63 and later)</Text>
561</Heading>
562<Comment>
563<Text id="0252b">Greenstone now comes with all languages enabled.
564The generated HTML uses text + CSS rather than images for navigation bar,
565home, help, preferences buttons etc. The classic interface pack is not needed if you want to use Greenstone in another language. It is only needed if you want to revert back to the old style HTML with text images. This may be useful if you have customized your Greenstone, or if you require compatibility with Netscape 4.</Text>
566</Comment>
567<NumberedItem>
568<Text id="0252c">Locate the Classic Interface Pack (gcip-x.xx.zip). This may be on the CD-ROM from which you installed Greenstone, or you may have to download it from <Link>http://www.greenstone.org</Link>. </Text>
569</NumberedItem>
570<NumberedItem>
571<Text id="0252d">The classic interface pack is a zip file containing the old text images, such as classifier buttons. Unzip the zip file into the images directory of your Greenstone installation.</Text>
572</NumberedItem>
573<NumberedItem>
574<Text id="1252e">Enable the use of the old-style macros by editing <Path>greenstone\etc\main.cfg</Path>: replace <i>nav_css.dm</i> with <i>nav_ns4.dm</i> in the <i>macrofiles</i> list.</Text>
575</NumberedItem>
576<NumberedItem>
577<Text id="0252">Restart the Greenstone Digital Library. It should now be using the old text images.</Text>
578</NumberedItem>
579</Content>
580</Tutorial>
581<Tutorial id="small_html_collection">
582<Title>
583<Text id="0253">Building a small collection of HTML files</Text>
584</Title>
585<SampleFiles folder="hobbits"/>
586<Version initial="2.60" current="2.70"/>
587<Content>
588<Comment>
589<Text id="0254">You will need some HTML files, such as those in the hobbits folder in sample_files.</Text>
590</Comment>
591<NumberedItem>
592<Text id="0255">Start the Greenstone Librarian Interface:</Text>
593<Menu>
594<Text id="0255a">Start &rarr; All Programs &rarr; Greenstone Digital Library Software v2.70 &rarr; Greenstone Librarian Interface</Text>
595</Menu>
596<Comment>
597<Text id="0256">After a short pause a startup screen appears, and then after a slightly longer pause the main Greenstone Librarian Interface appears. (A command prompt is also opened in the background.)</Text>
598</Comment>
599</NumberedItem>
600<NumberedItem>
601<Text id="0257">Start a new collection within the Librarian Interface:</Text>
602<Text id="0258"><Menu>File &rarr; New</Menu></Text>
603</NumberedItem>
604<NumberedItem>
605<Text id="0260">You will create a collection based on a few HTML web pages that describe some Hobbits in <i>Lord of the Rings</i>.</Text>
606<Text id="0261">A window pops up. Fill it out with appropriate values&mdash;for example,</Text>
607<Indent>
608<Text id="0261a">Collection Title: About Hobbits<br/></Text>
609<Text id="0261b">Description of Content: A collection about hobbits.</Text>
610</Indent>
611<Text id="0262">Leave the setting for <b>Base this collection on:</b> at its default <b>New Collection,</b> and click <b>&lt;OK&gt;</b>.</Text>
612</NumberedItem>
613<NumberedItem>
614<Text id="0263">Another window pops up, from which you select the metadata set (or sets) to use. This is discussed in other exercises. For now, select <b>Dublin Core Metadata Element Set Version 1.1 </b>followed by <b>&lt;OK&gt;</b>.</Text>
615<Comment>
616<Text id="0263a">If this is the first time you have opened a collection in the Librarian Interface, two popup progress bars will appear, to show progress while loading plugins and classifiers.</Text>
617</Comment>
618</NumberedItem>
619<NumberedItem>
620<Text id="0264">Next you must gather together the files that will constitute the collection. A suitable set has been prepared ahead of time in <i>sample_files</i> in the folder <i>hobbits</i>. Using the left-hand side of the Librarian Interface's <b>Gather</b> panel, interactively navigate to the <i>sample_files</i> folder.</Text>
621</NumberedItem>
622<NumberedItem>
623<Text id="0265">Now drag the <i>hobbits</i> folder from the left-hand side and drop it on the right. The progress bar at the bottom shows some activity. Gradually, duplicates of all the files will appear in the collection panel.</Text>
624<Comment>
625<Text id="0266">You can inspect the files that have been copied by double-clicking on the folder in the right-hand side.</Text>
626</Comment>
627</NumberedItem>
628<NumberedItem>
629<Text id="0267">Since this is our first collection, we won't complicate matters by manually assigning metadata or altering the collection's design. Instead we rely on default behaviour. So pass directly to the <b>Create</b> panel by clicking the <b>Create </b>tab.</Text>
630</NumberedItem>
631<NumberedItem>
632<Text id="0268">To start building the collection, click the <b>&lt;Build Collection&gt;</b> button.</Text>
633</NumberedItem>
634<NumberedItem>
635<Text id="0269">Once the collection has built successfully, a window pops up to confirm this. Click <b>&lt;OK&gt;</b>.</Text>
636</NumberedItem>
637<NumberedItem>
638<Text id="0270">Click the <b>&lt;Preview Collection&gt;</b> button to look at the end result. This loads the relevant page into your web browser (starting it up if necessary). Look around the collection and learn about Hobbits!</Text>
639</NumberedItem>
640<NumberedItem>
641<Text id="0271">Back in the Librarian Interface, click the <b>Enrich</b> tab to view the metadata associated with the documents in the collection.</Text>
642</NumberedItem>
643<NumberedItem>
644<Text id="0272">Presently there is no manually assigned metadata, but the act of building the collection has extracted metadata from the documents. Double click the <i>hobbits</i> folder to expand its content. Then single-click <i>bilbo.html</i> to display all its metadata in the right-hand side of the panel. The initial fields, starting "dc.", are empty. These are Dublin Core metadata fields (we asked you to include this metadata set when the collection was initially formed) for manually entered data.</Text>
645</NumberedItem>
646<NumberedItem>
647<Text id="0273">Use the scroll bar on the extreme right to view the bottom part of the list. There you will see fields starting "ex." that express the extracted metadata: for example <i>ex.Title</i>, based on the text within the HTML Title tags, and <i>ex.Language</i>, the document's language (represented using the ISO standard 2-letter mnemonic) which Greenstone determines by analysing the document's text.</Text>
648</NumberedItem>
649<NumberedItem>
650<Text id="0274">Close the collection by clicking <Menu>File &rarr; Close</Menu>. This automatically saves the collection to disk.</Text>
651</NumberedItem>
652<Heading>
653<Text id="0277">Setting up a shortcut in the Librarian interface</Text>
654</Heading>
655<NumberedItem>
656<Text id="0278">To set up a shortcut to the source files, in the <b>Gather</b> panel navigate to the folder in your local file space that contains the files you want to use&mdash;in our case, the <i>sample_files</i> folder. Select this folder and then right-click it. Follow the instructions to set up a shortcut. Close all the folders in the file tree and you will see the shortcut to your source files in the left-hand pane of the <b>Gather</b> panel.</Text>
657</NumberedItem>
658</Content>
659</Tutorial>
660<Tutorial id="word_PDF_collection">
661<Title>
662<Text id="0279">A collection of Word and PDF files</Text>
663</Title>
664<SampleFiles folder="Word_and_PDF"/>
665<Version initial="2.60" current="2.70"/>
666<Content>
667<Comment>
668<Text id="0280">You will need some source files like those in the sample_files\Word_and_PDF folder.</Text>
669</Comment>
670<NumberedItem>
671<Text id="0281">Start a new collection called <b>reports</b>, fill out appropriate fields for it, and choose Dublin Core as the metadata set.</Text>
672</NumberedItem>
673<NumberedItem>
674<Text id="0282">Copy the 12 files from <Path>sample_files &rarr; Word_and_PDF &rarr; Documents</Path> into the collection. You can select multiple files by clicking on the first one and shift-clicking on the last one, and drag them all across together. (This is the normal technique of multiple selection.)</Text>
675</NumberedItem>
676<NumberedItem>
677<Text id="0287">Switch to the <b>Create</b> panel, and <b>build</b> and <b>preview</b> the collection.</Text>
678</NumberedItem>
679<NumberedItem>
680<Text id="0288">Again, this collection contains no manually assigned metadata. All the information that appears&mdash;title and filename&mdash;is extracted automatically from the documents themselves. Because of this the quality of some of the title metadata is suspect.</Text>
681</NumberedItem>
682<NumberedItem>
683<Text id="0289">Back in the Librarian Interface, click the <b>Enrich</b> tab to view the automatically extracted metadata. You will need to scroll down to see the extracted metadata, which begins with "ex.".<i> </i>The PostScript documents (<i>cluster.ps</i> and <i>langmodl.ps</i> do not have extracted titles: what appears in the <i>titles a-z </i>list is just the first few characters of the document).</Text>
684</NumberedItem>
685<Heading>
686<Text id="0290">Manually adding metadata to documents in a collection</Text>
687</Heading>
688<NumberedItem>
689<Text id="0291">In the <b>Enrich</b> panel, manually add Dublin Core <i>dc.Title</i> metadata to one of these documents. Select <i>word03.doc</i> and double-click to open it. Copy the title of this document ("Greenstone: A comprehensive open-source digital library software system") and return to the Librarian Interface. Scroll up or down in the metadata table until you can see <b>dc.Title</b>. Click in the value box, paste in the metadata and press <b>Enter</b>. </Text>
690</NumberedItem>
691<NumberedItem>
692<Text id="0292">Now add <i>dc.Creator</i> information for the same document. You can add more than one value for the same field: when you press <b>Enter</b> in a metadata value field, a new empty field of the same type will be generated.</Text>
693</NumberedItem>
694<NumberedItem>
695<Text id="0292a">Close the document when you have finished copying metadata from it. External programs opened when viewing documents must be closed before building the collection, otherwise errors can occur.</Text>
696</NumberedItem>
697<NumberedItem>
698<Text id="0293">Next add title and creator metadata for a few of the other documents.</Text>
699</NumberedItem>
700<Comment>
701<Text id="0294">If you build and preview your collection at this point, you will find that nothing has changed. You need to alter the collection design to use the new Dublin Core metadata instead of the original extracted metadata.</Text>
702</Comment>
703<Heading>
704<Text id="0295">Collection design; branding a collection with an image</Text>
705</Heading>
706<NumberedItem>
707<Text id="0296">Change to the <b>Design</b> panel, which is split into several sections. The first section <b>General</b> appears. This allows you to modify the values you provided when defining the collection, if desired. You can also brand the collection using a suitable image.</Text>
708</NumberedItem>
709<NumberedItem>
710<Text id="0297">Click on the &lt;<b>Browse...</b>&gt; button associated with <b>URL to about page icon</b>, and browse to the image <Path>sample_files &rarr; Word_and_PDF &rarr; wrdpdf.gif</Path> on your computer. When you select this image, Greenstone automatically generates an appropriate URL for the image. <b>Preview</b> the collection.</Text>
711</NumberedItem>
712<NumberedItem>
713<Text id="0301">If you are on the web, you can easily make your own Greenstone-style icon by going to</Text>
714<Link>http://www.greenstone.org/make-images.html</Link>
715<Text id="0302">and following the instructions there.</Text>
716</NumberedItem>
717<Heading>
718<Text id="0303">Document plugins</Text>
719</Heading>
720<NumberedItem>
721<Text id="0304">Now look at the <b>Document Plugins</b> section, by clicking on this in the list to the left. Here you can add, configure or remove plugins to be used in the collection. There is no need to remove any plugins, but it will speed up processing a little. In this case we have only Word, PDF, RTF, and PostScript documents, and can remove the ZIPPlug, TEXTPlug, HTMLPlug, EMAILPlug, ImagePlug, ISISPlug and NULPlug plugins. To delete a plugin, select it and click &lt;<b>Remove Plugin</b>&gt;. GAPlug is required for any type of source collection and should not be removed. </Text>
722</NumberedItem>
723<Heading>
724<Text id="0305">Search types and fielded searching</Text>
725</Heading>
726<NumberedItem>
727<Text id="0306">Go to the <b>Search Types</b> section. This specifies what kind of search interface and what search indexes will be provided for the collection. Let's add a form search option. Click &lt;<b>Enable Advanced Searches</b>&gt;; this allows form searching to be added to the collection.</Text>
728</NumberedItem>
729<NumberedItem>
730<Text id="0307">To include "form search" as well as the default "plain search", pull down the <b>Search Types</b> menu and select <b>form</b>; then click &lt;<b>Add Search Type</b>&gt;.</Text>
731<Text id="0308">Plain search will be the default search type as it is first in the list.</Text>
732</NumberedItem>
733<Heading>
734<Text id="0309">Search indexes</Text>
735</Heading>
736<NumberedItem>
737<Text id="0310">The next step in the <b>Design</b> panel is <b>Search Indexes</b>. These specify what parts of the collection are searchable (e.g. searching by title and author). Delete the <i>ex.Title</i> and <i>ex.Source</i> indexes, which are not particularly useful, by selecting them one at a time and clicking &lt;<b>Remove Index</b>&gt;. Only the <i>text</i> index remains.</Text>
738</NumberedItem>
739<NumberedItem>
740<Text id="0311">Now add a Title index based on <i>dc.Title</i> by providing an <b>Index Name </b>(e.g. "Document Title") and selecting <i>dc.Title</i> from the <b>Index Source</b> box. Then click &lt;<b>Add Index</b>&gt;.</Text>
741</NumberedItem>
742<NumberedItem>
743<Text id="0312">You can add indexes based on any metadata. Add an index called "Authors" based on <i>dc.Creator</i> metadata.</Text>
744</NumberedItem>
745<Comment>
746<Text id="0313">The next two sections are <b>Partition Indexes</b> and <b>Cross-Collection Search</b>. In this exercise, we will not make any changes to these.</Text>
747</Comment>
748<Heading>
749<Text id="0314">Browsing classifiers</Text>
750</Heading>
751<NumberedItem>
752<Text id="0315">The <b>Browsing Classifiers</b> section adds "classifiers," which provide the collection with browsing functions. Go to this section and observe that Greenstone has provided two classifiers, <i>AZLists</i> based on <i>ex.Title</i> and <i>ex.Source</i> metadata. Remove both of these by selecting them in turn and clicking &lt;<b>Remove Classifier</b>&gt;.</Text>
753</NumberedItem>
754<NumberedItem>
755<Text id="0316">Now we add an <i>AZList</i> classifier for <i>dc.Title</i> metadata. Select <i>AZList</i> from the <b>Select classifier to add</b> drop-down list and click &lt;<b>Add Classifier</b>&gt;</Text>
756</NumberedItem>
757<NumberedItem>
758<Text id="0317">A popup window <b>Configuring Arguments</b> appears. Select <i>dc.Title</i> from the <b>metadata</b> drop-down list and click &lt;<b>OK</b>&gt;.</Text>
759</NumberedItem>
760<NumberedItem>
761<Text id="0318">Now add an <i>AZCompactList</i> classifier. Click &lt;<b>Add Classifier</b>&gt; and configure it to use <i>dc.Creator</i> metadata, with button name "Creator". Click &lt;<b>OK</b>&gt;.</Text>
762<Comment>
763<Text id="0319">The last three sections are <b>Format Features</b>, <b>Translate Text</b> and <b>Metadata Sets</b>. In this exercise, we will not make any changes to these.</Text>
764</Comment>
765</NumberedItem>
766<NumberedItem>
767<Text id="0320">Switch to the <b>Create</b> panel, and <b>build</b> and <b>preview</b> the collection.</Text>
768</NumberedItem>
769<NumberedItem>
770<Text id="0321">Check that all the facilities work properly. There should be three full-text indexes, called <i>text</i>, <i>Document Title</i>, and <i>Authors</i>. In the <i>titles a-z</i> list should appear all the documents to which you have assigned <i>dc.Title</i> metadata (and only those documents). In the <i>authors a­-z</i> list should appear one bookshelf for each author you have assigned as <i>dc.Creator</i>, and clicking on that bookshelf should take you to all the documents they authored.</Text>
771</NumberedItem>
772<Comment>
773<Text id="0322">At this point you might like to publish the collection on CD-ROM, See <TutorialRef id="export_to_CDROM"/> for how to do this.</Text>
774</Comment>
775</Content>
776</Tutorial>
777<Tutorial id="difficult_PDF_collection">
778<Title>
779<Text id="0323">Difficult PDF documents</Text>
780</Title>
781<SampleFiles folder="difficult_documents"/>
782<Version initial="2.60" current="2.70"/>
783<Content>
784<NumberedItem>
785<Text id="0324">Build a fresh Greenstone collection from the two files in <i>sample_files\difficult_documents.</i> Use the default collection configuration: that is, simply gather the files into a new collection, and build it.</Text>
786<Comment>
787<Text id="0325">These files are called No extractable text.pdf and Weird characters.pdf&mdash;their names hint at the problems they will cause!</Text>
788</Comment>
789</NumberedItem>
790<NumberedItem>
791<Text id="0326">Now preview the collection. The titles and filenames lists show only one of the documents. When you click the "text" icon to look at the text extracted from that document, it's garbage. During the building process this message appeared: "One document was processed and included in the collection; one was rejected."</Text>
792</NumberedItem>
793<Heading>
794<Text id="0333">Modes in the Librarian Interface</Text>
795</Heading>
796<Comment>
797<Text id="0334">The Librarian Interface can operate in different modes. So far, you have been using the default mode, called "Librarian." </Text>
798</Comment>
799<NumberedItem>
800<Text id="0335">Use the <i>Preferences</i> item on the <i>File</i> menu to switch to <i>Expert</i> mode and then build the collection again. The <b>Create</b> panel looks different in Expert mode because it gives more options: locate the <b>Build Collection</b> button, near the bottom of the window, and click it. Now a message appears saying that the file could not be processed, and why.</Text>
801</NumberedItem>
802<NumberedItem>
803<Text id="0336">We recommend that you switch back to <i>Librarian</i> mode for subsequent exercises, to avoid confusion.</Text>
804</NumberedItem>
805<Heading>
806<Text id="0336a">Improved PDF Conversion with Ghostscript</Text>
807</Heading>
808<Comment>
809<Text id="0336b">If you have Ghostscript installed, then you can use a new method of handling these difficult PDF documents. Ghostscript is a program that can convert Postscript and PDF files to other formats. You can download it from <Link>http://www.cs.wisc.edu/~ghost/</Link> (follow the link to the current stable release).</Text>
810</Comment>
811<NumberedItem>
812<Text id="0327">Greenstone can convert PDF files into a series of images with a corresponding file that details how they are composed into the complete document (called an <i>item</i> file). For this part of the exercise, ImageMagick also needs to be installed (see <TutorialRef id="install_greenstone"/>).</Text>
813</NumberedItem>
814<NumberedItem>
815<Text id="0328">In the <b>Document Plugins</b> list in the <b>Design</b> panel, double-click <b>PDFPlug </b>to pop up a window that shows its settings, and set the <b>convert_to</b> option to <i>pagedimg_gif</i>.</Text>
816</NumberedItem>
817<NumberedItem>
818<Text id="0329"><b>Build</b> the collection and <b>preview </b>it. Both PDF documents have been processed and divided into pages, but each page displays "This document has no text" because when converting PDF documents to images, no text is extracted.</Text>
819</NumberedItem>
820<NumberedItem>
821<Text id="0330">In order to view the documents properly we need to modify a format statement. In the <b>Format Features</b> section on the <b>Design</b> panel, select the <b>DocumentText</b> format statement. Replace <Format>[Text]</Format> with <Format>[srcicon]</Format> and click <b>Replace Format</b>.</Text>
822</NumberedItem>
823<NumberedItem>
824<Text id="0332"><b>Preview</b> the collection from the <b>Create</b> panel. (There is no need to build it). Images from the documents are now displayed instead of the extracted text. Both <i>No extractable text.pdf</i> and <i>Weird characters.pdf</i> display nicely now. </Text>
825</NumberedItem>
826</Content>
827</Tutorial>
828<Tutorial id="simple_image_collection">
829<Title>
830<Text id="0337">A simple image collection</Text>
831</Title>
832<SampleFiles folder="images"/>
833<Version initial="2.60" current="2.70"/>
834<Content>
835<NumberedItem>
836<Text id="0338">Start a new collection (<Menu>File &rarr; New</Menu>) called <b>backdrop</b>. Fill out the fields with appropriate information. For <b>Base this collection on</b>, select the item <b>Simple image collection (image-e)</b> from the pull-down menu.</Text>
837<Comment>
838<Text id="0340">Greenstone does not ask you to choose a metadata set because the new collection inherits whatever is used by the base collection.</Text>
839</Comment>
840</NumberedItem>
841<NumberedItem>
842<Text id="0341">Copy the images provided in <i>sample_files\images</i> into your newly-formed collection.</Text>
843</NumberedItem>
844<NumberedItem>
845<Text id="0342">Change to the <b>Create </b>panel and <b>build</b> the collection.</Text>
846</NumberedItem>
847<NumberedItem>
848<Text id="0343"><b>Preview</b> the result.</Text>
849</NumberedItem>
850<NumberedItem>
851<Text id="0344">Click <i>browse</i> in the navigation bar to view a list of the photos ordered by filename and presented as a thumbnail accompanied by some basic data about the image. The structure of this collection is the same as <b>Simple image collection (image-e)</b>, but the content is different.</Text>
852</NumberedItem>
853<NumberedItem>
854<Text id="0345">Change to the <b>Enrich</b> panel and view the extracted metadata for <i>Ascent.jpg</i>.</Text>
855</NumberedItem>
856<Comment>
857<Text id="0346">We now add our own metadata and use it to give users a new way to browse the collection. We use the Dublin Core metadata set.</Text>
858</Comment>
859<Heading>
860<Text id="0347">Adding a metadata set to the collection</Text>
861</Heading>
862<NumberedItem>
863<Text id="0348">The collection (image-e) on which <b>backdrop</b> is based uses only extracted metadata. To add another metadata set, go to the <b>Design</b> panel of the Librarian Interface and click <b>Metadata Sets</b> in the list on the left (the last one). Then click &lt;<b>Add Metadata Set...</b>&gt; (lower left button).</Text>
864</NumberedItem>
865<NumberedItem>
866<Text id="0349">In the window that pops up, select <b>dublin.mds </b>and click &lt;<b>Add Metadata Set</b>&gt;.</Text>
867</NumberedItem>
868<Heading>
869<Text id="0350">Adding Title metadata</Text>
870</Heading>
871<NumberedItem>
872<Text id="0351">Now switch to the <b>Enrich</b> panel by clicking this tab. The metadata for each file now shows the Dublin core <i>dc.</i> fields as well as the extracted <i>ex.</i> fields.</Text>
873</NumberedItem>
874<NumberedItem>
875<Text id="0352">We work with just the first three files (<i>Ascent.jpg</i>, <i>Autumn.jpg </i>and <i>Azul.jpg</i>) to get a flavour of what is possible. First, set each file's <b>dc.Title</b> field to be the same as its filename but without the filename extension.</Text>
876</NumberedItem>
877<NumberedItem>
878<Text id="0353">Click on <b><i>Ascent.jpg </i></b>so its metadata fields are available, then click on its <b>dc.Title </b>field on the right-hand side. Type in <b>Ascent</b>, and click <b>Enter</b>.</Text>
879</NumberedItem>
880<Comment>
881<Text id="0354">The <b>Existing values for ...</b>box will become more useful when more entries have been added.</Text>
882</Comment>
883<NumberedItem>
884<Text id="0355">Repeat the process for <b>Autumn.jpg </b>and <b>Azul.jpg</b>.</Text>
885</NumberedItem>
886<Comment>
887<Text id="0356">Now we customize the collection's appearance. Building or previewing the collection at this point won't reveal anything new. That's because we haven't changed the design of the collection to take advantage of the new metadata.</Text>
888</Comment>
889<Heading>
890<Text id="0357">Change Format Features to display new metadata</Text>
891</Heading>
892<NumberedItem>
893<Text id="0358">Go to the <b>Design</b> panel and select <b>Format Features</b> from the left-hand list. Leave the feature selection controls at their default values, so that <b>Choose Feature</b> remains blank and <b>VList</b> is selected as the <b>Affected Component</b>. In the <b>HTML Format String</b>, edit the text as follows:</Text>
894<Indent>
895<Text id="0359">Change "_ImageName_:" to "Title:" <br/> Change "[Image]" to "[dc.Title]"</Text>
896</Indent>
897<Comment>
898<Text id="0360">Metadata names are case-sensitive in Greenstone: it is important that you capitalize "Title" (and don't capitalize "dc").</Text>
899</Comment>
900</NumberedItem>
901<NumberedItem>
902<Text id="0361">Next click <b>&lt;Replace Format&gt;</b>. The first of the above changes alters the fragment of text that appears to the right of the thumbnail image, the second alters the item of metadata that follows it.</Text>
903</NumberedItem>
904<NumberedItem>
905<Text id="0362">Go to the <b>Create</b> panel and click <b>&lt;Build Collection&gt;</b>. Now <b>preview </b>the collection. When you click on <b>browse</b> in the navigation bar the presentation has changed to "Title: Ascent" and so on.</Text>
906</NumberedItem>
907<Comment>
908<Text id="0363">After the first three items, the Title becomes blank because we have only assigned dc.Title metadata to these first three. To get a full listing, enter all the metadata.</Text>
909</Comment>
910<Comment>
911<Text id="0364">For some design parameters the collection must be rebuilt before the effect of changes can be seen. However, changes to format statements take place immediately and you can see the result straightaway by clicking <b>reload</b> (or <b>refresh</b>) in the web browser.</Text>
912</Comment>
913<Heading>
914<Text id="0365">Changing the size of image thumbnails</Text>
915</Heading>
916<NumberedItem>
917<Text id="0366">Thumbnail images are created by the <i>ImagePlug</i> plug-in, so we need to access its configuration settings. To do this, switch to the <b>Design</b> panel and select <b>Document Plugins</b> from the list on the left. Double-click <b>plugin ImagePlug</b> to pop up a window that shows its settings. (Alternatively, select <b>ImagePlug </b>with a single click and then click <b>&lt;Configure Plugin...&gt;</b> further down the screen). Currently all options are off, so standard defaults are used. Select <b>thumbnailsize</b>, set it to <b>50</b>, and click <b>&lt;OK&gt;</b>.</Text>
918</NumberedItem>
919<NumberedItem>
920<Text id="0367"><b>Build </b>and <b>preview </b>the collection.</Text>
921</NumberedItem>
922<NumberedItem>
923<Text id="0368">Once you have seen the result of the change, return to the <b>Design</b> panel, select the configuration options for <i>ImagePlug</i>, and switch the thumbnail size option off so that the thumbnail reverts to its normal size when the collection is re-built.</Text>
924</NumberedItem>
925<Comment>
926<Text id="0369">Now add metadata that describes the photos in the collection. Again, for illustration, we focus on the first three images (Ascent.jpg, Autumn.jpg and Azul.jpg).</Text>
927</Comment>
928<Heading>
929<Text id="0370">Adding Description metadata</Text>
930</Heading>
931<NumberedItem>
932<Text id="0371">Switch to the <b>Enrich</b> panel and select <i>Ascent.jpg</i>. We'll store our description in the <b>dc.Description </b>metadata element, so select it now in the right-hand panel.</Text>
933</NumberedItem>
934<Comment>
935<Text id="0372">What description should you enter? To remind yourself of a file's content, the Librarian Interface lets you open files by double-clicking them. It launches the appropriate application based on the filename extension, Word for .doc files, Acrobat for .pdf files and so on. Double-click Ascent.jpg: on Windows, the image will normally be displayed by Microsoft's Photo Editor (although this depends on how your computer has been set up).</Text>
936</Comment>
937<NumberedItem>
938<Text id="0373">Back in the Librarian Interface enter the text <b>Moon rising over mountain landscape </b>as the <b>dc.Description </b>field's value and click <b>Enter</b> to have it added.</Text>
939</NumberedItem>
940<NumberedItem>
941<Text id="0374">Repeat this process for <i>Autumn.jpg </i>and <i>Azul.jpg</i>, adding a suitable description for each.</Text>
942</NumberedItem>
943<NumberedItem>
944<Text id="0375">Build the collection again, to incorporate the new metadata.</Text>
945</NumberedItem>
946<NumberedItem>
947<Text id="0376">Now update the format statement to use the new <b>dc.Description </b>metadata. Switch back to the <b>Format Features</b> section of the <b>Design </b>panel, and ensure the <b>Choose Feature</b> box is blank, and <b>VList</b> is selected in the <b>Affected Component</b> box. In the <b>HTML Format String</b>, place your cursor after the text that says</Text>
948<Format>[dc.Title]&lt;br&gt;</Format>
949</NumberedItem>
950<NumberedItem>
951<Text id="0377">and add the following text:</Text>
952<Format>Description: [dc.Description]&lt;br&gt;</Format>
953</NumberedItem>
954<NumberedItem>
955<Text id="0378">Then click <b>&lt;Replace Format&gt;</b>.</Text>
956</NumberedItem>
957<NumberedItem>
958<Text id="0379"><b>Preview</b> the result (you don't need to build the collection as was done in step 22 to incorporate the metadata, because changes to format statements take effect immediately). Each image's description should appear beside the thumbnail, following the title.</Text>
959</NumberedItem>
960<Heading>
961<Text id="0380">Adding a browsing classifier based on Description metadata</Text>
962</Heading>
963<NumberedItem>
964<Text id="0381">Switch to the <b>Design</b> panel and select <b>Browsing Classifiers </b>from the left-hand list. Set the menu item for <b>Select classifier to add </b>to <b>AZList</b>; then click &lt;<b>Add Classifier...</b>&gt;.</Text>
965</NumberedItem>
966<NumberedItem>
967<Text id="0382">A window pops up to control the classifier's options. Set the menu item for metadata to <b>dc.Description</b> and click <b>&lt;OK&gt;</b>. Now switch to the <b>Create </b>panel, <b>build </b>the collection, and <b>preview </b>it. Choose the new <b>descriptions </b>link that appears in the navigation bar.</Text>
968</NumberedItem>
969<Comment>
970<Text id="0383">Only three items are shown, because only items with the relevant metadata (dc.Description in this case) appear in the list. The original browse list includes all photos in the collection because it is based on ex.Image, extracted metadata that reflects an image's filename, which is set for all images in the collection.</Text>
971</Comment>
972<Heading>
973<Text id="0384">Creating a searchable index based on Description metadata</Text>
974</Heading>
975<NumberedItem>
976<Text id="0385">Switch to the <b>Design </b>panel and select <b>Search Indexes </b>from the left-hand list. Enter the text "descriptions" as the <b>Index Name</b>, select <b>dc.Description </b>and click <b>&lt;Add Index&gt;</b>.</Text>
977</NumberedItem>
978<NumberedItem>
979<Text id="0386">Switch to the <b>Create</b> panel, <b>build</b> the collection, then <b>preview</b> it. As an example, search for the term "mountain" in the <i>descriptions</i> index (which is the only index at this point).</Text>
980</NumberedItem>
981</Content>
982</Tutorial>
983<Tutorial id="large_html_collection">
984<Title>
985<Text id="0387">A large collection of HTML files&mdash;Tudor</Text>
986</Title>
987<SampleFiles folder="tudor"/>
988<Version initial="2.60" current="2.70"/>
989<Content>
990<NumberedItem>
991<Text id="0388">Invoke the Greenstone Librarian Interface (from the Windows <i>Start</i> menu) and start a new collection called <b>tudor</b> (use the <i>File</i> menu). Fill out the pop-up dialog with appropriate values and leave <b>Dublin Core</b>, which is selected by default, as the metadata set.</Text>
992</NumberedItem>
993<NumberedItem>
994<Text id="0389">In the <b>Gather</b> panel, open the <i>tudor </i>folder in <i>sample_files</i>.</Text>
995</NumberedItem>
996<NumberedItem>
997<Text id="0390">Drag <i>englishhistory.net </i>from the left-hand side to the right to include it in your <b>tudor</b> collection.</Text>
998</NumberedItem>
999<NumberedItem>
1000<Text id="0391">Switch to the <b>Create</b> panel and click <b>&lt;Build Collection&gt;</b>.</Text>
1001</NumberedItem>
1002<NumberedItem>
1003<Text id="0392">When building has finished, <b>preview</b> the collection.</Text>
1004</NumberedItem>
1005<NumberedItem>
1006<Text id="0393">The browsing facilities in this collection (<i>titles a-z</i> and <i>filenames</i>) are based entirely on extracted metadata. Return to the Librarian Interface and examine the metadata that has been extracted for some of the files.</Text>
1007</NumberedItem>
1008<Comment>
1009<Text id="0394">You've probably noticed that the collection contains a few stray image files, as well as the HTML documents. This is a mistake. The issue is that many of the HTML documents include images, and although Greenstone attempts to determine which images belong to HTML pages and only considers other images for inclusion in the collection, in this case it hasn't been completely successful. (This is because the web site from which these files were downloaded occasionally departs from the usual convention of hierarchical structuring.)</Text>
1010</Comment>
1011<NumberedItem>
1012<Text id="0395">Switch to the <b>Design</b> panel and select the <b>Document Plugins</b> section. Beside <b>plugin HTMLPlug</b> you will see <i>-smart_block</i>. This is the option that attempts to identify images in the HTML pages and block them from inclusion&mdash;in this case, it's not smart enough! Select the <b>plugin HTMLPlug</b> line and click &lt;<b>Configure Plugin...&gt;</b>. A popup window appears. Scroll down the page to locate the <b>smart_block</b> option and switch it off. Click &lt;<b>OK&gt;</b>.</Text>
1013</NumberedItem>
1014<NumberedItem>
1015<Text id="0396">Switch to the <b>Create</b> panel and <b>build</b> and <b>preview</b> the collection. The collection is exactly as before except that these stray images are suppressed. What is happening is that plug-ins operate as a pipeline: files are passed to each one in turn until one is found that can process it. By default (i.e. without <i>smart_block</i>) the HTML plug-in blocks <i>all</i> images, which is appropriate for this collection.</Text>
1016</NumberedItem>
1017<Heading>
1018<Text id="0397">Looking at different views of the files in the Gather and Enrich panels</Text>
1019</Heading>
1020<NumberedItem>
1021<Text id="0398">Switch to the <b>Gather</b> panel and in the right-hand side open <Path>englishhistory.net &rarr; tudor</Path>.</Text>
1022</NumberedItem>
1023<NumberedItem>
1024<Text id="0400">Change the <b>Show Files</b> menu for the right-hand side from <b>All Files</b> to <b>HTM &amp; HTML</b>. Notice the files displayed above are filtered accordingly, to show only files of this type.</Text>
1025</NumberedItem>
1026<NumberedItem>
1027<Text id="0401">Change the <b>Show Files</b> menu to <b>Images</b>. Again, the files shown above alter.</Text>
1028</NumberedItem>
1029<NumberedItem>
1030<Text id="0402">Now return the <b>Show Files</b> setting back to <b>All Files</b>, otherwise you may get confused later. Remember, if the <b>Gather</b> or <b>Enrich</b> panels do not seem to be showing all your files, this could be the problem.</Text>
1031</NumberedItem>
1032</Content>
1033
1034</Tutorial>
1035<Tutorial id="export_to_CDROM">
1036<Title>
1037<Text id="0403">Exporting a collection to CD-ROM/DVD</Text>
1038</Title>
1039<Prerequisite id="large_html_collection"/>
1040<Version initial="2.60" current="2.70"/>
1041<Content>
1042<Comment>
1043<Text id="0404">To publish a collection on CD-ROM or DVD, Greenstone's Export to CD-ROM export module must be installed (see <TutorialRef id="install_greenstone"/>).</Text>
1044</Comment>
1045<NumberedItem>
1046<Text id="0405">Launch the Greenstone Librarian Interface if it is not already running.</Text>
1047</NumberedItem>
1048<NumberedItem>
1049<Text id="0406">Choose <Menu>File &rarr; Write CD/DVD image...</Menu>, and in the popup window select the <b>tudor</b> collection as the collection to export. You can optionally name the CD-ROM; otherwise the default "collections" is used. Do so now, entering "Tudor collection" in the field for <b>CD/DVD name</b>; then click <b>&lt;Write CD/DVD image&gt;</b>.</Text>
1050<Text id="0408">The necessary files for export are written to:</Text>
1051<Text id="0408a"><Path>C:\Program Files\Greenstone\tmp\exported_Tudorcollection</Path></Text>
1052<Comment>
1053<Text id="0408b">Note, if you didn't specify a name for the CD-ROM, then the folder name will be <Path>exported_collections</Path> instead of <Path>exported_Tudorcollections</Path>.</Text>
1054</Comment>
1055<Text id="0409">You need to use your own computer's software to write these on to CD-ROM. On <i>Windows XP</i> this ability is built into the operating system: assuming you have a CD-ROM or DVD writer insert a blank disk into the drive and drag the contents of <i>exported_Tudorcollection</i> into the folder that represents the disk.</Text>
1056<Comment>
1057<Text id="0410">The result will be a self-installing Windows Greenstone CD-ROM or DVD, which starts the installation process as soon as it is placed in the drive.</Text>
1058</Comment>
1059</NumberedItem>
1060</Content>
1061</Tutorial>
1062<Tutorial id="downloading_from_internet">
1063<Title>
1064<Text id="0411">Downloading files from the web</Text>
1065</Title>
1066<Prerequisite id="large_html_collection"/>
1067<Version initial="2.60" current="2.70"/>
1068<Content>
1069<Comment>
1070<Text id="0412">The Greenstone Librarian Interface's Download panel allows you to download individual files, parts of websites, and indeed whole websites, from the web.</Text>
1071</Comment>
1072<NumberedItem>
1073<Text id="0413">Start a new collection called <b>webtudor</b>, and base it on the <b>tudor</b> collection.</Text>
1074</NumberedItem>
1075<NumberedItem>
1076<Text id="0414">In a web browser, visit <Link>http://englishhistory.net</Link>, follow the link to <i>Tudor England</i>, and click &lt;<b>enter</b>&gt;. You should be at the URL</Text>
1077<Link>http://englishhistory.net/tudor/contents.html</Link>
1078<Text id="0415">This is where we started the downloading process to obtain the files you have been using for the <b>tudor</b> collection.</Text>
1079</NumberedItem>
1080<NumberedItem>
1081<Text id="0416">You could do the same thing by copying this URL from the web browser, pasting it into the <b>Download </b>panel, and clicking the &lt;<b>Download&gt;</b> button. However, several megabytes will be downloaded, which might strain your network resources&mdash;or your patience! For a faster exercise we focus on a smaller section of the site. In the <b>Download</b> panel, enter this URL</Text>
1082<Link>http://englishhistory.net/tudor/citizens/</Link>
1083<Text id="0417">into the <b>Source URL</b> box. There are several options that govern how the download process proceeds. To copy the <i>citizens</i> section of the website, select <b>Only mirror files below this URL</b>. If you don't do this (or if you miss out the terminating "/"), the downloading process will follow links to other areas of the <i>englishhistory.net</i> website and grab those as well. Set <b>Download</b> <b>depth</b> to <b>Unlimited</b>&mdash;we want to follow as many links as necessary to download all the pages.</Text>
1084</NumberedItem>
1085<NumberedItem>
1086<Text id="0418">Now click &lt;<b>Download&gt;</b>. A progress bar appears in the lower half of the panel that reports on how the downloading process is doing.</Text>
1087<Comment>
1088<Text id="0419">More detailed information can be obtained by clicking &lt;<b>View Log&gt;</b>. The process can be paused and restarted as needed, or stopped altogether by clicking &lt;<b>Close&gt;</b>. Downloading can be a lengthy process involving multiple sites, and so Greenstone allows additional downloads to be queued up. When new URLs are pasted into the Source URL box and &lt;<b>Download&gt;</b> clicked, a new progress bar is appended to those already present in the lower half of the panel. When the currently active download item completes, the next is started automatically.</Text>
1089</Comment>
1090</NumberedItem>
1091<NumberedItem>
1092<Text id="0420">Downloaded files are stored in a top-level folder called <b>Downloaded Files</b> that appears on the left-hand side of the <b>Gather</b> panel. You may not need all the downloaded files, and you choose which you want by dragging selected files from this folder over into the collection area on the right-hand side, just like we have done before when selecting data from the <i>sample_files</i> folder. In this example we will include everything that has been downloaded.</Text>
1093<Text id="0421">Select the <b>englishhistory.net</b> folder within <b>Downloaded Files</b> and drag it across into the collection area.</Text>
1094</NumberedItem>
1095<NumberedItem>
1096<Text id="0422">Switch to the <b>Create</b> panel to <b>build</b> and <b>preview</b> the collection. It is smaller than the previous collection because we included only the <i>citizens</i> files. However, these now represent the latest versions of the documents.</Text>
1097</NumberedItem>
1098</Content>
1099</Tutorial>
1100<Tutorial id="web_linking">
1101<Title>
1102<Text id="0423">Pointing to documents on the web</Text>
1103</Title>
1104<Prerequisite id="downloading_from_internet"/>
1105<Version initial="2.60" current="2.70"/>
1106<Content>
1107<NumberedItem>
1108<Text id="0424">Open up your <b>webtudor</b> collection, and in the <b>Gather</b> panel inspect the files you dragged into it. The first folder is <i>englishhistory.net</i>, which opens up to reveal <i>tudor</i>, and so on. The files represent a complete sweep of the pages (and supporting images) that constitute the <i>Tudor citizens</i> section of the <i>englishhistory.net</i> web site. They were downloaded from the web in a way that preserved the structure of the original site. This allows any page's original URL to be reconstructed from the folder hierarchy.</Text>
1109</NumberedItem>
1110<NumberedItem>
1111<Text id="0425">In the <b>Design</b> panel, select the <b>Document Plugins</b> section, then select the <b>plugin HTMLPlug</b> line and click &lt;<b>Configure Plugin...&gt;</b>. A popup window appears. Locate the <b>file_is_url</b> option (about halfway down the first block of items) and switch it on. Click &lt;<b>OK&gt;</b>.</Text>
1112<Text id="0426">Setting this option to the HTMLPlug means that Greenstone sets an additional piece of metadata for each document called URL, which gives its original URL.</Text>
1113<Text id="0427">It is important that the files gathered in the collection start with the web domain name (<i>englishhistory.net</i> in this case). The conversion process will not work if you dragged over a subfolder, for example the <i>tudor</i> folder, because this will set URL metadata to something like</Text>
1114<Indent>
1115http://tudor/citizens/...
1116</Indent>
1117<Text id="0428">rather than</Text>
1118<Indent>
1119http://englishhistory.net/tudor/citizens/...
1120</Indent>
1121<Text id="0429">If you have copied over a subfolder previously, delete it and make a fresh copy. Drag the folder in the right-hand side of the <b>Gather</b> panel on to the trash can in the lower right corner. Then obtain a fresh copy of the files by dragging across the <i>englishhistory.net</i> folder from the Downloaded Files folder on the left-hand side.</Text>
1122</NumberedItem>
1123<NumberedItem>
1124<Text id="0430">To make use of the new URL metadata, the icon link must be changed to serve up the original URL rather than the copy stored in the digital library. Go to the <b>Design</b> panel, select the <b>Format Features</b> section and edit the <b>VList</b> format statement by replacing</Text>
1125<Format>[link][icon][/link]</Format>
1126<Text id="0431">with</Text>
1127<Format>[weblink][webicon][/weblink]</Format>
1128<Text id="0432">Click &lt;<b>Replace Format&gt;</b> to commit the change.</Text>
1129</NumberedItem>
1130<NumberedItem>
1131<Text id="0433">Switch to the <b>Create</b> panel and <b>build</b> and <b>preview</b> the collection. The collection behaves exactly as before, except that when you click a document icon your web browser retrieves the original document from the web (assuming it is still there by the time you do this exercise!). If you are working offline you will be unable to retrieve the document.</Text>
1132</NumberedItem>
1133</Content>
1134</Tutorial>
1135<Tutorial id="enhanced_html_collection">
1136<Title>
1137<Text id="0434">Enhanced collection of HTML files</Text>
1138</Title>
1139<Prerequisite id="large_html_collection"/>
1140<Version initial="2.60" current="2.70"/>
1141<Content>
1142<Comment>
1143<Text id="0435">We return to the Tudor collection and add metadata that expresses a subject hierarchy. Then we build a classifier that exploits it by allowing readers to browse the documents about Monarchs, Relatives, Citizens, and Others separately.</Text>
1144</Comment>
1145<Heading>
1146<Text id="0437">Adding hierarchically-structured metadata and a Hierarchy classifier</Text>
1147</Heading>
1148<NumberedItem>
1149<Text id="0438">Open up your <b>tudor</b> collection (the original version, not the <b>webtudor</b> version), switch to the <b>Enrich </b>panel and select the <i>monarchs</i> folder (a subfolder of <i>tudor</i>). Set its <b>dc.Subject and Keywords</b> metadata to <b>Tudor period|Monarchs</b>. (For brevity, we refer to this metadata element in future simply as <b>dc.Subject</b>.) The vertical bar ("|") is a hierarchy marker. Selecting a <i>folder</i> and adding metadata has the effect of setting this metadata value for all files contained in this folder, its subfolders, and so on. A popup alerts you to this fact.</Text>
1150</NumberedItem>
1151<NumberedItem>
1152<Text id="0439">Repeat for the <i>relative</i> and <i>citizens</i> folder, setting their <b>dc.Subject</b> metadata to <b>Tudor period|Relatives</b> and <b>Tudor period|Citizens</b> respectively. Note that the hierarchy appears in the <b>Existing values for dc.Subject and Keywords</b> area.</Text>
1153</NumberedItem>
1154<NumberedItem>
1155<Text id="0440">Finally, select all remaining files&mdash;the ones that are not in the <i>monarchs</i>, <i>relative</i>, and <i>citizens</i> folders&mdash;by selecting the first and shift-clicking the last. Set their <b>dc.Subject</b> metadata to <b>Tudor period|Others</b>: this is done in a single operation (there is a short delay before it completes).</Text>
1156</NumberedItem>
1157<NumberedItem>
1158<Text id="0441">Switch to the <b>Design</b> panel and select <b>Browsing Classifiers </b>from the left-hand list. Set the menu item for <b>Select classifier to add </b>to <b>Hierarchy</b>; then click &lt;<b>Add Classifier...</b>&gt;.</Text>
1159</NumberedItem>
1160<NumberedItem>
1161<Text id="0442">A window pops up to control the classifier's options. Change the <b>metadata</b> to <i>dc.Subject</i> and then click <b>&lt;OK&gt;</b>.</Text>
1162</NumberedItem>
1163<NumberedItem>
1164<Text id="0443">For tidiness' sake, <b>remove</b> the <b>classifier</b> for <b>Source</b> metadata (included by default) from the list of currently assigned classifiers, because this adds little to the collection.</Text>
1165</NumberedItem>
1166<NumberedItem>
1167<Text id="0444">Now switch to the <b>Create </b>panel, <b>build </b>the collection, and <b>preview </b>it. Choose the new <b>subjects </b>link that appears in the navigation bar, and click the bookshelves to navigate around the four-entry hierarchy that you have created.</Text>
1168</NumberedItem>
1169<Comment>
1170<Text id="0445">Next we partition the full-text index into four separate pieces. To do this we first define four subcollections obtained by "filtering" the documents according to a criterion based on their <b>dc.Subject</b> metadata. Then an index is assigned to each subcollection.</Text>
1171</Comment>
1172<Heading>
1173<Text id="0446">Partitioning the full-text index based on metadata values</Text>
1174</Heading>
1175<NumberedItem>
1176<Text id="0447">Switch to the <b>Design</b> panel, and click &lt;<b>Partition Indexes</b>&gt;. This feature is disabled because you are operating in <i>Librarian Mode</i> (this is indicated in the title bar at the top of the window).</Text>
1177</NumberedItem>
1178<NumberedItem>
1179<Text id="0448">Switch to <i>Library Systems Specialist</i> mode by going to <b>Preferences</b> (on the <i>File</i> menu) and clicking &lt;<b>Mode</b>&gt;. Read about the other modes too. Note that the mode appears in the title bar.</Text>
1180</NumberedItem>
1181<NumberedItem>
1182<Text id="0449">Return to the <b>Partition Indexes</b> section of the <b>Design</b> panel. Ensure that the <b>Define Filters</b> tab is selected (the default). Define a subcollection filter with name <b>monarchs</b> that matches against <b>dc.Subject and Keywords, </b>and type <b>Monarchs</b> as the regular expression to match with. Click &lt;<b>Add Filter</b>&gt;. This filter includes any file whose <b>dc.Subject</b> metadata contains the word <i>Monarchs</i>.</Text>
1183</NumberedItem>
1184<NumberedItem>
1185<Text id="0450">Define another filter, <b>relatives</b>, which matches <b>dc.Subject </b>against the word <b>Relatives</b>.<b> </b>Define a third and fourth, <b>citizens</b> and <b>others</b>, which matches it against the words <b>Citizens</b> and <b>Others</b> respectively.</Text>
1186</NumberedItem>
1187<NumberedItem>
1188<Text id="0451">Having defined the subcollections, we partition the index into corresponding parts. Click the &lt;<b>Assign Partitions</b>&gt; tab. Select the first subcollection and give it the name <b>citizens</b>; click &lt;<b>Add Partition</b>&gt;. Repeat for the other three subcollections, naming their partitions <b>monarchs</b>, <b>others</b> and <b>relatives</b>. <b>Build</b> and <b>preview</b> the collection.</Text>
1189</NumberedItem>
1190<NumberedItem>
1191<Text id="0452">The search page includes a pulldown menu that allows you to select one of these partitions for searching. For example, try searching the <i>relatives</i> partition for <i>mary</i> and then search the <i>monarchs</i> partition for the same thing.</Text>
1192</NumberedItem>
1193<NumberedItem>
1194<Text id="0453">To allow users to search the collection as a whole as well as each subcollection individually, return to the <b>Partition Indexes</b> section of the <b>Design</b> panel and select the <b>Assign Partitions </b>tab.<b> </b>Type <b>all</b> into the <b>Partition Name </b>and select all four subcollections by checking their boxes.</Text>
1195</NumberedItem>
1196<NumberedItem>
1197<Text id="0454">To ensure that the <i>all</i> index appears first in the list on the reader's web page, use the &lt;<b>Move Up</b>&gt; button to get it to the top of the list here in the <b>Design</b> panel. Then <b>build</b> and <b>preview</b> the collection.</Text>
1198</NumberedItem>
1199<NumberedItem>
1200<Text id="0455">Search for a common term (like <i>the</i>) in all five index partitions, and check that the numbers of words (not documents) add up.</Text>
1201</NumberedItem>
1202<NumberedItem>
1203<Text id="0456">Return to <i>Librarian </i>mode, using <b>Preferences</b> (on the <i>File</i> menu).</Text>
1204</NumberedItem>
1205<Heading>
1206<Text id="0457">Adding a hierarchical phrase index (PHIND)</Text>
1207</Heading>
1208<NumberedItem>
1209<Text id="0458">Switch to the <b>Design</b> panel and choose the <b>Browsing Classifiers</b> item from the left-hand list.</Text>
1210</NumberedItem>
1211<NumberedItem>
1212<Text id="0459">Choose <b>Phind</b> from the <b>Select classifier to add</b> menu. Click &lt;<b>Add Classifier...</b>&gt;. A window pops asking for configuration options: leave the values at their preset defaults (this will base the phrase index on the full text) and click <b>&lt;OK&gt;</b>.</Text>
1213</NumberedItem>
1214<NumberedItem>
1215<Text id="0460"><b>Build</b> the collection again, <b>preview</b> it, and try out the new <b>phrases</b> option in the navigation bar. An interesting PHIND search term for this collection is <b>king</b>.</Text>
1216</NumberedItem>
1217<Comment>
1218<Text id="0461">Finally we look at how the building process can be controlled. Developing a new collection usually involves numerous cycles of building, previewing, adjusting some enrich and design features, and so on. While prototyping, it is best to temporarily reduce the number of documents in the collection. This can be accomplished through the "maxdocs" parameter to the building process.</Text>
1219</Comment>
1220<Heading>
1221<Text id="0462">Controlling the building process</Text>
1222</Heading>
1223<NumberedItem>
1224<Text id="0463">Switch to the <b>Create</b> panel and view the options that are displayed in the top portion of the screen. Select <b>maxdocs</b> and set its numeric counter to <b>3</b>. Now <b>build</b>.</Text>
1225</NumberedItem>
1226<NumberedItem>
1227<Text id="0464">Preview the newly rebuilt collection's <b>titles a-z</b> page. Previously this listed more than a dozen pages per letter of the alphabet, but now there are just three&mdash;the first three files encountered by the building process.</Text>
1228</NumberedItem>
1229<NumberedItem>
1230<Text id="0464a">Go back to the <b>Create</b> panel and turn off the <b>maxdocs</b> option. <b>Rebuild</b> the collection so that all the documents are included.</Text>
1231</NumberedItem>
1232</Content>
1233</Tutorial>
1234<Tutorial id="format_and_macros">
1235<Title>
1236<Text id="0465">Learning about formats and macros</Text>
1237</Title>
1238<Prerequisite id="large_html_collection"/>
1239<Version initial="2.60" current="2.70"/>
1240<Content>
1241<Comment>
1242<Text id="0466">Format statements and macro files allow you to customize the appearance of Greenstone collections. They are very powerful, but complex and hard to learn. This tutorial exercise gives an introduction to the facilities they provide.</Text>
1243</Comment>
1244<Heading>
1245<Text id="0467">Experimenting with format statements</Text>
1246</Heading>
1247<NumberedItem>
1248<Text id="0468">Open up your <b>tudor</b> collection, go to the <b>Design</b> panel (by clicking on its tab) and select <b>Format Features </b>from the left-hand list. Leave the editing controls at their default value, so that <b>Choose Feature </b>remains blank and <b>VList </b>is selected as the <b>Affected Component</b>. The text in the <b>HTML Format String</b> box reads as follows:</Text>
1249<Format>
1250&lt;td valign=top&gt;[link][icon][/link]&lt;/td&gt;<br/>
1251&lt;td valign=top&gt;[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]} [ex./srclink]&lt;/td&gt;<br/>
1252&lt;td valign=top&gt;[highlight]<br/>
1253{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}<br/>
1254[/highlight]{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}&lt;/td&gt;
1255</Format>
1256<Text id="0469">This displays something that looks like this: </Text>
1257<Indent>
1258<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>
1259</Indent>
1260<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>
1261<Text id="0473">This format appears in the search results list, in the <i>titles a-z</i> list, and also when you get down to individual documents in the <i>subjects</i> hierarchy. This is Greenstone's default format statement.</Text>
1262</NumberedItem>
1263<Comment>
1264<Text id="0474">Greenstone's default format statement is complex&mdash;even baroque&mdash;because it is designed to produce something reasonable under almost any conditions, and also because for practical reasons it needs to be backwards compatible with legacy collections.</Text>
1265</Comment>
1266<NumberedItem>
1267<Text id="0475">Delete the contents of the <b>HTML</b> <b>Format String</b> box and replace it with this simpler version:</Text>
1268<Format>
1269&lt;td&gt;[link][icon][/link]&lt;/td&gt; <br/>
1270&lt;td&gt;[ex.Title]&lt;br&gt;<br/>
1271&nbsp;&nbsp;&nbsp;&nbsp;&lt;i&gt;([ex.Source])&lt;/i&gt;<br/>
1272&lt;/td&gt;
1273</Format>
1274<Text id="0475a">Remember to click <b>&lt;Replace Format&gt;</b>.</Text>
1275<Text id="0476"><b>Preview</b> the result (you don't need to build the collection, because changes to format statements take effect immediately). Look at some search results and at the <i>titles a-z</i> list. They are just the same as before! Under most circumstances this far simpler format statement is entirely equivalent to Greenstone's more complex default. </Text>
1276<Comment>
1277<Text id="0478">But there's a problem. Beside the bookshelves in the <b>subjects</b> browser, beneath the subject appears a mysterious "()". What is printed on these bookshelf nodes is governed by the same format statement, and though bookshelf nodes of the hierarchy have associated <i>Title</i> metadata&mdash;their title is the name of the metadata value associated with that bookshelf&mdash;they do not have <i>ex.Source</i> metadata, so it comes out blank.</Text>
1278</Comment>
1279</NumberedItem>
1280<NumberedItem>
1281<Text id="0482">In the <b>Format Features</b> section of the <b>Design</b> panel, the <b>Choose Feature</b> menu (just above <b>Affected Component</b> menu) is blank. That implies that the same format is used for the search results, titles, and all nodes in the subject hierarchy&mdash;including internal nodes (that is, bookshelves). The <b>Choose Feature</b> menu can be used to restrict a format statement to a specific one of these lists; when it's blank, the <b>VList</b> specification applies throughout. We will override this format statement for the hierarchical <i>subject</i> classifier. In the <b>Choose Feature</b> menu, scroll down to the item that says</Text>
1282<Indent>
1283CL2: Hierarchy -metadata dc.Subject and Keywords
1284</Indent>
1285<Text id="0483">and select it. This is the format statement that affects the second classifier (i.e., "CL2"), which is a <b>Hierarchy</b> classifier based on <b>dc.Subject and Keywords</b> metadata.</Text>
1286<Text id="0484">Edit the <b>HTML Format String</b> box below to read</Text>
1287<Format>
1288&lt;td&gt;[link][icon][/link]&lt;/td&gt;<br/>
1289&lt;td&gt;[ex.Title]&lt;/td&gt;
1290</Format>
1291<Text id="0485">and click &lt;<b>Add Format</b>&gt;.</Text>
1292</NumberedItem>
1293<NumberedItem>
1294<Text id="0486">Now go to the <b>Create</b> panel and click &lt;<b>Preview Collection</b>&gt;. First, the offending "()" has disappeared from the bookshelves. Second, when you get down to a list of documents in the subject hierarchy, the filename does not appear beside the title, because <i>ex.Source</i> is not specified in the format statement and this format statement applies to all nodes in the <i>subject</i> classifier. Note that the search results and titles lists have not changed: they still display the filename underneath the title.</Text>
1295</NumberedItem>
1296<NumberedItem>
1297<Text id="0487">Let's change the search results format so that <i>dc.Subject and Keywords </i>metadata is displayed here instead of the filename. In the <b>Choose Feature </b>menu (under <b>Format Features </b>on the <b>Design </b>panel), scroll down to the item <b>Search</b> and select it. Change the <b>HTML Format String</b> box below to read</Text>
1298<Format>
1299&lt;td&gt;[link][icon][/link]&lt;/td&gt;<br/>
1300&lt;td&gt;[ex.Title]&lt;br&gt;<br/>
1301&nbsp;&nbsp;&nbsp;&nbsp;[dc.Subject]<br/>
1302&lt;/td&gt;<br/>
1303</Format>
1304<Text id="0488">and click &lt;<b>Add Format</b>&gt;.</Text>
1305</NumberedItem>
1306<NumberedItem>
1307<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&mdash;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 many of 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>
1308</NumberedItem>
1309<NumberedItem>
1310<Text id="0490">Now go to the <b>Create</b> panel and click &lt;<b>Preview Collection</b>&gt;. Documents in the search results list will be displayed like this:</Text>
1311<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/>
1312Tudor period|Others</td></tr></table>
1313<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>
1314</NumberedItem>
1315<NumberedItem>
1316<Text id="0494">Finally, let's return to the <i>subjects</i> hierarchy and learn how to do different things to the bookshelves and to the documents themselves. In the <b>Choose Feature </b>menu, re-select the item</Text>
1317<Indent>
1318CL2: Hierarchy -metadata dc.Subject and Keywords
1319</Indent>
1320<Text id="0495">Edit the <b>HTML Format String </b>box below to read</Text>
1321<Format>
1322&lt;td&gt;[link][icon][/link]&lt;/td&gt;<br/>
1323&lt;td&gt;{If}{[numleafdocs],&lt;b&gt;Bookshelf title:&lt;/b&gt; [ex.Title],<br/>
1324&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;b&gt;Title:&lt;/b&gt; [ex.Title]}<br/>
1325&lt;/td&gt;
1326</Format>
1327<Text id="0496">and click <b>Replace Format</b>. Again, you can insert the items in square brackets by selecting them from the <b>Variables</b> dropdown box (don't forget to click <b>Insert</b>).</Text>
1328<Comment>
1329<Text id="0497">The <b>If</b> statement tests the value of the variable <b>numleafdocs</b>. This variable is only set for internal nodes of the hierarchy, i.e. bookshelves, and gives the number of documents below that node. If it is set we take the first branch, otherwise we take the second. Commas are used to separate the branches. The curly brackets serve to indicate that the <b>If</b> is special&mdash;otherwise the word "If" itself would be output.</Text>
1330</Comment>
1331</NumberedItem>
1332<NumberedItem>
1333<Text id="0498">Go to the <b>Create </b>panel, click &lt;<b>Preview Collection</b>&gt;, and examine the subject hierarchy again to see the effect of your changes.</Text>
1334</NumberedItem>
1335<Heading>
1336<Text id="0499">Collection-specific macros</Text>
1337</Heading>
1338<Comment>
1339<Text id="0500">The appearance of all pages produced by Greenstone is governed by macro files, which reside in the folder <Path>C:\Program Files\Greenstone\macros</Path>. The garish example collection is a version of the demo collection with bizarre layout and coloring. Now we apply the same bizarre layout and coloring to the tudor collection.</Text>
1340</Comment>
1341<NumberedItem>
1342<Text id="0505">Go to the folder <Path>C:\Program Files\Greenstone\collect\garish\macros</Path>. Copy the file <i>extra.dm</i>. Now go to your collection folder <Path>C:\Program Files\Greenstone\collect\tudor</Path> and create a new folder in there called <i>macros</i>. Paste <i>extra.dm</i> into that new folder. The overall effect is that you have created a new file <Path>C:\Program Files\Greenstone\collect\tudor\macros\extra.dm</Path>.</Text>
1343</NumberedItem>
1344<NumberedItem>
1345<Text id="0505a">This macro file uses a CSS style file and some images which you will also need to copy from the garish collection. Go to the folder <Path>C:\Program Files\Greenstone\collect\garish\images</Path>. Select the three files <i>style.css</i>, <i>horzline.gif</i> and <i>bg_blue.gif</i>. <b>Copy</b> these files and paste them into the <Path>C:\Program Files\Greenstone\collect\tudor\images</Path> folder.</Text>
1346</NumberedItem>
1347<NumberedItem>
1348<Text id="0507">Go to the <b>Create </b>panel and click &lt;<b>Preview Collection</b>&gt;. The content of your collection remains the same, but its appearance has changed completely&mdash;for example, all the pages are pink! To learn about how to control these changes, go to the documented example collection called <i>Garish version of demo collection</i>, and read about it.</Text>
1349</NumberedItem>
1350<Heading>
1351<Text id="0512">General macros</Text>
1352</Heading>
1353<Comment>
1354<Text id="0513">You can also use macros to completely change the appearance of your Greenstone site. Like the above exercise, what follows is just a lead-in to illustrate what is possible and show you where to look to achieve different kinds of effects.</Text>
1355</Comment>
1356<NumberedItem>
1357<Text id="0514">Exit from the Librarian Interface, since it is concerned with individual collections and we are now dealing with the site as a whole.</Text>
1358</NumberedItem>
1359<NumberedItem>
1360<Text id="0515">Go to the folder <i>C:\Program Files\Greenstone\etc</i> and edit the file called <i>main.cfg</i>. This is Greenstone's main configuration file, and contains a list of the macros that will be loaded in on startup. One of them, <i>home.dm</i>, dictates how the Greenstone home page will look, which is specified in the file <i>C:\Program Files\Greenstone\macros\home.dm</i>. This <i>macros</i> folder contains an alternative version, called <i>yourhome.dm</i>, which is not currently being used. To use it instead, in <i>main.cfg</i> change the string <i>home.dm</i> to <i>yourhome.dm</i>.</Text>
1361</NumberedItem>
1362<NumberedItem>
1363<Text id="0516">Now restart Greenstone (just the Greenstone Digital Library will do, rather than the Greenstone Librarian Interface). You will find that the appearance of the home page has changed completely.</Text>
1364</NumberedItem>
1365<NumberedItem>
1366<Text id="0517">Instead of substituting <i>yourhome.dm</i> for <i>home.dm</i> in the file <i>main.cfg</i>, you could have simply edited <i>home.dm</i> and left <i>main.cfg</i> as it is. However, we wanted to preserve <i>home.dm</i> so that you could revert to your original Greenstone home page! Do this now by editing <i>main.cfg</i> and changing the string <i>yourhome.dm</i> back to <i>home.dm</i>. You will need to re-start Greenstone for this to take effect.</Text>
1367</NumberedItem>
1368<Comment>
1369<Text id="0518">To learn more about macros, read <i>Customizing the Greenstone User Interface</i>, an illustrated guide to customizing the user interface, by Allison Zhang of the Washington Research Library Consortium, available at <Link>http://www.wrlc.org/dcpc/UserInterface/interface.htm</Link>.</Text>
1370</Comment>
1371</Content>
1372</Tutorial>
1373<Tutorial id="bibliography_collection">
1374<Title>
1375<Text id="0520">A bibliographic collection</Text>
1376</Title>
1377<SampleFiles folder="marc"/>
1378<Version initial="2.60" current="2.70"/>
1379<Content>
1380<NumberedItem>
1381<Text id="0521">Start a new collection called <b>Beatles Bibliography</b>. Enter the requested information and make it a <b>New Collection</b>. There is no need to include any metadata sets because the metadata extracted from the MARC records will appear as extracted metadata. Deselect the <b>Dublin Core</b> metadata set, and click &lt;<b>OK</b>&gt;.</Text>
1382<Text id="0521a">A <b>No metadata Sets Selected</b> warning message will pop-up, alerting you to the fact that you won't be able to manually assign metadata to the collection. In this collection, all the metadata will come from the MARC file; click &lt;<b>OK</b>&gt; to continue. (If you don't want to see this popup again, tick the <b>Do not show this warning again</b> checkbox.)</Text>
1383</NumberedItem>
1384<NumberedItem>
1385<Text id="0522">In the <b>Gather</b> panel, open the <i>marc</i> folder, drag <b>locbeatles50.marc</b> into the right-hand pane and drop it there. A popup window asks whether you want to add <b>MARCPlug</b> to the collection to process this file. Click &lt;<b>Add Plugin</b>&gt;, because this plugin will be needed to process the MARC records.</Text>
1386</NumberedItem>
1387<NumberedItem>
1388<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 &lt;<b>Remove Plugin</b>&gt; (<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>
1389</NumberedItem>
1390<NumberedItem>
1391<Text id="0524">Now select <b>Browsing Classifiers</b> within the <b>Design</b> panel and <b>remove</b> the default classifier for <b>Source</b> metadata. In this collection all records are from the same file, so <b>Source</b> metadata, which is set to the filename, is not particularly interesting.</Text>
1392</NumberedItem>
1393<NumberedItem>
1394<Text id="0525">Switch to the <b>Create</b> panel, <b>build </b>the collection, and <b>preview</b> it. Browse through the <b>titles a-z</b> and view a record or two. Try searching&mdash;for example, find items that include <b>George Martin</b>.</Text>
1395</NumberedItem>
1396<NumberedItem>
1397<Text id="0526">Add an <b>AZCompactList</b> classifier for the <b>Subject</b> metadata. Select this item from the relevant menu of the <b>Browsing Classifiers </b>section of the <b>Design</b> panel and click <b>&lt;Add Classifier...&gt;</b>. In the popup window, select <b>ex.Subject </b>as the metadata item.</Text>
1398<Comment>
1399<Text id="0527"><b>AZCompactList</b> is like <b>AZList,</b> except that terms that appear multiple times in the hierarchy are automatically grouped together and a new node, shown as a bookshelf icon, is formed.</Text>
1400</Comment>
1401</NumberedItem>
1402<NumberedItem>
1403<Text id="0528"><b>Build</b> the collection and <b>preview</b> the result.</Text>
1404</NumberedItem>
1405<NumberedItem>
1406<Text id="0529">Make each bookshelf node show how many entries it contains by appending this to the <b>Format Features</b> for the <b>VList</b> format statement in the <b>Design</b> panel:</Text>
1407<Format>{If}{[numleafdocs],&lt;td&gt;&lt;i&gt;([numleafdocs])&lt;/i&gt;&lt;/td&gt;}</Format>
1408</NumberedItem>
1409<NumberedItem>
1410<Text id="0530">Click <b>&lt;Replace Format&gt;</b>, switch to the <b>Create</b> panel, and click <b>&lt;Preview Collection&gt;</b> (no need to build the collection again).</Text>
1411</NumberedItem>
1412<Heading>
1413<Text id="0531">Adding fielded searching</Text>
1414</Heading>
1415<NumberedItem>
1416<Text id="0532">In the <b>Design</b> panel select <b>Search Types</b> from the left-hand list and activate the <b>Enable Advanced Searches</b> option.</Text>
1417</NumberedItem>
1418<NumberedItem>
1419<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>
1420</NumberedItem>
1421<NumberedItem>
1422<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>
1423</NumberedItem>
1424<Comment>
1425<Text id="0534">To finish off the collection, brand it with an image that will be used to represent the collection on the Greenstone page, and appear at the top of each page of the collection</Text>
1426</Comment>
1427<Heading>
1428<Text id="0535">Branding a collection with an image</Text>
1429</Heading>
1430<NumberedItem>
1431<Text id="0536">From the <b>General</b> section of the <b>Design</b> panel, click the <b>&lt;Browse...&gt;</b> button next to the label <b>URL to 'about page' icon</b> and use the resulting popup file browser to access the folder <i>sample_files\marc</i>. Select <i>beatles_logo.jpg</i> and click &lt;<b>Open</b>&gt;.</Text>
1432<Comment>
1433<Text id="0537">Greenstone copies the image into your collection area, so the collection will still work when the CD-ROM is removed from the drive.</Text>
1434</Comment>
1435</NumberedItem>
1436<NumberedItem>
1437<Text id="0538">Repeat this process for the <b>URL to 'home page' icon</b>, selecting the same image.</Text>
1438</NumberedItem>
1439<NumberedItem>
1440<Text id="0539">Now <b>build</b> the collection and <b>preview</b> it.</Text>
1441</NumberedItem>
1442</Content>
1443</Tutorial>
1444<Tutorial id="multimedia_collection_explore">
1445<Title>
1446<Text id="0540">Looking at a multimedia collection</Text>
1447</Title>
1448<SampleFiles folder="beatles"/>
1449<Version initial="2.60" current="2.70"/>
1450<Content>
1451<NumberedItem>
1452<Text id="0541">Copy the entire folder</Text>
1453<Path>sample_files &rarr; beatles &rarr; advbeat_large</Path>
1454<Text id="0542">(with all its contents) into your Greenstone <i>collect</i> folder. If you have installed Greenstone in the usual place, this is</Text>
1455<Path>
1456<Text id="0542a">My Computer &rarr; Local Disk (C:) &rarr; Program Files &rarr; Greenstone &rarr; collect</Text>
1457</Path>
1458<Text id="0543">Put <i>advbeat_large</i> in there.</Text>
1459</NumberedItem>
1460<NumberedItem>
1461<Text id="0544">If the Greenstone Digital Library Local Library Server is already running, re-start it by clicking the CD icon on the task bar and then pressing <i>Restart Library</i>. If not, start it up by selecting <i>Greenstone Digital Library</i> from the <i>Start</i> menu.</Text>
1462</NumberedItem>
1463<NumberedItem>
1464<Text id="0545">Explore the Beatles collection. Note how the <i>browse</i> button divides the material into seven different types. Within each category, the documents have appropriate icons. Some documents have an audio icon: when you click these you hear the music (assuming your computer is set up with appropriate player software). Others have an image thumbnail: when you click these you see the images.</Text>
1465</NumberedItem>
1466<NumberedItem>
1467<Text id="0546">Look at the <i>titles a-z</i> browser. Each title has a bookshelf that may include several related items. For example, <i>Hey Jude</i> has a cover image, MP3 audio and MIDI versions, lyrics, and a discography item.</Text>
1468</NumberedItem>
1469<NumberedItem>
1470<Text id="0547">Observe the low quality of the metadata. For example, the four items under <i>A Hard Day's Night</i> (under "H" in the <i>titles a-z</i> browser) have different variants as their titles. The collection would have been easier to organize had the metadata been cleaned up manually first, but that would be a big job. Only a tiny amount of metadata was added by hand&mdash;fewer than ten items. The original metadata was left untouched and Greenstone facilities used to clean it up automatically. (You will find in <TutorialRef id="multimedia_collection_build"/> that this is possible but tricky.)</Text>
1471</NumberedItem>
1472<NumberedItem>
1473<Text id="0548">In the Windows file browser, take a look at the files that makes up the collection, in the</Text>
1474<Path>sample_files &rarr; beatles &rarr; advbeat_large &rarr; import</Path>
1475<Text id="0549">folder. What a mess! There are over 450 files under seven top-level sub-folders. Organization is minimal, reflecting the different times and ways the files were gathered. For example, <i>html_lyrics</i> and <i>discography</i> are excerpts of web sites, and <i>cover_images </i>contains album covers in JPEG format. For each type, drill down through the hierarchy and look at a sample document.</Text>
1476</NumberedItem>
1477</Content>
1478</Tutorial>
1479<Tutorial id="multimedia_collection_build">
1480<Title>
1481<Text id="0550">Building a multimedia collection</Text>
1482</Title>
1483<Prerequisite id="multimedia_collection_explore"/>
1484<SampleFiles folder="beatles"/>
1485<Version initial="2.60" current="2.70"/>
1486<Content>
1487<Comment>
1488<Text id="0551">We will proceed to reconstruct from scratch the Beatles collection that you have just looked at. We develop the collection using a small subset of the material, purely to speed up the repeated rebuilding that is involved.</Text>
1489</Comment>
1490<NumberedItem>
1491<Text id="0552">Start a new collection (<Menu>File &rarr; New</Menu>) called <b>small_beatles</b>, basing it on the default "New Collection." (Basing it on the existing Advanced Beatles collection would make your life far easier, but we want you to learn how to build it from scratch!) Fill out the fields with appropriate information. Use the Dublin Core metadata set (set by default).</Text>
1492</NumberedItem>
1493<NumberedItem>
1494<Text id="0554">Copy the files provided in</Text>
1495<Path>sample_files &rarr; beatles &rarr; advbeat_small</Path>
1496<Text id="0555">into your new collection. Do this by opening up <i>advbeat_small</i>,<i> </i>selecting the eight items within it (from <i>cover_images</i> to <i>beatles_midi.zip</i>), and dragging them across. Because some of these files are in MP3 and MARC formats you will be asked whether to include <b>MP3Plug</b> and <b>MARCPlug</b> in your collection. Click &lt;<b>Add Plugin</b>&gt;.</Text>
1497</NumberedItem>
1498<NumberedItem>
1499<Text id="0556">Change to the <b>Enrich</b> panel and browse around the files. There is no metadata&mdash;yet. Recall that you can double-click files to view them.</Text>
1500<Text id="0557">(There are no MIDI files in the collection: these require more advanced customisation because there is no MIDI plugin. We will deal with them later.)</Text>
1501</NumberedItem>
1502<NumberedItem>
1503<Text id="0558">Change to the <b>Create</b> panel and <b>build </b>the collection.</Text>
1504</NumberedItem>
1505<NumberedItem>
1506<Text id="0559"><b>Preview</b> the result.</Text>
1507</NumberedItem>
1508<Heading>
1509<Text id="0560">Manually correcting metadata</Text>
1510</Heading>
1511<NumberedItem>
1512<Text id="0561">You might want to correct some of the metadata&mdash;for example, the atrocious misspelling in the titles "MAGICAL MISTERY TOUR." These documents are in the discography section, with filenames that contain the same misspelling. Locate one of them in the <b>Enrich</b> panel. Notice that the extracted metadata element <b>ex.Title</b> is now filled in, and misspelt. You cannot correct this element, for it is extracted from the file and will be re-extracted every time the collection is re-built.</Text>
1513</NumberedItem>
1514<NumberedItem>
1515<Text id="0562">Instead, add <b>dc.Title</b> metadata for these two files: "Magical Mystery Tour." Change to the <b>Enrich</b> panel, open the discography folder and drill down to the individual files. Set the <b>dc.Title</b> value for the two offending items.</Text>
1516</NumberedItem>
1517<Comment>
1518<Text id="0563">Now there's a twist. The <b>dc.Title</b> metadata won't appear in titles a-z because the classifier has been instructed to use <b>ex.Title</b>. But changing the classifier to use <b>dc.Title</b> would miss out all the extracted titles! Fortunately, there's a way of dealing with this by specifying a list of metadata names in the classifier.</Text>
1519</Comment>
1520<NumberedItem>
1521<Text id="0564">Change to the <b>Design</b> panel and select the <b>Browsing Classifiers</b> section. Double-click the <b>Title</b> classifier (the first one) to edit its configuration settings.</Text>
1522<BulletList>
1523<Bullet>
1524<Text id="0565">Type "dc.Title," before the <i>ex.Title </i>in the metadata box&mdash;i.e. make it read</Text>
1525<Format>
1526dc.Title,ex.Title
1527</Format>
1528<Text id="0565a">and click <b>&lt;OK&gt;</b>.</Text>
1529</Bullet>
1530</BulletList>
1531<Text id="0566"><b>Build </b>the collection again, and <b>preview </b>it.</Text>
1532<Text id="0567">Extracted metadata is unreliable. But it is very cheap! On the other hand, manually assigned metadata is reliable, but expensive. The previous section of this exercise has shown how to aim for the best of both worlds by using extracted metadata but correcting it when it is wrong. While this may not satisfy the professional librarian, it could provide a useful compromise for the music teacher who wants to get their collection together with a minimum of effort.</Text>
1533</NumberedItem>
1534<Heading>
1535<Text id="0568">Browsing by media type</Text>
1536</Heading>
1537<NumberedItem>
1538<Text id="0569">First let's remove the <b>AZList</b> classifier for filenames, which isn't very useful, and replace it with a browsing structure that groups documents by category (discography, lyrics, audio etc.). Categories are defined by manually assigned metadata.</Text>
1539<BulletList>
1540<Bullet>
1541<Text id="0570">Change to the <b>Enrich</b> panel, select the folder <i>cover_images</i> and set its <b>dc.Format</b> metadata value to "Images". Setting this value at the folder level means that all files within the folder inherit it.</Text>
1542</Bullet>
1543<Bullet>
1544<Text id="0571">Repeat the process. Assign "Discography" to the <i>discography</i> folder, "Lyrics" to <i>html_lyrics</i>, "MARC" to <i>marc</i>, "Audio" to <i>mp3</i>, "Tablature" to <i>tablature_txt</i>, and "Supplementary" to <i>wordpdf</i>.</Text>
1545</Bullet>
1546<Bullet>
1547<Text id="0572">Switch to the <b>Design</b> panel and select the <b>Browsing Classifiers </b>section.</Text>
1548</Bullet>
1549<Bullet>
1550<Text id="0573">Delete the <b>ex.Source </b>classifier (the second one).</Text>
1551</Bullet>
1552<Bullet>
1553<Text id="0574">Add an <b>AZCompactList</b> classifier. Select <b>dc.Format</b> as the metadata field and specify "browse" as the <b>buttonname</b>. Click the <b>sort</b> checkbox, and specify "Title" in the adjacent text box: this will make the classifier display documents in alphabetical order of title.</Text>
1554</Bullet>
1555</BulletList>
1556<Text id="0575"><b>Build</b> the collection again and <b>preview</b> it.</Text>
1557</NumberedItem>
1558<Heading>
1559<Text id="0579">Suppressing dummy text</Text>
1560</Heading>
1561<NumberedItem>
1562<Text id="0580">Alongside the Audio files there is an MP3 icon, which plays the audio when you click it, and also a text document that contains some dummy text. This isn't supposed to be seen, but to suppress it you have to fiddle with a format statement.</Text>
1563<BulletList>
1564<Bullet>
1565<Text id="0581">Change to the <b>Design</b> panel and select the <b>Format Features</b> section.</Text>
1566</Bullet>
1567<Bullet>
1568<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>
1569<Format>
1570&lt;td valign=top&gt;<highlight>[link][icon][/link]</highlight>&lt;/td&gt;<br/>
1571<highlight>&lt;td valign=top&gt;[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]&lt;/td&gt; </highlight><br/>
1572&lt;td valign=top&gt;[highlight]<br/>
1573{Or}{[dls.Title],[dc.Title],[Title],Untitled} <br/>
1574[/highlight]{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}&lt;/td&gt;
1575</Format>
1576<Text id="0583">to this:</Text>
1577<Format>
1578&lt;td valign=top&gt;<br/>
1579<highlight>{If}{[dc.Format] eq 'Audio', </highlight><br/>
1580<highlight>&nbsp;&nbsp;[srclink][srcicon][/srclink], </highlight><br/>
1581<highlight>&nbsp;&nbsp;[link][icon][/link]}</highlight>&lt;/td&gt; <br/>
1582&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;
1583</Format>
1584</Bullet>
1585<Bullet>
1586<Text id="0584">Then click &lt;<b>Replace Format</b>&gt;.</Text>
1587</Bullet>
1588</BulletList>
1589<Text id="0585">To make this easier for you we have prepared a plain text file that contains the new text. In WordPad open the following file:</Text>
1590<Path>sample_files &rarr; beatles &rarr; format_tweaks &rarr; audio_tweak.txt</Path>
1591<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>
1592<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>
1593</NumberedItem>
1594<NumberedItem>
1595<Text id="0593">While we're at it, let's remove the source filename from where it appears after each document.</Text>
1596<BulletList>
1597<Bullet>
1598<Text id="0594">In the VList format feature, delete the text that is highlighted below:</Text>
1599<Format>
1600&lt;td valign=top&gt;<br/>
1601{If}{[dc.Format] eq 'Audio',<br/>
1602&nbsp;&nbsp;[srclink][srcicon][/srclink],<br/>
1603&nbsp;&nbsp;[link][icon][/link]}&lt;/td&gt; <br/>
1604&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>
1605</Bullet>
1606</BulletList>
1607<Text id="0595">Don't forget to click &lt;<b>Replace Format</b>&gt; after all this work! <b>Preview</b> the result (you don't need to build the collection.)</Text>
1608</NumberedItem>
1609<Heading>
1610<Text id="0596">Using AZCompactList rather than AZList</Text>
1611</Heading>
1612<NumberedItem>
1613<Text id="0597">There are sometimes several documents with the same title. For example, <i>All My Loving </i>appears both as lyrics and tablature (under <i>ALL MY LOVING</i>). The <i>titles a-z</i> browser might be improved by grouping these together under a bookshelf icon. This is a job for an <b>AZCompactList</b>.</Text>
1614<BulletList>
1615<Bullet>
1616<Text id="0598">Change to the <b>Design</b> panel and select the <b>Browsing Classifiers </b>section.</Text>
1617</Bullet>
1618<Bullet>
1619<Text id="0599">Remove the <b>Title</b> classifier (at the top)</Text>
1620</Bullet>
1621<Bullet>
1622<Text id="0600">Add an <b>AZCompactList</b> classifier, and enter <b>dc.Title,ex.Title</b> as its metadata.</Text>
1623</Bullet>
1624<Bullet>
1625<Text id="0602">Finish by pressing &lt;<b>OK</b>&gt;.</Text>
1626</Bullet>
1627<Bullet>
1628<Text id="0603">Move the new classifier to the top of the list (<b>Move Up</b> button).</Text>
1629</Bullet>
1630</BulletList>
1631<Text id="0604"><b>Build </b>the collection again and <b>preview </b>it. Both items for <i>All My Loving </i>now appear under the same bookshelf. However, many entries haven't been amalgamated because of non-uniform titles: for example <i>A Hard Day's Night</i> appears as four different variants. We will learn below how to amalgamate these.</Text>
1632</NumberedItem>
1633<Heading>
1634<Text id="0605">Making bookshelves show how many items they contain</Text>
1635</Heading>
1636<NumberedItem>
1637<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>
1638<Format>
1639&lt;td valign=top&gt;<br/>
1640{If}{[dc.Format] eq 'Audio',<br/>
1641&nbsp;&nbsp;[srclink][srcicon][/srclink],<br/>
1642&nbsp;&nbsp;[link][icon][/link]}&lt;/td&gt;<br/>
1643<highlight>&lt;td&gt;{If}{[numleafdocs],([numleafdocs])}&lt;/td&gt;</highlight><br/>
1644&lt;td valign=top&gt;[highlight] {Or}{[dls.Title],[dc.Title],[Title],Untitled} [/highlight]&lt;/td&gt;</Format>
1645<Text id="0607">You will find this text in <Path>format_tweaks &rarr; show_num_docs.txt</Path>, which can be copied and pasted in as before. Don't forget to click &lt;<b>Replace Format</b>&gt;.</Text>
1646<Text id="0609"><b>Preview</b> the result (you don't need to build the collection.)</Text>
1647</NumberedItem>
1648<NumberedItem>
1649<Text id="0610">Now turn to the images. Dummy documents are displayed here too. First change to the <b>Enrich</b> panel, open the folder <i>cover_images</i> and add <b>dc.Title</b> metadata, assigning to each of the ten documents the title of the corresponding album. Remember, you can double-click a file to view it.</Text>
1650</NumberedItem>
1651<NumberedItem>
1652<Text id="0611">To suppress the dummy documents, change the <b>VList</b> format statement in the <b>Format Features</b> section of the <b>Design</b> panel again by adding the two highlighted lines, and the close curly bracket:</Text>
1653<Format>&lt;td valign=top&gt;<br/>
1654{If}{[dc.Format] eq 'Audio',<br/>
1655&nbsp;&nbsp;[srclink][srcicon][/srclink],<br/>
1656&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Images',</highlight><br/>
1657&nbsp;&nbsp;&nbsp;&nbsp;<highlight>[srclink][thumbicon][/srclink],</highlight><br/>
1658&nbsp;&nbsp;&nbsp;&nbsp;[link][icon][/link]}<highlight>}</highlight>&lt;/td&gt;<br/>
1659&lt;td&gt;{If}{[numleafdocs],([numleafdocs])}&lt;/td&gt;<br/>
1660&lt;td valign=top&gt;[highlight] {Or}{[dls.Title],[dc.Title],[Title],Untitled} [/highlight]&lt;/td&gt;</Format>
1661</NumberedItem>
1662<NumberedItem>
1663<Text id="0612">In the <b>Browsing Classifiers</b> section on the <b>Design</b> panel, add a <b>Phind</b> classifier. Leave the settings at their defaults: this generates a phrase browsing classifier that sources its phrases from <i>Title</i> and <i>text</i>.</Text>
1664</NumberedItem>
1665<NumberedItem>
1666<Text id="0613">To complete the collection, use the browse button of <b>URL to 'about page' icon</b> in the <b>General</b> section of the <b>Design</b> panel to select the following image:</Text>
1667<Path>advbeatles_large &rarr; images &rarr; flick4.gif.</Path>
1668<Text id="0616"><b>Build</b> the collection again and <b>preview</b> it.</Text>
1669</NumberedItem>
1670<Comment>
1671<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>
1672</Comment>
1673<Heading>
1674<Text id="0623">Using UnknownPlug</Text>
1675</Heading>
1676<Comment>
1677<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>
1678</Comment>
1679<NumberedItem>
1680<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&mdash;like MIDI&mdash;based on their filename extension, and set basic metadata.</Text>
1681<Text id="0627a">In the <b>Document Plugins</b> section of the <b>Design</b> panel:</Text>
1682<BulletList>
1683<Bullet>
1684<Text id="0628">add <b>UnknownPlug</b>;</Text>
1685</Bullet>
1686<Bullet>
1687<Text id="0629">activate its <i>process_extension</i> field and set it to <i>mid</i> to make it recognize files with extension .<i>mid</i>;</Text>
1688</Bullet>
1689<Bullet>
1690<Text id="0630">Set <i>file_format</i> to "MIDI" and <i>mime_type</i> to "audio/midi".</Text>
1691</Bullet>
1692</BulletList>
1693<Text id="0631">In this collection, all MIDI files are contained in the file <i>beatles_midi.zip</i>. <b>ZIPPlug</b> (already in the list of default plugins) is used to unpack the files and pass them down the list of plugins until they reach UnknownPlug.</Text>
1694</NumberedItem>
1695<NumberedItem>
1696<Text id="0632"><b>Build</b> the collection and <b>preview</b> it. Unfortunately the MIDI files don't appear as Audio under the <i>browse</i> button. That's because they haven't been assigned <b>dc.Format</b> metadata.</Text>
1697<BulletList>
1698<Bullet>
1699<Text id="0633">Back in the <b>Enrich</b> panel, click on the file <i>beatles_midi.zip</i> and assign its <b>dc.Format</b> value to "Audio"&mdash;do this by clicking on "Audio" in the <b>Existing values for dc.Format</b> list. All files extracted from the Zip file inherit its settings.</Text>
1700</Bullet>
1701</BulletList>
1702</NumberedItem>
1703<Heading>
1704<Text id="0634">Cleaning up a title browser using regular expressions</Text>
1705</Heading>
1706<Comment>
1707<Text id="0618a">We now clean up the <i>titles a-z</i> browser.</Text>
1708</Comment>
1709<Comment>
1710<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>
1711</Comment>
1712<Comment>
1713<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>
1714</Comment>
1715<NumberedItem>
1716<Text id="0624">To switch modes, click <Menu>File &rarr; Preferences &rarr; 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>
1717</NumberedItem>
1718<NumberedItem>
1719<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>
1720<BulletList>
1721<Bullet>
1722<Text id="0636">Go to the Title <b>AZCompactList</b> under <b>Browsing Classifiers</b> on the <b>Design</b> panel;</Text>
1723</Bullet>
1724<Bullet>
1725<Text id="0637">Activate <b>removesuffix</b> and set it to:</Text>
1726<Format>(?i)(\\s+\\d+)|(\\s+[[:punct:]].*)</Format>
1727</Bullet>
1728</BulletList>
1729<Text id="0638"><b>Build</b> the collection and <b>preview</b> the result. Observe how many more times similar titles have been amalgamated under the same bookshelf. Test your understanding of regular expressions by trying to rationalize the amalgamations. (Note: <i>[[:punct:]]</i> stands for any punctuation character.) The icons beside the Word and PDF documents are not the correct ones, but that will be fixed in the next format statement.</Text>
1730</NumberedItem>
1731<Comment>
1732<Text id="0639">The previous exercise was done in Librarian Systems Specialist mode because it requires the use of regular expressions, something librarians are not normally trained in.</Text>
1733</Comment>
1734<Comment>
1735<Text id="0640">One powerful use of regular expressions in the exercise was to clean up the <i>titles a-z</i> browser. Perhaps the best way of doing this would be to have proper title metadata. The metadata extracted from HTML files is messy and inconsistent, and this was reflected in the original titles a-z browser. Defining proper title metadata would be simple but rather laborious. Instead, we have opted to use regular expressions in the <i>AZCompactList</i> classifier to clean up the title metadata. This is difficult to understand, and a bit fiddly to do, but if you can cope with its idiosyncrasies it provides a quick way to clean up the extracted metadata and avoid having to enter a large amount of metadata.</Text>
1736</Comment>
1737<Heading>
1738<Text id="0643">Using non-standard macro files</Text>
1739</Heading>
1740<Comment>
1741<Text id="0644">To put finishing touches to our collection, we add some decorative features</Text>
1742</Comment>
1743<NumberedItem>
1744<Text id="0645">Using your Windows file browser outside Greenstone, locate the folder</Text>
1745<Path>sample_files &rarr; beatles &rarr; advbeat_large</Path>
1746</NumberedItem>
1747<NumberedItem>
1748<Text id="0646">Copy the <i>images</i> and <i>macros</i> folders located there into your collection's top-level folder. (It's OK to overwrite the existing <i>images</i> folder: the image in it is included in the folder being copied.) The <i>images</i> folder includes some useful icons, and the <i>macros</i> folder defines some macro names that use these images. To see the macro definitions, take a look by using a text editor to open the file <i>extra.dm</i> in the <i>macros</i> folder.</Text>
1749</NumberedItem>
1750<Heading>
1751<Text id="0647">Using different icons for different media types</Text>
1752</Heading>
1753<NumberedItem>
1754<Text id="0648">Re-Edit your <b>VList</b> format statement to be the following (in <Menu>Design &rarr; Format Features</Menu>)</Text>
1755<Format><highlight>&lt;td valign=top&gt;</highlight><br/>
1756&nbsp;&nbsp;<highlight>{If}{[numleafdocs],[link][icon][/link]}</highlight><br/>
1757&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Lyrics',[link]_iconlyrics_[/link]}</highlight><br/>
1758&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Discography',[link]_icondisc_[/link]}</highlight><br/>
1759&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Tablature',[link]_icontab_[/link]}</highlight><br/>
1760&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'MARC',[link]_iconmarc_[/link]}</highlight><br/>
1761&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Images',[srclink][thumbicon][/srclink]}</highlight><br/>
1762&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Supplementary',[srclink][srcicon][/srclink]}</highlight><br/>
1763&nbsp;&nbsp;<highlight>{If}{[dc.Format] eq 'Audio',[srclink]{If}{[FileFormat] eq 'MIDI',_iconmidi_,_iconmp3_}[/srclink]}</highlight><br/>
1764<highlight>&lt;/td&gt;</highlight><br/>
1765&lt;td&gt;<br/>
1766{If}{[numleafdocs],([numleafdocs])}<br/>
1767&lt;/td&gt;<br/>
1768&lt;td valign=top&gt;<br/>
1769[highlight]<br/>
1770{Or}{[dc.Title],[Title],Untitled}<br/>
1771[/highlight]<br/>
1772&lt;/td&gt;</Format>
1773</NumberedItem>
1774<NumberedItem>
1775<Text id="0649">The complete statement is in the file <Path>format_tweaks &rarr; multi_icons.txt</Path>.</Text>
1776</NumberedItem>
1777<NumberedItem>
1778<Text id="0651"><b>Preview</b> your collection as before. Now different icons are used for discography, lyrics, tablature, and MARC metadata. Even MP3 and MIDI audio file types are distinguished. If you let the mouse hover over one of these images a "tool tip" appears explaining what file type the icon represents in the current interface language (note: <i>extra.dm</i> only defines English and French).</Text>
1779</NumberedItem>
1780<Heading>
1781<Text id="0652">Changing the collection's background image</Text>
1782</Heading>
1783<NumberedItem>
1784<Text id="0653">Open your collection's <i>macros</i> folder and locate the <i>extra.dm</i> file within it. <b>Right-click </b>on it. If prompted, select <b>WordPad</b> as the application to open it with.</Text>
1785</NumberedItem>
1786<NumberedItem>
1787<Text id="0654">The file content is fairly brief, specifying only what needs to be overridden from the default behaviour for this collection. In WordPad, near the top of the file you should see:</Text>
1788<Format>
1789_collectionspecificstyle_ {<br/>
1790&lt;style&gt;<br/>
1791body.bgimage \{ background-image: url("_httpcimages_/beat_margin.gif"); \}<br/>
1792\#page \{ margin-left: 120px; \}<br/>
1793&lt;/style&gt;<br/>
1794}
1795</Format>
1796<Text id="0655">Use copy and paste on these lines to make this part of the file look like:</Text>
1797<Format>
1798# Original statements<br/>
1799#_collectionspecificstyle_ {<br/>
1800#&lt;style&gt;<br/>
1801#body.bgimage \{ background-image: url("_httpcimages_/beat_margin.gif"); \}<br/>
1802#\#page \{ margin-left: 120px; \} <br/>
1803#&lt;/style&gt;<br/>
1804#}<br/>
1805<br/>
1806_collectionspecificstyle_ {<br/>
1807&lt;style&gt;<br/>
1808body.bgimage \{ background-image: url("_httpcimages_/tile.jpg"); \}<br/>
1809&lt;/style&gt;<br/>
1810}
1811</Format>
1812<Text id="0656">A hash (#) at the start of line signals a comment, and Greenstone ignores the following text. We use this to comment out the original statements and replace them with modified lines. It is useful to retain the original version in case we need to restore the original lines at a later date. These lines relate to the background image used. The new image <i>tile.jpg</i> was also in the <i>images</i> folder that was copied across previously.</Text>
1813</NumberedItem>
1814<NumberedItem>
1815<Text id="0657">Within <b>WordPad</b>, save <i>extra.dm</i>.</Text>
1816</NumberedItem>
1817<NumberedItem>
1818<Text id="0658"><b>Preview</b> the collection's home page. The page background is now the new graphic.</Text>
1819<Text id="0659">Other features can be altered by editing the macro files&mdash;for example, the headers and footers used on each page, and the highlighting style used for search terms (specify a different colour, use bold etc.).</Text>
1820</NumberedItem>
1821<NumberedItem>
1822<Text id="0660">If you want to you can reverse the most recent change you made by commenting out the new lines added (add #) and uncommenting the original lines (delete # character). Remember to save the file. To undo all the customized changes made, delete the content of the <i>macros</i> and <i>images</i> folders.</Text>
1823</NumberedItem>
1824<Heading>
1825<Text id="0661">Building a full-size version of the collection</Text>
1826</Heading>
1827<NumberedItem>
1828<Text id="0662">To finish, let's now build a larger version of the collection. To do this:</Text>
1829<BulletList>
1830<Bullet>
1831<Text id="0663">Close the current collection (<Menu>File &rarr; Close</Menu>).</Text>
1832</Bullet>
1833<Bullet>
1834<Text id="0664">Start a new collection called <i>advbeat</i> (<Menu>File &rarr; New</Menu>).</Text>
1835</Bullet>
1836<Bullet>
1837<Text id="0665">Base this new collection on <i>small_beatles</i>.</Text>
1838</Bullet>
1839<Bullet>
1840<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>
1841</Bullet>
1842<Bullet>
1843<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>
1844</Bullet>
1845</BulletList>
1846</NumberedItem>
1847<Heading>
1848<Text id="0671">Adding an image collage browser</Text>
1849</Heading>
1850<NumberedItem>
1851<Text id="0672">Switch to the <b>Design</b> panel and select the <b>Browsing Classifiers</b> section. Pull down the <b>select classifier to add</b> menu and select <b>Collage</b>. Click &lt;<b>Add Classifier...</b>&gt;. There is no need to customize the options, so click &lt;<b>OK</b>&gt; at the bottom of the resulting popup.</Text>
1852</NumberedItem>
1853<NumberedItem>
1854<Text id="0673">Now change to the <b>Create</b> panel and <b>build</b> and <b>preview</b> the collection.</Text>
1855</NumberedItem>
1856</Content>
1857</Tutorial>
1858<Tutorial id="scanned_image_collection">
1859<Title>
1860<Text id="0674">Scanned image collection</Text>
1861</Title>
1862<SampleFiles folder="niupepa"/>
1863<Version initial="2.60" current="2.70"/>
1864<Content>
1865<Comment>
1866<Text id="0675">Here we build a small replica of Niupepa, the Maori Newspaper collection, using five newspapers taken from two newspaper series. It allows full text searching and browsing by title and date. When a newspaper is viewed, a preview image and its corresponding plain text are presented side by side, with a goto page navigation feature at the top of the page.</Text>
1867</Comment>
1868<Comment>
1869<Text id="0676">The collection involves a mixture of plug-ins, classifiers, and format statements. The bulk of the work is done by PagedImgPlug, a plug-in designed precisely for the kind of data we have in this example. For each document, an "item" file is prepared that specifies a list of image files that constitute the document, tagged with their page number and (optionally) accompanied by a text file containing the machine-readable version of the image, which is used for full text searching. Three newspapers in our collection (all from the series Te Whetu o Te Tau) have text representations, and two (from Te Waka o Te Iwi) have images only. Item files can also specify metadata. In our example the newspaper series is recorded as ex.Title and its date of publication as ex.Date. This metadata is extracted as part of the building process.</Text>
1870</Comment>
1871<NumberedItem>
1872<Text id="0677">Start a new collection called <b>Paged Images</b> and fill out the fields with appropriate information: it is a collection sourced from an excerpt of Niupepa documents; the only metadata used is document title and date, and these are extracted from the "item" files included in the source documents so no metadata set need be stipulated.</Text>
1873</NumberedItem>
1874<NumberedItem>
1875<Text id="0678">In <Menu>Design &rarr; 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>
1876</NumberedItem>
1877<NumberedItem>
1878<Text id="0679">In the <b>Gather </b>panel, open the <i>niupepa\sample_items </i>folder in <i>sample_files </i>and drag it into your collection on the right-hand side.</Text>
1879</NumberedItem>
1880<NumberedItem>
1881<Text id="0680">Some of the files you have just dragged in are text files that contain the text extracted from page images. We want these to be processed by <b>PagedImgPlug</b>, not <b>TEXTPlug</b>. Switch to the <b>Design</b> panel and delete <b>TEXTPlug</b>. While you are at it, you could tidy things up by deleting <b>HTMLPlug</b>, <b>EMAILPlug</b>, <b>PDFPlug</b>, <b>RTFPlug</b>, <b>WordPlug</b>, <b>PSPlug</b>, <b>ISISPlug</b> and <b>NULPlug</b> as well, since they will not be used.</Text>
1882</NumberedItem>
1883<NumberedItem>
1884<Text id="0681">Now go to the <b>Create</b> panel, <b>build</b> the collection and <b>preview</b> the result. Search for <i>waka</i> and view one of the titles listed (all three appear as <i>Te Whetu o Te Tau</i>). Browse by <i>titles a-z </i>and view one of the <i>Te Waka o Te Iwi</i> titles.</Text>
1885</NumberedItem>
1886<Comment>
1887<Text id="0682">This collection was built with Greenstone's default settings. You can locate items of interest, but the information is less clearly and attractively presented than in the full Niupepa collection.</Text>
1888</Comment>
1889<Heading>
1890<Text id="0683">Grouping documents by series title and displaying dates within each group</Text>
1891</Heading>
1892<Comment>
1893<Text id="0684">Under titles a-z documents from the same series are repeated without any distinguishing features such as date. It would be better to group them by series title and display dates within each group. This can be accomplished using an AZCompactList classifier rather than AZList, and tuning the VList format statement.</Text>
1894</Comment>
1895<NumberedItem>
1896<Text id="0685">In the <b>Design</b> panel, under the <b>Browsing Classifiers </b>section, delete the <b>AZList</b> classifiers for <i>ex.Source </i>and <i>ex.Title</i>.</Text>
1897</NumberedItem>
1898<NumberedItem>
1899<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>
1900</NumberedItem>
1901<NumberedItem>
1902<Text id="0687"><b>Modify</b> the format statement for <b>VList</b>. Find the part of the default statement that says</Text>
1903<Format>{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}</Format>
1904<Text id="0689">and change it to</Text>
1905<Format>{If}{[ex.Date],: [ex.Date]}</Format>
1906<Text id="0690">This has the effect of displaying the extracted date information, if present.</Text>
1907</NumberedItem>
1908<NumberedItem>
1909<Text id="0691">At the end of this format statement, where is says:</Text>
1910<Format>&lt;/td&gt;</Format>
1911<Text id="0692">append</Text>
1912<Format>{If}{[numleafdocs],&lt;td&gt;([numleafdocs] items)&lt;/td&gt;}</Format>
1913<Text id="0692a">and click <b>&lt;Replace Format&gt;</b>.</Text>
1914<Comment>
1915<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>
1916</Comment>
1917</NumberedItem>
1918<Heading>
1919<Text id="0694">Suppressing dummy text</Text>
1920</Heading>
1921<Comment>
1922<Text id="0695">When you reach a newspaper, only its associated text is displayed. When either of the Te Waka o Te Iwi newspapers is accessed, the document view presents the message "This document has no text". No scanned image information (screen-view resolution or otherwise) is shown, even though it has been computed and stored with the document. This can be fixed by a format statement that modifies the default behaviour for DocumentText.</Text>
1923</Comment>
1924<NumberedItem>
1925<Text id="0696">Staying within the <b>Format Features</b> section of the <b>Design </b>panel, under "Choose Feature" select <b>DocumentText</b>. The default format string displays the document's plain text, which, if there is none, is set to "This document has no text". Change this to:</Text>
1926<Format>
1927&lt;center&gt;<br/>
1928&nbsp;&nbsp;&lt;table width=_pagewidth_&gt;<br/>
1929&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br/>
1930&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td valign=top&gt;[srclink][screenicon][/srclink]&lt;/td&gt;<br/>
1931&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;[Text]&lt;/td&gt;<br/>
1932&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br/>
1933&nbsp;&nbsp;&lt;/table&gt;<br/>
1934&lt;/center&gt;
1935</Format>
1936<Text id="0696a">and click <b>&lt;Replace Format&gt;</b>.</Text>
1937<Text id="0697">(available as niupepa\doc_tweak.txt)</Text>
1938<Comment>
1939<Text id="0698">Including [screenicon] has the effect of embedding the screen-sized image generated by switching the screenview option on in PagedImgPlug. It is hyperlinked to the original image by the construct [srclink]...[/srclink].</Text>
1940</Comment>
1941</NumberedItem>
1942<NumberedItem>
1943<Text id="0699">Switch to the <b>Create </b>panel<b>;</b> <b>build</b> and <b>preview</b> the revised collection.</Text>
1944</NumberedItem>
1945<NumberedItem>
1946<Text id="0700">If you like, add a logo and change the background as you have done before. You will find a suitable image in the file <i>niupepa\images</i>, that is activated through <i>macros\extra.dm</i>.</Text>
1947</NumberedItem>
1948<Comment>
1949<Text id="0701">In the collection you have just built, newspapers are grouped by series title, and dates are supplied alongside each one to distinguish it from others in the same series. Users can browse chronologically by date, and when a newspaper page is viewed a preview image is shown on the left that displays the original high-resolution version when clicked, accompanied on the right by the plain-text version of that newspaper (if available).</Text>
1950</Comment>
1951</Content>
1952</Tutorial>
1953<Tutorial id="OAI_collection">
1954<Title>
1955<Text id="0702">Open Archives Initiative (OAI) collection</Text>
1956</Title>
1957<SampleFiles folder="oai"/>
1958<Version initial="2.60" current="2.70"/>
1959<Content>
1960<Comment>
1961<Text id="0703">This exercise explores service-level interoperability using the Open Archive Initiative Protocol for Metadata Harvesting (OAI-PMH). So that you can do this on a stand-alone computer, we do not actually connect to the external server that is acting as the data provider. Instead we have provided an appropriate set of files that take the form of XML records produced by the OAI-PMH protocol.</Text>
1962</Comment>
1963<Comment>
1964<Text id="0704">One of Greenstone's documented example collections is sourced over OAI. This exercise takes you through the steps necessary to reconstruct it. (Note: this example is a collection of images: you will not be able to build it unless ImageMagick is installed on your computer.) You may wish to take a look at the documented example collection OAI demo now to see what this exercise will build.</Text>
1965</Comment>
1966<NumberedItem>
1967<Text id="0705">Start a new collection called <b>OAI Service Provider</b>. Fill out the fields with appropriate information. You can leave the default metadata set as Dublin Core, although we do not make use of it.</Text>
1968</NumberedItem>
1969<NumberedItem>
1970<Text id="0706">In the <b>Gather</b> panel, navigate to the <i>sample_small </i>folder in <i>sample_files/oai</i>. Drag this folder into the collection and drop it there.</Text>
1971</NumberedItem>
1972<NumberedItem>
1973<Text id="0707">During the copy operation, a popup window appears asking whether to add <b>OAIPlug</b> to the list of plug-ins used in the collection, because the Librarian Interface has not found an existing plug-in that can handle this file type. Press the <b>&lt;Add Plugin&gt;</b> button to include it.</Text>
1974</NumberedItem>
1975<Comment>
1976<Text id="0708">When files are copied across like this, the Librarian Interface studies each one and uses its filename extension to check whether the collection contains a corresponding plug-in. No plug-in in the list is capable of processing the OAI file records that are copied across (they have the file extension .oai), so the Librarian Interface prompts you to add the appropriate plug-in.</Text>
1977</Comment>
1978<Comment>
1979<Text id="0709">Sometimes there is more than one plug-in that could process a file&mdash;for example, the .xml extension is used for many different XML formats. The popup window, therefore, offers a choice of all possible plug-ins that matched. It is normally easy to determine the correct choice. If you wish, you can ignore the prompt (click &lt;Don't Add Plugin&gt;), because plug-ins can be added later, in the Document Plugins section of the Design panel.</Text>
1980</Comment>
1981<NumberedItem>
1982<Text id="0710">You need to configure the Image plug-in. In the <b>Design</b> panel, select the <b>Document Plugins</b> section, then select the <b>plugin ImagePlug</b> line and click &lt;<b>Configure Plugin...&gt;</b>. In the resulting popup window locate the <b>screenviewsize</b> option, switch it on, and type the number 300 in the box beside it to create a screen-view image of 300 pixels. Click &lt;<b>OK&gt;</b>.</Text>
1983</NumberedItem>
1984<NumberedItem>
1985<Text id="0711">Now switch to the <b>Create</b> panel and <b>build</b> and <b>preview</b> the collection.</Text>
1986</NumberedItem>
1987<Comment>
1988<Text id="0712">Like other collections we have built by relying on Greenstone defaults, the end result is passable but can be improved. The next steps refine the collection using the metadata harvested by OAI-PMH into the .oai files.</Text>
1989</Comment>
1990<NumberedItem>
1991<Text id="0713">In the <b>Browsing Classifiers</b> section of the <b>Design </b>panel, delete the two <b>AZList</b> classifiers (<i>ex.Title</i> and <i>ex.Source</i>).</Text>
1992</NumberedItem>
1993<NumberedItem>
1994<Text id="0714">Add an <b>AZCompactList</b> classifier based on <b>ex.Subject</b> metadata.</Text>
1995</NumberedItem>
1996<NumberedItem>
1997<Text id="0715">Now add an <b>AZCompactList</b> classifier based on <b>ex.Description </b>metadata. In its configuration panel select <b>mincompact</b> = <b>1</b>, <b>maxcompact</b> = <b>10</b> and <b>buttonname</b> = <b>Captions</b>.</Text>
1998</NumberedItem>
1999<NumberedItem>
2000<Text id="0716">In the <b>Search Indexes</b> section of the <b>Design</b> panel, delete all indexes and add a new one called "captions" based on <i>ex.Description </i>metadata.</Text>
2001</NumberedItem>
2002<NumberedItem>
2003<Text id="0717"><b>Build</b> collection and <b>preview</b> it.</Text>
2004</NumberedItem>
2005<Heading>
2006<Text id="0718">Tweaking the presentation with format statements</Text>
2007</Heading>
2008<NumberedItem>
2009<Text id="0719">In the <b>Design</b> panel, select <b>Format Features</b>. First replace the <b>VList</b> format statement with this:</Text>
2010<Format>
2011&lt;td&gt;<br/>
2012&nbsp;&nbsp;{If}{[numleafdocs],[link][icon][/link],[link][thumbicon][/link]}<br/>
2013&lt;/td&gt;<br/>
2014&lt;td valign=middle&gt;<br/>
2015&nbsp;&nbsp;{If}{[numleafdocs],[Title],&lt;i&gt;[Description]&lt;/i&gt;}<br/>
2016&lt;/td&gt;
2017</Format>
2018<Text id="0720">You will find this text in the file <i>vlist_tweak.txt </i>in the <i>oai/format_tweaks</i> folder of <i>sample_files. </i>Remember to press &lt;<b>Replace Format</b>&gt; when finished</Text>
2019<Comment>
2020<Text id="0721">This format statement customizes the appearance of vertical lists such as the search results and captions lists to show a thumbnail icon followed by Description metadata. Greenstone's default is to use extracted metadata, so [Description] is the same as [ex.Description].</Text>
2021</Comment>
2022</NumberedItem>
2023<NumberedItem>
2024<Text id="0722">Next, select <b>DocumentHeading</b> from the <b>Choose Feature</b> pull-down list and change its format statement to: </Text>
2025<Format>&lt;h3&gt;[Subject]&lt;/h3&gt;</Format>
2026<Comment>
2027<Text id="0723">The document heading appears above the detach and no highlighting buttons when you get to a document in the collection. By default DocumentHeading displays the document's ex.Title metadata. In this particular set of OAI exported records, titles are filenames of JPEG images, and the filenames are particularly uninformative (for example, 01dla14). You can see them in the <b>Enrich</b> panel if you select an image in <Path>sample_small &rarr; oai &rarr; JCDLPICS &rarr; srcdocs</Path> and check its filename and <i>ex.Title</i> metadata. The above format statement displays <i>ex.Subject</i> metadata instead.</Text>
2028</Comment>
2029</NumberedItem>
2030<NumberedItem>
2031<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>
2032<Format>&lt;center&gt;&lt;table width=_pagewidth_ border=1&gt;<br/>
2033&lt;tr&gt;&lt;td colspan=2 align=center&gt;<br/>
2034&lt;a href=[OrigURL]&gt;[screenicon]&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;<br/>
2035&lt;tr&gt;&lt;td&gt;Caption:&lt;/td&gt;&lt;td&gt; &lt;i&gt;[Description]&lt;/i&gt; &lt;br&gt;<br/>
2036(&lt;a href=[OrigURL]&gt;original [ImageWidth]x[ImageHeight] [ImageType] available&lt;/a&gt;)<br/>
2037&lt;/td&gt;&lt;/tr&gt;<br/>
2038&lt;tr&gt;&lt;td&gt;Subject:&lt;/td&gt;&lt;td&gt; [Subject]&lt;/td&gt;&lt;/tr&gt;<br/>
2039&lt;tr&gt;&lt;td&gt;Publisher:&lt;/td&gt;&lt;td&gt; [Publisher]&lt;/td&gt;&lt;/tr&gt;<br/>
2040&lt;tr&gt;&lt;td&gt;Rights:&lt;td&gt; [Rights]&lt;/td&gt;&lt;/tr&gt;<br/>
2041&lt;/table&gt;&lt;/center&gt;</Format>
2042<Text id="0727a">Click <b>&lt;Replace Format&gt;</b>.</Text>
2043<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>
2044</NumberedItem>
2045<NumberedItem>
2046<Text id="0731">Format statements are processed by the runtime system, so the collection does not need to be rebuilt for these changes to take effect. Switch to the <b>Design</b> panel and press &lt;<b>Preview Collection</b>&gt; to see the changes.</Text>
2047</NumberedItem>
2048<Comment>
2049<Text id="0732">To expedite building, this collection contains fewer source documents than the pre-built version supplied with the Greenstone installation. However, after these modifications, its functionality is the same.</Text>
2050</Comment>
2051</Content>
2052</Tutorial>
2053<Tutorial id="OAI_downloading">
2054<Title>
2055<Text id="0733">Downloading over OAI</Text>
2056</Title>
2057<Prerequisite id="OAI_collection"/>
2058<Version initial="2.60" current="2.70"/>
2059<Content>
2060<Comment>
2061<Text id="0734">The previous exercise did not obtain the data from an external OAI-PMH server. This missing step is accomplished by running a command-line program. To do this, your computer must have a direct connection to the Internet&mdash;being behind a firewall may interfere with the ability to download the information.</Text>
2062</Comment>
2063<NumberedItem>
2064<Text id="0735"><b>Save</b> your collection. Note its directory name, which should be <i>oaiservi </i>(it appears in the title bar of the Librarian Interface), and <b>quit</b> the Librarian Interface.</Text>
2065</NumberedItem>
2066<NumberedItem>
2067<Text id="0736">In a text editor (e.g. WordPad), open the collection's configuration file, which is in <i>C:\Program Files\Greenstone\collect\oaiservi\etc\collect.cfg</i>. Add the following line (all on one line):</Text>
2068<Command>acquire OAI -src rocky.dlib.vt.edu/~jcdlpix/cgi-bin/OAI1.1/jcdlpix.pl -getdoc</Command>
2069<Text id="0737">Although the position of this line is not critical, we recommend that you place it near the beginning of the file, after the public and creator lines but before the index line. Save the file and quit the editor.</Text>
2070</NumberedItem>
2071<NumberedItem>
2072<Text id="0738">Delete the contents of the collection's <i>import</i> folder. This contains the canned version of the collection files, put there during the previous exercise. Now we want to witness the data arriving anew from the external OAI server.</Text>
2073</NumberedItem>
2074<NumberedItem>
2075<Text id="0739">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>
2076</NumberedItem>
2077<NumberedItem>
2078<Text id="0742">In the DOS window, move to the home directory where you installed Greenstone. This is accomplished by something like:</Text>
2079<Command>cd C:\Program Files\Greenstone</Command>
2080</NumberedItem>
2081<NumberedItem>
2082<Text id="0743">Type:</Text>
2083<Command>setup.bat</Command>
2084<Text id="0744">to set up the ability to run Greenstone command-line programs.</Text>
2085</NumberedItem>
2086<NumberedItem>
2087<Text id="0745">Change directory into the folder containing the OAI Services Provider collection you built in the last exercise.</Text>
2088<Command>cd collect\oaiservi</Command>
2089<Comment>
2090<Text id="0746">Even though the collection name used capital letters the directory generated by the Librarian Interface is all lowercase.</Text>
2091</Comment>
2092</NumberedItem>
2093<NumberedItem>
2094<Text id="0747">Run:</Text>
2095 <Command>perl -S importfrom.pl oaiservi</Command>
2096<Comment>
2097<Text id="0748">Greenstone will immediately set to work and generate a stream of diagnostic output. The importfrom.pl program connects to the OAI data provider specified in collection configuration file (it does this for each "acquire" line in the file) and exports all the records on that site.</Text>
2098</Comment>
2099</NumberedItem>
2100<NumberedItem>
2101<Text id="0749">The downloaded files are saved in the collection's import folder. Once the command is finished, everything is in place and the collection is ready to be built. Confirm you have successfully acquired the OAI records by rebuilding the collection.</Text>
2102</NumberedItem>
2103</Content>
2104</Tutorial>
2105<Tutorial id="METS_export">
2106<Title>
2107<Text id="0750">Use METS as Greenstone's Internal Representation</Text>
2108</Title>
2109<Prerequisite id="large_html_collection"/>
2110<Version initial="2.60" current="2.70"/>
2111<Content>
2112<NumberedItem>
2113<Text id="0751">In the Greenstone Librarian Interface, open the <b>Tudor</b> collection.</Text>
2114</NumberedItem>
2115<Comment>
2116<Text id="0752">To be able to substitute METSPlug for GAPlug you need to be in Expert mode.</Text>
2117</Comment>
2118<NumberedItem>
2119<Text id="0753">Click <Menu>File &rarr; Preferences &rarr; Mode</Menu> and change to <i>Expert</i> mode.</Text>
2120</NumberedItem>
2121<NumberedItem>
2122<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>
2123</NumberedItem>
2124<NumberedItem>
2125<Text id="0757">Now change to the <b>Create </b>panel, locate the options for the import process and set <i>saveas </i>to <i>METS</i>. Import options are not available unless you are in <i>Expert</i> mode.</Text>
2126</NumberedItem>
2127<NumberedItem>
2128<Text id="0758">Rebuild the collection.</Text>
2129</NumberedItem>
2130<NumberedItem>
2131<Text id="0759">In your Windows file browser, locate the <i>archives </i>folder for the Tudor collection. For each document in the collection, Greenstone has generated two files: <i>docmets.xml</i>, the core METS description, and <i>doctxt.xml</i>,<i> </i>a supporting file. (Note: unless you are connected to the Internet you will be unable to view <i>doctxt.xml</i> in your web browser, because it refers to a remote resource.) Depending on the source documents there may be additional files, such as the images used within a web page. One of MET's many features is the ability to reference information in external XML files. Greenstone uses this to tie the content of the document, which is stored in the external XML file <i>doctxt.xml</i>, to its hierarchical structure, which is described in the core METS file <i>docmets.xml</i>.</Text>
2132</NumberedItem>
2133</Content>
2134</Tutorial>
2135<Tutorial id="dspace_to_greenstone">
2136<Title>
2137<Text id="0760">Moving a collection from DSpace to Greenstone</Text>
2138</Title>
2139<SampleFiles folder="dspace"/>
2140<Version initial="2.60" current="2.70"/>
2141<Content>
2142<NumberedItem>
2143<Text id="0761">First, change to <i>Library System Specialist</i> (or <i>Expert</i>) mode (using <Menu>File &rarr; Preferences</Menu>), because you will need to change the order of plug-ins in the <b>Design</b> panel.</Text>
2144</NumberedItem>
2145<NumberedItem>
2146<Text id="0763">Start a <b>new collection</b> called <b>StoneD</b> and fill out its fields appropriately. Leave the metadata set at Dublin Core, the default.</Text>
2147</NumberedItem>
2148<NumberedItem>
2149<Text id="0764">Switch to the <b>Design </b>panel and select the <b>Document Plugins</b> section on the left-hand side. <b>Remove</b> <b>TEXTPlug</b>, <b>HTMLPlug</b> and <b>EMAILPlug</b>. Strictly speaking we do not need to remove these, however it reduces clutter.</Text>
2150</NumberedItem>
2151<NumberedItem>
2152<Text id="0765">Now add <b>DSpacePlug</b>. Leave the plugin options at their defaults and press &lt;<b>OK</b>&gt;.</Text>
2153</NumberedItem>
2154<NumberedItem>
2155<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>
2156</NumberedItem>
2157<NumberedItem>
2158<Text id="0767">Now add <b>MP3Plug</b>, with the default configuration options. Its position in the plug-in pipeline need not be changed.</Text>
2159</NumberedItem>
2160<NumberedItem>
2161<Text id="0768">In the <b>Gather</b> panel, locate the folder <b>sample_files\dspace\exported_docs</b>. It contains five example items exported from a DSpace institutional repository. Copy them into your collection by dragging them over to the right-hand side of the panel.</Text>
2162</NumberedItem>
2163<NumberedItem>
2164<Text id="0769"><b>Build</b> the collection and <b>preview</b> it to see the basic defaults exhibited by a DSpace collection.</Text>
2165</NumberedItem>
2166<Comment>
2167<Text id="0770">If you browse by titles a-z, you will find 7 documents listed, though only 5 items were exported from DSpace. Two of the original items had alternative forms in their directory folder. DSpace plug-in options control what happens in such situations: the default is to treat them as separate Greenstone documents.</Text>
2168</Comment>
2169<Comment>
2170<Text id="0771">Below we use a plug-in option (first_inorder_ext) to fuse the alternative forms together. This option has the effect of treating documents with the same filename but different extensions as a single entity within a collection. One of the files is viewed as the primary document&mdash;it is indexed, and metadata is extracted from it if possible&mdash;while the others are handled as "associated files."</Text>
2171</Comment>
2172<Comment>
2173<Text id="0772">The first_inorder_ext option takes as its argument a list of file extensions (separated by commas): the first one in the list that matches becomes the primary document.</Text>
2174</Comment>
2175<NumberedItem>
2176<Text id="0773">Select <b>DSpacePlug</b> and click &lt;<b>Configure Plugin...</b>&gt;. Switch on its configuration option <b>first_inorder_ext</b>. Set its value to <i>pdf,doc,mp3</i> in the popup window that appears and press <b>&lt;OK&gt;</b>.</Text>
2177</NumberedItem>
2178<NumberedItem>
2179<Text id="0774"><b>Build</b> and <b>preview</b> the collection.</Text>
2180</NumberedItem>
2181<Comment>
2182<Text id="0775">There are now only 5 documents, because only one version of each document has been included&mdash;the primary version.</Text>
2183</Comment>
2184<Comment>
2185<Text id="0776">The DSpace exported files contain Dublin Core metadata for title and author (amongst other things).</Text>
2186</Comment>
2187<Heading>
2188<Text id="0777">Adding indexing and browsing capabilities to match DSpace's</Text>
2189</Heading>
2190<NumberedItem>
2191<Text id="0778">In the <b>Design</b> panel, select <b>Search Indexes</b>. Delete the <i>ex.Title </i>and <i>ex.Source </i>indexes, and add one for <b>dc.Title</b> called "titles" and another for <b>dc.Contributor</b> called "authors".</Text>
2192</NumberedItem>
2193<NumberedItem>
2194<Text id="0779">Staying within the <b>Design</b> panel, select <b>Browsing Classifiers</b> and <b>delete</b> both <b>AZList</b> classifiers (<i>ex.Title </i>and <i>ex.Source</i>). Add an <b>AZList</b> classifier for <b>dc.Title</b> and an <b>AZCompactList</b> classifier for <b>dc.Contributor</b>.</Text>
2195</NumberedItem>
2196<NumberedItem>
2197<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>
2198<Format>
2199&lt;td valign=top&gt;[link][icon][/link]&lt;/td&gt;<br/>
2200&lt;td valign=top&gt;<br/>
2201&nbsp;&nbsp;[srclink][srcicon][/srclink]<br/>
2202&lt;/td&gt;<br/>
2203&lt;td valign=top&gt;<br/>
2204&nbsp;&nbsp;[highlight]{Or}{[dc.Title],[ex.Title],Untitled}[/highlight]<br/>
2205&nbsp;&nbsp;{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}<br/>
2206&nbsp;&nbsp;{If}{[equivlink],&lt;br&gt;Also available as:[equivlink]}<br/>
2207&lt;/td&gt;
2208</Format>
2209<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>
2210</NumberedItem>
2211<NumberedItem>
2212<Text id="0782">Also, let's add a format statement for the classifier based on <b>dc.Contributor</b> metadata. In the <b>Choose Feature </b>menu (under <b>Format Features </b>on the <b>Design </b>panel), select the item that says:</Text>
2213<Indent>
2214CL2: AZCompactList -metadata dc.Contributor
2215</Indent>
2216</NumberedItem>
2217<NumberedItem>
2218<Text id="0783">Leave <b>VList</b> as the <b>Affected Component</b> and edit the text in the <b>HTML Format String</b> box so that it looks like:</Text>
2219<Format>
2220&lt;td valign=top&gt;[link][icon][/link]&lt;/td&gt;<br/>
2221&lt;td valign=top&gt;<br/>
2222&nbsp;&nbsp;[srclink][srcicon][/srclink]<br/>
2223&lt;/td&gt;<br/>
2224&lt;td valign=top&gt;<br/>
2225&nbsp;&nbsp;[highlight]<br/>
2226&nbsp;&nbsp;&nbsp;&nbsp;{If}{[numleafdocs],([numleafdocs]) [ex.Title],[dc.Title]}<br/>
2227&nbsp;&nbsp;[/highlight]<br/>
2228&nbsp;&nbsp;{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}<br/>
2229&nbsp;&nbsp;{If}{[equivlink],&lt;br&gt;Also available as:[equivlink]}<br/>
2230&lt;/td&gt;
2231</Format>
2232<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>
2233<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>
2234</NumberedItem>
2235<NumberedItem>
2236<Text id="0786"><b>Build</b> collection once again and <b>preview</b> it.</Text>
2237</NumberedItem>
2238<Comment>
2239<Text id="0787">There are still only 5 documents, but against some of the entries&mdash;for example, Interview with Bob Dylan&mdash;appears the line "Also available as," followed by icons that link to the alternative representations.</Text>
2240</Comment>
2241</Content>
2242</Tutorial>
2243<Tutorial id="greenstone_to_dspace">
2244<Title>
2245<Text id="0788">Moving a collection from Greenstone to DSpace</Text>
2246</Title>
2247<Prerequisite id="dspace_to_greenstone"/>
2248<Version initial="2.60" current="2.70"/>
2249<Content>
2250<Comment>
2251<Text id="0789">In this exercise you export a Greenstone collection in a form suitable for DSpace. It is possible to do this from the Librarian Interface's File menu, which contains an item called Export... that allows you to export collections in different forms. However, to gain a deeper understanding of Greenstone, we perform the work by invoking a program from the Windows command-line prompt. This requires some technical skill; if you are not used to working in the command-line environment we recommend that you skip this exercise.</Text>
2252</Comment>
2253<Heading>
2254<Text id="0790">Using Greenstone from the command line</Text>
2255</Heading>
2256<NumberedItem>
2257<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>
2258</NumberedItem>
2259<NumberedItem>
2260<Text id="0790b">In the DOS window, move to the home directory where you installed Greenstone. This is accomplished by something like:</Text>
2261<Command>cd C:\Program Files\Greenstone</Command>
2262</NumberedItem>
2263<NumberedItem>
2264<Text id="0790c">Type:</Text>
2265<Command>setup.bat</Command>
2266<Text id="0790d">to set up the ability to run Greenstone command-line programs.</Text>
2267</NumberedItem>
2268<NumberedItem>
2269<Text id="0790e">Change directory into the folder containing the StoneD collection you built in the last exercise.</Text>
2270<Command>cd collect\stoned</Command>
2271</NumberedItem>
2272<NumberedItem>
2273<Text id="0792">Run the following command to export the collection using the DSpace import/export format:</Text>
2274<Command>perl -S export.pl -saveas DSpace -removeold stoned</Command>
2275</NumberedItem>
2276<Comment>
2277<Text id="0793">Exporting in Greenstone is an additive process. If you ran the export.pl command once again, the new files exported would be added&mdash;with different folder names&mdash;to those already in the export folder. For the kind of explorations we are conducting we might re-run the command several times. The -removeold option deletes files that have previously been exported.</Text>
2278</Comment>
2279<NumberedItem>
2280<Text id="0794">This command has created a new subfolder, <i>collect\stoned\export</i>. Use the file browser to explore it. In it are the files needed to ingest this set of documents into DSpace.</Text>
2281</NumberedItem>
2282<Comment>
2283<Text id="0795">You could equally well run the export.pl command on a different Greenstone collection and transfer the output to a DSpace installation by using DSpace's batch-import facility.</Text>
2284</Comment>
2285</Content>
2286</Tutorial>
2287</TutorialList>
Note: See TracBrowser for help on using the repository browser.