Re: [dspace-tech] input-forms.xml - can I split it ?

2018-03-23 Thread helix84
Wow, I didn't know that was possible. Thanks for the tip, Claudia, I'm sure
it will come in handy in the future.

I was going to suggest another solution but it has an extra step - to
generate the xml from multiple xml files using XSLT. The xsl file would be
just a skeleton which would include the secondary xml files. In Java you
can choose from several xslt processors and there is at least one in the
DSpace classpath already.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



On Fri, Mar 23, 2018 at 9:27 AM, Claudia Jürgen <
claudia.juer...@tu-dortmund.de> wrote:

> Hello Monika,
>
> we have split the input forms as a couple of collection/type specific
> forms made it unwielding.
> We kept the value-pairs in it and put the forms and form map in
> different files
> 
> 
> "input-form-elements/de/form-standardUniDo.xml">
> ...
>
> ]>
> 
> ↦
> 
> &standardUniDo;
> ...
> 
> ...
> 
>
> Hope this helps
>
> Claudia Jürgen
>
>
> Am 22.03.2018 um 18:41 schrieb Monika Mevenkamp:
>
>> Can I split the input-forms.xml file into multiple files using some kind
>> of include directive
>>
>> Monika
>>
>> —
>> Monika Mevenkamp
>> Digital Repository Infrastructure Developer
>> Princeton University
>> Phone: 609-258-4161
>> Skype: mo-meven
>>
>>
>>
>>
>>
> --
> Claudia Juergen
> Eldorado
>
> Technische Universität Dortmund
> Universitätsbibliothek
> Vogelpothsweg 76
> 44227 Dortmund
>
> Tel.: +49 231-755 40 43
> Fax: +49 231-755 40 32
> claudia.juer...@tu-dortmund.de
> www.ub.tu-dortmund.de
>
> Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie
> ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für
> diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender
> und vernichten Sie diese Mail. Vielen Dank.
> Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen
> ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher
> Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines
> solchen Schriftstücks per Telefax erfolgen.
>
> Important note: The information included in this e-mail is confidential.
> It is solely intended for the recipient. If you are not the intended
> recipient of this e-mail please contact the sender and delete this message.
> Thank you. Without prejudice of e-mail correspondence, our statements are
> only legally binding when they are made in the conventional written form
> (with personal signature) or when such documents are sent by fax.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] input-forms.xml - can I split it ?

2018-03-23 Thread Claudia Jürgen

Hello Monika,

we have split the input forms as a couple of collection/type specific
forms made it unwielding.
We kept the value-pairs in it and put the forms and form map in
different files


   
...

]>

↦

&standardUniDo;
...

...


Hope this helps

Claudia Jürgen


Am 22.03.2018 um 18:41 schrieb Monika Mevenkamp:

Can I split the input-forms.xml file into multiple files using some kind of 
include directive

Monika

—
Monika Mevenkamp
Digital Repository Infrastructure Developer
Princeton University
Phone: 609-258-4161
Skype: mo-meven






--
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia.juer...@tu-dortmund.de
www.ub.tu-dortmund.de

Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist 
ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese 
E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und 
vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen 
ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform 
(mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen 
Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is 
solely intended for the recipient. If you are not the intended recipient of 
this e-mail please contact the sender and delete this message. Thank you. 
Without prejudice of e-mail correspondence, our statements are only legally 
binding when they are made in the conventional written form (with personal 
signature) or when such documents are sent by fax.

--
You received this message because you are subscribed to the Google Groups "DSpace 
Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] input-forms.xml - can I split it ?

2018-03-22 Thread Tim Donohue
Hi Monika,

Just a quick response to your first note... it's not out of the question
that these configs will eventually move to the database (or somewhere
similarly more easy to manage).  It just is not likely to happen in DSpace
7, as the concentration in DSpace 7 is on the new UI and REST API.  We very
purposefully are *not* trying to change the DSpace API or backend
configurations *except* in areas where we have to do so in order to support
the new REST API or UI.  This is necessary in order to keep the scope of
DSpace 7 manageable -- we simply cannot fix/change everything at once.  :)

So, you are not wrong in your assumption that configuration will likely
change in the future -- ideally, it will eventually be mostly manageable
from an Admin UI (as is on the RoadMap [1]). But, that is not likely to
happen immediately in DSpace 7...it'd be more likely to occur in DSpace 8.

As for your other questions, I'll leave them to others. I haven't used the
JSPUI in some time, and I'll admit I'm not as much in the code these days.
So, you might want to simply see which XML parser class is in use already
where the input-forms.xml is being read by the Java API.

Good luck!

- Tim

On Thu, Mar 22, 2018 at 4:39 PM Monika Mevenkamp  wrote:

