diff --git a/rome_app/models.py b/rome_app/models.py index 900a12e..f45e2c4 100644 --- a/rome_app/models.py +++ b/rome_app/models.py @@ -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