[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Handle-info] Handle Template resolvers



That worked as expected. Thank you so much!

Karunakar

-----Original Message-----
From: Robert Tupelo-Schneck [mailto:schneck@cnri.reston.va.us] 
Sent: 10 June 2013 20:00
To: Karunakar Neriyanuru
Cc: handle-info@cnri.reston.va.us
Subject: Re: [Handle-info] Handle Template resolvers

No, you can't use "12345/" this way, as currently implemented.

Yes, you will need to restart your handle server.

Robert

On 2013-06-10, at 10:11 , "Karunakar Neriyanuru"
<karunakar.neriyanuru@csgsol.com> wrote:

> I didn't have modify rights on 0.NA/12345 and that is why I tried the 
> prefix "12345/". Can I not use "12345/"the way I tried to define a
template for?
> 
> I will test by changing the config.dct file. I need to restart the 
> handle server, right?
> 
> Thanks,
> Karunakar
> 
> -----Original Message-----
> From: Robert Tupelo-Schneck [mailto:schneck@cnri.reston.va.us]
> Sent: 10 June 2013 19:16
> To: Karunakar Neriyanuru
> Cc: handle-info@cnri.reston.va.us
> Subject: Re: [Handle-info] Handle Template resolvers
> 
> The prefix handle is 0.NA/12345.  "12345/" is just another handle with 
> prefix 12345.
> 
> Generally, only the Global Handle Registrar has modify permissions on 
> prefix handles, but she might be able to set something up for you.  
> For testing, though, you are probably best served by working with the
config.dct instead.
> 
> Robert
> 
> On 2013-06-10, at 09:36 , "Karunakar Neriyanuru"
> <karunakar.neriyanuru@csgsol.com> wrote:
> 
>> I am defining the namespace on the prefix handle itself as follows
>> 
>> MODIFY 12345/
>> 3 URL 86400 1110 UTF8 https://svr/
>> 10 HS_NAMESPACE 86400 1110 UTF8 <namespace> <template delimiter="/"> 
>> <def parameter="URL"><value 
>> data="https://svr/lookup/${extension}"/></def>
>> </template> </namespace>
>> 
>> I tried the following too
>> 
>> MODIFY 12345/
>> 3 URL 86400 1110 UTF8 https://svr/
>> 10 HS_NAMESPACE 86400 1110 UTF8 <namespace> <template delimiter="/"> 
>> <foreach> <if value="type" test="equals" expression="URL"> <value 
>> data="${data}/lookup/${extension}"/> </if> </foreach> </template> 
>> </namespace>
>> 
>> This one didn't work as setting the delimiter to "/"made base handle 
>> to have no values (such as URL).
>> 
>> Do you suggest I remove this prefix handle and configure the template 
>> directly in server_config section?
>> 
>> Thanks,
>> Karunakar
>> 
>> -----Original Message-----
>> From: Robert Tupelo-Schneck [mailto:schneck@cnri.reston.va.us]
>> Sent: 10 June 2013 18:59
>> To: Karunakar Neriyanuru
>> Cc: handle-info@cnri.reston.va.us
>> Subject: Re: [Handle-info] Handle Template resolvers
>> 
>> The template you give defines a parameter URL but never uses it.
>> 
>> If I add the following line verbatim to a handle server's "server_config"
>> section:
>> 
>>   "namespace" = "<namespace><template delimiter='/'><value index='100'
>> type='URL'
> data='https://svr/lookup/${extension}'/></template></namespace>"
>> 
>> then I can resolve any handle under the prefix homed at that server.
>> 
>> The same should work for you, unless perhaps you already have an 
>> HS_NAMESPACE in the prefix handle, which would override.
>> 
>> Where are you difini
>> 
>> Robert
>> 
>> On 2013-06-10, at 08:01 , "Karunakar Neriyanuru"
>> <karunakar.neriyanuru@csgsol.com> wrote:
>> 
>>> Thank you Robert.
>>> 
>>> I tried this earlier without much success
>>> 
>>> <namespace> <template delimiter="/">  <def parameter="URL"><value 
>>> data="https://svr/lookup/${extension}"/></def> </template> 
>>> </namespace>
>>> 
>>> I tried your suggestion below. But when queried for 12345/abc I get
>>> 
>>> The handle you requested --
>>> 
>>> 12345/abc
>>> 
>>> -- cannot be found.
>>> 
>>> I read the documentation but having "/"as a delimiter seems to be 
>>> special case. Any further help is much appreciated.
>>> 
>>> Thanks,
>>> Karunakar
>>> 
>>> -----Original Message-----
>>> From: Robert Tupelo-Schneck [mailto:schneck@cnri.reston.va.us]
>>> Sent: 07 June 2013 22:54
>>> To: Karunakar Neriyanuru
>>> Cc: handle-info@cnri.reston.va.us
>>> Subject: Re: [Handle-info] Handle Template resolvers
>>> 
>>> You can find information about this in Chapter 11 of the Handle 
>>> Technical Manual.
>>> 
>>> I haven't actually tried this, but a template like the following 
>>> should
>>> work:
>>> 
>>> <namespace>
>>> <template delimiter="/">
>>>  <value index="1" type="URL" data="http://svr/lookup/${extension}"/>
>>> </template>
>>> </namespace>
>>> 
>>> Robert
>>> 
>>> On 2013-06-07, at 06:46 , "Karunakar Neriyanuru"
>>> <karunakar.neriyanuru@csgsol.com> wrote:
>>> 
>>>> I am trying to create a template resolver for the base handle, say 
>>>> 12345/,
>>> so that the template converts handles such as 12345/abc & 12345/efg 
>>> to URLs like http://svr/lookup/abc &http://svr/lookup/efg respectively.
>>>> 
>>>> How can I do this?
>>>> 
>>>> Thanks,
>>>> Karunakar
>>> 
>>> 
>> 
>> 
> 
> 



_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info