greenstone 10. download content files goto lecture notes, session 10

44
Greenstone 10

Upload: felix-lindsey

Post on 16-Jan-2016

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Greenstone 10

Page 2: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Download Content Files

Goto 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

Page 3: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 4: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 5: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 6: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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?

Page 7: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 8: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 9: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Remove the filename Index

Select the Design tab Select Browsing Classifiers Select the AZList ex.Source

classifier Click Remove Classifier Select the Enrich tab

Page 10: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 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

Page 11: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 12: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 13: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 14: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 15: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 16: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 17: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 18: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Add the New Format

Select HTML Format String box and enter:

<td valign="top">{If} {[dc.Format] eq 'audio', [srclink][srcicon][/srclink], [link][icon][/link]} </td><td valign="top">[highlight]

{Or} {[dc.Title],[Title],Untitled} [/highlight] </td>

Page 19: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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?

Page 20: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Test the Collection

Click Preview Collection Select Titles

What is the result? Are the records collated?

Page 21: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 22: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 23: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 24: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Bookshelf Numdocs Select the Format tab Select Format Features Select VList Select the HTML Format String box Add the following after the last line:

<td> {If} {[numleafdocs],<i>([numleafdocs])</i>} </td>

Page 25: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Test the Collection

Click Preview Collection Select Browse Formats Select Images Select Browse Titles Select All My Loving

What is the result?1 2 3Columns

Page 26: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Changing the Display External CSS style sheet Style definition in the page <head> Inline style

<htmltag style="cssproperty1: value; cssproperty2: value;">

</htmltag> Modify the first line to be:

<td valign = "top" style = "border:2px solid lime">

Refresh your page

See: http://www.html-color-names.com/color-chart.php

Page 28: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Changing the Display Add after the second <td valign=“top”>

<span style="background: #708090; color: lime; font-family:verdana;">

Add a closing </span> after [/highlight] Refresh your page Modify the first line to be:

<td valign = "top“style="border:2px solid lime;padding:8px;">

Refresh your page

Page 29: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

CSS Box Model

Page 30: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Custom Images Copy 10 images from D:\images to:

c:\program files\greenstone\collect\beatles\images

Edit the 2nd <td valign=“top”> to be:

Refresh your page Change the line to be:

Refresh your page

<td valign = "top“background="collect/beatles/images/tile.jpg">

<td valign = “top” style="background: url(http://www.lakeofsalt.com/yellow.jpg);">

Page 31: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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 W80 pixels H

Page 32: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 33: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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?

Page 34: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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!

Page 35: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 36: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 37: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Macros

Extra.dm mixes html, css, macros and Greenstone variables

package Style Put your CSS <style> instructions here

package Global References custom icons

_iconmp3_ {<img alt="_textmp3_" title="_textmp3_" src="_httpcollection_/images/mp3.gif">}

beat_margin.gif is 68 pixels high by 1800 pixels wide

Page 38: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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

Page 39: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Problem with Custom Colors

Page 40: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Document Level Formatting

Page 41: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10
Page 42: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Optional – Regular Expressions Click on Titles Select the Design tab Select Browsing Classifiers Select AZCompactList

dc.Title,ex.Title Click Configure Classifier

Page 43: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

Regular Expressions II

Checkmark removesuffix and set it to:

  (?i)(\\s+\\d+)|(\\s+[[:punct:]].*)

Click OK

Page 44: Greenstone 10. Download Content Files Goto   Lecture Notes, Session 10

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