consider url-template for externalIds
items and actors allow linking to externalIds
. an external id currently consists of an identifier service, and a free-form text field for the identifier. would it make sense to have a urlTemplate
field for each identifier service, so it would be possible to construct actual anchor tags in the UI to link to? we do the same for source
, which allows constructing a URL from the sourceItemId
and the source.urlTemplate
.
to give an example:
an item has:
"externalIds": [
{
"identifier": "Q5548660",
"identifierService": {
"code": "Wikidata",
"label": "Wikidata"
}
}
]
and service is:
{
"code": "Wikidata",
"label": "Wikidata"
}
if we had this:
{
"code": "Wikidata",
"label": "Wikidata",
+ "urlTemplate": "https://www.wikidata.org/wiki/{{id}}"
}
we could actually link to https://www.wikidata.org/wiki/Q5548660
Edited by Stefan Probst