Data conversion when the admin change default template

6 views
Skip to first unread message

Franck Dupont

unread,
Feb 6, 2015, 4:34:47 AM2/6/15
to qubi...@googlegroups.com
Hello,

I've created a new template with new fields (thanks for your help on the forum).

I wonder how to insert my new fields in the 'note' area of ISAD(G) template when the admin change the default template from my template to ISAD(G).

Have you ever done anything similar in other templates ?

Thanks.

Franck.

Hutchinson, Tim

unread,
Feb 6, 2015, 9:49:44 AM2/6/15
to qubi...@googlegroups.com

Hi Franck,

 

We ran into a similar issue (if I understand correctly) in the context of importing notes. If you’re talking about a note field in your template, it should be possible to store that field in the same way as for the ISAD template. This issue ticket might help:

https://projects.artefactual.com/issues/6143

(and see also the linked issue which has a bit more about the type_id values in the note table)

 

Briefly, there’s a similar issue to what you might be describing between the RAD and ISAD templates, but the ISAD and DACS templates are OK.

 

Fields plural is probably more complicated.

 

Tim

 

Tim Hutchinson
Head, University Archives & Special Collections
University Library, University of Saskatchewan

Tel: (306) 966-6028  Fax: (306) 966-6040

Email: tim.hut...@usask.ca

Web: http://library.usask.ca/archives/

--
You received this message because you are subscribed to the Google Groups "Qubit Toolkit Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qubit-dev+...@googlegroups.com.
To post to this group, send email to qubi...@googlegroups.com.
Visit this group at http://groups.google.com/group/qubit-dev.
For more options, visit https://groups.google.com/d/optout.

Franck Dupont

unread,
Feb 9, 2015, 8:37:28 AM2/9/15
to qubi...@googlegroups.com
Hi Tim,

Thanks for your help.

It's not really what I want to do.

If the administrator change the default template form my new template to ISAD(G), my new fields (filled in my new template) must migrate into the "note" field of ISAD(G) (to keep the information as comment).

My biggest problem is that I don't know how to detect the template changing :

It seems that the reference of the template used at the creation of an archival descrption is not stored in the database.

So I'm not able to detect the modification of default template by the administrator.

Thanks.

Franck.

Hutchinson, Tim

unread,
Feb 9, 2015, 9:58:32 AM2/9/15
to qubi...@googlegroups.com

Hi Franck,

 

I’d be nervous about actually migrating data unless there’s a one-to-one mapping. What would happen if the template gets changed back?

 

In 2.x, it is also possible to set the default display template for any description. In that case your custom template would still be displayed (for those descriptions) even if the default template had changed.

 

I think you’re right that the original template reference doesn’t get stored, but you could check for the relevant fields being populated.

 

Tim

--

Reply all
Reply to author
Forward
0 new messages