Script update-metrics using service scopus does not update all publications · Issue #511 · 4Science/DSpace · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Description
Running the script update-metrics --service scopus does not add metrics for all publications inside CRIS.
In my instance, with 866 publications having either a DOI or a Scopus ID, only 442 publications get their metrics updated.
Steps to Reproduce
Add a considerable number of publications (e.g., 100) with the metadata dc.identifier.doi or dc.identifier.scopus, corresponding to publications indexed in Scopus. Identifiers should be unique and the documents should have a citation number greater than 0.
Run the script update-metrics --service scopus.
Expected Behavior
All publications with a valid identifier should have their metrics updated, respecting the --limit parameter of the script.
Related Work
Similarly to issue #508, there appears to be a problem with the item iterator and the committing of results.
In the function updateMetric of UpdateScopusMetrics.java, there is a while block starting at line 88 where the final action is to commit the obtained metrics of the item.
This seems to alter the item iterator, reducing the number of items that should be updated.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
DSpace-CRIS Version: 2024.02.00
Issue Description
Running the script
update-metrics --service scopus
does not add metrics for all publications inside CRIS.In my instance, with 866 publications having either a DOI or a Scopus ID, only 442 publications get their metrics updated.
Steps to Reproduce
dc.identifier.doi
ordc.identifier.scopus
, corresponding to publications indexed in Scopus. Identifiers should be unique and the documents should have a citation number greater than 0.update-metrics --service scopus
.Expected Behavior
All publications with a valid identifier should have their metrics updated, respecting the
--limit
parameter of the script.Related Work
Similarly to issue #508, there appears to be a problem with the item iterator and the committing of results.
In the function
updateMetric
ofUpdateScopusMetrics.java
, there is awhile
block starting at line 88 where the final action is to commit the obtained metrics of the item.This seems to alter the item iterator, reducing the number of items that should be updated.
DSpace/dspace-api/src/main/java/org/dspace/metrics/scopus/UpdateScopusMetrics.java
Lines 81 to 122 in 68eeb03
I moved the commit call outside the while block on my instance an that seems to fix the problem.
The text was updated successfully, but these errors were encountered: