change target of links to PG/DOAB

and add facet links to explore panel
pull/1/head
eric 2016-12-09 14:58:19 -05:00
parent 5369eb7f32
commit 9d5fe5e678
2 changed files with 15 additions and 9 deletions

View File

@ -17,13 +17,19 @@
{% endif %} {% endif %}
<li><a href="{% url 'free' %}"><span>Free eBooks!</span></a> <li><a href="{% url 'free' %}"><span>Free eBooks!</span></a>
{% if work %} {% if work %}
<ul class="menu level3"> <ul class="menu level3">
{% for subject in work.subjects.all %} {% if work.doab %}
{% if subject.is_visible and subject.free_works.1 %} <li><a href="{% url 'faceted_list' 'id/doab' %}?order_by=popular">Books in DOAB</a></li>
<li><a href="{% url 'faceted_list' subject.kw %}"><span>{{ subject }}</span></a></li> {% endif %}
{% endif %} {% if work.gtbg %}
{% endfor %} <li><a href="{% url 'faceted_list' 'id/gtbg' %}?order_by=popular">Books in Project Gutenberg</a></li>
</ul> {% endif %}
{% for subject in work.subjects.all %}
{% if subject.is_visible and subject.free_works.1 %}
<li><a href="{% url 'faceted_list' subject.kw %}"><span>{{ subject }}</span></a></li>
{% endif %}
{% endfor %}
</ul>
{% endif %} {% endif %}
</li> </li>
<li><a href="{% url 'campaign_list' 'ending' %}"><span>Active Campaigns</span></a></li> <li><a href="{% url 'campaign_list' 'ending' %}"><span>Active Campaigns</span></a></li>

View File

@ -291,12 +291,12 @@
{% endfor %} {% endfor %}
{% if work.doab %} {% if work.doab %}
<p> <p>
This book is included in <a href="{% url 'faceted_list' 'id/doab' %}?order_by=popular">DOAB</a>. This book is included in <a href="http://www.doabooks.org/doab?func=search&query=rid%3A{{ work.doab }}">DOAB</a>.
</p> </p>
{% endif %} {% endif %}
{% if work.gtbg %} {% if work.gtbg %}
<p> <p>
This book is included in <a href="{% url 'faceted_list' 'id/gtbg' %}?order_by=popular">Project Gutenberg</a>. This book is included in <a href="https://www.gutenberg.org/ebooks/{{ work.gtbg }}">Project Gutenberg</a>.
</p> </p>
{% endif %} {% endif %}
</div> </div>