fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5085f47
)
Add title to cover attribution.
author
Radek Czajka
<rczajka@rczajka.pl>
Thu, 25 Nov 2021 12:36:07 +0000
(13:36 +0100)
committer
Radek Czajka
<rczajka@rczajka.pl>
Thu, 25 Nov 2021 12:36:07 +0000
(13:36 +0100)
src/cover/templates/cover/image_detail.html
patch
|
blob
|
history
diff --git
a/src/cover/templates/cover/image_detail.html
b/src/cover/templates/cover/image_detail.html
index
670b3ce
..
85fda98
100644
(file)
--- a/
src/cover/templates/cover/image_detail.html
+++ b/
src/cover/templates/cover/image_detail.html
@@
-53,7
+53,7
@@
<textarea style="width:100%" rows="5">
<dc:relation.coverImage.url xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.file.url|build_absolute_uri:request }}</dc:relation.coverImage.url>
<textarea style="width:100%" rows="5">
<dc:relation.coverImage.url xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.file.url|build_absolute_uri:request }}</dc:relation.coverImage.url>
-<dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{
{ object.author }},
{{ object.license_name }}</dc:relation.coverImage.attribution>
+<dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{
% if object.title %}{{ object.title }}, {% endif %}{% if object.author %}{{ object.author }}, {% endif %}
{{ object.license_name }}</dc:relation.coverImage.attribution>
<dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.get_full_url }}</dc:relation.coverImage.source>
</textarea>
{% endblock %}
<dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.get_full_url }}</dc:relation.coverImage.source>
</textarea>
{% endblock %}