Commit 7a0e5a4f authored by Diegodlh's avatar Diegodlh
Browse files

Add fallback template definition

parent a269c17c
import { FallbackTemplateDefinition } from "./types";
// todo: consider moving to w2c-server
// prettier-ignore
export const fallbackTemplate: FallbackTemplateDefinition = {
"fields": [
{
"fieldname": "itemType",
"required": true,
"procedures": [
{
"selections": [
{
"type": "citoid",
"config": "itemType"
}
],
"transformations": []
}
]
},
{
"fieldname": "title",
"required": true,
"procedures": [
{
"selections": [
{
"type": "citoid",
"config": "title"
}
],
"transformations": []
}
]
},
{
"fieldname": "authorFirst",
"required": false,
"procedures": [
{
"selections": [
{
"type": "citoid",
"config": "authorFirst"
}
],
"transformations": []
}
]
},
{
"fieldname": "authorLast",
"required": false,
"procedures": [
{
"selections": [
{
"type": "citoid",
"config": "authorLast"
}
],
"transformations": []
}
]
},
{
"fieldname": "date",
"required": false,
"procedures": [
{
"selections": [
{
"type": "citoid",
"config": "date"
}
],
"transformations": [
{
"type": "date",
"config": "en",
"itemwise": false
}
]
}
]
},
{
"fieldname": "publishedIn",
"required": false,
"procedures": [
{
"selections": [
{
"type": "citoid",
"config": "publicationTitle"
},
{
"type": "citoid",
"config": "code"
},
{
"type": "citoid",
"config": "reporter"
}
],
"transformations": [
{
"type": "range",
"config": "0",
"itemwise": false
}
]
}
]
},
{
"fieldname": "publishedBy",
"required": false,
"procedures": [
{
"selections": [
{
"type": "citoid",
"config": "publisher"
}
],
"transformations": []
}
]
},
{
"fieldname": "language",
"required": false,
"procedures": [
{
"selections": [
{
"type": "citoid",
"config": "language"
}
],
"transformations": []
}
]
}
]
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment