{% extends "base.html" %} {% load comments %} {% load humanize %} {% load purchased %} {% load lib_acqs %} {% block title %}— {% if work.first_ebook %} {{ work.title }} is a Free eBook {% else %} Help us make {{ work.title }} a Free eBook! {% endif %}{% ifequal action 'editions' %} – All Editions{% endifequal %} {% endblock %} {% block extra_css %} {% endblock %} {% block extra_js %} {% 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.googlebooks_id %} {% else %}
{{ work.title }}
{% endif %}

{{ work.title }}

{% ifequal work.authors.count 2 %} and {% endifequal %}{% if work.authors.count > 2 %}{% for author in work.authors %}{% 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 %} {{ work.description|safe }} {% endif %}

Why unglue this? 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 }}

{% endif %} {% endif %} {% endif %} {% endif %} {% endif %}

If you'd like to contact us regarding rights for this work, please email rights@gluejar.com.

{% if work.first_ebook %}

Downloads

This work has been downloaded {{ work.download_count }} times via unglue.it ebook links.
{% endif %} {% if user.is_staff %}

Related Works

{% endif %} {% if work.subjects.all.count > 0 %}

Subjects

    {% for subject in work.subjects.all %}
  • {{ subject.name }}
  • {% endfor %}
{% 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.first_ebook %} {% 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

{% if borrowed %}

Borrowed!

{% else %}

Buy for a Library

{% endif %} {% endifequal %} {% ifequal work.last_campaign.type 3 %}

Thank the Creators

{% endifequal %}
{% endif %}
{% endwith %} {% endwith %} {% endblock %}