Page 34 - Greenstone tutorial exercises
P. 34
Changing the collection’s background image
28. Open your collection’s macros folder and locate the extra.dm file within it. Right-click on
it. If prompted, select WordPad as the application to open it with.
29. 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:
_httpiconchalk_ {_httpcimages_/beat_margin.gif}
_widthchalk_ {1800}
_heightchalk_ {68}.
Use copy and paste on these three lines to make this part of the file look like:
# Original statements
#_httpiconchalk_ {_httpcimages_/beat_margin.gif}
#_widthchalk_ {1800}
#_heightchalk_ {68}
_httpiconchalk_ {_httpcimages_/tile.jpg}
_widthchalk_ {22}
_heightchalk_ {22}
A hash (#) at the start of line signals a comment, and Greenstone ignores the following text.
We use this to comment out the original three 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 three lines relate to the background image used. The new image tile.jpg
was also in the images folder that was copied across previously.
30. Within WordPad, save extra.dm.
31. Preview the collection’s home page. The page background is now the new graphic.
Other features can be altered by editing the macro files—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.).
32. If you want to you can reverse the most recent change you made by commenting out the
three new lines added (add #) and uncommenting the original three (delete # character).
Remember to save the file. To undo all the customized changes made, delete the content of
the macros and images folders.
Building a full-size version of the collection
33. To finish, let’s now build a larger version of the collection. To do this:
Close the current collection.
Start a new collection called advbeat_large.
Base this new collection on small_beatles.
Copy the content of sample_filesbeatlesadvbeat_largeimport into this newly
formed collection. Since there are considerably more files in this set of documents the
copy will take longer.
Build the collection and preview the result. (If you want the collection to have an icon,
you will have to add it from the Design panel.)
Adding an image collage browser
34. Switch to the Design panel and select the Browsing Classifiers section. Pull down the
select classifier to add menu and select Collage. Click <Add Classifier>. There is no need
to customize the options, so click <OK> at the bottom of the resulting popup.
35. Now change to the Create panel and build and preview the collection.
34