{% extends 'base.html' %} {% load comments %} {% load humanize %} {% load purchased %} {% load lib_acqs %} {% block title %}— {% if work.is_free %} {{ work.title }} is a Free eBook. {% for fmt in work.formats %}[{{ fmt }}]{% endfor %} {% else %} Help us make {{ work.title }} a Free eBook! {% endif %}{% if action == 'editions' %} – All Editions{% endif %} {% endblock %} {% block extra_css %} {% if user.is_staff or user in work.last_campaign.managers.all %} {{ kwform.media.css }} {% endif %} {% endblock %} {% block extra_js %} {% if user.is_staff or user in work.last_campaign.managers.all %} {{ kwform.media.js }} {% endif %} {% endblock %} {% block topsection %} {% if work.last_campaign.status == 'ACTIVE' %} {% if request.user in work.last_campaign.managers.all %}
Hi, {{ request.user.username }}. Since you're a manager for this campaign, you can edit this campaign.
{% endif %} {% elif not work.user_with_rights %} {% if request.user.rights_holder.all %}
Hi, {{ request.user.username }}. Since you're an authorized Unglue.it rights holder, if you own the worldwide electronic rights to this work, you may claim it through the More... tab. Need help? Check out the rights holder tools page.
{% endif %} {% elif request.user == work.user_with_rights %} {% if work.last_campaign.status != 'SUCCESSFUL' %}
Hi, {{ request.user.username }}. Since you're a rights holder for this work, you can launch a campaign.
{% endif %} {% endif %} {% endblock %} {% block content %} {% purchased %} {% lib_acqs %} {% with work.last_campaign_status as status %} {% with work.id as work_id %}
{% include "explore.html" %}
{% if work.uses_google_cover %} {% else %}
{{ work.title }}
{% endif %}

{{ work.title }}

{% if work.authors.count == 2 %} and {% endif %}{% if work.relators.count > 2 %}{% for author in work.relators %}{% if not forloop.first %}, {% endif %}{% endfor %} {% endif %}

{% if work.last_campaign.publisher %} {{ work.last_campaign.publisher }} {% endif %}

{% if status == 'ACTIVE' %} {% if work.last_campaign.type != 3 %}
{{ work.percent_of_goal }}% of goal
{% endif %}
{% if work.last_campaign.type == 1 %} ${{ work.last_campaign.current_total|floatformat:0|intcomma }} pledged {% endif %} {% if work.last_campaign.type == 2 %} current ungluing date: {% endif %} {% if work.last_campaign.type == 3 %} ${{ work.last_campaign.current_total|floatformat:0|intcomma }} of thanks from {% endif %}
{% if work.last_campaign.type == 1 %} ${{ work.last_campaign.target|floatformat:0|intcomma }} goal {% endif %} {% if work.last_campaign.type == 2 %} {{ work.last_campaign.cc_date|date:"M j, Y" }} After {{ work.last_campaign.cc_date|date:"M j, Y" }} this book will be available for free to anyone, anywhere. Every purchase before then brings that date closer. {% endif %} {% if work.last_campaign.type != 3 %}
{% endif %} {% if work.last_campaign.supporters_count == 1 %} 1 ungluer {% else %} {{ work.last_campaign.supporters_count }} ungluers {% endif %} {% if work.last_campaign.type == 3 %}
{% if work.last_campaign.anon_count == 1 %} 1 other {% else %} {{ work.last_campaign.anon_count }} others {% endif %} {% endif %}
{% if work.last_campaign.type == 2 %}
{% if work.lib_acqs.count == 1 %} 1 copy in a library {% else %} {{ work.lib_acqs.count }} in libraries {% endif %}
{% endif %} {% if work.last_campaign.type != 3 %}
{% if work.last_campaign.type == 1 %} {{ work.last_campaign.countdown }} to go {% else %} ${{ work.last_campaign.left|floatformat:0|intcomma }} to go ${{ work.last_campaign.left|floatformat:0|intcomma }} is the amount it would take to make this ebook free to the world tomorrow. {% endif %}
{% endif %}
{% else %} {% if status == 'SUCCESSFUL' %}
This campaign succeeded on {{ work.last_campaign.success_date|date:"M j, Y" }}.
{% if work.last_campaign.supporters_count == 1 %} 1 ungluer {% else %} {{ work.last_campaign.supporters_count }} ungluers {% endif %}
${{ work.last_campaign.current_total|floatformat:0|intcomma }} raised
${{ work.last_campaign.target|floatformat:0|intcomma }} goal
Unglued!
{% endif %}
{% if wishers == 1 %} 1 Ungluer has {% else %} {{ wishers }} Ungluers have {% endif %} Faved this Work
{% endif %}
{% if request.user.is_anonymous %} {% elif request.user.id in work.last_campaign.supporters %}
Faved!
{% elif work in request.user.wishlist.works.all %}
Remove from My Faves
{% else %}
Add to My Faves
{% endif %}
{% get_comment_count for work as comment_count %} {% if action == 'editions' %} {% else %} {% endif %}
{% if status == 'ACTIVE' %} {% if work.last_campaign.type != 3 %} {{ work.last_campaign.description|safe }} {% else %} {{ work.description|safe }} {% endif %} {% elif work.description %} {{ work.description|safe }} {% else %} {{ work.last_campaign.description|safe }} {% endif %}
{% for work_rel in work.works_related_to.all %}

