Re: [greenstone-devel] browsing one book

From Hiro Mizutani
DateThu, 27 May 2004 13:47:22 -0600
Subject Re: [greenstone-devel] browsing one book
In-Reply-To (200405210716-i4L7GLO7019954-sw-sw-ro)
I used "-OIDtype incremental" option with import.pl and now I can browse
multiple pages by just clicking Next. Thanks for tips, everyone.

Now, I'm having a problem with the navigation. I have two files with
different Title, but PrevPgId and NextPgId are the same. So, it looks like:

<!-- 002.htm -->
<Metadata name="Title">abc</Metadata>
<Metadata name="PrevPgId">1</Metadata>
<Metadata name="PgId">2</Metadata>
<Metadata name="NextPgId">3</Metadata>

<!-- 003.htm -->
<Metadata name="Title">def</Metadata>
<Metadata name="PrevPgId">1</Metadata>
<Metadata name="PgId">2</Metadata>
<Metadata name="NextPgId">3</Metadata>

<!-- 004.htm -->
<Metadata name="Title">ghi</Metadata>
<Metadata name="PrevPgId">2</Metadata>
<Metadata name="PgId">3</Metadata>
<Metadata name="NextPgId">4</Metadata>

When I browse the collection by clicking Next, I can browse 002.htm file
fine, but when I click "Next", it goes to 003.htm. Then, it doesn't go to
004.htm and keeps showing 003.htm when I click "Next". I think I have
incorrect metadata to specify a PageID (this time, I wrote "PgId"). What is
the correct syntax for "NextPgId" to work?

I hope this makes sense. thanks.
-hiro


On Friday 21 May 2004 01:18 am, Emanuel Dejanu / Simple Words wrote:
> I had modified document action to allow me to browse a document giving a
> jobnumber.
> Jobnumber is extracted from "Source" metadata by removing the extension
>
> ?e=...&a=d&jn=aids12343
>
> Also I have added to import scripts the posibility to use the file
> directory as OID using the
> Formul J<directory name> so you can navigate using
>
> ?e=...&a=d&d=J<director name>
>
> The only problem is that you must have one processed file by directory.
>
> All the code is under GSDL team revision and may be included in the next
> release.
>
> Best regards,
>
> Emanuel Dejanu
>
>
> -----Original Message-----
> From: greenstone-devel-bounces@list.scms.waikato.ac.nz
> [mailto:greenstone-devel-bounces@list.scms.waikato.ac.nz] On Behalf Of
> Gregory S. Williamson
> Sent: Friday, May 21, 2004 9:22 AM
> To: Hiro Mizutani; greenstone-devel@list.scms.waikato.ac.nz
> Subject: RE: [greenstone-devel] browsing one book
>
> Hiro (et al),
>
> I've been trying to implement a version of this as well. Our users are
> likely to want to be able to peruse the main entries in each of our
> sections without going back to a menu.
>
> Because we're exporting from another format with our own tool, we have a
> lot of control over creating the HTML, so I was able to create a a test set
> of pages with a NxtPg and a PrvPg metadata tag defined giving the file
> names of the relative pages for each page we export (we just wrap around at
> the end of the book to the 1st page).
>
> Alas, I can't seem to find a way to create a macro that can navigate to a
> given document when given a file name (or title). Is there any way to
> create such a thing ?
>
> [If not, I think I'll rewrite the export code from our original to simply
> insert an HTML tag with this information; less elegant than using a macro
> but at least I know it'll work. GSDL will just crunch it as another part of
> the imported pages.]
>
> Seems like this capability would of use to at least a subset of GSDL users
> (the "casual" browsers as distinct from those doing a directed search for
> some specific information). Not unlike perusing a library shelf, rather
> than a card catalogue.
>
> Greg W.
>
> -----Original Message-----
> From:Hiro Mizutani [mailto:hiro.mizutani@umontana.edu]
> Sent:Fri 5/14/2004 7:24 AM
> To:greenstone-devel@list.scms.waikato.ac.nz
> Cc:
> Subject:Re: [greenstone-devel] browsing one book
>
> Hi Katherine,
>
> Thanks for the information. I guess I wasn't clear enough to explain what
> I want to do.
>
> Yes, the demo collection is divided into chapters and sections, but it's a
> signle file for one book. What I'm trying to do is having multiple files
> for one book(maybe a file per page), but still be able to browse the entire
> collection by clicking "Next Page" navigator.
>
> thanks.
> -hiro
>
> On Thursday 13 May 2004 11:25 pm, you wrote:
> > Hi Hiro
> >
> > The creator of the Lehigh Bridges Library is gfm2@lehigh.edu I don't
> > know if that email address is still valid or not. Their collection is
> > quite specialised so you would need to ask someone there about it.
> >
> > Have you looked at the demo collection that comes with your Greenstone
> > installation?
> > The documents in this collection are divided into chapters and
> > sections, and there are arrows on each page to get to the next/previous
>
> section.
>
> > Maybe this style of collection is what you are looking for.
> >
> > Regards,
> > Katherine Don
> >
> > Hiro Mizutani wrote:
> > > Hi,
> > >
> > > I'm trying to build a collection like Lehigh Univesity Libraries
> > > (http://bridges.lib.lehigh.edu/) has done. What I mean by that is,
> > > with their collection, a book is separated by chapter and even with
> > > page, but you can browse the entire book by click "Next Page".
> > > I'm wondering if there is a sample collection that I can see its
> > > collection.cfg file and a file in import directory to see what I
> > > need to do in order to building this type of collection.
> > >
> > > Thank you.
> > > -hiro
>
> --
> Hiro Mizutani
> Staff Computing Support Specialist
> Mansfield Library
> (406)243-6063
> hiro.mizutani@umontana.edu
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>
>
>
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel

--
Hiro Mizutani
Staff Computing Support Specialist
Mansfield Library
(406)243-6063
hiro.mizutani@umontana.edu