HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.42k stars 2.91k forks source link

Import publication list from BibTeX #146

Closed johnghill closed 6 years ago

johnghill commented 7 years ago

Unless I am mistaken users have to manually populate half a dozen fields for each new publication created in content/publication/. Most users will already have this data stored in other structured formats such as BibTeX. Would it be possible to...

  1. Parse publications from a user supplied .bib file, perhaps also allowing users to specify which @bibtexkeys are promoted?
  2. Grab such a list from the ORCID, Google Scholar or Mendeley handles given in config.toml ?
gcushen commented 7 years ago

I have already developed a Python script for importing publications from BibTeX, but didn't get around to documenting and publishing it on Github yet. I will try to crack on and finish it shortly - and provide updates in this thread. It's possible I might try to port it to Go in the future so that it's a stand alone binary like Hugo.

By 'promoted', I assume you are referring to flagging it as a selected publication?

Regarding point 2, I have also considered importing publications from Google Scholar - this could be a nice area for future development of the script.

It would be great to get feedback on these points from other users too.

nipunarora commented 7 years ago

This would be a great idea. It would be even better if the abstract can be imported as well, along with the bibtext... but that's not a must-have

kepiej commented 7 years ago

This would come in handy! At the moment I use bibtex2html to generate a html file containing all publications. (It also allows to filter on a given criteria such as the type of publication) I then load in this html file into my website using an iframe.

It would be great if this was supported out of the box! :-)

wcornwell commented 7 years ago

I'm not using the theme yet, but it looks great. The functionality in either (1) or (2) would be a pretty big draw for me to switch to this system.

HughP commented 7 years ago

@gcushen Any pointers to that python script yet? It seems to me that a script to convert from bibtex or zotero XML should be really important to a lot of users.

HughP commented 7 years ago

@gcushen have you seen this work yet? https://github.com/noinil/hugo-academic/commit/c4e3d4cacc0506d96534510ee6993a560fe6c9c3 in looking at the commit trail, It doesn't look like it got merged back in.

mcoster commented 7 years ago

That sure would save some time! Any news on the python script? Python familiarity is pretty widespread in academia these days, so I'm sure there would be many hugo-academic users who would find this type of script useful.

mcoster commented 7 years ago

I created a rough python script for this that suited my own needs. May or may not be useful to others. My first gist!

bdarcus commented 7 years ago

Is there no decent go-native bibtex parser you can use; say this one?

apetros commented 7 years ago

Hi, I made a python script for my own use. I hope you find it useful: https://github.com/apetros/parse_bib

Feel free to comment or modify the code. Cheers.

andrewfowlie commented 6 years ago

Hi all,

you may also be interested in this script for scraping articles (titles, authors, abstracts, urls etc) from the arXiv into your webpage,

https://gist.github.com/andrewfowlie/4e556851384c35f2031b080341f70d19

msaharia commented 6 years ago

Hi, what is the status of bibtex support in Hugo? Or atleast a script to convert?

petzi53 commented 6 years ago

At the moment only APA and MLA citation styles are allowed. It would be nice if there is a possibility to include all 8000 styles via the Citation Style Language (CSL): For instance with Zotero, Mendeley or other free tools.

petzi53 commented 6 years ago

I had to transfer 190 publications from my old WordPress website to the new (& still under construction) Academic website. This motivated me to write my first R package bib2academic to automate the conversion process. You can see the result here.

Maybe this is of help for other users of the Academic framework with a R/blogdown installation as well. You can install the package with: devtools::install_github("petzi53/bib2academic", build_vignettes = TRUE)

HughP commented 6 years ago

@petzi53 That install advice is great if one uses R to do their install work. do you have any suggestions if one uses pure git?

petzi53 commented 6 years ago

@HughP The program is written in R. So you would need a R/blogdown installation. Sorry for not mentioned this limitation. I clarified my announcement in this sense.

fmmattioni commented 6 years ago

@petzi53 you are a hero!

gcushen commented 6 years ago

Closing as the Academic admin tool is now available at https://github.com/sourcethemes/academic-admin

pat-s commented 5 years ago

I just came across Bibbase and use it now for automated importing using Zotero. -> Example

renanxcortes commented 5 years ago

I had to transfer 190 publications from my old WordPress website to the new (& still under construction) Academic website. This motivated me to write my first R package bib2academic to automate the conversion process. You can see the result here.

Maybe this is of help for other users of the Academic framework with a R/blogdown installation as well. You can install the package with: devtools::install_github("petzi53/bib2academic", build_vignettes = TRUE)

I highlight again that you are a hero, @petzi53! BTW, what's the GitHub code of this website you're mentioning?

petzi53 commented 5 years ago

Thanks for the nice feedback. I tried 3 times to upload the bib2academic packages to CRAN, but every time it was rejected because of some issue not complying with their rules. I decided it didn't pay further effort especially as I believe that @gcushen has provided his own version of conversion tool.

(I am not sure about @gcushen conversion routine and I do not know if it is a full replacement to my R package. I have changed to another theme several months ago: The academic theme had -at least for me - too many many breaking changes. I was more occupied to be on top of the latest release than in writing my blog entries.)

gustavo-etal commented 4 years ago

How can I fix the panel for pubs? 2020 list of pub 2019 list of pub?

best you are the man petzi53