CEHCIG 795 meta data
Can toggle between meta and data
before it created a hash file but this doesn't seem necessary so now we create a json file with all the information. It creates a json file similar to
it also doesn't show the "Finish" button if there are initially no checksums
{
"title": "This is the title",
"type": "series",
"guid": "6795cf1b-9204-451e-99f1-f9b90658537f",
"path": "/var/ceh-catalogue/dropbox/6795cf1b-9204-451e-99f1-f9b90658537f",
"meta": {
"file-2.txt": {
"name": "file-2.txt",
"path": "/var/ceh-catalogue/dropbox/6795cf1b-9204-451e-99f1-f9b90658537f/file-2.txt",
"format": "txt",
"mediatype": null,
"encoding": "utf-8",
"bytes": 9,
"hash": "437b930db84b8079c2dd804a71936b5f",
"type": "META"
}
},
"data": {
"file-4.txt": {
"name": "file-4.txt",
"path": "/var/ceh-catalogue/dropbox/6795cf1b-9204-451e-99f1-f9b90658537f/file-4.txt",
"format": "txt",
"mediatype": null,
"encoding": "utf-8",
"bytes": 9,
"hash": "437b930db84b8079c2dd804a71936b5f",
"type": "DATA"
}
},
"files": [
{
"name": "file-2.txt",
"path": "/var/ceh-catalogue/dropbox/6795cf1b-9204-451e-99f1-f9b90658537f/file-2.txt",
"format": "txt",
"mediatype": null,
"encoding": "utf-8",
"bytes": 9,
"hash": "437b930db84b8079c2dd804a71936b5f",
"type": "META"
},
{
"name": "file-4.txt",
"path": "/var/ceh-catalogue/dropbox/6795cf1b-9204-451e-99f1-f9b90658537f/file-4.txt",
"format": "txt",
"mediatype": null,
"encoding": "utf-8",
"bytes": 9,
"hash": "437b930db84b8079c2dd804a71936b5f",
"type": "DATA"
}
]
}
if we need to add other fields it should be easy to do so
would like to remove the FileUploadService
in a separate MR to keep things a bit cleaner but happy to do that in this MR