Commit acb323a0 authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[fix] Display warning when the requested languages could not be used

parent 78af7d2bf286
......@@ -196,7 +196,7 @@ export class MetaPropertyData implements MetaProperty {
loader.warn(
entity,
this.name,
"Could not find a value for the requested language(s)"
"Could not find a value for the requested language(s)."
);
}
if (!this.isVector) return matching[0].literal.value;
......
<template>
<div>
<h1>{{book.title}}</h1>
<h1>
{{book.title}}
<span v-if="book.__warnings['title'] != undefined" style="color: yellow; font-size: 8pt;" :title="book.__warnings['title']">
&#x26A0;
</span>
</h1>
<table class="table table-bordered table-hover">
<tbody>
<tr>
......@@ -16,19 +21,39 @@
</tr>
<tr>
<td><b>Publisher</b></td>
<td>{{book.publisher}}</td>
<td>
{{book.publisher}}
<span v-if="book.__warnings['publisher'] != undefined" style="color: yellow; font-size: 8pt;" :title="book.__warnings['publisher']">
&#x26A0;
</span>
</td>
</tr>
<tr>
<td><b>Release date</b></td>
<td>{{book.releaseDate}}</td>
<td>
{{book.releaseDate}}
<span v-if="book.__warnings['releaseDate'] != undefined" style="color: yellow; font-size: 8pt;" :title="book.__warnings['releaseDate']">
&#x26A0;
</span>
</td>
</tr>
<tr>
<td><b>Abstract</b></td>
<td>{{book.abstract}}</td>
<td>
{{book.abstract}}
<span v-if="book.__warnings['abstract'] != undefined" style="color: yellow; font-size: 8pt;" :title="book.__warnings['abstract']">
&#x26A0;
</span>
</td>
</tr>
<tr>
<td><b>Comment</b></td>
<td>{{book.comment}}</td>
<td>
{{book.comment}}
<span v-if="book.__warnings['comment'] != undefined" style="color: yellow; font-size: 8pt;" :title="book.__warnings['comment']">
&#x26A0;
</span>
</td>
</tr>
</tbody>
</table>
......
......@@ -6,28 +6,67 @@
<img :src="person.depiction.uri" height="300px"/>
</div>
<div class="col-sm-8">
<h1>{{person.title}} {{person.name}}</h1>
<h1>
{{person.title}}
{{person.name}}
<span v-if="person.__warnings['name'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['name']">
&#x26A0;
</span>
</h1>
<table class="table table-bordered table-hover">
<tbody>
<tr>
<td><b>Nickname</b></td>
<td>{{person.nickname}}</td>
<td>
{{person.nickname}}
<span v-if="person.__warnings['nickname'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['nickname']">
&#x26A0;
</span>
</td>
</tr>
<tr>
<td><b>Gender</b></td>
<td>{{person.gender}}</td>
<td>
{{person.gender}}
<span v-if="person.__warnings['gender'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['gender']">
&#x26A0;
</span>
</td>
</tr>
<tr>
<td><b>Birth</b></td>
<td>{{person.birthDate}} {{person.birthPlace}}</td>
<td>
{{person.birthDate}}
<span v-if="person.__warnings['birthDate'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['birthDate']">
&#x26A0;
</span>
{{person.birthPlace}}
<span v-if="person.__warnings['birthPlace'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['birthPlace']">
&#x26A0;
</span>
</td>
</tr>
<tr>
<td><b>Death</b></td>
<td>{{person.deathDate}} {{person.deathPlace}}</td>
<td>
{{person.deathDate}}
<span v-if="person.__warnings['deathDate'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['deathDate']">
&#x26A0;
</span>
{{person.deathPlace}}
<span v-if="person.__warnings['deathPlace'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['deathPlace']">
&#x26A0;
</span>
</td>
</tr>
<tr>
<td><b>Bio</b></td>
<td>{{person.bio}}</td>
<td>
{{person.bio}}
<span v-if="person.__warnings['bio'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['bio']">
&#x26A0;
</span>
</td>
</tr>
</tbody>
</table>
......
Markdown is supported
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