Bug 397027 - Sciencedirect search broken
Summary: Sciencedirect search broken
Status: RESOLVED FIXED
Alias: None
Product: KBibTeX
Classification: Applications
Component: Network/online search (show other bugs)
Version: 0.7
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Thomas Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-31 21:35 UTC by Volker Fröhlich
Modified: 2018-08-18 17:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 0.8.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Fröhlich 2018-07-31 21:35:01 UTC
Searching sciencedirect doesn't work, most likely because of changes on their website. At first I thought that changing everything to https might be enough, but unfortunately the search form changed too. 

kbibtex(29247) OnlineSearchAbstract::handleErrors: Search using "ScienceDirect" failed (error code 301 ( "Protocol "" is unknown" ), HTTP code 0 : "" )

As far as I could see, nothing has changed in this area recently, so it's most likely broken in 0.8 too.
Comment 1 Volker Fröhlich 2018-07-31 21:39:34 UTC
https://dev.elsevier.com/user/login -- Maybe using their proper API is more useful though.
Comment 2 Volker Fröhlich 2018-07-31 21:54:54 UTC
https://github.com/JabRef/jabref/issues/1258 for reference
Comment 3 Thomas Fischer 2018-08-01 18:19:15 UTC
I am aware of this problem. I have some working code which already uses this API but it has some rough edges I'd like to fix before I push the commits and make a new release.
The problem is due to be fixed in 0.8.2
Comment 4 Thomas Fischer 2018-08-11 18:29:27 UTC
Git commit c0865f306c3ff48fe6e5de5135403ef58c575b52 by Thomas Fischer.
Committed on 09/08/2018 at 20:23.
Pushed by thomasfischer into branch 'kbibtex/0.8'.

ScienceDirect now uses official API

Search on Elsevier's ScienceDirect has been refactored to
use the official API. KBibTeX got its own API key granted
(obfuscated in code). A new XSL transformation got written
for the XML data returned by this online service.
FIXED-IN: 0.8.2

M  +92   -208  src/networking/onlinesearch/onlinesearchsciencedirect.cpp
M  +2    -5    src/networking/onlinesearch/onlinesearchsciencedirect.h
M  +1    -0    xslt/CMakeLists.txt
A  +134  -0    xslt/sciencedirectsearchapi-to-bibtex.xsl

https://commits.kde.org/kbibtex/c0865f306c3ff48fe6e5de5135403ef58c575b52
Comment 5 Thomas Fischer 2018-08-18 17:55:28 UTC
Git commit 1f661be9bd3a4db5ebd7520d065112bc556bdf8f by Thomas Fischer.
Committed on 18/08/2018 at 10:41.
Pushed by thomasfischer into branch 'master'.

ScienceDirect now uses official API

Search on Elsevier's ScienceDirect has been refactored to
use the official API. KBibTeX got its own API key granted
(obfuscated in code). A new XSL transformation got written
for the XML data returned by this online service.

M  +88   -198  src/networking/onlinesearch/onlinesearchsciencedirect.cpp
M  +2    -5    src/networking/onlinesearch/onlinesearchsciencedirect.h
M  +1    -0    xslt/CMakeLists.txt
A  +134  -0    xslt/sciencedirectsearchapi-to-bibtex.xsl

https://commits.kde.org/kbibtex/1f661be9bd3a4db5ebd7520d065112bc556bdf8f