Skip to content

Commit

Permalink
prod nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Khemarato Bhikkhu committed Jul 8, 2024
1 parent 51b180a commit cee99b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: >-
Shown by the Marron’s Claw: Ecological Receptivity as Mindful Praxis
authors:
- "Saskia AbrahmsKavunenko"
- "Saskia Abrahms-Kavunenko"
external_url: "https://www.globalbuddhism.org/article/download/3814/5136"
source_url: "https://doi.org/10.26034/lu.jgb.2024.3814"
drive_links:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ address: "Munich, Germany"
openalexid: W357758067
---

> The following lines intend to sketch [the dog's] relation to humans and their fellow quadrupeds and birds from the ancient [Indian] sources, as was done exhaustively for Greek and Latin literature long ago.
> The following lines intend to sketch [dogs'] relation to humans and their fellow quadrupeds and birds from the ancient [Indian] sources, as was done exhaustively for Greek and Latin literature long ago.
4 changes: 2 additions & 2 deletions scripts/openaleximporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def make_library_entry_for_work(work, draft=False, course=None, glink='') -> str
fd.write(f"title: >-\n {title}\n")
fd.write("authors:\n")
for i in range(min(4, len(work['authorships']))):
author = work['authorships'][i]['author']['display_name']
author = work['authorships'][i]['author']['display_name'].replace('‐', '-')
aslug = get_author_slug(author)
if aslug:
author = aslug
Expand All @@ -123,7 +123,7 @@ def make_library_entry_for_work(work, draft=False, course=None, glink='') -> str
if len(work['authorships']) == 5 and aslug:
fd.write(f" - {aslug}")
elif len(work['authorships']) >= 5:
fd.write(f" - \"{work['authorships'][4]['author']['display_name']}")
fd.write(f" - \"{work['authorships'][4]['author']['display_name'].replace('‐', '-')}")
if len(work['authorships']) > 5:
fd.write(" and others")
fd.write("\"\n")
Expand Down

0 comments on commit cee99b1

Please sign in to comment.