zzossig / hugo-theme-zzo

Make a blog with hugo zzo theme!
https://themes.gohugo.io//theme/hugo-theme-zzo/en/
MIT License
737 stars 257 forks source link

feature request: support .bib/publications #138

Closed brimwats1 closed 4 years ago

brimwats1 commented 4 years ago

Hello!

The only reason I can't fully jump to zzo theme over a theme like Academic or Academia is because I need support for the publications import, which allows a bib file with publications to be imported.

It's documented here: https://sourcethemes.com/academic/docs/managing-content/#create-a-publication

Could this possibly be added as an external library? I tried to do that but the documentation wasn't super clear...and I'll admit that I didn't know what library they were using to do that :(

zzossig commented 4 years ago

Ok, I'll investigate what is the publications import and how to implement it

brimwats1 commented 4 years ago

thank you so much! I really appreciate it <3

zzossig commented 4 years ago

We can keep open until I do something on it

zzossig commented 4 years ago

I have a question. I have tested the academic theme's publication.

This is my .bib file

@article{einstein,
    author =       "Albert Einstein",
    title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
        [{On} the electrodynamics of moving bodies]",
    journal =      "Annalen der Physik",
    volume =       "322",
    number =       "10",
    pages =        "891--921",
    year =         "1905",
    DOI =          "http://dx.doi.org/10.1002/andp.19053221004"
}

and this is generated file

---
title: "Zur Elektrodynamik bewegter Körper. (German) [On the electrodynamics of moving bodies]"
date: 1905-01-01
publishDate: 2020-02-02T11:01:06.766549Z
authors: ["Albert Einstein"]
publication_types: ["2"]
abstract: ""
featured: false
publication: "*Annalen der Physik*"
doi: "http://dx.doi.org/10.1002/andp.19053221004"
---

This is what you expected behavior? It just generates the front matter, not the content. If it does not generate the content, why do we need it?

I want to see what is the expected behavior when we import the .bib file. Can you provide me some example .bib file?

brimwats1 commented 4 years ago

The script takes a .bib file, and knows to create Talks, Presentations, Publications, and creates those automatically, adding them into the specific category.

It also knows to add the files, links, source documents or slideshows as needed.

examples with files attached: https://brimwats.com/publication/watson-still-chilling-censorship-2019/ https://brimwats.com/talk/queer-as-data/

On the site:

https://brimwats.com/publication/ https://brimwats.com/#projects https://brimwats.com/talk/

I also uploaded the files so you can take a look at the backend, take a look here (for this I just searched .bib, so lmk if you want a specific one) https://drive.google.com/drive/folders/1zITl3OEaSK2sZ4wCsDmFJLRtu3_q9mEx?usp=sharing

Here's my .bib file from Zotero.