This work is a {{ work_rel.relation }} of {{ work_rel.from_work }}.

{% endfor %} {% for work_rel in work.works_related_from.all %}

{{ work_rel.to_work }} is a {{ work_rel.relation }} of this work.

{% endfor %} {% if work.doab %}

This book is included in DOAB.

{% endif %} {% if work.gtbg %}

This book is included in Project Gutenberg.

{% endif %}

Why {% if work.ebooks.all %}read{% else %}unglue{% endif %} this book? Have your say.

{% render_comment_list for work %} {% if user.is_authenticated %} {% render_comment_form for work %} {% else %}

You must be logged in to comment.

{% endif %}
{% if request.user.is_staff or request.user in work.last_campaign.managers.all %}
{% csrf_token %} {% for wish in work.wishes.all reversed %} {% with wish.wishlist.user as supporter %}
Avatar for {{ supporter }}
{{ supporter }}
Wished: {{ wish.created }}
{% if supporter.id in work.last_campaign.supporters %}Pledged!
{% endif %} {% if supporter in work.last_campaign.ungluers.all %}Supported!
{% endif %}
{% endwith %} {% endfor %}
{% else %} {% for wish in work.wishes.all reversed %} {% with wish.wishlist.user as supporter %} {% endwith %} {% endfor %} {% endif %}
{% if action == 'display' %} {% if status == 'ACTIVE' %} {% if work.last_campaign.type == 1 %}

A campaign is running to unglue {{work.title}}!

The rights holder, {% for claim in work.claim.all %} {% if claim.status == 'active' %} {{ claim.rights_holder.rights_holder_name }} {% endif %} {% endfor %} , has agreed to release {{work.title}} to the world as a Creative Commons licensed ebook ({{ work.last_campaign.license }}) if ungluers can join together to raise ${{ work.last_campaign.target|floatformat:0|intcomma }} by {{ work.last_campaign.deadline }}. You can help!

{% endif %} {% if work.last_campaign.type == 2 %}

A Buy-to-Unglue Campaign is running to unglue {{work.title}}!

The rights holder, {% for claim in work.claim.all %} {% if claim.status == 'active' %} {{ claim.rights_holder.rights_holder_name }} {% endif %} {% endfor %} , has agreed to release {{work.title}} to the world as a Creative Commons licensed ebook ({{ work.last_campaign.license }}) on {{ work.last_campaign.cc_date }}. For every copy that ungluers purchase, that date gets sooner. ${{ work.last_campaign.left|floatformat:0|intcomma }} of sales will unglue the book TODAY. You can help!

{% endif %} {% if work.last_campaign.type == 3 %}

A Thanks-for-Ungluing Campaign is running to reward the creators of {{work.title}}!

The rights holder, {% for claim in work.claim.all %} {% if claim.status == 'active' %} {{ claim.rights_holder.rights_holder_name }} {% endif %} {% endfor %} , has released {{work.title}} to the world as a Creative Commons licensed ebook ({{ work.last_campaign.license }}) . You can help us say "Thank You!" so that other creators will do the same.

{% endif %}

