Expand focus from paintings to more artworks

Replace all references to 'painting' with 'artwork'
This commit is contained in:
Edward Betts 2019-11-25 11:49:34 +00:00
parent df8ff30b64
commit 036a4be5ed
14 changed files with 76 additions and 76 deletions

View file

@ -1,10 +1,10 @@
{% extends "base.html" %}
{% block title %}Wikidata painting depicts{% endblock %}
{% block title %}Wikidata Art Depiction Explorer{% endblock %}
{% block content %}
<div class="m-3">
<p><a href="{{ url_for('random_painting') }}">random painting</a>
<p><a href="{{ url_for('random_artwork') }}">random artwork</a>
{% if not g.user %}
| <a href="{{ url_for('start_oauth') }}">connect to Wikidata account</a>

View file

@ -74,7 +74,7 @@
<div>
<a href="#">${ hit.label }</a>
<span v-if="hit.alt_label">(${ hit.alt_label })</span>
&mdash; ${ hit.count } existing paintings
&mdash; ${ hit.count } existing artworks
(${ hit.qid })
<a :href="'https://www.wikidata.org/wiki/' + hit.qid">view on Wikidata</a>
</div>

View file

@ -27,7 +27,7 @@
{% endfor %}
</p>
<p>{{ '{:,d}'.format(total) }} paintings found</p>
<p>{{ '{:,d}'.format(total) }} artworks found</p>
<p class="mb-3">
<a href="#" id="toggle-filters" class="btn btn-primary">toggle filters</a>

View file

@ -30,8 +30,8 @@ span.description { color: rgb(96, 96, 96); }
<div class="m-2">
<a href="https://www.wikidata.org/wiki/{{ qid }}" class="btn btn-primary">view on Wikidata</a>
<a href="{{ url_for('random_painting') }}" class="btn btn-primary">skip this photo</a>
<a href="{{ url_for('browse_page') }}" class="btn btn-primary">browse paintings</a>
<a href="{{ url_for('random_artwork') }}" class="btn btn-primary">skip this artwork</a>
<a href="{{ url_for('browse_page') }}" class="btn btn-primary">browse artworks</a>
</div>
@ -109,7 +109,7 @@ span.description { color: rgb(96, 96, 96); }
{% raw %}
<div id="app" class="mt-2">
<div v-if="existing_depicts.length">
<div>this painting has {{ existing_depicts.length }} existing depicts statement</div>
<div>this artwork has {{ existing_depicts.length }} existing depicts statement</div>
</div>
<div class="mb-2" v-for="(hit, index) in existing_depicts">
@ -118,14 +118,14 @@ span.description { color: rgb(96, 96, 96); }
({{ hit.qid }})
&nbsp;
<span v-if="hit.description" class="description">{{ hit.description }}</span>
&mdash; {{ hit.count }} paintings
&mdash; {{ hit.count }} artworks
</div>
</div>
<h3>what can you see in this painting?</h3>
<h3>what can you see in this artwork?</h3>
<div v-if="people.length">
<div>These people were born and died in the same years as appears in the title of the painting.</div>
<div>These people were born and died in the same years as appears in the title of the artwork.</div>
<div v-for="person in people">
<a href="#" @click.prevent="add_person(person)">{{ person.label || '[name missing]' }}</a>,
{{ person.year_of_birth }}-{{ person.year_of_death}} ({{ person.qid }})
@ -135,7 +135,7 @@ span.description { color: rgb(96, 96, 96); }
</div>
<div v-if="new_depicts.length">
<div>{{ new_depicts.length }} new items to add to painting depicts statement</div>
<div>{{ new_depicts.length }} new items to add to artwork depicts statement</div>
</div>
<div v-for="(hit, index) in new_depicts">
@ -144,7 +144,7 @@ span.description { color: rgb(96, 96, 96); }
{{ hit.label }}
<span v-if="hit.alt_label">({{ hit.alt_label }})</span>
<a href="#" @click.prevent="remove(index)" >remove</a>
&mdash; {{ hit.count }} existing paintings
&mdash; {{ hit.count }} existing artworks
({{ hit.qid }})
<a :href="'https://www.wikidata.org/wiki/' + hit.qid">[wikidata]</a>
</div>
@ -153,7 +153,7 @@ span.description { color: rgb(96, 96, 96); }
</div>
</div>
<button type="submit" v-if="new_depicts.length" class="btn btn-primary">add these to painting on Wikidata</button>
<button type="submit" v-if="new_depicts.length" class="btn btn-primary">add these to artwork on Wikidata</button>
<input class="form-control-lg my-2 w-100" autocomplete="off" v-model.trim="searchTerms" ref="search" @input="search" />
@ -162,7 +162,7 @@ span.description { color: rgb(96, 96, 96); }
<div>
<a href="#" @click.prevent="add_depicts(hit)">{{ hit.label }}</a>
<span v-if="hit.alt_label">({{ hit.alt_label }})</span>
&mdash; {{ hit.count }} existing paintings
&mdash; {{ hit.count }} existing artworks
({{ hit.qid }})
<a :href="'https://www.wikidata.org/wiki/' + hit.qid">view on Wikidata</a>
</div>

View file

@ -7,13 +7,13 @@
<p>{{ user_count }} users have tried this tool.</p>
<p>{{ painting_count }} paintings have been cataloged.</p>
<p>{{ item_count }} artworks have been cataloged.</p>
<table class="table w-auto">
<thead>
<tr>
<th>username</th>
<th>painting</th>
<th>artwork</th>
<th>depicts</th>
<th>when</th>
</tr>
@ -22,9 +22,9 @@
{% for edit in edit_list %}
<tr>
<td><a href="{{ url_for('user_page', username=edit.username.replace('_', ' ')) }}">{{ edit.username }}</a></td>
<td><a href="{{ url_for('item_page', item_id=edit.painting_id) }}">{{ edit.painting.label }}</a>
({{ edit.painting_qid }})
<a href="https://www.wikidata.org/wiki/{{ edit.painting_qid }}">[wikidata]</a>
<td><a href="{{ url_for('item_page', item_id=edit.artwork_id) }}">{{ edit.artwork.label }}</a>
({{ edit.artwork_qid }})
<a href="https://www.wikidata.org/wiki/{{ edit.artwork_qid }}">[wikidata]</a>
</td>
<td><a href="https://www.wikidata.org/wiki/{{ edit.depicts_qid }}">{{ edit.depicts.label }}</a>
({{ edit.depicts_qid }})</td>

View file

@ -15,7 +15,7 @@
<ul class="navbar-nav mr-auto">
{{ nav_item('browse_page', 'Browse') }}
{{ nav_item('list_edits', 'Recent changes') }}
{{ nav_item('random_painting', 'Random painting') }}
{{ nav_item('random_artwork', 'Random artwork') }}
</ul>
</ul>
<ul class="navbar-nav">

View file

@ -12,15 +12,15 @@
<h1>{{ self.title() }}</h1>
<div class="alert alert-primary" role="alert">
Thanks for contributing. Your edits have been saved to the painting on Wikidata. Use the links below to find other similar paintings to catalog.
Thanks for contributing. Your edits have been saved to the artwork on Wikidata. Use the links below to find other similar artworks to catalog.
</div>
<p>
<a href="https://www.wikidata.org/wiki/{{ qid }}">view this painting on Wikidata</a>
<a href="https://www.wikidata.org/wiki/{{ qid }}">view this artwork on Wikidata</a>
|
<a href="{{ url_for('random_painting') }}">switch to another painting</a>
<a href="{{ url_for('random_artwork') }}">switch to another artwork</a>
|
<a href="{{ url_for('browse_page') }}">browse paintings</a>
<a href="{{ url_for('browse_page') }}">browse artworks</a>
</p>
{% if session.no_find_more %}

View file

@ -26,7 +26,7 @@
&mdash; {{ row.objectDescription.value }}
{% endif %}
({{ '{:,d}'.format(row.count.value | int) }} paintings)
({{ '{:,d}'.format(row.count.value | int) }} artworks)
{% if 'objectLabel' not in row %}
<a href="https://wikidata.org/wiki/{{ qid }}">view in Wikidata</a>
{% endif %}

View file

@ -7,12 +7,12 @@
<p>This user has added a total of {{ edits.count() }} depicts statements.</p>
<p>{{ painting_count }} paintings have been cataloged.</p>
<p>{{ item_count }} artworks have been cataloged.</p>
<table class="table w-auto">
<thead>
<tr>
<th>painting</th>
<th>artwork</th>
<th>depicts</th>
<th>when</th>
</tr>
@ -20,9 +20,9 @@
<tbody>
{% for edit in edit_list %}
<tr>
<td><a href="{{ url_for('item_page', item_id=edit.painting_id) }}">{{ edit.painting.label }}</a>
({{ edit.painting_qid }})
<a href="https://www.wikidata.org/wiki/{{ edit.painting_qid }}">[wikidata]</a>
<td><a href="{{ url_for('item_page', item_id=edit.artwork_id) }}">{{ edit.artwork.label }}</a>
({{ edit.artwork_qid }})
<a href="https://www.wikidata.org/wiki/{{ edit.artwork_qid }}">[wikidata]</a>
</td>
<td><a href="https://www.wikidata.org/wiki/{{ edit.depicts_qid }}">{{ edit.depicts.label }}</a>
({{ edit.depicts_qid }})</td>