@article{watsonHomosaurusDigitalTransgender2019,
    title = {Homosaurus and {Digital} {Transgender} {Archive}},
    copyright = {All rights reserved},
    url = {http://reviews.americanarchivist.org},
    journal = {SAA Reviews Portal},
    author = {Watson, Brian M.},
    month = jun,
    year = {2019},
    keywords = {⛔ No DOI found},
    file = {Watson_2019--Homosaurus_and_Digital_Transgender_Archive.pdf:C\:\\Users\\Brian\\Box Sync\\Academic\\ReadZotStorage\\Watson_2019--Homosaurus_and_Digital_Transgender_Archive.pdf:application/pdf}
}

@misc{watsonPoisonMoreDeadly2016,
    title = {“{A} {Poison} {More} {Deadly}”: {Defining} {Obscenity} in the {West}},
    copyright = {All rights reserved},
    shorttitle = {“{A} {Poison} {More} {Deadly}”},
    url = {http://notchesblog.com/2016/05/10/a-poison-more-deadly-defining-obscenity-in-the-west/},
    abstract = {Under the scrutiny of the British legal system, no work was safe from being deemed obscene.},
    language = {en-GB},
    urldate = {2018-12-02},
    journal = {NOTCHES},
    author = {Watson, Brian M.},
    month = may,
    year = {2016},
    note = {00000},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\A6HCTYR9\\a-poison-more-deadly-defining-obscenity-in-the-west.html:text/html}
}

@misc{watsonVictorianSecret2017,
    title = {The {Victorian} with a {Secret}},
    copyright = {All rights reserved},
    url = {http://notchesblog.com/2017/12/12/the-archetypical-victorian-with-a-secret-henry-spencer-ashbee/},
    abstract = {One man's private collection of Victorian pornography is now an important historical source.},
    language = {en-GB},
    urldate = {2018-12-02},
    journal = {NOTCHES},
    author = {Watson, Brian M.},
    month = dec,
    year = {2017},
    note = {00000},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\QXCN7HX2\\the-archetypical-victorian-with-a-secret-henry-spencer-ashbee.html:text/html}
}

@misc{watsonFOSTASESTALibraries2019,
    title = {{FOSTA}/{SESTA} and {Libraries}},
    copyright = {All rights reserved},
    url = {https://hacklibraryschool.com/2019/01/16/fosta-sesta-and-libraries/},
    abstract = {Tumblr and Facebook’s decisions to censor and remove any adult or erotic material on their platforms has set the internet atwitter (pun intended). There were, of course, thinkpieces lauding or decr…},
    language = {en},
    urldate = {2019-03-10},
    journal = {Hack Library School},
    author = {Watson, Brian},
    month = jan,
    year = {2019},
    note = {00000},
    keywords = {\#nosource}
}

@misc{watsonNCOSEDirtyDozen2019,
    title = {{NCOSE}’s {Dirty} {Dozen} {Censorship}},
    copyright = {All rights reserved},
    url = {https://www.oif.ala.org/oif/?p=17203},
    abstract = {The National Center on Sexual Exploitation has included the American Library Association on their annual "Dirty Dozen" list of sexual exploitation enablers. You might be led to believe that the ALA was promoting open, free, and unfettered access to pornography—it’s not. Instead, NCOSE is targeting something alltogether different--the freedom of library patrons.},
    language = {en-US},
    urldate = {2019-10-21},
    journal = {Intellectual Freedom Blog},
    author = {Watson, Brian},
    month = mar,
    year = {2019},
    note = {Citation Key Alias: watsonNCOSEDirtyDozen2019a},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\BPPG8U9K\\oif.html:text/html;Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\JFSCCRFF\\oif.html:text/html}
}

@book{watsonAnnalsPornographieHow2017,
    title = {Annals of {Pornographie}: {How} {Porn} {Became} {Bad}},
    copyright = {All rights reserved},
    isbn = {978-1-311-04245-3},
    shorttitle = {Annals of {Pornographie}},
    abstract = {This is a revised and updated edition of the book, including more recent information, footnotes, a bibliography, page numbers (print edition) and more beautiful fonts! In a groundbreaking reappraisal of European history, award-winning historian Brian M. Watson gives the secret history of smut through the literature, art, photography, and historical figures you didn’t learn about in school. Watson combs the bawdy and forgotten corners of Western civilization to reveal the hidden story of a topic that still causes anger, arousal, excitement and scandal. Combining an entertaining style with brand-new research, Annals of Pornographie: How Porn Became Bad explores not only the salacious history of pornography, but also explains the evolution of Western sexuality, the ‘creation’ of privacy (and public life), and the ‘invention of manners.’ The book analyzes Western culture’s tortured and rapturous relationship with erotic representation by probing the underside of its culture, art, literature, philosophy, sexology, psychology and its law. Covering everything from the fifteenth century Renaissance all the way up to the twentieth century Playboy magazine, Watson takes the reader on a grand tour of the forgotten debauchery of Western history. Along the way, we meet a variety of colorful characters who rarely get their historical due: Lord Rochester, the royal Pimp; Pietro Aretino, the Renaissance godfather of pornography; Edmund Curll, the first Hugh Hefner; along with many other tax-dodging street pornographers and radicals who roamed the streets of London, Paris, New York, and other major metropoles. Watson takes us from the hallowed halls of the Council of Trent, where Popes and kings fought over the future of the west, to Grub Street, a narrow and disgusting London alley filled with hack writers, aspiring poets and pushers of dirty French pictures and many other sights and sounds from Western Civilization’s glorious and seedier locales.Annals of Pornographie: How Porn Became Bad reveals, for the first time, exactly how pornography went from being beautiful to being bad.},
    language = {English},
    publisher = {Self-Published},
    author = {Watson, Brian M.},
    month = jun,
    year = {2017}
}

@mastersthesis{watsonSocietyViceSuppression2013,
    address = {Madison, New Jersey},
    title = {Society, {Vice}, and {Suppression}: {The} {Historical} {Creation} of {Pornography} in {England}, 1750-1850},
    copyright = {All rights reserved},
    url = {https://walter.drew.edu/ETD/CSGS/MA/2013/Watson/},
    urldate = {2019-11-09},
    school = {Drew University},
    author = {Watson, Brian M.},
    year = {2013},
    file = {Drew University Library \: ETDs:C\:\\Users\\Brian\\Zotero\\storage\\DRDG3ABP\\Watson.html:text/html}
}

@incollection{watsonQueerBeginningsFanzines2019,
    address = {Lexington, Kentucky},
    title = {Queer {Beginnings}: {From} {Fanzines} to {Rule} 34},
    copyright = {All rights reserved},
    url = {https://rowman.com/ISBN/9781498590860/Representing-Kink-Fringe-Sexuality-and-Textuality-in-Literature-Digital-Narrative-and-Popular-Culture},
    abstract = {Representing Kink raises awareness about nonnormative texts and erotic practices and desires through engagement with marginalized texts, practices, and ways of reading. It offers kinky readings of...},
    language = {en-us},
    urldate = {2019-11-26},
    booktitle = {Representing {Kink}: {Fringe} {Sexuality} and {Textuality} in {Literature}, {Digital} {Narrative}, and {Popular} {Culture}},
    publisher = {Lexington Books},
    author = {Watson, Brian M. and Derie, Bobby},
    editor = {Howe, Sara K. and Cook, Susan E.},
    year = {2019},
    pages = {67--81},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\26D3S4DU\\Representing-Kink-Fringe-Sexuality-and-Textuality-in-Literature-Digital-Narrative-and-Popular-C.html:text/html}
}

@misc{watsonSubjectsChainsLinked2019,
    address = {Lawrence, Kansas},
    type = {Conference {Oral} {Presentation}},
    title = {Subjects {In} {Chains}: {Linked} {Data} {Vocabularies} and {Sexual} {Liberation}},
    copyright = {All rights reserved},
    author = {Watson, Brian M.},
    month = oct,
    year = {2019},
    keywords = {\#nosource}
}

@misc{watsonQueerDataLinked2019,
    address = {Bloomington, IN},
    type = {Presentation},
    title = {Queer as {Data}: {Linked} {Data} and {Minoritized} {Digital} {Archives}},
    copyright = {All rights reserved},
    author = {Watson, Brian M.},
    month = sep,
    year = {2019},
    keywords = {\#nosource}
}

@article{watsonWIPBlueLaws2021,
    title = {[{WIP}] {Blue} {Laws}, {Blue} {Books}: {E}. {Haldeman}-{Julius} \& {American} {Sexual} {Knowledge} before {Kinsey}},
    copyright = {All rights reserved},
    abstract = {a book history-focused paper that examines the underexamined Haldemann-Julius company and their sexological publications.},
    author = {Watson, Brian M.},
    year = {2021},
    keywords = {⛔ No DOI found, \#nosource}
}

@incollection{watsonForthcomingHellfireCannibals2020,
    address = {Edinburgh},
    title = {[{Forthcoming}] “{Hellfire} and {Cannibals}: 18th and 19th {Century} {Erotic} {Reading} {Groups} and {Their} {Manuscripts}.”},
    booktitle = {Edinburgh {History} of {Reading}},
    publisher = {Edinburgh University Press},
    author = {Watson, Brian M.},
    year = {2020},
    keywords = {\#nosource}
}

@article{watsonForthcomingUtopianPotentiality2020,
    title = {[{Forthcoming}] {Utopian} {Potentiality}: {Histories} of {Polyamory} and {Non}-{Monogamy}},
    copyright = {All rights reserved},
    abstract = {We present the results of an investigation into the biographies, letters and archives of approximately 50 well-known figures in Western intellectual and artistic history in the post-Enlightenment era. In this article, biographies and partners of Virginia Woolf, Max Weber, Edna St. Vin-cent Millay, William Moulton Marston, Erwin Schrodinger, and Victor Hugo are mentioned. While some of these non-monogamous relationships are well-known, much of the evidence of their existence has been ignored, misrecognized, or intentionally obscured. The results of this survey demonstrate that contemporary patterns of non-monogamies are deeply rooted in historical precedence.},
    journal = {Archives of Sexual Behavior},
    author = {Watson, Brian M. and Stein-Lubrano, Sarah},
    year = {2020},
    keywords = {⛔ No DOI found, \#nosource}
}

@article{watsonForthcomingMindGap2020,
    title = {[{Forthcoming}] {Mind} the {Gap}: {Sexology} and {Library} of {Congress} {Classification} of {Erotica}, {Pornography}, {Families} and {Children}.},
    copyright = {All rights reserved},
    abstract = {Forthcoming article in special issue of Social Text edited by Joan Lubin and Jeanne Vacchario discussing Class H and the placement of Erotica and Children.},
    journal = {Social Text},
    author = {Watson, Brian M.},
    year = {2020},
    keywords = {⛔ No DOI found, \#nosource}
}

@article{watsonReviewFindingAid2020,
    title = {[{Under} {Review}] {A} {Finding} {Aid} to the {Pornographic} {Imaginary}: {Implications} of {Amateur} {Classifications} on/by reddit’s {NSFW} 411},
    copyright = {All rights reserved},
    abstract = {A research paper on the development of sexual hierarchal and classification systems on Reddit and elsewhere.},
    author = {Watson, Brian M.},
    year = {2020},
    keywords = {⛔ No DOI found, \#nosource}
}

@article{watsonWIPTransNaming2020,
    title = {[{WIP}] ({Trans}) {Naming}},
    copyright = {All rights reserved},
    abstract = {A research article on how libraries and archives have dealt with trans* and crossdressing names, as well as the choice of the author in cataloging individual’s names..},
    author = {Watson, Brian M.},
    year = {2020},
    keywords = {⛔ No DOI found, \#nosource}
}

@article{watsonReviewStuntedEven2020,
    title = {[{Under} {Review}] “{Stunted} even unto {Asexuality}:” {The} {History} and {Classification} of {Asexuality} in {LCSH}},
    copyright = {All rights reserved},
    abstract = {A study of the recent addition of ‘asexuality’ to the Library of Congress Subject Headings. Drawing on historians of sexuality, feminist and asexual theory, and medical scholarship, I argue that this is a grave oversight. Throughout this essay, I also argue for the consideration of a new movement of critical catalogers (or \#critlib).},
    author = {Watson, Brian M.},
    year = {2020},
    keywords = {⛔ No DOI found, \#nosource}
}

@article{watsonLibraryPrivacyPrimer2019,
    title = {A {Library} {Privacy} {Primer}},
    copyright = {All rights reserved},
    url = {https://americanlibrariesmagazine.org/blogs/the-scoop/library-privacy-primer/},
    abstract = {With her colleague Kathleen Ross, head of technical services at St. John Fisher College’s Lavery Library, Greco presented “Library Confidentiality: Your Privacy is Our Business,” a comprehensive primer on privacy and libraries, at the American Library Association’s 2019 Annual Conference and Exhibition in Washington, D.C. In the first of many audience engagement moments, Ross and … Continue reading A Library Privacy Primer →},
    language = {en-US},
    urldate = {2019-12-13},
    journal = {American Libraries Magazine},
    author = {Watson, Brian M.},
    month = jun,
    year = {2019},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\GDUBI97F\\library-privacy-primer.html:text/html}
}

@article{watsonStillChillingCensorship2019,
    title = {Still {Chilling}: {Censorship} {Beyond} {Banned} {Books}},
    copyright = {All rights reserved},
    shorttitle = {Still {Chilling}},
    url = {https://americanlibrariesmagazine.org/blogs/the-scoop/still-chilling-censorship-beyond-banned-books/},
    abstract = {Kristin Pekoll, Assistant Director of ALA Office for Intellectual Freedom (OIF) began the session by announcing that OIF had recorded 531 affected items in 2018—which is a step beyond just challenges. These items included books films, board games, video games, magazines and much more. Sarah Ward, outreach librarian at Hunter College Libraries in New York … Continue reading Still Chilling: Censorship Beyond Banned Books →},
    language = {en-US},
    urldate = {2019-12-13},
    journal = {American Libraries Magazine},
    author = {Watson, Brian M.},
    month = jun,
    year = {2019},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\VBZ3N3Y7\\still-chilling-censorship-beyond-banned-books.html:text/html}
}

@article{watsonIntellectualFreedom1012019,
    title = {Intellectual {Freedom} 101},
    copyright = {All rights reserved},
    url = {https://americanlibrariesmagazine.org/blogs/the-scoop/intellectual-freedom-101/},
    abstract = {If the purpose of Intellectual Freedom 101, held Friday afternoon, was to get the conference off to a lively start, it was successful. The fast-paced, one-hour panel let attendees learn about the intellectual freedom activities ALA and its affiliates are working on and how they are defending First Amendment rights. Office for Intellectual Freedom (OIF) … Continue reading Intellectual Freedom 101 →},
    language = {en-US},
    urldate = {2019-12-13},
    journal = {American Libraries Magazine},
    author = {Watson, Brian M.},
    month = jun,
    year = {2019},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\IQK2W6FE\\intellectual-freedom-101.html:text/html}
}

@misc{watsonUsingPodcastsVideos2019,
    title = {Using {Podcasts} and {Videos} for {Scholarly} {Communication}},
    copyright = {All rights reserved},
    url = {https://blogs.libraries.indiana.edu/scholcomm/2019/03/20/oapodcast/},
    language = {en-US},
    urldate = {2019-12-13},
    journal = {Indiana University Bloomington Scholarly Communication},
    author = {Watson, Brian M.},
    month = mar,
    year = {2019},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\J5CPA6FA\\oapodcast.html:text/html}
}

@misc{watsonPublishingYourDissertation2019,
    title = {Publishing {Your} {Dissertation} {Open} {Access}},
    copyright = {All rights reserved},
    url = {https://blogs.libraries.indiana.edu/scholcomm/2019/02/14/publishing-your-dissertation-open-access/},
    language = {en-US},
    urldate = {2019-12-13},
    journal = {Indiana University Bloomington Scholarly Communication},
    author = {Watson, Brian M.},
    month = feb,
    year = {2019},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\I49U6XNZ\\publishing-your-dissertation-open-access.html:text/html}
}

@misc{watsonCOAlitionFutureResearch2018,
    title = {{cOAlition} {S}: {The} {Future} of {Research}},
    copyright = {All rights reserved},
    shorttitle = {{cOAlition} {S}},
    url = {https://blogs.libraries.indiana.edu/scholcomm/2018/10/29/coalition-s-the-future-of-research/},
    language = {en-US},
    urldate = {2019-12-13},
    journal = {Indiana University Bloomington Scholarly Communication},
    author = {Watson, Brian M.},
    month = oct,
    year = {2018},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\IKDRFJWX\\coalition-s-the-future-of-research.html:text/html}
}

@misc{watsonOpenAccessWeek2018,
    title = {Open {Access} {Week} 2018!},
    copyright = {All rights reserved},
    url = {https://blogs.libraries.indiana.edu/scholcomm/2018/10/22/open-access-week-2018/},
    language = {en-US},
    urldate = {2019-12-13},
    journal = {Indiana University Bloomington Scholarly Communication},
    author = {Watson, Brian M.},
    month = oct,
    year = {2018},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\K3GADUFG\\open-access-week-2018.html:text/html}
}

@misc{watsonRaunchyWorldEdmund2015,
    title = {The {Raunchy} {World} of {Edmund} {Curll}},
    copyright = {All rights reserved},
    url = {https://www.madamegilflurt.com/2015/06/the-raunchy-world-of-edmund-curll.html},
    abstract = {Glorious Georgian dispatches from the long 18th century...},
    urldate = {2019-12-13},
    journal = {Madame Giliflurt's Guide},
    author = {Watson, Brian M.},
    month = jun,
    year = {2015},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\QEELS5RS\\the-raunchy-world-of-edmund-curll.html:text/html}
}

@misc{watsonWhereDidIdeas2017,
    title = {Where did the ideas of homosexuality and heterosexuality come from?},
    copyright = {All rights reserved},
    url = {https://www.pornhub.com/sex/where-did-the-ideas-of-homosexuality-and-heterosexuality-come-from/},
    urldate = {2019-12-13},
    author = {Watson, Brian M.},
    year = {2017},
    file = {Where did the ideas of homosexuality and heterosexuality come from?:C\:\\Users\\Brian\\Zotero\\storage\\IJAY2A4V\\where-did-the-ideas-of-homosexuality-and-heterosexuality-come-from.html:text/html}
}

@misc{watsonHowDidPorn2017,
    title = {How did porn become porn?},
    copyright = {All rights reserved},
    url = {https://www.pornhub.com/sex/how-did-porn-become-porn/},
    urldate = {2019-12-13},
    journal = {PornHub's Sexual Wellness Blog},
    author = {Watson, Brian M.},
    year = {2017},
    file = {How did porn become porn?:C\:\\Users\\Brian\\Zotero\\storage\\DJJ82CGN\\how-did-porn-become-porn.html:text/html}
}

@misc{watsonPornHistorianBrian2016,
    title = {Porn {Historian} {Brian} {Watson} {Explains} {Balloon} {Porn}, 17th-{Century} {Dildos} in {Reddit} {AMA}},
    copyright = {All rights reserved},
    url = {https://redditblog.com/2016/03/22/porn-historian-brian-watson-explains-balloon-porn-17th-century-dildos-in-reddit-ama/},
    abstract = {He calls himself "Reddit's resident historian of pornography"—and now he's got the book to prove it.  After debuting his first tome—a well-researched romp through "the bawdy and forgotten corners of Western civilization"—Brian Watson (username vertexoflife) invited redditors},
    language = {en},
    urldate = {2019-12-13},
    journal = {Upvoted},
    author = {Watson, Brian M. and {reddit}},
    month = mar,
    year = {2016},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\B6IKRYKK\\porn-historian-brian-watson-explains-balloon-porn-17th-century-dildos-in-reddit-ama.html:text/html}
}

@misc{watsonHistoryDildo2017,
    title = {History {Of} {The} {Dildo}},
    copyright = {All rights reserved},
    url = {https://www.pornhub.com/sex/history-of-the-dildo/},
    urldate = {2019-12-13},
    journal = {PornHub's Sexual Wellness Blog},
    author = {Watson, Brian M.},
    year = {2017},
    file = {History Of The Dildo:C\:\\Users\\Brian\\Zotero\\storage\\WEMUMPKC\\history-of-the-dildo.html:text/html}
}

@misc{watsonHistoryCondom2017,
    title = {A {History} of the {Condom}},
    copyright = {All rights reserved},
    url = {https://www.pornhub.com/sex/a-history-of-the-condom/},
    urldate = {2019-12-13},
    journal = {PornHub's Sexual Wellness Blog},
    author = {Watson, Brian M.},
    year = {2017},
    file = {A History of the Condom:C\:\\Users\\Brian\\Zotero\\storage\\9ZG2I9D8\\a-history-of-the-condom.html:text/html}
}

@misc{watsonWhyWhenDid2017,
    title = {Why and {When} {Did} {Masturbation} {Become} an {Issue}?},
    copyright = {All rights reserved},
    url = {https://www.pornhub.com/sex/why-and-when-did-masturbation-become-an-issue/},
    urldate = {2019-12-13},
    journal = {PornHub's Sexual Wellness Blog},
    author = {Watson, Brian M.},
    year = {2017},
    file = {Why and When Did Masturbation Become an Issue?:C\:\\Users\\Brian\\Zotero\\storage\\VZWN7I89\\why-and-when-did-masturbation-become-an-issue.html:text/html}
}

@misc{clutterbuck-cookBookReviewAnnals2016,
    title = {Book {Review}: {Annals} of {Pornographie}},
    copyright = {All rights reserved},
    shorttitle = {Book {Review}},
    url = {https://medhumdosis.com/2016/11/23/book-review-annals-of-pornographie/},
    abstract = {Review by Katelyn Smith In his first full-length book, Annals of Pornographie: How Porn Became Bad (2016), Brian Watson traces the long history of pornography in the West, reiterating throughout hi…},
    language = {en},
    urldate = {2019-12-13},
    journal = {Dósis},
    author = {Clutterbuck-Cook, Anna and Watson, Brian M.},
    month = nov,
    year = {2016},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\USK7I5LA\\book-review-annals-of-pornographie.html:text/html}
}

@misc{galInterviewBrianWatson2018,
    title = {Interview with {Brian} {M}. {Watson}},
    copyright = {All rights reserved},
    url = {https://historygal.info/2018/02/22/interview-with-brian-m-watson/},
    abstract = {A while ago I had the opportunity to interview Brian M. Watson, historian of obscenity and pornography.},
    language = {en},
    urldate = {2019-12-13},
    journal = {History Gal},
    author = {Gal, History},
    collaborator = {Watson, Brian M.},
    month = feb,
    year = {2018},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\ATNMDHWX\\interview-with-brian-m-watson.html:text/html}
}

@article{watsonEthicalQuestionsName2019,
    title = {Ethical {Questions} in {Name} {Authority} {Control}},
    volume = {57},
    copyright = {All rights reserved},
    issn = {0163-9374},
    url = {https://doi.org/10.1080/01639374.2019.1673524},
    doi = {10/ggfg42},
    number = {7-8},
    urldate = {2019-12-13},
    journal = {Cataloging \& Classification Quarterly},
    author = {Watson, Brian M.},
    month = nov,
    year = {2019},
    pages = {547--549},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\8V97ZMER\\01639374.2019.html:text/html;Watson_2019--Ethical_Questions_in_Name_Authority_Control.pdf:C\:\\Users\\Brian\\Box Sync\\Academic\\ReadZotStorage\\Watson_2019--Ethical_Questions_in_Name_Authority_Control.pdf:application/pdf}
}

@article{watsonCrossdressingCrossculture2018,
    title = {Crossdressing, {Crossculture}},
    copyright = {Copyright (c) 2018 Metamorphosis},
    url = {https://metamorphosis.coplac.org/index.php/metamorphosis/article/view/140},
    abstract = {The 'issue' of crossdressing, in a very real sense, can be used as a common ground on which to explore Spanish and English cultures in three dimensions: the understanding of crossdressing on stage by authority figures and public audiences, its use as a literary device within popular plays of the era such as William Shakespeare's As You Like It and Pedro Calderon de la Barca's Life is a Dream. Finally, an examination of crossdressing allows understanding of its use by actual historical figures such as Mary Firth (i.e. Moll Cutpurse) in England and Catalina de Erauso (i.e. La Monja Alferez or the Lieutenant Nun).
Faculty Mentor: N/A},
    language = {en},
    urldate = {2019-12-13},
    journal = {Metamorphosis},
    author = {Watson, Brian},
    month = jun,
    year = {2018},
    keywords = {⛔ No DOI found},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\HQ4Q5WLB\\140.html:text/html;Watson_2018--Crossdressing,_Crossculture.pdf:C\:\\Users\\Brian\\Box Sync\\Academic\\ReadZotStorage\\Watson_2018--Crossdressing,_Crossculture.pdf:application/pdf}
}

@misc{watsonFutureFreeCollecting2019,
    title = {The {Past} \& {Future} of {Free} {Collecting} with {Liana} {Zhou}, {Kinsey} {Institute}},
    copyright = {All rights reserved},
    url = {https://www.oif.ala.org/oif/?p=17522},
    abstract = {Liana Zhou, Director of the Library and Special Collections of the Kinsey Institute, shares her story and discusses the past, present, and future of the Kinsey Institute, sexuality, archiving, and intellectual freedom.},
    language = {en-US},
    urldate = {2019-12-13},
    journal = {Intellectual Freedom Blog},
    author = {Watson, Brian},
    month = apr,
    year = {2019},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\7AAGZD6B\\oif.html:text/html}
}

@misc{watsonInterviewSnowdenBecker2019,
    title = {An {Interview} {With} {Snowden} {Becker}. “{Keeping} the {Pieces}:” {Police} {Work} and {Documentation}},
    copyright = {All rights reserved},
    shorttitle = {An {Interview} {With} {Snowden} {Becker}. “{Keeping} the {Pieces}},
    url = {https://www.oif.ala.org/oif/?p=18094},
    abstract = {Bodycams, First Amendment, Live PD, law and order: police work has been in the news a lot lately, and I have been thinking about how the police order, organize, and control all of that information when literal life and freedom are on the line. I sat down with Snowden Becker, formerly of UCLA, and a researcher into police archives and work to talk about these topics and intellectual freedom.},
    language = {en-US},
    urldate = {2019-12-13},
    journal = {Intellectual Freedom Blog},
    author = {Watson, Brian},
    month = jun,
    year = {2019},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\V7WKB8M5\\oif.html:text/html}
}

@misc{watsonHappyBirthdayMarquis2019,
    title = {Happy {Birthday} to the {Marquis} {De} {Sade}!},
    copyright = {All rights reserved},
    url = {https://www.oif.ala.org/oif/?p=17947},
    abstract = {The works of Donatien Alphonse François (1740-1814), better known as the Marquis de Sade, were banned nearly-immediately upon publication by both the King of France Louis XVI and Emperor Napoleon Bonaparte and remained so for over two centuries. Combined, his books have been banned for nearly 1000 years (more than 200 years apiece). Who was the man alternatively called the “Divine Marquis” and the author of the “most abominable book ever engendered by the most depraved imagination?"},
    language = {en-US},
    urldate = {2019-12-13},
    journal = {Intellectual Freedom Blog},
    author = {Watson, Brian},
    month = jun,
    year = {2019},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\UDBKLSVH\\oif.html:text/html}
}

@misc{watsonActionsShuttingInformation2019,
    title = {Actions {Shutting} {Down} {Information} and {Freedom} – {Interior}’s {Attack} on {FOIA}},
    copyright = {All rights reserved},
    url = {https://www.oif.ala.org/oif/?p=16864},
    abstract = {The Freedom of Information Act, an invaluable tool for democracy, is under attack. New Interior Department regulations are targeting those who use it the most--journalists, academics, researchers and more. Furthermore, the shutdown is compounding the issue and allowing the possibly-illegal and definitely-unethical change to happen unnoticed.},
    language = {en-US},
    urldate = {2019-12-13},
    journal = {Intellectual Freedom Blog},
    author = {Watson, Brian},
    month = jan,
    year = {2019},
    file = {Snapshot:C\:\\Users\\Brian\\Zotero\\storage\\4BK5LBT2\\oif.html:text/html}
}
zzossig commented 4 years ago

I'm working on it. But I think the month should be enclosed with {} In your .bib file,

...
month = jan # this makes error
month = {jan} # this is ok
...
brimwats1 commented 4 years ago

hmmmmm that's curious! You're right, it makes the formatting of the code all weird. I wonder if there is some internal reason for that. I just followed the instructions (https://sourcethemes.com/academic/docs/managing-content/#create-a-publication) and copied the bib here for you. But I appreciate that!!

zzossig commented 4 years ago

Hello @brimwats

I have another question. In your .bib file example, I don't see any links, but just a url.

You said that

It also knows to add the files, links, source documents or slideshows as needed.

I'm wondering how to handle links cause you don't seem to have any files, source documents, slideshows

Can you provide me the .bib file that has the links? Can we ignore the file parameter? Since the file starts with c:\, we can't make link to it.

brimwats1 commented 4 years ago

The links are under url = so like

url = {https://www.oif.ala.org/oif/?p=16864},

I may be misremembering on the files, I might have added those into the individual folders manually

zzossig commented 4 years ago

Ok, I almost finished. We should talk more after you update the theme

zzossig commented 4 years ago

@brimwats Now, we can use the publication page. Follow these steps to use it.

  1. Install pip first
  2. Install zzo-bibtex-parser v.1.0.5.
    pip install zzo-bibtex-parser==1.0.5
  3. Prepare your .bib file to the root folder.
  4. Assuming your file name is bibtex.bib, from the root of your project, type this.

    zzo --path bibtex.bib

    This command will generate files at root/content/publication

  5. Make a publication menu. In your menu.toml file,

    [[main]]
    identifier = "publication"
    name = "Publication"
    url = "publication"
    weight = 6
    
  6. run Hugo hugo server
  7. search not working now

Tested your copy-pasted long code above. All works well on my end. Tell me if something wrong. I'm waiting for your feedback.

brimwats1 commented 4 years ago

So I can see that it works--however it only does after I manually go in and change all

month = jan, to
month = {jan},

As you already stated. This wasn't such a big problem to do, but if you add it as a feature it might be a sticking point as you'll have to document that. Zotero automatically exports them as

month = jan,

and that's how bibtex format is designed so there's no way to change it on that end. Let me try Better BibTex format

brimwats1 commented 4 years ago

yes, it seems that even the Better BibTex format exports like this

  author = {Watson, Brian},
  year = {2019},
  month = jan,
brimwats1 commented 4 years ago

I'll go through and manually try to change the months and see how the publication page looks like!

brimwats1 commented 4 years ago

Here's what happens when I run hugo serve

PS C:\Users\Brian\Documents\GitHub\musings> hugo serve
Building sites … ERROR 2020/02/05 15:54:38 render of "section" failed: execute of template failed: template: publication/list.html:5:7: executing "main" at <partial "publication/pub-list" .>: error calling partial: "C:\Users\Brian\Documents\GitHub\musings\themes\zzo\layouts\partials\publication\pub-list.html:2:19": execute of template failed: template: partials/publication/pub-list.html:2:19: executing "partials/publication/pub-list.html" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
ERROR 2020/02/05 15:54:38 render of "section" failed: execute of template failed: template: publication/list.html:5:7: executing "main" at <partial "publication/pub-list" .>: error calling partial: "C:\Users\Brian\Documents\GitHub\musings\themes\zzo\layouts\partials\publication\pub-list.html:2:19": execute of template failed: template: partials/publication/pub-list.html:2:19: executing "partials/publication/pub-list.html" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
ERROR 2020/02/05 15:54:38 render of "section" failed: execute of template failed: template: publication/list.html:5:7: executing "main" at <partial "publication/pub-list" .>: error calling partial: "C:\Users\Brian\Documents\GitHub\musings\themes\zzo\layouts\partials\publication\pub-list.html:2:19": execute of template failed: template: partials/publication/pub-list.html:2:19: executing "partials/publication/pub-list.html" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
ERROR 2020/02/05 15:54:38 render of "section" failed: execute of template failed: template: publication/list.html:5:7: executing "main" at <partial "publication/pub-list" .>: error calling partial: "C:\Users\Brian\Documents\GitHub\musings\themes\zzo\layouts\partials\publication\pub-list.html:2:19": execute of template failed: template: partials/publication/pub-list.html:2:19: executing "partials/publication/pub-list.html" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
Built in 5713 ms
Error: Error building site: failed to render pages: render of "section" failed: execute of template failed: template: publication/list.html:5:7: executing "main" at <partial "publication/pub-list" .>: error calling partial: "C:\Users\Brian\Documents\GitHub\musings\themes\zzo\layouts\partials\publication\pub-list.html:2:19": execute of template failed: template: partials/publication/pub-list.html:2:19: executing "partials/publication/pub-list.html" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
PS C:\Users\Brian\Documents\GitHub\musings>
brimwats1 commented 4 years ago

It works again when I delete the publications folder (grammatically I think menu item should also be called Publications with an 's')

After deleting that folder I can confirm that the 'talks' imported into the talks folder okay! folder works well

zzossig commented 4 years ago

I thought that you manually deleted the curly braces on the month param.

So, do you have any suggestions regarding UI?

I wonder how the folder name is publications instead of publication. Did you use zzo-bibtex-parser?

And the publication page looks like what you expected?

brimwats1 commented 4 years ago

I wonder how the folder name is publications instead of publication.

It's not, I'm just saying that you might want to have the s added as part of the bibtex parser. The folder was never named publications, just to be clear

I am not super familiar with python, but it seems like it would be able to also add the curly braces--or that the the https://github.com/gcushen/hugo-academic theme would have the way of dealing with it open source as the rest of it is. If you give me an idea of where I should look I can dive into the code.

I cant get the publication page to load, the site fails on hugo serve/hugo server. The error message seems to suggest that it's due to a template failure

zzossig commented 4 years ago

I can handle it. I'm just busy to do other stuff. I'll solve this issue tomorrow. And I misunderstood what you mean here

hmmmmm that's curious! You're right, it makes the formatting of the code all weird. I wonder if there is some internal reason for that. I just followed the instructions (https://sourcethemes.com/academic/docs/managing-content/#create-a-publication) and copied the bib here for you. But I appreciate that!!

I didn't know that the month param doesn't have to have the curly braces. If I knew it, I would have made it(no curly braces syntax in month param).

The error message seems to suggest that it's due to a template failure

Can you provide me your .bib file? Isn't it the same as the one that you show me above?

brimwats1 commented 4 years ago

I think I am doing a poor job of explaining. The bib file works fine, when I manually add the {}.

The next step, as you said was

Make a publication menu. In your menu.toml file,

[[main]]
identifier = "publication"
name = "Publication"
url = "publication"
weight = 6

This goes fine

Then I do the next step

run Hugo hugo server

That fails with


PS C:\Users\Brian\Documents\GitHub\musings> hugo server
Building sites … ERROR 2020/02/05 15:54:38 render of "section" failed: execute of template failed: template: publication/list.html:5:7: executing "main" at <partial "publication/pub-list" .>: error calling partial: "C:\Users\Brian\Documents\GitHub\musings\themes\zzo\layouts\partials\publication\pub-list.html:2:19": execute of template failed: template: partials/publication/pub-list.html:2:19: executing "partials/publication/pub-list.html" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
ERROR 2020/02/05 15:54:38 render of "section" failed: execute of template failed: template: publication/list.html:5:7: executing "main" at <partial "publication/pub-list" .>: error calling partial: "C:\Users\Brian\Documents\GitHub\musings\themes\zzo\layouts\partials\publication\pub-list.html:2:19": execute of template failed: template: partials/publication/pub-list.html:2:19: executing "partials/publication/pub-list.html" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
ERROR 2020/02/05 15:54:38 render of "section" failed: execute of template failed: template: publication/list.html:5:7: executing "main" at <partial "publication/pub-list" .>: error calling partial: "C:\Users\Brian\Documents\GitHub\musings\themes\zzo\layouts\partials\publication\pub-list.html:2:19": execute of template failed: template: partials/publication/pub-list.html:2:19: executing "partials/publication/pub-list.html" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
ERROR 2020/02/05 15:54:38 render of "section" failed: execute of template failed: template: publication/list.html:5:7: executing "main" at <partial "publication/pub-list" .>: error calling partial: "C:\Users\Brian\Documents\GitHub\musings\themes\zzo\layouts\partials\publication\pub-list.html:2:19": execute of template failed: template: partials/publication/pub-list.html:2:19: executing "partials/publication/pub-list.html" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
Built in 5713 ms
Error: Error building site: failed to render pages: render of "section" failed: execute of template failed: template: publication/list.html:5:7: executing "main" at <partial "publication/pub-list" .>: error calling partial: "C:\Users\Brian\Documents\GitHub\musings\themes\zzo\layouts\partials\publication\pub-list.html:2:19": execute of template failed: template: partials/publication/pub-list.html:2:19: executing "partials/publication/pub-list.html" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
PS C:\Users\Brian\Documents\GitHub\musings>
brimwats1 commented 4 years ago

and please!! don't rush or stress. I'm not going anywhere, and there's plenty of time :)

zzossig commented 4 years ago

Sorry, I didn't say one thing. You have to make parameter

Your params.toml file,

...
pubPaginate = 20
zzossig commented 4 years ago

Actually, I'm enjoying all the stuff related to this project. And making the publish page was fun too. I'm just obsessed to make 0 issues.

brimwats1 commented 4 years ago

It looks so good!!!!! Wow! Thank you!

The Params addition fixed it pretty well. If I might make a couple stylistic recommendations:

image

image

Maybe it would work better to add a 'filters' option (one that works via tags or categories) like on the projects or recent publications of Academic: https://themes.gohugo.io//theme/academic/#recent

Or maybe a drop down menu. It's probably possible to stylize this page, so I can look into that next!

zzossig commented 4 years ago

Ok, I'll think about the button. And I didn't see any tags, categories in your .bib file. Can you add all the tags, categories on all of the publication md file? I thought that you want this feature because you don't want edit bunch of md file manually.

brimwats1 commented 4 years ago

Yes! I can easily add them to the md files!

What I think I am confused about what the sub pages (eg articles mastersthesis) are made from--are those not categories? Perhaps I will styleize the landing page or look into adding dropdown menus :)

Say I wanted to upload the files to the site, can I do that by adding say

file: "/static/files/file.pdf"

Thank you!

zzossig commented 4 years ago

-are those not categories?

Those are sections, not categories in Hugo. Difficult to explain.

Anyway, you can suggest to me how to improve it. I'll also think about it more

And I don't like the dropdown.

brimwats1 commented 4 years ago

?Makes sense! Then a "filter" at the top to sort by sections would likely be the best way. I'll add the tags manually. The way this works in ZZO looks so much nicer than in Academic! Thank you so much! Do you have a ko.fi or a donation page?

-

zzossig commented 4 years ago

What is the ko.fi? And we have donation options

In your params.toml file

[donationOptions]
  enable = false
  alipay = ""
  wechat = ""
  bitcoin = ""
  paypal = ""
  patreon = ""

If this param set, the donation buttons will show up in the post page

brimwats1 commented 4 years ago

?no, i mean donation options so I can donate to you ! :)

Ko.fi is just another donation platform whaere you buy someone a "coffee" (ko.fi is a pun on the word coffee)

zzossig commented 4 years ago

Just star this project would be appreciated😋

brimwats1 commented 4 years ago

absolutely! i'm surprised I haven't yet!

zzossig commented 4 years ago

I made new issues regarding we discussed in this thread. https://github.com/zzossig/hugo-theme-zzo/issues/145#issue-561380613 https://github.com/zzossig/hugo-theme-zzo/issues/146#issue-561380890 https://github.com/zzossig/zzo-bibtex-parser/issues/1#issue-561383991