|Thank you very much for your suggestions, Diego. I already did something
similar to what you proposed, and everything works pretty fine. You can even
check it at http://www.nubrs.rs.ba/cgi-bin/library (in Serbian).
You are probably also right concerning macros and metadata, and would be
interesting to hear something about that from Waikato people. Maybe, something
like that can be done in Greenstone 3.
Thank you very much for your help.
On Fri, 6 Jun 2008 11:22:55 -0300, Diego Spano wrote
> Vladimir, you can do the following:
> you have a magazine, suppose "Times-jun08" and this magazine has 3 articles.
> Then you have times-jun08.pdf and "article1.pdf", "article2.pdf",
> "article3.pdf". To each of these articles you have to assign a metadata
> (suppose "File") and fill it with times-jun08.pd, so the 3 articles will
> have a metadata "File" with a value of times-jun08.pdf.
> Then create a subfolder in your collection folder (named as you want,
> may be pdfs) and copy times-june08.pdf there.
> Modify documentheading in your collect.cfg and add the following:
> <a href="/gsdl/collect/your_collect_name/pdfs/[File]">Click
> here to download full magazine</a>
> In this way when you retrieve a document in Greenstone you will
> always have the link to the pdf file (the whole magazine).
> I think it is no possible to integrate macros with metadata,
> because macros are global and metadata are specific for each
> document. Perhaps someone from Waikato can tell you something else.
> PD: feel free to ask whatever you need!!!
> -----Mensaje original-----
> De: Vladimir Risojevic [mailto:firstname.lastname@example.org]
> Enviado el: jueves, 05 de junio de 2008 3:32
> Para: Diego Spano
> CC: email@example.com
> Asunto: Access to metadata from macros [was: Number of pages in PagedImg
> This is quite a long post but I hope you will have the patience to make
> through it. Now I see that I could have turned everything the other way
> around. What I really do at the moment is this. I have scanned pages
> and I built a PagedImg collection like I mentioned in my first post.
> I also did a quick and dirty OCR of the pages in order to enable
> full text searching but at the moment I did no proofreading so I
> don't want to show that text to the users. So I made the interface
> for browsing and searching at the section level and it works fine. I
> have a collection of magazines so the sections in my documents are
> individual articles. I also wanted to add the possibility for users
> to download the whole issue of the magazine or the whole article in
> PDF so I needed to add a link to the PDF version. Since the only
> alternative version that PagedImg plug accepts is text only I
> manually added a link to the PDF version to the item files. And it
> worked. However, I need to put a link to it into the document
> heading part of the web page, for example. What I wanted is to put
> this link into a navbar, at the collection or even global level.
> When I read your email it occurred to me that I could have made
> PDF's and use them as objects in my collection. I also could have
> converted them to HTML as page images so it would be more or less
> the same that I have now. I still need to research this thoroughly
> but it is maybe a bit cleaner with respect to the metadata than my
> approach Nevertheless, with format statement I still need to put the
> link into the document heading or something like that. I think that
> it would be a neat thing to have that link in the navbar. Or simply
> to satisfy my geek curiosity :) I would like to know is it possible
> to access metadata from macros.
> Thanks for your time and patience.
> Diego Spano wrote:
> > Great news...
> > You don□t need to add a metadata with the path to original version of
> > the document (the "source version" in GreenStone). It can be accessed
> > writing [srclink][srcicon][/srclink] in a format statement (VList or
> > SearchVList) so you will see a PDF icon that will lauch the original pdf
> > If I misunderstand what you need please clarify me...
> > Regards.
> > Diego
> > -----Mensaje original-----
> > De: Vladimir Risojevic [mailto:firstname.lastname@example.org] Enviado el: mi□rcoles,
> > 04 de junio de 2008 3:12
> > Para: Diego Spano
> > CC: email@example.com
> > Asunto: Re: [greenstone-users] Number of pages in PagedImg collection
> > Thanks Diego, it works.
> > There's another question that popped up in the meantime. Is it
> > possible to access metadata from macros? I added a metadata field with
> > the path to the pdf version of the document, and I would like to add a
> > link to it in the navigation bar.
> > Cheers,
> > Vladimir
> > Diego Spano wrote:
> >> Vladimir,
> >> Keep in mind that each page of a paged document is a section that
> >> belongs to a parent document, so [Title] will show the page title (in
> >> this case the title is the page number) and [parent:Title] will show
> >> the document title,
> >> ie: "Greenstone user`s guide".
> >> To show the total number of pages you have to use [parent:NumPages].
> >> Hope this helps.
> >> Diego Spano
> >> -----Mensaje original-----
> >> De: firstname.lastname@example.org
> >> [mailto:email@example.com] En nombre
> >> de Vladimir Risojevic Enviado el: martes, 03 de junio de 2008 10:32
> >> Para: firstname.lastname@example.org
> >> Asunto: [greenstone-users] Number of pages in PagedImg collection
> >> Dear all,
> >> I have a PagedImg collection and documenttype is set to paged. I
> >> don't like the default layout of previous and next arrows and 'go to
> >> box so I arranged them on my own. However, I want to write the
> >> current page and total number of pages, which are part of the default
> >> arrangement of those controls. I figured out that the current page is
> >> in ex.Title for each page but I don't know how to get the total
> >> number of
> > pages.
> >> Best regards,
> >> Vladimir
> >> --
> >> Vladimir Risojevic
> >> Teaching Assistant
> >> Faculty of Electrical Engineering
> >> University of Banjaluka
> >> Patre 5
> >> 78000 Banjaluka
> >> Bosnia and Herzegovina
> >> Phone: +387 51 221 847, +387 51 221 876
> >> Fax: +387 51 211 408
> >> Email: email@example.com
> >> WWW: http://www.etfbl.net
> >> _______________________________________________
> >> greenstone-users mailing list
> >> firstname.lastname@example.org
> >> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
> > --
> > Vladimir Risojevic
> > Teaching Assistant
> > Faculty of Electrical Engineering
> > University of Banjaluka
> > Patre 5
> > 78000 Banjaluka
> > Bosnia and Herzegovina
> > Phone: +387 51 221 847, +387 51 221 876
> > Fax: +387 51 211 408
> > Email: email@example.com
> > WWW: http://www.etfbl.net
> Vladimir Risojevic
> Teaching Assistant
> Faculty of Electrical Engineering
> University of Banjaluka
> Patre 5
> 78000 Banjaluka
> Bosnia and Herzegovina
> Phone: +387 51 221 847, +387 51 221 876
> Fax: +387 51 211 408
> Email: firstname.lastname@example.org
> WWW: http://www.etfbl.net