Thanks, this is a very useful functionality to have.
I installed the module and all dependencies, but when I click on DOI lookup (for example with DOI 10.1007/978-3-319-24129-6_31), I get this message:
Error has occured:
Incorrect input to parse.
I know that the module uses Guzzle and the RenanBr Crossref client. I was wondering if the error above is generated by this module or one of those two. Or perhaps by Serializer?
There is nothing in the logs (neither the Drupal logs nor the server logs), so I have no clue. I would really appreciate it if someone could give me a hint.
Thank you.
Comments
Comment #2
valeriap commentedComment #3
antongp commentedHi @valeriap.
Thank you for your issue. I believe you're using 8.x-1.0-alpha7 version of the Bibliography & Citation module. Could you please try latest dev? Also, you'll probably want to use latest dev of the Bibliography & Citation - Crossref module - there has been fix pushed recently within #3014552: Authors do not seem to be properly populated.. Also note that there is known issue which may affect your use case: #3017057: DOI lookup doesn't respect (contributor and keyword) deduplication settings
Comment #4
valeriap commentedThanks a lot @antongp.
I easily upgraded to the latest dev of bibcite/crossref, but I have problems using composer to use the latest dev of bibcite.
It seems that the submodule bibcite_etity requires the alpha7 version of bibcite:
Problem 1
- drupal/bibcite_entity 1.0.0-alpha7 requires drupal/bibcite 1.0.0-alpha7 -> satisfiable by drupal/bibcite[1.0.0-alpha7] but these conflict with your requirements or minimum-stability.
- drupal/bibcite_entity 1.0.0-alpha7 requires drupal/bibcite 1.0.0-alpha7 -> satisfiable by drupal/bibcite[1.0.0-alpha7] but these conflict with your requirements or minimum-stability.
- drupal/bibcite_entity 1.0.0-alpha7 requires drupal/bibcite 1.0.0-alpha7 -> satisfiable by drupal/bibcite[1.0.0-alpha7] but these conflict with your requirements or minimum-stability.
- Installation request for drupal/bibcite_entity (locked at 1.0.0-alpha7) -> satisfiable by drupal/bibcite_entity[1.0.0-alpha7].
I can't find the composer.json that sets this dependency (there is no composer.json in bibcite/bibcite_entity.
I guess this is not related to bibcite_crossref, so i should probably ask this question in the bibcite issue queue. But in case you could provide any advice... :-)
Thanks a lot,
Valeria
Comment #5
antongp commentedHmm, it's strange... Basically there is no place where explicit dependency on alpha7 is specified (in both bibcite and its submodules and bibcite_crossref). So, to use latest dev versions of both bibcite and bibcite_crossref you should run something like
composer require drupal/bibcite:1.x-dev drupal/bibcite_crossref:1.x-dev. What command did you run BTW to update to latest dev?Also check your composer.json for minimum-stability, it should be set to dev. I'm not sure if you started your Drupal installation using https://github.com/drupal-composer/drupal-project , but note its composer.json, particularly
"minimum-stability": "dev",and"prefer-stable": true,lines.Hope this helps.
Comment #6
antongp commentedI believe the issue is fixed and can be closed. Please re-open if needed.