Greenstone 10 Download Content Files Goto http faculty

  • Slides: 44
Download presentation
Greenstone 10

Greenstone 10

Download Content Files Goto http: //faculty. fims. uwo. ca/nickerson/520 n Lecture Notes, Session 10

Download Content Files Goto http: //faculty. fims. uwo. ca/nickerson/520 n Lecture Notes, Session 10 n Select advbeat_small and right click n Select Save Link As from the menu n Navigate to drive D: or U: and SAVE n Double click advbeat_small and drag or copy the advbeat_small folder to your D: or U: drive n

Download Files Download format_tweaks to D: n Download images and macros to D: n

Download Files Download format_tweaks to D: n Download images and macros to D: n Drag or copy the 4 files and 2 folders to D: n • Audio_tweak. txt • Multi_icons. txt • Show_numdocs. txt • Beatlesmm. png • Images • Macros

Run Greenstone Select Start, Programs, Greenstone Librarian Interface n Select File, New n Give

Run Greenstone Select Start, Programs, Greenstone Librarian Interface n Select File, New n Give the collection a name such as Beatles and a description n Base the collection on New Collection n

Add the Content Files Select the Gather tab n Click the + in front

Add the Content Files Select the Gather tab n Click the + in front of Local Filespace n Select the drive containing the downloaded files (D: or U: ) n Click + to expand advbeat_small n Drag 8 items to the Collection window n Click Add Plugin when asked n

Build the Collection Select the Create tab n Click Build Collection n n Which

Build the Collection Select the Create tab n Click Build Collection n n Which content files were rejected and why? Preview the Collection n Select Titles n View some of the titles n How is the quality of the content? n

Correcting the Metadata Select the Enrich tab n Select the Discography folder n Select

Correcting the Metadata Select the Enrich tab n Select the Discography folder n Select MAGICAL MISTERY TOUR n Set dc. Title for the two items to Magical Mystery Tour n Bad content = bad metadata “Greenstone can’t put lipstick on a pig…. ” B. Obama

Changing Classifier Metadata Select the Design tab n Select Browsing Classifiers n Double-click AZList

Changing Classifier Metadata Select the Design tab n Select Browsing Classifiers n Double-click AZList ex. Title n Click Configure Classifier n Type dc. Title; ex. Title in the metadata box n Click OK n

Remove the filename Index Select the Design tab n Select Browsing Classifiers n Select

Remove the filename Index Select the Design tab n Select Browsing Classifiers n Select the AZList ex. Source classifier n Click Remove Classifier n Select the Enrich tab n

Adding a KWIC Index Select the Design tab n Select Browsing Classifiers n Select

Adding a KWIC Index Select the Design tab n Select Browsing Classifiers n Select Phind from the Select Classifier to Add menu n Click Add Classifier n Click OK n

Test the Collection Select the Create tab and click Build and Preview n Select

Test the Collection Select the Create tab and click Build and Preview n Select the Phrases index n Enter band in the text box and click SEARCH n Select Plastic Ono Band and All Things Must Pass and click an item n

Batch Cataloguing Select the discography folder n Set dc. Format value to Discography n

Batch Cataloguing Select the discography folder n Set dc. Format value to Discography n Select the html_lyrics folder n Set dc. Format value to Lyrics n Select the Cover_Images folder n Set dc. Format value to Images n Select the marc folder n Set dc. Format value to Marc n

Batch Cataloguing II Select the mp 3 folder n Set dc. Format value to

Batch Cataloguing II Select the mp 3 folder n Set dc. Format value to Audio n Select the tablature_txt folder n Set dc. Format value to Tablature n Select the wordpdf folder n Set dc. Format value to Supplementary n

Browsing by Media Type Select the Design tab n Select Browsing Classifiers n Select

Browsing by Media Type Select the Design tab n Select Browsing Classifiers n Select AZCompact. List from the Select Classifier to Add menu n Click Add Classifier n Enter dc. Format as the metadata field n

Change the Index label Place a checkmark in sort checkbox n Select ex. Title

Change the Index label Place a checkmark in sort checkbox n Select ex. Title from the drop-down list n Place a checkmark in the buttonname checkbox n Type in Browse by Format n Click OK n

Build the Collection Select the Create Tab n Build the collection and Preview it

Build the Collection Select the Create Tab n Build the collection and Preview it n Select the Browse Formats index n Select the Audio icon n Click the MP 3 icon – what happens? n Click on the text icon to the left of the MP 3 icon – what happens? n Dummy Text

Delete Existing Format Select Start, Programs, Accessories, Notepad n Select the Format tab n

Delete Existing Format Select Start, Programs, Accessories, Notepad n Select the Format tab n Select Format Features n Ensure that VList is selected from the Affected Component menu n Click the HTML Format String box n Highlight the text and press CTRL X n Switch to Notepad and paste the text n

Add the New Format Select HTML Format String box and enter: <td valign="top"> {If}

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>

Test the Format Changes Click PREVIEW COLLECTION n Select the Browse Formats index n

Test the Format Changes Click PREVIEW COLLECTION n Select the Browse Formats index n Select the Audio icon n n What is the result? Select Browse Formats n Select Images n What is the result? n Why? n

Test the Collection Click Preview Collection n Select Titles n What is the result?

Test the Collection Click Preview Collection n Select Titles n What is the result? n Are the records collated? n

AZCompact. List Select the Design tab n Select Browsing Classifiers n Select AZList dc.

AZCompact. List Select the Design tab n Select Browsing Classifiers n Select AZList dc. Title, ex. Title n Click Remove Classifier n Select AZCompact. List from the Select Classifier to Add menu n Click Add Classifier n

AZCompact. List II Enter dc. Title, ex. Title as the metadata n Place a

