-
Notifications
You must be signed in to change notification settings - Fork 26
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
Conversation
e603485
to
23d8a73
Compare
rero_ils/modules/documents/dojson/contrib/marc21tojson/model.py
Outdated
Show resolved
Hide resolved
rero_ils/modules/documents/dojson/contrib/marc21tojson/model.py
Outdated
Show resolved
Hide resolved
rero_ils/modules/documents/jsonschemas/documents/document-v0.0.1.json
Outdated
Show resolved
Hide resolved
feb5352
to
865fbb0
Compare
!!!!!! ATTENTION !!!!!!!
|
There was a problem hiding this 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.
fbe2796
to
e06fc72
Compare
mef_url = hits[0].get('links').get('self') | ||
mef_url = mef_url.replace(DEV_HOST, PROD_HOST) | ||
else: | ||
print( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
rero_ils/modules/ext.py
Outdated
@@ -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, \ |
There was a problem hiding this comment.
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?
7de97e1
to
e294fea
Compare
* 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]>
!!!!!! ATTENTION !!!!!!!
following env variables have to be set:
For testing the
bootstap
andsetup
script must be lanched!