Skip to content

Commit

Permalink
fix issue with page argument in fulltext search
Browse files Browse the repository at this point in the history
I don't want to be prompted with it, so I set it to nil
  • Loading branch information
Your Name committed Jan 15, 2024
1 parent 7bcbd7c commit 9bb3322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openalex.el
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ ${citations-image}
"Perform a fulltext search on QUERY.
PAGE is optional, and loads that page of results. Defaults to 1."
(interactive (list (read-string "Query: ")
(read-number "Page: ")))
nil))
(when (null page) (setq page 1))
(let* ((url (format "https://api.openalex.org/works?filter=fulltext.search:%s&page=%s&mailto=%s%s"
(url-hexify-string query)
Expand Down Expand Up @@ -827,6 +827,7 @@ Operates on headings with a DOI property."
bibfile))
"DOI<>\"\"")))


(provide 'openalex)

;;; openalex.el ends here

0 comments on commit 9bb3322

Please sign in to comment.