Re: [dspace-tech] DSpace 5 with XMLUI enable curation task in submission form

2019-12-05 Thread Paul Münch
>I disagree.  There is a fair amount of code in the curation system 
>specifically to implement attachment of curation tasks to workflows.

>https://wiki.lyrasis.org/display/DSDOC5x/Curation+System#CurationSystem-Inworkflow

Thank you for the correction! I totally forgot this section in the
documentation, because we use the tasks mostly for manually processes.

Kind regards,

Paul Münch

Am 05.12.19 um 15:47 schrieb Mark H. Wood:
> On Thu, Dec 05, 2019 at 12:40:04PM +0100, Paul Münch wrote:
>> in our submission process we add metadata automatically. I don't think
>> that the curation tasks are intended for that.
> I disagree.  There is a fair amount of code in the curation system
> specifically to implement attachment of curation tasks to workflows.
>
> https://wiki.lyrasis.org/display/DSDOC5x/Curation+System#CurationSystem-Inworkflow
>
>> Am 25.11.19 um 12:36 schrieb Flavien M:
>>> I am currently trying to configure the input form.
>>> I would like that at the end of the entry of an item some fields are
>>> filled automatically.
>>>
>>> Examples:
>>> - dc.redaction.author: automatically put the name of the user who just
>>> typed the item;
>>> - dc.redaction.datecreation: automatically set today's date.
>>>
>>> If I understand correctly, in DSpace the way to reach my goal is to
>>> use the curation tasks.
>>>
>>> I created a
>>> "/dspace/modules/additions/src/main/java/org/dspace/myproject/curate/AddMetadata.java"
>>> task.
>>>
>>> But I did not understand how to activate this task.
>>>
>>> Here are my questions:
>>> - How to enable this task to run automatically at the end of an item?
>>> - How to retrieve the name of the active user (the one who is
>>> entering) in the task?
>>> - How to retrieve the date of the day in the task?
>>>
>>> I use DSpace 5.10 and XMLUI.
> How to attach a task to a workflow step:  see the link above.
>
> How to retrieve the name of the active user:  I am not sure what user
> this is.  The EPerson who submitted the item should be obtainable
> using Item.getSubmitter().  The EPerson who is in the current workflow
> step would, as Paul Münch said, be in the request, but that may not be
> available in a task.  (If it is not, we should fix that.)
>
> How to retrieve the date:  which date?  The date of submission 
> should be in the metadata field dc.date.submitted.  The current date
> is of course obtainable from java.util.Date or java.util.Calendar.
>


-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/37bcd426-232e-4e91-fe72-919fce944860%40staff.uni-marburg.de.


signature.asc
Description: OpenPGP digital signature


Re: [dspace-tech] DSpace 5 with XMLUI enable curation task in submission form

2019-12-05 Thread Mark H. Wood
On Thu, Dec 05, 2019 at 12:40:04PM +0100, Paul Münch wrote:
> in our submission process we add metadata automatically. I don't think
> that the curation tasks are intended for that.

I disagree.  There is a fair amount of code in the curation system
specifically to implement attachment of curation tasks to workflows.

https://wiki.lyrasis.org/display/DSDOC5x/Curation+System#CurationSystem-Inworkflow

> Am 25.11.19 um 12:36 schrieb Flavien M:
> > I am currently trying to configure the input form.
> > I would like that at the end of the entry of an item some fields are
> > filled automatically.
> >
> > Examples:
> > - dc.redaction.author: automatically put the name of the user who just
> > typed the item;
> > - dc.redaction.datecreation: automatically set today's date.
> >
> > If I understand correctly, in DSpace the way to reach my goal is to
> > use the curation tasks.
> >
> > I created a
> > "/dspace/modules/additions/src/main/java/org/dspace/myproject/curate/AddMetadata.java"
> > task.
> >
> > But I did not understand how to activate this task.
> >
> > Here are my questions:
> > - How to enable this task to run automatically at the end of an item?
> > - How to retrieve the name of the active user (the one who is
> > entering) in the task?
> > - How to retrieve the date of the day in the task?
> >
> > I use DSpace 5.10 and XMLUI.

How to attach a task to a workflow step:  see the link above.

How to retrieve the name of the active user:  I am not sure what user
this is.  The EPerson who submitted the item should be obtainable
using Item.getSubmitter().  The EPerson who is in the current workflow
step would, as Paul Münch said, be in the request, but that may not be
available in a task.  (If it is not, we should fix that.)

How to retrieve the date:  which date?  The date of submission 
should be in the metadata field dc.date.submitted.  The current date
is of course obtainable from java.util.Date or java.util.Calendar.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/20191205144702.GB8960%40IUPUI.Edu.


signature.asc
Description: PGP signature


[dspace-tech] Not a valid in-process submission

2019-12-05 Thread LinKeRo GM

It is good to greet everyone, I hope you are well, for a long time I have 
this problem and I was wondering if anyone could help me.

This happens when an article is uploaded, in some cases the article is 
uploaded in every way but throws this message, at other times the account 
closes the session.



-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/1ca32b0f-b59d-430a-b9d5-9566af4747b3%40googlegroups.com.


Re: [dspace-tech] DSpace 5 with XMLUI enable curation task in submission form

2019-12-05 Thread Paul Münch
Hello Flavien,

in our submission process we add metadata automatically. I don't think
that the curation tasks are intended  for that. We wrote a separate
submission step that runs without any user interaction and configure it
in the '[dspace-src]/dspace/config/item-submission.xml'. For example:

'''

  org.dspace.submit.step.AddMetadata
  false

'''

Our step extends the 'AbstractProcessingStep'
(http://demo.dspace.org/javadocs/6/apidocs/org/dspace/submit/AbstractProcessingStep.html).
In the method 'doProcessing'
(http://demo.dspace.org/javadocs/6/apidocs/org/dspace/submit/AbstractProcessingStep.html#doProcessing)
you can use the Context-object to get the current user. For the date I
would use some Java standard way.

To store all information in specific metadata fields, use the
'itemService.addMetadata'-method
(http://demo.dspace.org/javadocs/6/apidocs/org/dspace/content/service/DSpaceObjectService.html#addMetadata).
The Item-object that you need for this method will you get from the
SubmissionInfo-object.

I hope this helps and kind regards,

Paul Münch

Am 25.11.19 um 12:36 schrieb Flavien M:
> Hello,
>
> I am currently trying to configure the input form.
> I would like that at the end of the entry of an item some fields are
> filled automatically.
>
> Examples:
> - dc.redaction.author: automatically put the name of the user who just
> typed the item;
> - dc.redaction.datecreation: automatically set today's date.
>
> If I understand correctly, in DSpace the way to reach my goal is to
> use the curation tasks.
>
> I created a
> "/dspace/modules/additions/src/main/java/org/dspace/myproject/curate/AddMetadata.java"
> task.
>
> But I did not understand how to activate this task.
>
> Here are my questions:
> - How to enable this task to run automatically at the end of an item?
> - How to retrieve the name of the active user (the one who is
> entering) in the task?
> - How to retrieve the date of the day in the task?
>
> I use DSpace 5.10 and XMLUI.
>
> PS : Sorry for my bad English this is not my native language.
>
> Thank you in advance.
> Flavien
>
> -- 
> All messages to this mailing list should adhere to the DuraSpace Code
> of Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/825c03e8-a8c2-46dc-91a9-457392799822%40googlegroups.com
> .

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/1c109b5e-7dbd-298e-4e7d-e2057a0ef58b%40staff.uni-marburg.de.


signature.asc
Description: OpenPGP digital signature