AZCompact. List II Enter dc. Title, ex. Title as the metadata n Place a checkmark in the buttonname checkbox n Type in Browse by Title n Click OK n Click Move Up to move the new classifier to the top of the list n

Test the Collection Select the Create tab n Click BUILD and PREVIEW n Select

Test the Collection Select the Create tab n Click BUILD and PREVIEW n Select the Browse by Titles index n Click the All my Loving book icon n What is the result? Click on C-I n Are the titles in order? See: http: //wikis. ala. org/professionaltips/index. php/Filing_rules

Bookshelf Numdocs Select the Format tab n Select Format Features n Select VList n

Bookshelf Numdocs Select the Format tab n Select Format Features n Select VList n Select the HTML Format String box n Add the following after the last line: n <td> {If} {[numleafdocs], <i>([numleafdocs])</i>} </td>

Test the Collection Click Preview Collection n Select Browse Formats n Select Images n

Test the Collection Click Preview Collection n Select Browse Formats n Select Images n Select Browse Titles Columns n Select All My Loving 1 2 3 n n What is the result?

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

Changing the Display External CSS style sheet n Style definition in the page <head> n Inline style n <htmltag style="cssproperty 1: value; cssproperty 2: value; "> </htmltag> n Modify the first line to be: <td valign = "top" style = "border: 2 px solid lime"> n Refresh your page See: http: //www. html-color-names. com/color-chart. php

27

27

Changing the Display n Add after the second <td valign=“top”> <span style="background: #708090; color:

Changing the Display n Add after the second <td valign=“top”> <span style="background: #708090; color: lime; font-family: verdana; "> Add a closing </span> after [/highlight] n Refresh your page n Modify the first line to be: n <td valign = "top“ style="border: 2 px solid lime; padding: 8 px; "> n Refresh your page

CSS Box Model

CSS Box Model

Custom Images n Copy 10 images from D: images to: c: program filesgreenstonecollectbeatlesimages n

Custom Images n Copy 10 images from D: images to: c: program filesgreenstonecollectbeatlesimages n Edit the 2 nd <td valign=“top”> to be: <td valign = "top“ background="collect/beatles/images/tile. jpg"> Refresh your page n Change the line to be: n <td valign = “top” style="background: url(http: //www. lakeofsalt. com/yellow. jpg); "> n Refresh your page

Adding a custom Banner Select the Format tab n Select General n Click Browse

Adding a custom Banner Select the Format tab n Select General n Click Browse for URL to 'about page' image n Select beatlesmm. png from the images folder on D: n Click Open and then Preview n 440 pixels W 80 pixels H

Using Unknown Files Select the Design tab n Select Document Plugins n Select Unknown.

Using Unknown Files Select the Design tab n Select Document Plugins n Select Unknown. Plug and Add Plugin n Checkmark process_extension and set to mid n Checkmark file_format and set it to MIDI n Checkmark mime_type and set it to audio/midi and click OK n

Add the Metadata Select the Enrich tab n Select the file beatles_midi. zip n

Add the Metadata Select the Enrich tab n Select the file beatles_midi. zip n Select dc. Format and click on Audio in the Existing values box n Click Create, Build and Preview n Select Browse Formats n Select Audio n Click on the first item n n What is the result?

Macro Files Select File, Close from the menu n Copy the extra. dm file

Macro Files Select File, Close from the menu n Copy the extra. dm file from macros folder on D: to n C: program filesGreenstonecollectbeatles Answer Yes when asked n Select File, Open and choose Beatles n Click Open, Create and Build n Never copy files into a collection while it is open!

Using Different Icons Select the Format tab n Select Format Features n Select HTML

Using Different Icons Select the Format tab n Select Format Features n Select HTML Format String n Delete the text n Open format_tweaksmulti_icons. txt in Wordpad and copy the text n Paste into the HTML Format String box n

Test the Collection Click Create, Build n Click Preview Collection n Select Titles, C-H

Test the Collection Click Create, Build n Click Preview Collection n Select Titles, C-H n Select Eleanor Rigby n Mouseover the 3 icons n n What is the result? Select the Format tab n Select Collection Specific Macros n

Macros Extra. dm mixes html, css, macros and Greenstone variables n package Style n

Macros Extra. dm mixes html, css, macros and Greenstone variables n package Style n n n Put your CSS <style> instructions here package Global n References custom icons _iconmp 3_ {<img alt="_textmp 3_" title="_textmp 3_" src="_httpcollection_/images/mp 3. gif">} beat_margin. gif is 68 pixels high by 1800 pixels wide

Custom Background Image n Change the line with beat_margin. gif to be: body. bgimage

Custom Background Image n Change the line with beat_margin. gif to be: body. bgimage { background-image: url("_httpcimages_/tile. jpg"); background-repeat: repeat; } Refresh your web page n Change the line to be: n 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

Problem with Custom Colors

Problem with Custom Colors

Document Level Formatting

Document Level Formatting

Optional – Regular Expressions Click on Titles n Select the Design tab n Select

Optional – Regular Expressions Click on Titles n Select the Design tab n Select Browsing Classifiers n Select AZCompact. List dc. Title, ex. Title n Click Configure Classifier n

Regular Expressions II n Checkmark removesuffix and set it to: (? i)(\s+\d+)|(\s+[[: punct: ]].

Regular Expressions II n Checkmark removesuffix and set it to: (? i)(\s+\d+)|(\s+[[: punct: ]]. *) n Click OK

Test the Collection Select the Create tab n Click Build Collection and then Preview

Test the Collection Select the Create tab n Click Build Collection and then Preview n Select Titles, A-C, Anthology n See: Teach Yourself Regular Expressions in 10 Minutes on the web site