[
https://jira.duraspace.org/browse/DS-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24390#comment-24390
]
Keiji Suzuki commented on DS-1084:
----------------------------------
Hi Ivan,
I can't reproduce your situation. I exported my whole repository (though it is
very small for testing), and imported them without any changes, that results
"There were no changes detected".
I have some questions to your comment.
> It gives the correct changes preview and after confirming them also writes
> that it makes the correct changes.
> But it doesn't actually do the change in the database.
Is the field you added authorities defined as an authority control field? If
not, item.update() does not add
the authority data.
> When I tried to export my whole repository and then import it again without
> any changes,
> I still get the same NPE as before (MetadataImport.java:466).
The 465-466 lines of the new patched source are the follows.
465: String[] parts = value.split(DSpaceCSV.escapedAuthoritySeparator);
466: dcv.value = parts[0];
I don't know why the line 466 occurs NPE instead of IndexOutOfBoundsException.
The line 466 of the previous unpatched source is the follows. In this case,
dc.value
is always NULL, so it occurs NPE but int the line 465 of the new patched source,
"value" is ensured that is not NULL.
466: String[] parts = dc.value.split(DSpaceCSV.escapedAuthoritySeparator);
> + Add (dc.contributor.author): Suzuki, Keiji, authority = someid, confidence
> = 600
> - Remove (dc.contributor.author): Suzuki, Keiji
If this data had its authority data before, the new patched source should
display
- Remove (dc.contributor.author): Suzuki, Keiji, authority = someid, confidence
= 600
I attach the new patched source, please check your source with it.
> Handle authority and confidence fields in Bulk Editing
> ------------------------------------------------------
>
> Key: DS-1084
> URL: https://jira.duraspace.org/browse/DS-1084
> Project: DSpace
> Issue Type: Improvement
> Components: DSpace API
> Affects Versions: 1.8.0
> Reporter: Keiji Suzuki
> Assignee: Robin Taylor
> Attachments: bulkedit-authority.patch, bulkedit-patches.zip,
> MetadataImport.java, MetadataImport.java.patch
>
>
> Current bulk editing function ignores authority and confidence fields.
> Attached patches (against to 1.8.0 sources) handle these fields.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel