<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Donald, </FONT></DIV>
<DIV><FONT face=Arial size=2>It is true that it depends on the processing
software, but I think it is not standard behavior and therefore I would not
recommend it. It is also implemented differently in Tapirlink. The reason is
that Tapirlink uses PHP and in PHP superglobals ($_GET or
$_REQUEST) return only he last kvp parameter if there are more with the
same name. An alternative could be to get the whole query sting with a
server variable ($_SERVER[<FONT face="Times New Roman"
size=3>QUERY_STRING])</FONT> and to parse the parameters with a regex, but
that sounds not very attractive to me, as it depends on the used webserver if
this variable is available and returned correctly.</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dhobern@gbif.org href="mailto:dhobern@gbif.org">Donald Hobern</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=wouter@eti.uva.nl
href="mailto:wouter@eti.uva.nl">Wouter Addink</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=tdwg-tapir@lists.tdwg.org
href="mailto:tdwg-tapir@lists.tdwg.org">tdwg-tapir@lists.tdwg.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, July 17, 2007 11:54
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [tdwg-tapir] error in tapir
specification</DIV>
<DIV><BR></DIV>Surely it depends on how the software processes the
parameters. The GBIF data portal has adopted precisely this pattern (no
square brackets) to allow users to specify a set of alternative values for
many of the filters on the occurrence web search. The JSP receives the
parameters fine.<BR><BR>Donald<BR><BR>Wouter Addink wrote:
<BLOCKQUOTE cite=mid:005501c7c84d$380c36b0$57a21291@WoutersVaio type="cite">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR>
<STYLE></STYLE>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2>I think there is an error in the KVP Inventory
examples in the Tapir specification doc.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Examples like
<P><A class=moz-txt-link-freetext
href="http://example.net/tapir.cgi?op=inventory&concept=http://example.net/schema1/Country&">http://example.net/tapir.cgi?op=inventory&concept=http://example.net/schema1/Country&</A>
concept=<A class=moz-txt-link-freetext
href="http://example.net/schema1/Genus">http://example.net/schema1/Genus</A>
</P>
<P>cannot be implemented I think, because concept will not be treated as an
array here and only the last concept would be returned.</P>
<P>this would work:</P>
<P><A class=moz-txt-link-freetext
href="http://example.net/tapir.cgi?op=inventory&concept[">http://example.net/tapir.cgi?op=inventory&concept[</A>]=<A
class=moz-txt-link-freetext
href="http://example.net/schema1/Country&">http://example.net/schema1/Country&</A>
concept[]=<A class=moz-txt-link-freetext
href="http://example.net/schema1/Genus">http://example.net/schema1/Genus</A>
</P>
<P>regards,</P>
<P>Wouter Addink</P>
<P> </P></FONT></DIV><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
tdwg-tapir mailing list
<A class=moz-txt-link-abbreviated href="mailto:tdwg-tapir@lists.tdwg.org">tdwg-tapir@lists.tdwg.org</A>
<A class=moz-txt-link-freetext href="http://lists.tdwg.org/mailman/listinfo/tdwg-tapir">http://lists.tdwg.org/mailman/listinfo/tdwg-tapir</A>
</PRE></BLOCKQUOTE><BR><PRE class=moz-signature cols="72">--
------------------------------------------------------------
Donald Hobern (<A class=moz-txt-link-abbreviated href="mailto:dhobern@gbif.org">dhobern@gbif.org</A>)
Deputy Director for Informatics
Global Biodiversity Information Facility Secretariat
Universitetsparken 15, DK-2100 Copenhagen, Denmark
Tel: +45-35321483 Mobile: +45-28751483 Fax: +45-35321480
------------------------------------------------------------</PRE></BLOCKQUOTE></BODY></HTML>