Problem/Motivation

We have a client looking to be able to bulk-import references using a simple list of DOI numbers.

Implementation would be similar to what the Bibliography & Citation - PubMed does, where, when the Bibliography & Citation - Import sub-module is enabled, users can visit the Import tab and upload a file containing multiple PubMed numbers, and have all of the content imported in one go.

Proposed resolution

Use Bibliography & Citation - PubMed as a template for adding this functionality.

Remaining tasks

This builds on issue 3388342, which has been merged, so the module works with the latest Drupal 10/11 versions.

User interface changes

On the Bibliography - Import tab, there is a new “Crossref DOI” option available.

API changes

NA.

Data model changes

Adds bibcite_entity.mapping.crossref_doi.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

byronveale created an issue. See original summary.

byronveale’s picture

Status: Active » Needs review
StatusFileSize
new26.34 KB

Attaching a patch for now, as a merge request is complicated by the fact that what I’m doing here requires first updating the module to be Drupal 10/11 ready (issue 3388342).

byronveale’s picture

Oh, I should mention, because of the issues with the renanbr/crossref-client and composer figuring out dependencies, take a look at Toki’s notes on the workarounds needed to install the module, as well as my own notes on the subject.

byronveale’s picture

StatusFileSize
new9.66 KB

Okay, fixed some errors on the “Mapping for Crossref DOI format” page, updated patch attached.

Reiterating that this patch needs to be applied to the version of the module in the merge request for issue #3388342.

Getting that version using composer required some extra steps

byronveale’s picture

Issue summary: View changes
byronveale’s picture

Hiding out-of-date patch as merge request was created, if anyone needs patches they can be found there.

bkosborne’s picture

Status: Needs review » Reviewed & tested by the community

This looks good to me.

Note I tested this with Bibcite version 3.1.2 and I ran into a fatal error that's unrelated to the changes here. I created a separate issue to address that: #3612506: Compatibility with Bibcite 3.1.1

  • byronveale committed f690a18e on 2.0.x
    feat: #3597504 Allow for importing a simple list of DOI numbers
    
    By:...
byronveale’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.