Class ItemMetadataValueMovePatchOperation
java.lang.Object
org.dspace.app.rest.submit.factory.impl.PatchOperation<T>
org.dspace.app.rest.submit.factory.impl.MovePatchOperation<MetadataValueRest>
org.dspace.app.rest.submit.factory.impl.MetadataValueMovePatchOperation<Item>
org.dspace.app.rest.submit.factory.impl.ItemMetadataValueMovePatchOperation
Submission "move" PATCH operation.
It is possible to rearrange the metadata values using the move operation. For
instance to put the 3rd author as 1st author you need to run:
curl -X PATCH http://${dspace.server.url}/api/submission/workspaceitems/<:id-workspaceitem> -H "
Content-Type: application/json" -d '[{ "op": "move", "from": "
/sections/traditionalpageone/dc.contributor.author/2", "path": "
/sections/traditionalpageone/dc.contributor.author/0"}]'
- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.dspace.app.rest.submit.factory.impl.MetadataValueMovePatchOperation
getArrayClassForEvaluation, getClassForEvaluation, moveValueMethods inherited from class org.dspace.app.rest.submit.factory.impl.MovePatchOperation
performMethods inherited from class org.dspace.app.rest.submit.factory.impl.PatchOperation
evaluateArrayObject, evaluateSingleObject, getAbsolutePath, getStepId
-
Constructor Details
-
ItemMetadataValueMovePatchOperation
public ItemMetadataValueMovePatchOperation()
-
-
Method Details
-
getDSpaceObjectService
- Specified by:
getDSpaceObjectServicein classMetadataValueMovePatchOperation<Item>
-