-
Notifications
You must be signed in to change notification settings - Fork 11
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
ark: get rid of archetype #928
Conversation
c249358
to
4ea30a8
Compare
0fc271b
to
2945a54
Compare
sonar/modules/ark/cli.py
Outdated
"""Create an ark identifier in the document of the given organisation.""" | ||
organisation = OrganisationRecord.get_record_by_pid(organisation_pid) | ||
if not organisation: | ||
click.secho('Organisation does not exists.', fg='red') |
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.
"does not exist"
sonar/modules/ark/cli.py
Outdated
raise click.Abort() | ||
if not organisation.get('arkNAAN'): | ||
click.secho( | ||
'NAAN configuration does not exists for the given organisation.', |
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.
"does not exist"
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.
Requested changes:
- In the
organisation
schema: adjust thearkNaan
field label: "Ark Name Assigning Authority Number (NAAN)" (instead of simply "Ark Name Assigning Authority Number"). - In the
organisation
's detailed view: add missing fields:serverName
allowedIps
arkNaan
platformName
- In the
document
schema: change theark
field content in order to make it an actionable URL (cf. How do I cite or advertise an ARK?); example:"ark": "https://n2t.net/ark:/9999897987/ffk3515",
- instead of
"ark": "ark:/9999897987/ffk3515",
. - add the full version into the
identifiedBy.uri
field.
Nice to have:
- In the
document
schema: move theark
identifier field to inside theidentifiedBy
section (as with all the other document identifiers). - Side development: copy all
identifiedBy
values to a new fieldidentifiers
at the root of the document, so that they become searchable. See also issue Activate search by identifier [2] #669. - Return the metadata of the record, in Dublin Core format, when a
?
is added to the end of an ARK. This is called the "inflection" mechanism and is considered a best practise (althoigh it was not included in the US specification).
- REP/12.06: Problem in the display of the organisation editor
ERROR TypeError: this.formControl.value is null
- MAJ/15.06: An admin of a shared organisation cannot save in the organisation editor: "A server error occurs" (bad gateway)
- REP/27.06: Public (global) intrface: The detailed document view doesn't display the organisation field correctly.
- REP/27.06: Identifier type is still "bf:Iark", should be "ark".
- REP/27.06: In the data, there is an additional property ("identifiedBy.uri") that is not in the jsonschema. Moreover "uri" can also be a value of "identifiedBy.type" which is confusing.
- REP: OK.
9a4ef26
to
bb951f7
Compare
d426383
to
a552580
Compare
@@ -700,6 +696,7 @@ | |||
"bf:Doi", | |||
"bf:Ean", | |||
"bf:Gtin14Number", | |||
"bf:Iark", |
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 did not find bf:Iark
in the bibframe vocabulary. I would change this to simply ark
or use the existing type uri
.
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.
👍
|
"gtin14number": { | ||
"type": "keyword" | ||
}, | ||
"iark": { |
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.
ark*
6b05b9f
to
11a73ca
Compare
94d6097
to
1c27cea
Compare
2065502
to
ee6bb0d
Compare
* Adds a Ark NAAN configuration into organisation. * Disallows Ark NAAN configuration modification for non super user. * Mints an ark identifier if the document organisation contains a NAAN. * Removes legacy code. * Closes rero#652. * Adds the cli to create an ARK in existing documents. * Removes unused file. * Adds document Dublin Core export format. * Moves ark in identifiedBy. * Uses dumpers to enrich indexed documents. * Adds dublin core as export format. * Closes rero#669. * Adds the full URI version of the ARK on the search result API. * Sets the application configurations for the test to allow the use of multiple docker-compose files. * Uses angular 14. * Solves safety, need to move to Flask 2. * Fixes json-ld context value. * Adds multiple identifiers for dublin core. * Uses ARK URI for `@id` and `identifier` field in json-ld. * Fixes some tests. * Makes all fields searchable for documents index. Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
multiple docker-compose files.
@id
andidentifier
field in json-ld.Co-Authored-by: Johnny Mariéthoz Johnny.Mariethoz@rero.ch
Why are you opening this PR?
How to test?
&format=dc
on the document API.Code review check list