> Tim
>
> thanks for the answer even if it is not what I hoped.
>
> I am thinking of writing a command /main program that creates a collection
> with a given name, parent, authorizations and maps the newly created
> collection to a given form.
> The first part is easy enough - but mucking around in the input-forms.xml
> config file is a bit uncomfortable. For some reason I had assumed that
> these config files would be ‘moved’ to database tables.  I see I am wrong
> on that account too   :)
>
> What is your favorite XML Parser / Mangler class  to use for this kind
> input-formns.xml manipulation ?
>
> Related to this: is there a simple way that allows me to add a form/page
>  to the DSpace 5 JSPUI that accepts parameter values for a given curation
> task ?
>
> Monika
>
>
> On Mar 22, 2018, at 5:08 PM, Tim Donohue  wrote:
>
> Hi Monika,
>
> Unfortunately, at this time, there's no way to split up the
> input-forms.xml.  It's a completely custom XML config file, with a
> completely custom DTD (
> https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace/config/input-forms.dtd).
> Currently, it doesn't have an option to link or import settings from
> another file.
>
> In DSpace 7, there has been some effort to rethink these configurations
> (both item-submission.xml and input-forms.xml), but I don't believe this
> sort of linking is possible yet in DSpace 7 either (hopefully Andrea
> Bollini will correct me if I'm wrong).  In case it is of interest, the very
> early notes on this DSpace 7 effort are at
> https://wiki.duraspace.org/display/DSPACE/Configuration+changes+in+the+submission+process
>
>
> - Tim
>
> On Thu, Mar 22, 2018 at 12:41 PM Monika Mevenkamp 
> wrote:
>
>>
>> Can I split the input-forms.xml file into multiple files using some kind
>> of include directive
>>
>> Monika
>>
>> —
>> Monika Mevenkamp
>> Digital Repository Infrastructure Developer
>> Princeton University
>> Phone: 609-258-4161 <(609)%20258-4161>
>> Skype: mo-meven
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "DSpace Technical Support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to dspace-tech+unsubscr...@googlegroups.com.
>> To post to this group, send email to dspace-tech@googlegroups.com.
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Tim Donohue
> Technical Lead for DSpace & DSpaceDirect
> DuraSpace.org | DSpace.org | DSpaceDirect.org
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] input-forms.xml - can I split it ?

2018-03-22 Thread Monika Mevenkamp
Tim 

thanks for the answer even if it is not what I hoped.

I am thinking of writing a command /main program that creates a collection with 
a given name, parent, authorizations and maps the newly created collection to a 
given form. 
The first part is easy enough - but mucking around in the input-forms.xml 
config file is a bit uncomfortable. For some reason I had assumed that these 
config files would be ‘moved’ to database tables.  I see I am wrong on that 
account too   :) 

What is your favorite XML Parser / Mangler class  to use for this kind 
input-formns.xml manipulation ? 

Related to this: is there a simple way that allows me to add a form/page  to 
the DSpace 5 JSPUI that accepts parameter values for a given curation task ? 

Monika 


> On Mar 22, 2018, at 5:08 PM, Tim Donohue  wrote:
> 
> Hi Monika,
> 
> Unfortunately, at this time, there's no way to split up the input-forms.xml.  
> It's a completely custom XML config file, with a completely custom DTD 
> (https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace/config/input-forms.dtd
>  
> ).
>   Currently, it doesn't have an option to link or import settings from 
> another file.
> 
> In DSpace 7, there has been some effort to rethink these configurations (both 
> item-submission.xml and input-forms.xml), but I don't believe this sort of 
> linking is possible yet in DSpace 7 either (hopefully Andrea Bollini will 
> correct me if I'm wrong).  In case it is of interest, the very early notes on 
> this DSpace 7 effort are at 
> https://wiki.duraspace.org/display/DSPACE/Configuration+changes+in+the+submission+process
>  
> 
>  
> 
> - Tim
> 
> On Thu, Mar 22, 2018 at 12:41 PM Monika Mevenkamp  > wrote:
> 
> Can I split the input-forms.xml file into multiple files using some kind of 
> include directive
> 
> Monika
> 
> —
> Monika Mevenkamp
> Digital Repository Infrastructure Developer
> Princeton University
> Phone: 609-258-4161 
> Skype: mo-meven
> 
> 
> 
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dspace-tech+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to dspace-tech@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/dspace-tech 
> .
> For more options, visit https://groups.google.com/d/optout 
> .
> -- 
> Tim Donohue
> Technical Lead for DSpace & DSpaceDirect
> DuraSpace.org | DSpace.org | DSpaceDirect.org

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] input-forms.xml - can I split it ?

2018-03-22 Thread Tim Donohue
Hi Monika,

Unfortunately, at this time, there's no way to split up the
input-forms.xml.  It's a completely custom XML config file, with a
completely custom DTD (
https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace/config/input-forms.dtd).
Currently, it doesn't have an option to link or import settings from
another file.

In DSpace 7, there has been some effort to rethink these configurations
(both item-submission.xml and input-forms.xml), but I don't believe this
sort of linking is possible yet in DSpace 7 either (hopefully Andrea
Bollini will correct me if I'm wrong).  In case it is of interest, the very
early notes on this DSpace 7 effort are at
https://wiki.duraspace.org/display/DSPACE/Configuration+changes+in+the+submission+process


- Tim

On Thu, Mar 22, 2018 at 12:41 PM Monika Mevenkamp  wrote:

>
> Can I split the input-forms.xml file into multiple files using some kind
> of include directive
>
> Monika
>
> —
> Monika Mevenkamp
> Digital Repository Infrastructure Developer
> Princeton University
> Phone: 609-258-4161 <(609)%20258-4161>
> Skype: mo-meven
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] input-forms.xml - can I split it ?

2018-03-22 Thread Monika Mevenkamp

Can I split the input-forms.xml file into multiple files using some kind of 
include directive 

Monika

—
Monika Mevenkamp
Digital Repository Infrastructure Developer
Princeton University
Phone: 609-258-4161
Skype: mo-meven




-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.