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

Re: [Handle-info] Template resolution



Thank you very much. It works now.
Does this imply, also, that there can be only one template in the target handle?

-Brian

> On April 25, at 11:40 PM, Robert R Tupelo-Schneck <schneck@cnri.reston.va.us> wrote:
> 
> Even when using 'ref', it is necessary to include the delimiter in the initial template XML.  This is a bug.
> 
> Thus you want in your config.dct:
> 
> "namespace" = "<namespace><template delimiter='@' ref='1:1712/namespace1712'/></namespace>"
> 
> Robert
> 
>> On Apr 25, 2016, at 11:02 AM, Brian Sheppard <brian.sheppard@wisc.edu> wrote:
>> 
>> I seem to be missing some critical element for implementing templates.
>> Any insight is appreciated. Details:
>> 
>> Resolves normally:
>> http://digital.library.wisc.edu/1712.dl/testxxx
>> Does not resolve (100 response):
>> http://digital.library.wisc.edu/1712.dl/testxxx@desc
>> 
>> 
>> 0.NA/1712 the HS_NAMESPACE value type has been commented out.
>> 
>> 
>> In the server_config stanza of config.dct:
>> "namespace" = "<namespace><template ref='1:1712/namespace1712'/></namespace>”
>> (Master and mirror restarted)
>> 
>> 
>> In the 1712/namespace1712 handle at index 1 (type HS_NAMESPACE):
>> 
>> <template delimiter="@">
>> <foreach>
>>   <if value="type" test="equals" expression="URL">
>>     <if value="extension" test="equals" expression="desc" parameter="x">
>>         <value data="http://nytimes.com"/>
>>       </if>
>>     <else>
>>       <value/>
>>     </else>
>>   </if>
>> </foreach>
>> </template>
>> 
>> 
>> —————————————————————————————
>> Brian Sheppard
>> UW Digital Collections Center
>> brian.sheppard@wisc.edu
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Handle-Info mailing list
>> Handle-Info@cnri.reston.va.us
>> http://www.handle.net/mailman/listinfo/handle-info
> 

—————————————————————————————
Brian Sheppard
UW Digital Collections Center
brian.sheppard@wisc.edu





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