As described in T305166, there may be cases where the fallback template (which currently uses Citoid selection for all fields) does not apply. Concretely, this would happen if Citoid is failing for the given target webpage. If T305166 is addressed, this would result in the translation server returning a 404 error if no applicable template is found for a target webpage.
Alternatively, we may consider changing the mandatory (i.e., always required) fields in the fallback template to prevent Web2Cit from failing in these cases:
- itemType field: next to Citoid selection use fixed selection "website". Then use range transformation "0" to keep the first item selected. If Citoid is working, it will return the itemType returned by Citoid (current behavior). If it isn't, it will return "website".
- title field: similarly, next to Citoid selection use (1) Xpath selection "/html/head/title" and (2) URL selection "href" (see T304326), followed by range transformation "0" again. This way, it will return the title returned by Citoid, otherwise the title in the html head, or finally the full URL if none of the above are available.
Of course, this task would be irrelevant if we switch to the "use Citoid except for"-approach described in T302019. Although in that case it may still be worth it considering an alternative to Citoid for main fields such as itemType and title.