Skip to content

Commit

Permalink
Merge pull request #323 from Brown-University-Library/dev
Browse files Browse the repository at this point in the history
update ingestion code to use isMemberOfCollection instead of IR colle…
  • Loading branch information
bcail authored Dec 21, 2021
2 parents db2aabd + c70ff1f commit f23c0fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rome_app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,7 @@ def to_mods_xml(self, update=False):
def _get_params(self):
params = {'identity': app_settings.BDR_IDENTITY, 'authorization_code': app_settings.BDR_AUTH_CODE}
params['mods'] = json.dumps({'xml_data': self.to_mods_xml()})
params['ir'] = json.dumps({'parameters': {'ir_collection_id': 621}})
params['rels'] = json.dumps({'isAnnotationOf': self._image_pid})
params['rels'] = json.dumps({'isMemberOfCollection': settings.TTWR_COLLECTION_PID, 'isAnnotationOf': self._image_pid})
params['rights'] = json.dumps({'parameters': {'owner_id': app_settings.BDR_IDENTITY, 'additional_rights': 'BDR_PUBLIC#display'}})
params['content_model'] = 'Annotation'
return params
Expand Down

0 comments on commit f23c0fc

Please sign in to comment.