-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Feature add ids to works #8346
base: master
Are you sure you want to change the base?
Feature add ids to works #8346
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8346 +/- ##
==========================================
- Coverage 16.66% 16.58% -0.09%
==========================================
Files 83 83
Lines 4422 4444 +22
Branches 757 763 +6
==========================================
Hits 737 737
- Misses 3202 3218 +16
- Partials 483 489 +6
|
18a048f
to
346f8dc
Compare
68dc489
to
d9b4059
Compare
fixes internetarchive#3430 and internetarchive#1797 Adds the option to add external ids (wikidata, VIAF) to works, based on the code for editions, with minor tweaks. Will autodetect the id type when possible, similar to functionality in the author id entry. Will accept urls for ids and automatically extract the id from them based on regex sourced from wikidata.
d9b4059
to
ce23536
Compare
I think the CI is currently failing due to an error from 3rd party server:
|
I've pushed a follow up commit, where some of the improvements over editions are backported to editions. I was going to do that as a seperate commit (and still can) but:
Will see how it goes. |
92f9c0a
to
ce23536
Compare
@davidscotson That error appears to be resolved on other PRs ; if you rebase off latest master that should hopefully fix it 👍 |
fixes #3430 and #1797
Mostly re-using code from Edition ids and tweaking it for Works.
On top of that adds the auto detection of some ids (e.g. pasting in a wikidata or amazon id will auto-select that entry for you), similar to functionality on current Author id entry.
Also, adds the ability to paste in entire urls, which will then detect the right type of id and extract the specific id.
Note:
Displays the ids on the work/edition page though #3430 currently suggests this is optional, but I think the display is fairly inoffensive and would do for now.
Closes #3430
and
Closes #1797
Partially addresses #866 for this specific area.
feature
Technical
Requires server side set up to work, similar to the edition identifiers, it gets the list of ids to use from config stored on server, see instructions below.
Testing
You need to configure config/works with identifiers via:
/config/work.yml?m=edit
Before you can save any IDs.
Once you do you can add and remove IDs from works.
Screenshot
Stakeholders