1+ {% load static from staticfiles %}
12< div class ="large-12 columns ">
23 < div class ="content clearfix ">
3- < div class ="large-2 columns ">
4+ < div class ="large-3 columns ">
45 < img src ="{% if book.cover %}{{ book.cover.url }}{% endif %} " alt ="">
6+ {% if book.is_open_access %}
7+ < img src ="{% static 'media/books/oa.png' %} " alt ="Open Access Logo " style ="padding: 30px; padding-bottom: 0; ">
8+ {% endif %}
59 {% if not books %}< p > < a href ="{% url 'books_index' %} "> < i class ="fa fa-arrow-left "> </ i > Back to Listing</ a > </ p > {% endif %}
610 </ div >
7- < div class ="large-7 columns ">
8- < a href ="{% url 'books_book' book.pk %} "> < h2 > {{ book.full_title }}</ h2 > </ a >
9- < h6 > {% for contributor in book.contributor_set.all %}{% if not forloop.first and not forloop.last %},
10- {% elif forloop.last and not forloop.first %} & {% endif %}{{ contributor }}{% endfor %}</ h6 >
11- {{ book.description|safe|linebreaksbr }}
12- </ div >
13- < div class ="large-3 columns ">
14- < h6 > About this Book</ h6 >
15- < strong > Published</ strong > {{ book.date_published }}< br /> < br />
16- < strong > Published by</ strong > {{ book.publisher_name }}< br /> < br />
17- {% if book.pages %}< strong > Pages</ strong > {{ book.pages }}< br /> < br /> {% endif %}
18- {% if book.isbn %}< strong > ISBN</ strong > {{ book.isbn }}< br /> < br /> {% endif %}
19- {% if book.doi %}< strong > DOI</ strong > < a href ="https://doi.org/{{ book.doi }} "> {{ book.doi }}</ a > < br />
20- < br /> {% endif %}
21- {% if book.format_set.all %}
22- < h6 > Downloads</ h6 >
23- {% endif %}
11+ < div class ="large-9 columns ">
12+ < h2 > {% if books %}< a href ="{% url 'books_book' book.pk %} "> {% endif %}{{ book.full_title }}{% if books %}</ a > {% endif %}</ h2 >
13+ < h6 > < em > {% for contributor in book.contributor_set.all %}{% if not forloop.first and not forloop.last %},
14+ {% elif forloop.last and not forloop.first %} & {% endif %}{{ contributor }}{% endfor %}</ em > </ h6 >
15+
2416 {% for format in book.format_set.all %}
25- < a href ="{% url 'books_download_format' book.pk format.pk %} " class ="button "> {{ format.title }}</ a >
17+ < a href ="{% url 'books_download_format' book.pk format.pk %} " class ="button "> < i class =" fa fa-download " > </ i > Download {{ format.title }}</ a >
2618 {% endfor %}
27- {% if book.purchase_url %}
28- < h6 > Purchase</ h6 >
29- < a href ="{{ book.purchase_url }} " class ="button " target ="_blank "> Buy this Book</ a >
30- {% endif %}
19+ {% if book.purchase_url %}< a href ="{{ book.purchase_url }} " class ="button " target ="_blank "> < i class ="fa fa-external-link "> </ i > Buy this Book</ a > {% endif %}
20+
21+ < table class ="table " style ="margin-bottom: 0; ">
22+ < tr >
23+ < th > Description</ th >
24+ </ tr >
25+ < tr >
26+ < td > {{ book.description|safe }}</ td >
27+ </ tr >
28+ </ table >
29+
30+ < table class ="table ">
31+ < tr >
32+ < th > Published</ th >
33+ < th > Published By</ th >
34+ < th > Pages</ th >
35+ {% if book.isbn %}< th > ISBN</ th > {% endif %}
36+ {% if book.doi %}< th > DOI</ th > {% endif %}
37+ </ tr >
38+ < tr >
39+ < td > {{ book.date_published }}</ td >
40+ < td > {{ book.publisher_name }}</ td >
41+ < td > {{ book.pages }}</ td >
42+ {% if book.isbn %}< td > {{ book.isbn }}</ td > {% endif %}
43+ {% if book.doi %}< td > {{ book.doi }}</ td > {% endif %}
44+ </ tr >
45+ </ table >
46+
3147 </ div >
3248 </ div >
33- </ div >
49+ </ div >
0 commit comments