Campaign details: the fine print

{{ work.last_campaign.details|safe }} {% endif %} {% if status == 'SUCCESSFUL' %}

A campaign has succeeded to unglue {{work.title}}!

The rights holder, {% for claim in work.claim.all %} {% if claim.status == 'active' %} {{ claim.rights_holder.rights_holder_name }} {% endif %} {% endfor %} , has agreed to release {{work.title}} to the world as a Creative Commons licensed ebook ({{ work.last_campaign.license }}) thanks to the efforts of ungluers like you.

Campaign details: the fine print

{{ work.last_campaign.details|safe }} {% endif %} {% if status != 'ACTIVE' and status != 'SUCCESSFUL' %}

Rights Information

{% if claimstatus == 'one_active' %}

This work has been claimed by {{ rights_holder_name }}.

{% else %} {% if claimstatus == 'disputed' %}

Rights claims are pending.

{% else %} {% if claimstatus == 'one_pending' %}

A claim for this work by {{ rights_holder_name }} is pending.

{% else %} {% if request.user.rights_holder.all.count %} Is this work yours? Claim it:

{% csrf_token %} {{ claimform.user }} {{ claimform.work }} {{ claimform.rights_holder }}

{% else %} Are you the author or publisher of this work? If so, you can claim it as yours by registering as an Unglue.it rights holder. {% endif %} {% endif %} {% endif %} {% endif %} {% endif %} {% if work.is_free %}

Downloads

This work has been downloaded {{ work.download_count }} times via unglue.it ebook links.
    {% for ebook in work.ebooks.all %}
  1. {{ ebook.download_count }} - {{ ebook.format }} {% if ebook.version_label %} ({{ ebook.version_label }}) {% endif %}({{ ebook.rights }}) at {{ ebook.provider }}.
  2. {% endfor %}
{% if user.is_staff %}

Feature this work today.

{% endif %} {% endif %} {% if user.is_staff %}

Related Works

{% endif %}

Keywords

{% if work.subjects.all.count > 0 %}
    {% for subject in work.subjects.all %}
  • {{ subject.name }} {% if user.is_staff or user in work.last_campaign.managers.all %} x {% endif %}
  • {% endfor %}
{% else %} No keywords yet.
    {% endif %} {% if user.is_staff or user in work.last_campaign.managers.all %}
    {% csrf_token %} {{ kwform.add_kw }}
    {% endif %} {% endif %}

    Editions

    {% if alert %}

    {{ alert }}
    {% endif %} {% if user.is_staff or user in work.last_campaign.managers.all %} {% endif %} {% if action == 'editions' %} {% include 'split.html' %} {% else %} {% with work.preferred_edition as edition %} {% include 'edition_display.html' %} {% endwith %} {% if not campaign %} {% for edition in editions %} {% if edition != work.preferred_edition %} {% include 'edition_display.html' %} {% endif %} {% endfor %} {% endif %} {% endif %}
    {% if status == 'ACTIVE' %} {% if work.last_campaign.type == 1 %} {% if pledged %}
    {% else %}
    {% endif %} {% elif work.last_campaign.type == 3 %}
    ... and thank the creators!
    {% elif license_is_active %} {% elif borrowable %}
    {% else %}
    {% endif %} {% elif work.is_free %} {% endif %}

    {% if status == 'ACTIVE' and work.last_campaign.email %}

    Ask Questions

    {% endif %}

    Share

    Copy/paste this into your site:
    {% if status == 'ACTIVE' %}
    {% if premiums %}

    Premiums

    {% endif %} {% if work.last_campaign.type == 1 %}

    Acknowledgements

    {% endif %} {% if work.last_campaign.type == 2 %} {% if lib_licenses.available %}

    Borrow

    {% endif %}

    Buy for Yourself

    Buy as a Gift

    {% if borrowed %}

    Borrowed!

    {% else %}

    Buy for a Library

    {% endif %} {% endif %} {% if work.last_campaign.type == 3 %}

    Thank the Creators

    {% endif %}
    {% endif %}
    {% if request.user.libpref %} {% if work.is_free or work.ebookfiles %}

    for libraries...

    {% include 'marc_form.html' %}
    {% endif %} {% endif %}
    {% endwith %} {% endwith %} {% endblock %}