Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit 09fa063

Browse files
authored
Add instructions for updating existing works
1 parent ed1debb commit 09fa063

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

README.md

+10-15
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,16 @@ To run batch-loader:
2727

2828
## Specification of CSV
2929
1. The first row must contain the field names.
30-
2. Fields that take multiple values should be placed in multiple columns.
31-
Each field name should be appended with an incrementing integer. For
32-
example, "author1", "author2", "author3". Even if there is only a
33-
single entry, but the field is repeating, the field name should end with "1".
34-
()Fields with multiple values will be passed as lists to GWSS.)
35-
3. The following fields are required: files, object_type, title, author1,
36-
type_of_work1, rights.
37-
4. The following fields are optional, but if provided must use these field names:
38-
first_file, gwss_id.
30+
2. The following columns are required:
31+
- title1
32+
- creator1
33+
- resource_type1
34+
- license1
35+
- files - path to the attachment file, or in the case of multiple attachments, to the folder containing the attachment files
36+
- first_file - (Optional) Path to the file which should be positioned as the first attachment (used for the thumbnail, etc.)
37+
- object_id - (Optional) If specified, the GW ScholarSpace ID of the existing object to be updated
38+
3. Multiple numbered columns can be used to represent multiple-valued fields. For example, if there are multiple authors, then add columns called `creator2`, `creator3`, etc.
3939
5. Additional fields included in the CSV will be passed to GWSS using the provided
4040
field names. For example, a "subtitle" field included in the CSV will be
4141
passed as "subtitle" to GWSS.
42-
6. The ordering of fields is not significant.
43-
44-
## TODO:
45-
1. Support updating when already has a repo id.
46-
2. Write output CSV containing repo id.
47-
3. Error handling when import fails.
42+
6. The ordering of columns does not matter.

0 commit comments

Comments
 (0)