You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "default arguments" component in the administrations "Job Edit" view will only accept Json content. There is Jinja templating support for this in the job system which is blocked by this in the UI.
Add this to default args:
{"config":{"readers":[{"args":{"set":"authorities:sachbegriff","verb":"ListRecords","base_url":"https://services.dnb.de/oai/repository","from_date":"2024-06-01T00:00:00Z","until_date":"2024-06-10T00:00:00Z","metadata_prefix":"MARC21-xml"},"type":"oai-pmh"}],"writers":[{"args":{"identity":{{ system_identity }}},"type":"subjects-service"}],"transformers":[{"type":"gndsubjects"}]}}
Press "Save" button.
Expected behavior
Job is saved.
Screenshots (if applicable)
Additional context
This special job should run every 10 minutes with "from_date" and "until_date" adjusted accordingly, which should be generally possible with Jinja templates.
The text was updated successfully, but these errors were encountered:
carlinmack
changed the title
The Jobystem allows Jinja templates but the UI doesn't
The Job system allows Jinja templates but the UI doesn't
Jul 1, 2024
Package version (if known): v0.3.0
Describe the bug
The "default arguments" component in the administrations "Job Edit" view will only accept Json content. There is Jinja templating support for this in the job system which is blocked by this in the UI.
Steps to Reproduce
{"config":{"readers":[{"args":{"set":"authorities:sachbegriff","verb":"ListRecords","base_url":"https://services.dnb.de/oai/repository","from_date":"2024-06-01T00:00:00Z","until_date":"2024-06-10T00:00:00Z","metadata_prefix":"MARC21-xml"},"type":"oai-pmh"}],"writers":[{"args":{"identity":{{ system_identity }}},"type":"subjects-service"}],"transformers":[{"type":"gndsubjects"}]}}
Expected behavior
Job is saved.
Screenshots (if applicable)
Additional context
This special job should run every 10 minutes with "from_date" and "until_date" adjusted accordingly, which should be generally possible with Jinja templates.
The text was updated successfully, but these errors were encountered: