- with width = (with-helm-window (window-width))
- for entry in candidates
- for entry = (cdr entry)
- for entry-key = (helm-bibtex-get-value entry 'entry-key)
- for fields = (--map (helm-bibtex-clean-string
- (helm-bibtex-get-value entry it " "))
- '(author title year has-pdf has-note entry-type))
- for fields = (-update-at 0 'helm-bibtex-shorten-authors fields)
- for fields = (append fields
- (list (or (helm-bibtex-get-value entry 'keywords)
+ with width = (with-helm-window (helm-bibtex-window-width))
+ for entry in candidates
+ for entry = (cdr entry)
+ for entry-key = (helm-bibtex-get-value "=key=" entry)
+ if (assoc-string "author" entry 'case-fold)
+ for fields = '("author" "title" "year" "=has-pdf=" "=has-note=" "=type=")
+ else
+ for fields = '("editor" "title" "year" "=has-pdf=" "=has-note=" "=type=")
+ for fields = (--map (helm-bibtex-clean-string
+ (helm-bibtex-get-value it entry " "))
+ fields)
+ for fields = (-update-at 0 'helm-bibtex-shorten-authors fields)
+ for fields = (append fields
+ (list (or (helm-bibtex-get-value "keywords" entry)