From 7c14c97ab5eb97bf739930c88eacf7f8c567741d Mon Sep 17 00:00:00 2001 From: daharoni Date: Tue, 7 Apr 2026 19:59:10 -0700 Subject: [PATCH 1/2] Fix subobject template name to match SemanticSchemas convention Use Subobject/Has publication author instead of Publication Has publication author, matching the template names that SemanticSchemas generates. Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/bib_to_wikitext.py | 2 +- scripts/push_to_wiki.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bib_to_wikitext.py b/scripts/bib_to_wikitext.py index 077b324..d8e8e62 100644 --- a/scripts/bib_to_wikitext.py +++ b/scripts/bib_to_wikitext.py @@ -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 -- diff --git a/scripts/push_to_wiki.py b/scripts/push_to_wiki.py index b7465b3..eaa9266 100644 --- a/scripts/push_to_wiki.py +++ b/scripts/push_to_wiki.py @@ -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 From b5f192b2d6b4db9f294bc202d896fd070e3c459f Mon Sep 17 00:00:00 2001 From: daharoni Date: Tue, 7 Apr 2026 20:03:50 -0700 Subject: [PATCH 2/2] Trigger PR validation on script and config changes too Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/sync-to-wiki.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sync-to-wiki.yml b/.github/workflows/sync-to-wiki.yml index 09cada1..eca7cce 100644 --- a/.github/workflows/sync-to-wiki.yml +++ b/.github/workflows/sync-to-wiki.yml @@ -10,6 +10,8 @@ on: pull_request: paths: - "**.bib" + - "scripts/**" + - "config.json" workflow_dispatch: permissions: