Re: [greenstone-users] about DocumentID

From PaingThu Chit
DateThu, 10 May 2007 10:54:55 +0800
Subject Re: [greenstone-users] about DocumentID
In-Reply-To (8ace54810705091934v14883ebbmf16714492577da2a-mail-gmail-com)
Hi John
Thanks alot its working now...
 
With best regards,
Paing Thu

 
On 5/10/07, PaingThu Chit <paingthu@gmail.com> wrote:
Hi John,
   Thanks alot John. I want to read more about those arguments, where can I learn ? with my currrent hardcoding I only got one error => . My collection is image collection and I dun have document to show.Ijust display metadata information on greenstone like. My format is a bit long, sorry for the typo. 

<table border=3>
<td>
<table width= 800 bgcolor="rgb(142,142,253)" style="font-size:12">
<td width=335 align=left valign=top><b>[link][POI.Title][/link]</b> ([ POI.Category]) </td>
</tr>
</table>

<table width=800>
<td valign=center align=center width=150 border: 4px ridge bgcolor="rgb(198,202,179)">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>
<td align=left valign=top>
<table border=0 width=435 cellpadding=2 cellspacing=0>
<tr>
<td width=20 align=left valign=top><b>Location:</b></td>
<td width=335 align=left valign=top>[POI.Zone^Address]<br>[ POI.Zone^PostalCode]</td>
</tr>
{If}{[POI.OpeningHours],
<tr>
<td width=20 align=left valign=top><b>OpeningHours:</b></td>
<td width=335 align=left valign=top>[ POI.OpeningHours]</td>
</tr>
}
{If}{[POI.Tel],
<tr>
<td width=20 align=left valign=top><b>Tel:</b></td>
<td width=335 align=left valign=top>[sibling(All:';'): POI.Tel]</td>
</tr>
}
{If}{[POI.WebAddress],
<tr>
<td width=20 align=left valign=top><b>Web Address:</b></td>
<td width=335 align=left valign=top><a href=[ POI.WebAddress]>[POI.WebAddress]</a></td>
</tr>
}
{If}{[POI.Email],
<tr>
<td width=20 align=left valign=top><b>Email:</b></td>
<td width=335 align=left valign=top><a href=mailto:[ POI.Email]>[POI.Email]</a></td>
</tr>
}
{If}{[POI.Cuisine],
<tr>
<td width=20 align=left valign=top><b>Cuisine:</b></td>
<td width=335 align=left valign=top>[sibling(All:';'): POI.Cuisine]</td>
</tr>
}

</table>
</td>
<tr><td width= 800 colspan=3><hr align=center size=1 noshade></td>
</tr>
</table>

<table width=800>
<br>
{IF}{[POI.Description],
<tr width = 500>
[POI.Description]
</tr>
</tr>
<tr><td colspan=3><hr align=center size=1 noshade></td>
</tr>
}
{IF}{[POI.Rating],
<Table>
<tr width = 400>
<td width=120 align=lright valign=top><b>Rating: </b></td>
<td width=600 align=left valign=top>[POI.Rating ]</td>
</Table>
}
{IF}{[POI.PriceRange],
<table>
<tr width = 500>
<td width=120 align=left valign=top><b>Price Range:</b></td>
<td width=600 align=left valign=top>[sibling(All:';'): POI.PriceRange]</td>
</tr>
</table>
}
{IF}{[POI.Reservation],
<table>
<tr width = 500>
<td width=120 align=left valign=top><b>Reservation:</b></td>
<td width=600 align=left valign=top>[POI.Reservation]</td>
</tr>
</table>
}
{IF}{[POI.CreditCards],
<table>
<tr width = 500>
<td width=120 align=left valign=top><b>Payment Type:</b></td>
<td width=600 align=left valign=top>[POI.CreditCards]</td>
</tr>
</table>

<tr><td colspan=3><hr align=center size=1 noshade></td>
</tr>
}

{IF}
{[POI.FamousShops],
<tr>
<table>
<tr width=600>
<td width=600 align=left valign=top bgcolor="rgb(219,219,219)">
<b>List of some Famous Shops </b>
<td>
</tr>
<tr>
<td width=800 align=left valign=top>
<li type=CIRCLE> [sibling(All:'<br><li type=CIRCLE>'):POI.FamousShops^Names]
</td>
</tr>
</tr>
<tr><td colspan=3><hr align=center size=1 noshade></td>
</tr>
</table>
}
<table>
<tr>
<td width=800 align=left valign=top bgcolor="rgb(219,219,219)">
<b>GettingThere</b> ( <i>All routes started from Mrt</i>)
<td>
</tr>
{If}{[POI.GettingThere^ByBus],
<table>
<tr width=600>
<td width=120 align=left valign=top><b>By Bus:</b></td>
<td width=500 align=left valign=top>[POI.GettingThere^ByBus]</td>
</tr>
</table>
}
{If}{[POI.GettingThere^ByMrt],
<table>
<tr>
<td width=120 align=left valign=top><b>By Train:</b></td>
<td width=500 align=left valign=top>[POI.GettingThere^ByMrt]</td>
</tr>
</table>
}

{If}{[POI.GettingThere^ByCar],
<table>
<tr>
<td width=120 align=left valign=top><b>By Car:</b></td>
<td width=500 align=left valign=top>[POI.GettingThere^ByCar]</td>
</tr>
</table>
}
{If}{[POI.GettingThere^ByWalk],
<table>
<tr>
<td width=120 align=left valign=top><b>By Walk:</b></td>
<td width=500 align=left valign=top>[ POI.GettingThere^ByWalk] </td>
</tr>

<tr>

<td> <a href="gsdl?e=q-010-00-poi--00-1--0--0prompt-10-PO--4-------0-1l--11-en-50---20-about---00-3-1-00-0011-1-0utfZz-8-00&amp;a=d&amp;c=poi&amp;srp=0&amp;srn=0&amp;cl=search&amp;d=[Identifier]" >More</a>
</td>

</tr>
</table>
}
<table>
<tr><td colspan=3><hr align=center size=1 noshade></td>
</tr>
</table>
</table>
</td>
</table>

 

 
 
On 5/10/07, John Thompson <john@dlconsulting.co.nz > wrote:
Hi Paing Thu,

You're on the right track. The metadata you want is called [DocOID].

Also, rather than hardcoding some of the other arguments, like e and c,
you should make use of the "_cgiarg*_" macros to populate these
dynamically, i.e.

<a
href="/gsdlmod?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-s.yeates@cs.waikato.ac.nz--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&amp;c=gsarch&amp;cl=CL1.1.12&amp;a=d&amp;d=[DocOID]">Title</a>

Cheers,
Joh

DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.com
www.dlconsulting.com



PaingThu Chit wrote:
> Hello all,
>  I have some questions to ask.
> 1. which metadata field store documentID
> 2. how to get that documentID
> 3. I want to do something like
> /<a
> href="gsdl?e=q-010-00-poi--00-1--0--0prompt-10-PO--4-------0-1l--11-en-50---20-about---00-3-1-00-0011-1-0utfZz-8-00&amp;a=d&amp;c=poi&amp;srp=0&amp;srn=0&amp;cl=search&amp;d=[DocID]"
> > /
> instead of
> */[link]Title[/link]/*
> but its not working ..I think I need to use the correct documentID but
> I dun know how to do that. it is possible?
>
> With regards,
>
> Paing Thu
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>

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