;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\303\304\305\306\307DD\310\311\312\313\314&\207" [require biblio-core biblio-doi custom-declare-variable biblio-crossref-user-email-address funcall function #[0 "\300\207" [nil] 1] "Email address to include in CrossRef queries, or nil.\nCrossRef gives priority to queries that include an email address.\nSee URL `https://github.com/CrossRef/rest-api-doc#etiquette' for\nmore details." :group biblio :type (choice (const :tag "Do not include an email address." nil) (string :tag "Include an email address."))] 8) #@85 Forward BibTeX for CrossRef entry METADATA to FORWARD-TO. (fn METADATA FORWARD-TO) (defalias 'biblio-crossref--forward-bibtex #[514 "\300\301\302\"\"\207" [biblio-doi-forward-bibtex biblio-alist-get doi] 6 (#$ . 638)]) #@67 Format AFFILIATION for CrossRef search results. (fn AFFILIATION) (defalias 'biblio-crossref--format-affiliation #[257 "\300\301\302\303\"\304#\207" [mapconcat apply-partially biblio-alist-get name ", "] 5 (#$ . 866)]) #@57 Format AUTHOR for CrossRef search results. (fn AUTHOR) (defalias 'biblio-crossref--format-author #[257 "\211\300\236A\301\236A\302\236A\303\304\305\306!!$\207" [given family affiliation biblio-join " " biblio-parenthesize biblio-crossref--format-affiliation] 12 (#$ . 1092)]) #@63 Prepare a CrossRef search result ITEM for display. (fn ITEM) (defalias 'biblio-crossref--extract-interesting-fields #[257 "\211\300\236A\301\302\236A\236A\303\236A\304\236A\305\236A\306\236A\307\236A\310\236A\311 \236A\312\n\236A\313\nB\314\n\315H\315H\211\247\205D\316!\262B\303\317\320\321\322\"\323\321\322\"!#B\324\325\326 \"B\306 B\327 B\330\331\332C\f#B\311 B\333 B\257 \207" [DOI date-parts issued title subtitle author publisher container-title isbn type URL doi year 0 number-to-string biblio-join " " biblio-join-1 ", " biblio-parenthesize authors seq-map biblio-crossref--format-author container references seq-concatenate list url] 23 (#$ . 1382)]) #@48 Extract search results from CrossRef response. (defalias 'biblio-crossref--parse-search-results #[0 "\300\301!\210\302 \303\236A\304\305\236A\236A\306\230\204\307\310\311\"\210\312\313\"\207" [biblio-decode-url-buffer utf-8 json-read status items message "ok" display-warning biblio-crossref "CrossRef query failed" seq-map biblio-crossref--extract-interesting-fields] 6 (#$ . 2080)]) #@53 Create a CrossRef url to look up QUERY. (fn QUERY) (defalias 'biblio-crossref--url #[257 "\301\302\303!\203\301\304\303!\"\202\305#\207" [biblio-crossref-user-email-address format "https://api.crossref.org/works?query=%s%s" url-encode-url "&mailto=%s" ""] 8 (#$ . 2477)]) #@117 A CrossRef backend for biblio.el. COMMAND, ARG, MORE: See `biblio-backends'. (fn COMMAND &optional ARG &rest MORE) (defalias 'biblio-crossref-backend #[641 "\300\267\202\301\207\302\207\303!\207\304 \207\305@\"\207\306\307\310\"\207\311\207" [#s(hash-table size 6 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (name 6 prompt 8 url 10 parse-buffer 14 forward-bibtex 17 register 23)) "CrossRef" "CrossRef query: " biblio-crossref--url biblio-crossref--parse-search-results biblio-crossref--forward-bibtex add-to-list biblio-backends biblio-crossref-backend nil] 6 (#$ . 2764)]) (add-hook 'biblio-init-hook 'biblio-crossref-backend) #@79 Start a CrossRef search for QUERY, prompting if needed. (fn &optional QUERY) (defalias 'biblio-crossref-lookup #[256 "\300\301\"\207" [biblio-lookup biblio-crossref-backend] 4 (#$ . 3425) nil]) (byte-code "\300\301\302\"\210\303\304!\207" [defalias crossref-lookup biblio-crossref-lookup provide biblio-crossref] 3)