Just an update on my end.
Because there is no response, It seems that the replace as shown previously is not supported, at this stage.
The way to do the replace currently is to include the op:remove first then op:add for each as shown below.
Hope this helps.
FYI:
- The minus on subject to ensure that it is added after the first subject, otherwise the order will be in reverse.
- This is tested on version 7 and 8. Both seems have to be done as below.
[
{
"op": "remove",
"path": "/metadata/dc.subject"
},
{
"op": "add",
"path": "/metadata/dc.subject",
"value":"test1"
},
{
"op": "add",
"path": "/metadata/dc.subject/-",
"value":"test2"
},
{
"op": "add",
"path": "/metadata/dc.subject/-",
"value":"test3"
}
]
Best regards,
Harry Sidhunata
UNSW Sydney Library