Closed saschaszott closed 6 months ago
An empty search result which is returned from the Elsevier Scopus REST API looks like this:
<?xml version="1.0" encoding="UTF-8"?> <search-results xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:prism="http://prismstandard.org/namespaces/basic/2.0/" xmlns:atom="http://www.w3.org/2005/Atom"> <opensearch:totalResults>0</opensearch:totalResults> <opensearch:startIndex>0</opensearch:startIndex> <opensearch:itemsPerPage>0</opensearch:itemsPerPage> <opensearch:Query role="request" searchTerms="a-query-without-hits" startPage="0"/> <link ref="self" href="https://api.elsevier.com/content/search/scopus?start=0&count=10&query=a-query-without-hits&httpAccept=application%2Fxml" type="application/xml"/> <entry> <error>Result set was empty</error> </entry> </search-results>
The implementation in ScopusImportMetadataSourceServiceImpl considers this kind of result as a not-empty result.
ScopusImportMetadataSourceServiceImpl
In consequence, this leads to this unexpected state in the UI
A good idea will be to check the:
There is a PR in https://github.com/DSpace/DSpace/pull/9375 which currently has 3 failing tests. I'll try to fix this asap. I'll close this issue.
Bug Description
An empty search result which is returned from the Elsevier Scopus REST API looks like this:
The implementation in
ScopusImportMetadataSourceServiceImpl
considers this kind of result as a not-empty result.In consequence, this leads to this unexpected state in the UI