{% extends "base.html" %} {% load comments %} {% load humanize %} {% block title %}— {% if work.first_ebook %} {{ work.title }} is a Free eBook {% else %} Help us make {{ work.title }} a Free eBook! {% endif %} {% 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 Rights tab. Need help? There's a screencast of the process at the rights holder tools page.
{% endif %} {% else %} {% if request.user == work.user_with_rights %} {% ifequal work.last_campaign.status 'SUCCESSFUL' %}
Congratulations, {{ request.user.username }}; you successfully unglued this work! What are your plans for publicity and distribution? We're happy to brainstorm with you about next steps.
{% else %}
Hi, {{ request.user.username }}. Since you're a rights holder for this work, you can launch a campaign.
{% endifequal %} {% endif %} {% endif %} {% endif %} {% endblock %} {% block content %} {% 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 }}

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

{% ifequal status 'ACTIVE' %}
{{ work.percent_of_goal }}% of goal
${{ work.last_campaign.current_total|floatformat:0|intcomma }} pledged
${{ work.last_campaign.target|floatformat:0|intcomma }} goal
{% if work.last_campaign.supporters_count == 1 %} 1 ungluer {% else %} {{ work.last_campaign.supporters_count }} ungluers {% endif %}
{{ work.last_campaign.countdown }} to go
{% 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 }} pledged
${{ work.last_campaign.target|floatformat:0|intcomma }} goal
Unglued!
{% endifequal %}
{% if wishers == 1 %} 1 Ungluer has {% else %} {{ wishers }} Ungluers have {% endif %} wished for this Work
{% endifequal %}
{% if request.user.is_anonymous %} {% else %}{% if request.user.id in work.last_campaign.supporters %}
On your wishlist!
{% else %}{% if work in request.user.wishlist.works.all %}
Remove from Wishlist
{% else %}
Add to Wishlist
{% endif %}{% endif %}{% endif %}
{% get_comment_count for work as comment_count %}
{% if status == 'ACTIVE' or status == 'SUCCESSFUL' %}
{{ work.last_campaign.description|safe }}
{% else %}

{{work.title}}

{{ 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 %}
{% if status == 'ACTIVE' %}

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!

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 user.is_staff %}

Related Works

Merge other works into this one
{% endif %} {% if work.subjects.all.count > 0 %}

Subjects

    {% for subject in work.subjects.all %}
  • {{ subject.name }}
  • {% endfor %}
{% endif %}

Editions

{% if user.is_staff %} {% endif %} {% if alert %}
Ebook Contribution:
{{ alert }}
{% endif %} {% for edition in editions %}
{% if edition.googlebooks_id %}
edition cover
{% endif %}
{% if edition.ebook_form %} {% ifnotequal status 'ACTIVE' %} {% if edition.hide_details %}
more...
{% endif %}
{% if edition.ebooks.count %}
eBooks for this Edition
{% for ebook in edition.ebooks.all %} {{ ebook.format }} {{ebook.rights}} at {{ebook.provider}}
{% endfor %} {% endif %}
Add an eBook for this Edition:
If you know that this edition is available as a public domain or Creative Commons ebook, you can enter the link here and "unglue" it. Right now, we're only accepting URLs that point to Internet Archive, Wikisources, Hathitrust, Project Gutenberg, or Google Books.
{% csrf_token %}{{ edition.ebook_form.edition.errors }}{{ edition.ebook_form.edition }}{{ edition.ebook_form.user.errors }}{{ edition.ebook_form.user }}{{ edition.ebook_form.provider.errors }}{{ edition.ebook_form.provider }} {{ edition.ebook_form.url.errors }}URL: {{ edition.ebook_form.url }}
{{ edition.ebook_form.format.errors }}File Format: {{ edition.ebook_form.format }}    {{ edition.ebook_form.rights.errors }}License: {{ edition.ebook_form.rights }}
{% endifnotequal %} {% endif %}
{% endfor %}
{% if status == 'ACTIVE' %} {% if pledged %}
{% else %}
{% 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 %} {% endif %} {% endif %}
{% endwith %} {% endwith %} {% endblock %}