Git Product home page Git Product logo

Comments (5)

tmalsburg avatar tmalsburg commented on June 12, 2024

I would use tags for that. Specifically you could use tags named high-impact / low-impact and high-citation / low-citation. It's not great though, because impact factors and citations change over time, so the maintenance cost for your bibliography would be high. But there is nothing that helm-bibtex can do to prevent that.

from helm-bibtex.

llcc avatar llcc commented on June 12, 2024

Hi, @tmalsburg

I finally made it to get cited number from google scholar, and insert them in the bibtex entry, like:

@article{hashi-1996-study-si-fe,
  author =   {S. Hashi and K. Ishiyama and K.I. Arai and
                  M. Kawasaki and Y. Yamashiro},
  title =    {Study on the Deformation of 3%si-Fe Single Crystal
                  With Magnetic Field Being Deviated From [001]},
  citation =  38 ,
  journal =  {IEEE Transactions on Magnetics},
  volume =   32,
  number =   5,
  pages =    {4848-4850},
  year =     1996,
  doi =      {10.1109/20.539172},
  url =      {http://dx.doi.org/10.1109/20.539172},
  date_added =   {Tue Jun 2 09:08:08 2015},
}

I want to add them (citation field) to the helm-bibtex window. I tried to modify helm-bibtex-candidates-formatter function to meet my need, but no success to show them.
Can you correct it for me?

(defun helm-bibtex-candidates-formatter (candidates source)
  "Formats BibTeX entries for display in results list."
  (cl-loop
   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" "citation" "=has-pdf=" "=has-note=" "=type=")
   else
   for fields = '("editor" "title" "year" "citation" "=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)
   collect
   (cons (s-format "$0 $1 $2 $3 $4 $5 $6" 'elt
                   (-zip-with (lambda (f w) (truncate-string-to-width f w 0 ?\s))
                              fields (list 35 (- width 58) 4 3 1 1 7)))
         entry-key)))

from helm-bibtex.

tmalsburg avatar tmalsburg commented on June 12, 2024

Sorry, @llcc, I don't have any time at all currently. From quickly glancing at your code, the approach looks reasonable. Perhaps a good opportunity for you to learn how to debug elisp?

from helm-bibtex.

llcc avatar llcc commented on June 12, 2024

@tmalsburg Thanks, I did it by adding the bibtex field to helm-bibtex-additional-search-fields. Now I achieve everything I need, so I think I can close this issue.

Regrading to the impact factor and cited number, I will share the relevant snippet later.

from helm-bibtex.

tmalsburg avatar tmalsburg commented on June 12, 2024

Excellent! Glad to hear that you could make it work.

from helm-bibtex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.