Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DATA: $ref for mef persons #205

Merged
merged 1 commit into from
Mar 20, 2019
Merged

DATA: $ref for mef persons #205

merged 1 commit into from
Mar 20, 2019

Conversation

rerowep
Copy link
Contributor

@rerowep rerowep commented Feb 26, 2019

  • NEW: $ref to mef in the json file
  • BETTER: detailed view document
  • BETTER: detailed view person
  • NEW: proxy to mef
  • NEW: new 10k extraction of documents
  • NEW: indexing into mef_persons

!!!!!! ATTENTION !!!!!!!
following env variables have to be set:

RERO_ILS_MEF_HOST='mef.test.rero.ch'
RERO_ILS_MEF_URL="https://mef.test.rero.ch/api/"

For testing the bootstap and setup script must be lanched!

@rerowep rerowep force-pushed the resolveref branch 15 times, most recently from e603485 to 23d8a73 Compare March 1, 2019 06:36
@rerowep rerowep force-pushed the resolveref branch 6 times, most recently from feb5352 to 865fbb0 Compare March 1, 2019 11:09
@rerowep
Copy link
Contributor Author

rerowep commented Mar 1, 2019

!!!!!! ATTENTION !!!!!!!
following env variables have to be set:

RERO_ILS_MEF_HOST='mef.test.rero.ch'
RERO_ILS_MEF_URL="https://mef.test.rero.ch/api/"

Copy link

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a functional point of view, it's OK on my side. The person search is working, the doc detailed view displays links that point to the person detailed view, which has a list of related document.

@rerowep rerowep requested a review from jma March 11, 2019 07:06
@rerowep rerowep force-pushed the resolveref branch 4 times, most recently from fbe2796 to e06fc72 Compare March 12, 2019 11:11
mef_url = hits[0].get('links').get('self')
mef_url = mef_url.replace(DEV_HOST, PROD_HOST)
else:
print(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can perhaps use logger or click

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to redirect to STDERR

@@ -87,3 +87,12 @@ def register_signals(self):
from .apiharvester.signals import apiharvest_part
from .mef_persons.receivers import publish_api_harvested_records
apiharvest_part.connect(publish_api_harvested_records, weak=False)

from invenio_records.signals import after_record_delete, \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok but why not make the code better?

@rerowep rerowep force-pushed the resolveref branch 4 times, most recently from 7de97e1 to e294fea Compare March 17, 2019 14:44
* NEW: $ref to mef in the json file
* BETTER: detailed view document
* BETTER: detailed view person
* NEW: proxy to mef
* NEW: new 10k extraction of documents
* NEW: indexing into mef_persons

Signed-off-by: Peter Weber <[email protected]>
Signed-off-by: Peter Weber <[email protected]>
@rerowep rerowep merged commit e837402 into rero:dev Mar 20, 2019
@rerowep rerowep deleted the resolveref branch March 25, 2019 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants