Re: [greenstone-users] How to build hierachical classification file

From Richard Asiimwe
DateSat, 17 Mar 2007 15:43:45 +0300
Subject Re: [greenstone-users] How to build hierachical classification file
In-Reply-To (45F73C5D-9030006-cs-waikato-ac-nz)
Hello,
I was able to create the HTML classifier link (it's called "Useful Links") and it opens up in a frame nicely. However, i also need to create a mouse-over effect where once the mouse hovers over the link in the Nav bar, a drop down menu is displayed.
Which macro files do i need to edit to make this happen?
Thanks,
Rich.
 
On 3/14/07, Katherine Don <kjdon@cs.waikato.ac.nz> wrote:
Hi Richard

To add a new item into the navigation bar, you can use HTML classifier. e.g.
classify   HTML -url <url> -buttonname <nar bar button name>

This will link to the url in a frame, so you still get the collection's header. url needs http:// or it will be treated as a relative link.

regarding subject hierarchies, you can create one using metadata by separating the levels with '|'. Classifying using Hierarchy classifier with metadata formatted like this doesn't require an hfile - it will just split all the values on | and create new levels for each new value it finds.

If you do want to use an hfile, then the first entry in each line must match with the metadata value. This doesn't need to have | - its just a key to match the document with the correct place in the hierarchy.
You can use any metadata element you like - when you specify the classifier you need to specify the metadata, e.g.
classify Hierarchy -hfile sub.txt -metadata dc.Subject
It doesn't need to be dc.Subject.

There is more info about the hfile at
http://www.greenstone.org/manuals/gsdl2/en/html/Chapter_getting_the_most_out of your_documents.htm#Section_classifiers

Regards,
Katherine


Richard Asiimwe wrote:
Thanks, it's the first meaning that i'm trying to create. I understand now.
 
Also, i need to modify the navigation bar to add a link to a page that i shall create, say mypage.htm.
I've been studying the macro file nav_css.dm but have not yet figured out how i can add the additional link to the Nav bar.
Do i add another entry to this file or is there another way??
 
Lastly, with regard to the second meaning, which metadata attribute would the values be assigned to? My collection uses dublin core. Is it 'dc.subject and keyword' ?

 
On 3/13/07, cyberarian <cyberarian@gmail.com > wrote:
There are two meanings of your question:
1-If you want to make hierarchy of your documents (HTML) format, you have to convert them into sections by applying XML tags like
<!--
<section>
</section>
-->etc
2- If you want to make the hierarchy of documents in vlists like:

Magazines>>Time Magazines>>2007>>March 2007
and after the last node, you will see the list of articles in March 2007 Issue of Time Magazines

for this purpose you can use hfile like:

"Harvard Business Review"                    1    "Harvard Business Review"
"Harvard Business Review|March 2007"                1.1    "March 2007"
"Harvard Business Review|February 2007"                1.2    "February 2007"
"Harvard Business Review|January 2007"                1.3    "January 2007"
"Harvard Business Review|December 2006"                1.4    "December 2006"
"Harvard Business Review|November 2006"                1.5    "November 2006"
"Harvard Business Review|October 2006"                1.6    "October 2006"

This hierarchy is made by giving the values of metadata separated by pipe (|) sign.

Regards,


Cyberarian
On 3/13/07, Richard Asiimwe < rasiim@gmail.com > wrote:
Hi Cyberarian,
The kind of hierachy i'd like to build is just like the one in the demo collection.
Level 1: Book title
Level 2: TOC <maps to different sections of the book>
Level 3: The actual text of the book.
 
Some of the books were originally in PDF and were converted into HTML.
 
Creating the file "by hand" means writing out the structure as it's meant to be. I was looking at the sub.txt file that's mentioned in the develper documentation.
 
Hope this is clearer.

 
On 3/13/07, cyberarian <cyberarian@gmail.com > wrote:
Dear Asiimwe

Can you explain your question? What do you mean by "by hand"?  And what sort of hierarchy you want to build in your application?

Cyberarian

On 3/13/07, Richard Asiimwe < rasiim@gmail.com > wrote:
Hello,
I'm hoping that some one can enlighten me as to whether there's a way to use greenstone to generate the hierachy classification file.
The only way i know of is building it by hand.
I'm using version 2.72
Thank you.

--
Richard Asiimwe.
Future Link Technologies
Mob: +256 78 2 486 198
        +256 75 2 486 198
Office: +256 41 531 274
url: http://www.fl-t.com
Life is not a rehearsal...

_______________________________________________
greenstone-users mailing list
greenstone-users@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users





--
Richard Asiimwe.
Future Link Technologies
Mob: +256 78 2 486 198
        +256 75 2 486 198
Office: +256 41 531 274
url: http://www.fl-t.com
Life is not a rehearsal...




--
Richard Asiimwe.
Future Link Technologies
Mob: +256 78 2 486 198
        +256 75 2 486 198
Office: +256 41 531 274
url: http://www.fl-t.com
Life is not a rehearsal...

_______________________________________________ greenstone-users mailing list greenstone-users@list.scms.waikato.ac.nz https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users



--
Richard Asiimwe.
Future Link Technologies
Mob: +256 78 2 486 198
        +256 75 2 486 198
Office: +256 41 531 274
url: http://www.fl-t.com
Life is not a rehearsal...