Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/sync-to-wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
pull_request:
paths:
- "**.bib"
- "scripts/**"
- "config.json"
workflow_dispatch:

permissions:
Expand Down
2 changes: 1 addition & 1 deletion scripts/bib_to_wikitext.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def entry_to_wikitext(entry):
a_params["is_first_author"] = "Yes"

author_blocks.append(
build_template_call("Publication Has publication author", a_params)
build_template_call("Subobject/Has publication author", a_params)
)

# -- Assemble page --
Expand Down
2 changes: 1 addition & 1 deletion scripts/push_to_wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def extract_template_blocks(content):

# Find all author subobject blocks
author_blocks = re.findall(
r"\{\{Publication Has publication author\n.*?\}\}", inner, re.DOTALL
r"\{\{Subobject/Has publication author\n.*?\}\}", inner, re.DOTALL
)

return main_block, author_blocks
Expand Down
Loading