Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of hits from DBLP #13

Open
rothblum opened this issue Feb 16, 2017 · 2 comments
Open

Number of hits from DBLP #13

rothblum opened this issue Feb 16, 2017 · 2 comments

Comments

@rothblum
Copy link

Hi,
First of all thanks for the fantastic package!

I noticed that the number of hits that I get from dblp is always upper bounded by 30. Investigating this a bit I see that this is due to the dblp's interface which defaults to 30 hits. However, they have a parameter (called h) that allows for more hits. See here:

https://dblp.uni-trier.de/faq/13501473

I'd like to suggest that you add a variable that can be customized for this.
Many thanks!
Ron

@cpitclaudel
Copy link
Owner

This sounds like a good idea! And thanks for digging up the correct parameter. I wonder whether proper pagination wouldn't even be better, though. That is, the package should probably have a "more" link at the end of all results.

I don't have time for that more general feature, though; in fact, I don't really have time to implement a parameter that works for all backends, because I'd have to look at the docs of each backend. I do, however, have time to suggest the following trick:

(defun ~/biblio-dblp--url (query)
  "Create a DBLP url to look up QUERY (with 42 results)."
  (format "https://dblp.uni-trier.de/search/publ/api?h=%d&q=%s&&format=xml"
          42 (url-encode-url query)))

(advice-add 'biblio-dblp--url :override #'~/biblio-dblp--url)

Adding this to your .emacs should do it :) Does this help?

@rothblum
Copy link
Author

rothblum commented Feb 17, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants