{% extends 'base.html' %} {% load url from future %} {% load comments %} {% load humanize %} {% load purchased %} {% load lib_acqs %} {% block title %}— {% if work.is_free %} {{ work.title }} is a Free eBook. {% if work.first_pdf %}[PDF]{% endif %}{% if work.first_epub %}[EPUB, MOBI]{% endif %} {% else %} Help us make {{ work.title }} a Free eBook! {% endif %}{% ifequal action 'editions' %} – All Editions{% endifequal %} {% 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 %} {% else %} {% if 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 %} {% else %} {% if request.user == work.user_with_rights %} {% ifnotequal work.last_campaign.status 'SUCCESSFUL' %}
Hi, {{ request.user.username }}. Since you're a rights holder for this work, you can launch a campaign.
{% endifnotequal %} {% endif %} {% 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 }}

{% ifequal work.authors.count 2 %} and {% endifequal %}{% 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 %}

{% ifequal status 'ACTIVE' %} {% ifnotequal work.last_campaign.type 3 %}
{{ work.percent_of_goal }}% of goal
{% endifnotequal %}
{% ifequal work.last_campaign.type 1 %} ${{ work.last_campaign.current_total|floatformat:0|intcomma }} pledged {% endifequal %} {% ifequal work.last_campaign.type 2 %} current ungluing date: {% endifequal %} {% ifequal work.last_campaign.type 3 %} ${{ work.last_campaign.current_total|floatformat:0|intcomma }} of thanks from {% endifequal %}
{% ifequal work.last_campaign.type 1 %} ${{ work.last_campaign.target|floatformat:0|intcomma }} goal {% endifequal %} {% ifequal 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. {% endifequal %} {% ifnotequal work.last_campaign.type 3 %}
{% endifnotequal %} {% if work.last_campaign.supporters_count == 1 %} 1 ungluer {% else %} {{ work.last_campaign.supporters_count }} ungluers {% endif %} {% ifequal work.last_campaign.type 3 %}
{% if work.last_campaign.anon_count == 1 %} 1 other {% else %} {{ work.last_campaign.anon_count }} others {% endif %} {% endifequal %}
{% ifequal work.last_campaign.type 2 %}
{% if work.lib_acqs.count == 1 %} 1 copy in a library {% else %} {{ work.lib_acqs.count }} in libraries {% endif %}
{% endifequal %} {% ifnotequal work.last_campaign.type 3 %}
{% ifequal 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. {% endifequal %}
{% endifnotequal %}
{% else %} {% ifequal 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!
{% endifequal %}
{% if wishers == 1 %} 1 Ungluer has {% else %} {{ wishers }} Ungluers have {% endif %} Faved this Work
{% endifequal %}
{% if request.user.is_anonymous %} {% else %}{% if request.user.id in work.last_campaign.supporters %}
Faved!
{% else %}{% if work in request.user.wishlist.works.all %}
Remove from My Faves
{% else %}
Add to My Faves
{% endif %}{% endif %}{% endif %}
{% get_comment_count for work as comment_count %} {% ifequal action 'editions' %} {% else %} {% endifequal %}
{% if status == 'ACTIVE' %} {% if work.last_campaign.type != 3 %} {{ work.last_campaign.description|safe }} {% else %} {{ work.description|safe }} {% endif %} {% else %} {% if work.description %} {{ work.description|safe }} {% else %} {{ work.last_campaign.description|safe }} {% endif %} {% 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 %}
{% ifequal action 'display' %} {% if status == 'ACTIVE' %} {% ifequal 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!

{% endifequal %} {% ifequal 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!

{% endifequal %} {% ifequal 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.

{% endifequal %}

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 }} ({{ 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 %} {% endifequal %}

    Editions

    {% if alert %}

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

    {% ifequal status 'ACTIVE' %}{% if work.last_campaign.email %}

    Ask Questions

    {% endif %}{% endifequal %}

    Share

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

    Premiums

    {% endif %} {% ifequal work.last_campaign.type 1 %}

    Acknowledgements

    {% endifequal %} {% ifequal 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 %} {% endifequal %} {% ifequal work.last_campaign.type 3 %}

    Thank the Creators

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

    for libraries...

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