|
1 | 1 | # dspace-data-collection |
| 2 | + |
| 3 | +All of these scripts require a secrets.py file in the same directory that must contain the following text: |
| 4 | +``` |
| 5 | + baseURL='https://dspace.myuni.edu' |
| 6 | + email='dspace_user@.myuni.edu' |
| 7 | + password='my_dspace_password' |
| 8 | + filePath = '/Users/dspace_user/dspace-data-collection/data/' # directory into which to store output files |
| 9 | + handlePrefix = 'http://dspace.myuni.edu/handle/' # handlePrefix may vary from your dspace url (or may not) |
| 10 | +``` |
| 11 | +This secrets.py file will be ignored according to the repository's .gitignore file so that DSpace login details will not be inadvertently exposed through Github |
| 12 | + |
| 13 | +*Note that all of these scripts skip collection '24' for local reasons. To change this, edit the following portion of the script (typically between line 27-39) |
| 14 | + |
| 15 | +Skips collection 24 |
| 16 | + |
| 17 | + for j in range (0, len (collections)): |
| 18 | + collectionID = collections[j]['id'] |
| 19 | + if collectionID != 24: |
| 20 | + offset = 0 |
| 21 | + |
| 22 | +No collections skipped: |
| 23 | + |
| 24 | + for j in range (0, len (collections)): |
| 25 | + collectionID = collections[j]['id'] |
| 26 | + if collectionID != 0: |
| 27 | + offset = 0 |
| 28 | +#### [compareTwoKeysInCommunity.py](compareTwoKeysInCommunity.py) |
| 29 | + |
| 30 | +#### [findBogusUris.py](findBogusUris.py) |
| 31 | + |
| 32 | +#### [findDuplicateKeys.py](findDuplicateKeys.py) |
| 33 | + |
| 34 | +#### [getCollectionMetadataJson.py](getCollectionMetadataJson.py) |
| 35 | + |
| 36 | +#### [getCompleteAndUniqueValuesForAllKeys.py](getCompleteAndUniqueValuesForAllKeys.py) |
| 37 | + |
| 38 | +#### [getGlobalLanguageValues.py](getGlobalLanguageValues.py) |
| 39 | + |
| 40 | +#### [getLanguageValuesForKeys.py](getLanguageValuesForKeys.py) |
| 41 | + |
| 42 | +#### [getRecordsAndValuesForKey.py](getRecordsAndValuesForKey.py) |
| 43 | + |
| 44 | +#### [getRecordsWithKeyAndValue.py](getRecordsWithKeyAndValue.py) |
| 45 | + |
| 46 | +#### [metadataOverview.py](metadataOverview.py) |
| 47 | + |
0 commit comments