That would need to go in DocumentEditorSupport.createNewDocumentFromTemplate:
http://dev.outerthought.org/trac/outerthought_daisy/browser/trunk/daisy/applications/daisywiki/frontend/src/main/java/org/outerj/daisy/frontend/editor/DocumentEditorSupport.java#L383The change doesn't really have to be done in Daisy: You could also
create an extension which copies the relevant bits from a template
into a new document. Integrating this with the other document editing
bits would be harder.
Regards,
Karel
On Fri, Jul 27, 2012 at 3:08 PM, Beaule, Etienne
<
Etienne.Beaule@...> wrote:
> Hello,
>
>
>
> We noticed that when we duplicate a document, the reference language of the
> original document is not copied over the duplicated document. This is
> something we would like to change. Looking at the API, it looks like adding
> this feature would just be a matter of adding a few lines of code to the
> routine that handles the edit?template=123 to to fetch the id of the
> reference language in the document we are duplicating so that we can set it
> in the duplicate. I looked everywhere for the code that is executed when we
> call /new/edit?template=123 without luck.
>
>
>
> Can someone point me in the right direction?
>
>
>
> Thanks,
>
>
>
> Étienne
>
>
> _______________________________________________
> daisy community mailing list
> Professional Daisy support:
>
http://outerthought.org/en/services/daisy/support.html> mail to:
daisy@...
> list information:
http://lists.cocoondev.org/mailman/listinfo/daisy>
_______________________________________________
daisy community mailing list
Professional Daisy support:
http://outerthought.org/en/services/daisy/support.htmlmail to:
daisy@...
list information:
http://lists.cocoondev.org/mailman/listinfo/daisy