OleVik / grav-plugin-bibliography

Reads a Bibliography-file (.json) with academic references and renders it as footnotes at the end of the page. Allows for a variety of styles and languages using CSL.
MIT License
12 stars 0 forks source link

CSL #4

Open skreisel opened 1 year ago

skreisel commented 1 year ago

Hi. Great plugin!!! Have tried placing other CSL's in the ... /vendor/citation-style-language/styles directory and adding a reference in the front matter as in e.g.:

title: 'Test citations'
enabled: true
bibliography: library.json
bibliography_style: stroke.csl

with no effect; have played around with the stroke.csl-naming, i.e. quotation marks, not adding the *.csl suffix, etc.. Just as a side note: the directory for styles as in the instructions is ... /vendor/citation-style-language/styles-distribution whereas in the installation it reads as above, ie /styles not /styles-distribution (also created a directory with that name, again with no effect). Regards!

OleVik commented 1 year ago

Could you share a copy of the library.json?

skreisel commented 1 year ago

Sure. Find attached:

OleVik commented 1 year ago

I have fixed this in v3.0.1, which properly uses the Page's FrontMatter before defaulting to the Plugin's configuration when rendering. Using your test-data, this produces the expected result.

By the way, you do not need enabled: true in the FrontMatter. Please test the new version and let me know if it works for you.

skreisel commented 1 year ago

Super will get at it right away … Thanks and cheers Stefan

Von: Ole Vik @.> Gesendet: Montag, 3. Juli 2023 11:12 An: OleVik/grav-plugin-bibliography @.> Cc: Kreisel, Stefan @.>; Author @.> Betreff: Re: [OleVik/grav-plugin-bibliography] CSL (Issue #4)

------------------------------------------------------------------------------------------------------- Externe E-Mail: Klicken Sie nicht auf Links und öffnen Sie keine Anhänge, es sei denn, Sie kennen den Absender und wissen, dass der Inhalt sicher ist. -------------------------------------------------------------------------------------------------------

I have fixed this in v3.0.1https://github.com/OleVik/grav-plugin-bibliography/releases/tag/v3.0.1, which properly uses the Page's FrontMatter before defaulting to the Plugin's configuration when rendering. Using your test-data, this produces the expected result.

By the way, you do not need enabled: true in the FrontMatter. Please test the new version and let me know if it works for you.

— Reply to this email directly, view it on GitHubhttps://github.com/OleVik/grav-plugin-bibliography/issues/4#issuecomment-1617689186, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGE37HK3C6MAHXUVCX55LELXOKEHTANCNFSM6AAAAAAZRLKM24. You are receiving this because you authored the thread.Message ID: @.***>


Evangelisches Klinikum Bethel gGmbH Universitätsklinikum OWL der Universität Bielefeld Campus Bielefeld-Bethel

Sitz der Gesellschaft Kantensiek 11 | 33617 Bielefeld

Amtsgericht Bielefeld HRB 30169

Geschäftsführer Mathias Kreft (Vorsitz) Dr. Matthias Ernst

Vorsitzender des Aufsichtsrates Dr. Rainer Norden

Gemeinsam helfen – UKRAINEHILFE BETHEL Spendenkonto: Stiftungen Bethel DE48 4805 0161 0000 0040 77 Stichwort »Ukrainehilfe« Oder online auf www.bethel.de