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

Re: [Handle-info] Editing the base handle



An alternative to consider is using the template "ref" attribute, which allows defining a template by referring to a value in a different handle record:

<namespace><template ref="1:12345/example"/></namespace>

This would retrieve the template definition from the handle value at index 1 in the handle record of 12345/example.  This could be placed into the prefix handle, and then the actual template could be on a handle value which is locally managed.

Robert

> On Apr 22, 2016, at 9:57 AM, Robert R Tupelo-Schneck <schneck@cnri.reston.va.us> wrote:
> 
> That is correct.  A template configured via config.dct has to be set separately on each server in the replication group.  
> 
> Robert
> 
>> On Apr 22, 2016, at 2:00 AM, Robert Verkerk <robert.verkerk@surfsara.nl> wrote:
>> 
>> Hi,
>> 
>> If you configure this on a master, Do you also have to ask the mirror to update config.dct with the same values?
>> 
>> Greetings,
>> 
>> Robert Verkerk
>> 
>>> On 22 Apr 2016, at 04:20, Robert R Tupelo-Schneck <schneck@cnri.reston.va.us> wrote:
>>> 
>>> For example
>>> 
>>>  "namespace" = "<namespace><template delimiter='@'><foreach><if value='type' test='equals' expression='URL'><value data='${data}/${extension}' /></if><else><value/></else></foreach></template></namespace>"
>>> 
>>> This template will modify each URL value by appending "/extension" where "extension" is the part of the handle after the @.
>>> 
>>> The only trick, to having the namespace in the config.dct, is to use single-quotes instead of double-quotes for the XML attributes, and to omit any newlines.
>>> 
>>> More information about the template language is in Chapter 11 of the Handle Technical Manual.
>>> 
>>> Robert
>>> 
>>>> On Apr 21, 2016, at 2:19 PM, Brian Sheppard <brian.sheppard@wisc.edu> wrote:
>>>> 
>>>> Thanks, Robert.
>>>> 
>>>> Can you send or post an example of the "namespace" configuration value, as it appears in the server_config
>>>> stanza?
>>>> 
>>>> -B
>>>> 
>>>>> On April 21, at 11:47 AM, Robert R Tupelo-Schneck <schneck@cnri.reston.va.us> wrote:
>>>>> 
>>>>> Indeed, due to the new signing requirements introduced during the recent migration to DONA (dona.net), prefix handles can no longer be generally editable.
>>>>> 
>>>>> We can remove the HS_NAMESPACE value from the prefix handle record, and then you can use a "namespace" configuration value in the "server_config" section of config.dct, to the same effect.  You will need to restart the server when it is edited.  Contact hdladmin@cnri.reston.va.us when you are ready to have the HS_NAMESPACE removed from your prefix handle record.
>>>>> 
>>>>> Robert
>>>>> 
>>>>>> On Apr 21, 2016, at 12:38 PM, Brian Sheppard <brian.sheppard@wisc.edu> wrote:
>>>>>> 
>>>>>> We’re trying to test some new templates in our test namespace, according to the Technical Manual (8.1), but it seems we can’t edit the base handle. We have edited it in the past, though, so it appears something has changed.
>>>>>> 
>>>>>> If editing has been disabled, are templates no longer a feature?
>>>>>> 
>>>>>> 
>>>>>> —————————————————————————————
>>>>>> 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
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 

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