Download presentation
Presentation is loading. Please wait.
Published byFelix Lindsey Modified over 9 years ago
1
Greenstone 10
2
Download Content Files Goto http://faculty.fims.uwo.ca/nickerson/520 http://faculty.fims.uwo.ca/nickerson/520 Lecture Notes, Session 10 Select advbeat_small and right click Select Save Link As from the menu Navigate to drive D: or U: and SAVE Double click advbeat_small and drag or copy the advbeat_small folder to your D: or U: drive
3
Download Files Download format_tweaks to D: Download images and macros to D: Drag or copy the 4 files and 2 folders to D: Audio_tweak.txt Multi_icons.txt Show_numdocs.txt Beatlesmm.png Images Macros
4
Run Greenstone Select Start, Programs, Greenstone, Greenstone Librarian Interface Select File, New Give the collection a name such as Beatles and a description Base the collection on New Collection
5
Add the Content Files Select the Gather tab Click the + in front of Local Filespace Select the drive containing the downloaded files (D: or U:) Click + to expand advbeat_small Drag 8 items to the Collection window Click Add Plugin when asked
6
Build the Collection Select the Create tab Click Build Collection Which content files were rejected and why? Preview the Collection Select Titles View some of the titles How is the quality of the content?
7
Correcting the Metadata Select the Enrich tab Select the Discography folder Select MAGICAL MISTERY TOUR Set dc.Title for the two items to Magical Mystery Tour Bad content = bad metadata “Greenstone can’t put lipstick on a pig….” B. Obama
8
Changing Classifier Metadata Select the Design tab Select Browsing Classifiers Double-click AZList ex.Title Click Configure Classifier Type dc.Title; ex.Title in the metadata box Click OK
9
Remove the filename Index Select the Design tab Select Browsing Classifiers Select the AZList ex.Source classifier Click Remove Classifier Select the Enrich tab
10
Adding a KWIC Index Select the Design tab Select Browsing Classifiers Select Phind from the Select Classifier to Add menu Click Add Classifier Click OK
11
Test the Collection Select the Create tab and click Build and Preview Select the Phrases index Enter band in the text box and click SEARCH Select Plastic Ono Band Select Plastic Ono Band and All Things Must Pass and click an item
12
Batch Cataloguing Select the discography folder Set dc.Format value to Discography Select the html_lyrics folder Set dc.Format value to Lyrics Select the Cover_Images folder Set dc.Format value to Images Select the marc folder Set dc.Format value to Marc
13
Batch Cataloguing II Select the mp3 folder Set dc.Format value to Audio Select the tablature_txt folder Set dc.Format value to Tablature Select the wordpdf folder Set dc.Format value to Supplementary
14
Browsing by Media Type Select the Design tab Select Browsing Classifiers Select AZCompactList from the Select Classifier to Add menu Click Add Classifier Enter dc.Format as the metadata field
15
Change the Index label Place a checkmark in sort checkbox Select ex.Title from the drop-down list Place a checkmark in the buttonname checkbox Type in Browse by Format Click OK
16
Build the Collection Select the Create Tab Build the collection and Preview it Select the Browse Formats index Select the Audio icon Click the MP3 icon – what happens? Click on the text icon to the left of the MP3 icon – what happens? Dummy Text
17
Delete Existing Format Select Start, Programs, Accessories, Notepad Select the Format tab Select Format Features Ensure that VList is selected from the Affected Component menu Click the HTML Format String box Highlight the text and press CTRL X Switch to Notepad and paste the text
18
Add the New Format Select HTML Format String box and enter: {If} {[dc.Format] eq 'audio', [srclink][srcicon][/srclink], [link][icon][/link]} [highlight] {Or} {[dc.Title],[Title],Untitled} [/highlight]
19
Test the Format Changes Click PREVIEW COLLECTION Select the Browse Formats index Select the Audio icon What is the result? Select Browse Formats Select Images What is the result? Why?
20
Test the Collection Click Preview Collection Select Titles What is the result? Are the records collated?
21
AZCompactList Select the Design tab Select Browsing Classifiers Select AZList dc.Title,ex.Title Click Remove Classifier Select AZCompactList from the Select Classifier to Add menu Click Add Classifier
22
AZCompactList II Enter dc.Title,ex.Title as the metadata Place a checkmark in the buttonname checkbox Type in Browse by Title Click OK Click Move Up to move the new classifier to the top of the list
23
Test the Collection Select the Create tab Click BUILD and PREVIEW Select the Browse by Titles index Click the All my Loving book icon What is the result? Click on C-I Are the titles in order? See: http://wikis.ala.org/professionaltips/index.php/Filing_rules http://wikis.ala.org/professionaltips/index.php/Filing_rules
24
Bookshelf Numdocs Select the Format tab Select Format Features Select VList Select the HTML Format String box Add the following after the last line: {If} {[numleafdocs], ([numleafdocs]) }
25
Test the Collection Click Preview Collection Select Browse Formats Select Images Select Browse Titles Select All My Loving What is the result? 1 2 3 Columns
26
Changing the Display External CSS style sheet Style definition in the page Inline style Modify the first line to be: Refresh your page See: http://www.html-color-names.com/color-chart.phphttp://www.html-color-names.com/color-chart.php
27
27
28
Changing the Display Add after the second Add a closing after [/highlight] Refresh your page Modify the first line to be: Refresh your page
29
CSS Box Model
30
Custom Images Copy 10 images from D:\images to: c:\program files\greenstone\collect\beatles\images Edit the 2 nd to be: Refresh your page Change the line to be: Refresh your page
31
Adding a custom Banner Select the Format tab Select General Click Browse for URL to 'about page' image Select beatlesmm.png from the images folder on D: Click Open and then Preview 440 pixels W 80 pixels H
32
Using Unknown Files Select the Design tab Select Document Plugins Select UnknownPlug and Add Plugin Checkmark process_extension and set to mid Checkmark file_format and set it to MIDI Checkmark mime_type and set it to audio/midi and click OK
33
Add the Metadata Select the Enrich tab Select the file beatles_midi.zip Select dc.Format and click on Audio in the Existing values box Click Create, Build and Preview Select Browse Formats Select Audio Click on the first item What is the result?
34
Macro Files Select File, Close from the menu Copy the extra.dm file from macros folder on D: to C:\program files\Greenstone\collect\beatles Answer Yes when asked Select File, Open and choose Beatles Click Open, Create and Build Never copy files into a collection while it is open!
35
Using Different Icons Select the Format tab Select Format Features Select HTML Format String Delete the text Open format_tweaks\multi_icons.txt in Wordpad and copy the text Paste into the HTML Format String box
36
Test the Collection Click Create, Build Click Preview Collection Select Titles, C-H Select Eleanor Rigby Mouseover the 3 icons What is the result? Select the Format tab Select Collection Specific Macros
37
Macros Extra.dm mixes html, css, macros and Greenstone variables package Style Put your CSS instructions here package Global References custom icons _iconmp3_ { } beat_margin.gif is 68 pixels high by 1800 pixels wide
38
Custom Background Image Change the line with beat_margin.gif to be: body.bgimage \{ background-image: url("_httpcimages_/tile.jpg"); background-repeat:repeat;\} Refresh your web page Change the line to be: body.bgimage \{ background-image: url(http://www.lakeofsalt.com/yellow.jpg); background-repeat:repeat;\} tile.jpg is 218 pixels in height by 196 pixels wide
39
Problem with Custom Colors
40
Document Level Formatting
42
Optional – Regular Expressions Click on Titles Select the Design tab Select Browsing Classifiers Select AZCompactList dc.Title,ex.Title Click Configure Classifier
43
Regular Expressions II Checkmark removesuffix and set it to: (?i)(\\s+\\d+)|(\\s+[[:punct:]].*) Click OK
44
Test the Collection Select the Create tab Click Build Collection and then Preview Select Titles, A-C, Anthology See: Teach Yourself Regular Expressions in 10 Minutes on the web site
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.