Improvements in loading images
This commit is contained in:
parent
634f4e316a
commit
8b870474d7
9 changed files with 61 additions and 31 deletions
|
@ -26,6 +26,10 @@ export class WikidataImageProvider extends ImageProvider {
|
|||
if (value.startsWith(wikidataUrl)) {
|
||||
value = value.substring(wikidataUrl.length)
|
||||
}
|
||||
if(value.startsWith("http")){
|
||||
// Probably some random link in the image field - we skip it
|
||||
return undefined
|
||||
}
|
||||
if (!value.startsWith("Q")) {
|
||||
value = "Q" + value
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue