Bug 364097 - add new search engine: biorxiv.org
Summary: add new search engine: biorxiv.org
Status: RESOLVED FIXED
Alias: None
Product: KBibTeX
Classification: Applications
Component: Network/online search (show other bugs)
Version: 0.7
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Thomas Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-08 11:45 UTC by Georg Schlisio
Modified: 2016-06-18 21:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Schlisio 2016-06-08 11:45:08 UTC
biorxiv.org is the biology preprint server, similar to arxiv.org for other sciences. it would be convenient to be able to search it via kbibtex as well.

Reproducible: Always

Steps to Reproduce:
not applicable

Actual Results:  
not applicable

Expected Results:  
not applicable
Comment 1 Thomas Fischer 2016-06-13 12:36:21 UTC
Confirmed. I am current working on some code. Will try to put it into shape soon and publish it for you for testing.
Comment 2 Thomas Fischer 2016-06-13 21:02:58 UTC
In my private Git repository, there is some code for bioRxiv:
http://commits.kde.org/clones/kbibtex/thomasfischer/kbibtex/b11efb0b39cf5eb542a1517959c7720e5c5c3f6f
Please test and check if it fits your needs.
Comment 3 Georg Schlisio 2016-06-14 11:08:00 UTC
fails to compile for me. i am quite sure this is my fault… but i lack insight to understand whats going wrong.

[ 36%] Linking CXX shared library libkbibtexnetworking.so
CMakeFiles/kbibtexnetworking.dir/findpdf.cpp.o: In function `FindPDF::Private::processPDF(QNetworkReply*, QByteArray const&)':
findpdf.cpp:(.text._ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray]+0x1b4): undefined reference to `Poppler::Document::loadFromData(QByteArray const&, QByteArray const&, QByteArray const&)'
findpdf.cpp:(.text._ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray]+0x5a4): undefined reference to `Poppler::Document::info(QString const&) const'
findpdf.cpp:(.text._ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray]+0x61a): undefined reference to `Poppler::Document::numPages() const'
findpdf.cpp:(.text._ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray]+0x65e): undefined reference to `Poppler::Document::page(int) const'
findpdf.cpp:(.text._ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray]+0x6fd): undefined reference to `Poppler::Page::text(QRectF const&) const'
findpdf.cpp:(.text._ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray]+0x78f): undefined reference to `Poppler::Page::~Page()'
findpdf.cpp:(.text._ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray]+0x874): undefined reference to `Poppler::Document::~Document()'
collect2: error: ld returned 1 exit status
src/networking/CMakeFiles/kbibtexnetworking.dir/build.make:1008: recipe for target 'src/networking/libkbibtexnetworking.so.0.8.0' failed
make[2]: *** [src/networking/libkbibtexnetworking.so.0.8.0] Error 1
CMakeFiles/Makefile2:539: recipe for target 'src/networking/CMakeFiles/kbibtexnetworking.dir/all' failed
make[1]: *** [src/networking/CMakeFiles/kbibtexnetworking.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Comment 4 Thomas Fischer 2016-06-16 14:41:41 UTC
(In reply to Georg Schlisio from comment #3)
> fails to compile for me. i am quite sure this is my fault… but i lack
> insight to understand whats going wrong.
You are using ArchLinux? Which Poppler packages do you have installed? You would need to have 'popper-qt4' installed at least.
I am able to compile this code both on a Gentoo and an ArchLinux machine. Can you maybe try to compile it on another machine?

> [ 36%] Linking CXX shared library libkbibtexnetworking.so
> CMakeFiles/kbibtexnetworking.dir/findpdf.cpp.o: In function
> `FindPDF::Private::processPDF(QNetworkReply*, QByteArray const&)':
> findpdf.cpp:(.text.
> _ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Pr
> ivate10processPDFEP13QNetworkReplyRK10QByteArray]+0x1b4): undefined
> reference to `Poppler::Document::loadFromData(QByteArray const&, QByteArray
> const&, QByteArray const&)'
> findpdf.cpp:(.text.
> _ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Pr
> ivate10processPDFEP13QNetworkReplyRK10QByteArray]+0x5a4): undefined
> reference to `Poppler::Document::info(QString const&) const'
> findpdf.cpp:(.text.
> _ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Pr
> ivate10processPDFEP13QNetworkReplyRK10QByteArray]+0x61a): undefined
> reference to `Poppler::Document::numPages() const'
> findpdf.cpp:(.text.
> _ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Pr
> ivate10processPDFEP13QNetworkReplyRK10QByteArray]+0x65e): undefined
> reference to `Poppler::Document::page(int) const'
> findpdf.cpp:(.text.
> _ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Pr
> ivate10processPDFEP13QNetworkReplyRK10QByteArray]+0x6fd): undefined
> reference to `Poppler::Page::text(QRectF const&) const'
> findpdf.cpp:(.text.
> _ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Pr
> ivate10processPDFEP13QNetworkReplyRK10QByteArray]+0x78f): undefined
> reference to `Poppler::Page::~Page()'
> findpdf.cpp:(.text.
> _ZN7FindPDF7Private10processPDFEP13QNetworkReplyRK10QByteArray[_ZN7FindPDF7Pr
> ivate10processPDFEP13QNetworkReplyRK10QByteArray]+0x874): undefined
> reference to `Poppler::Document::~Document()'
> collect2: error: ld returned 1 exit status
> src/networking/CMakeFiles/kbibtexnetworking.dir/build.make:1008: recipe for
> target 'src/networking/libkbibtexnetworking.so.0.8.0' failed
> make[2]: *** [src/networking/libkbibtexnetworking.so.0.8.0] Error 1
> CMakeFiles/Makefile2:539: recipe for target
> 'src/networking/CMakeFiles/kbibtexnetworking.dir/all' failed
> make[1]: *** [src/networking/CMakeFiles/kbibtexnetworking.dir/all] Error 2
> Makefile:138: recipe for target 'all' failed
> make: *** [all] Error 2
Comment 5 Georg Schlisio 2016-06-16 16:24:57 UTC
entirely my fault - i was not on the right commit m(

the right commit compiles fine (both on archlinux and in a fedora virtual machine) and biorxiv support works as expected.
Comment 6 Thomas Fischer 2016-06-18 21:01:29 UTC
Merged into branch 'kbibtex/0.7' as of commit 0924607202ec41299b7a6c9702dc66c1fb148376.
Forward-porting to master will follow soon.