2015-04-28 03:24:02 +00:00
{% extends 'basedocumentation.html' %}
2016-05-11 14:41:50 +00:00
2013-06-17 22:53:21 +00:00
{% block doccontent %}
< div class = "work_campaigns" >
2015-04-28 03:24:02 +00:00
< b > Title< / b > : < a href = "{% url 'work' edition.work.id %}" > {{ edition.title}}< / a > < br / >
2013-06-17 22:53:21 +00:00
< b > Publisher< / b > : {{ edition.publisher_name }}< br / >
< b > Authors< / b > :
< ul >
{% if edition.pk and edition.authors %}
{% for author in edition.authors.all %}
< li > {{ author.name }}< / li >
{% endfor %}
{% endif %}
< / ul >
< b > ISBN-13< / b > : {{ edition.isbn_13 }}< br / >
< b > OCLC Number< / b > : {{ edition.oclc }}< br / >
< b > Google Books ID< / b > : {{ edition.googlebooks_id }}< br / >
< b > GoodReads ID< / b > : {{ edition.goodreads_id }}< br / >
< b > LibraryThing ID< / b > : {{ edition.librarything_id }}< br / >
< / div >
2016-08-24 19:41:29 +00:00
{% if edition.ebooks.all.0 %}
< h2 > Active eBooks for this Work< / h2 >
{% for ebook in edition.work.ebooks %}
< a href = "{% url 'download_ebook' ebook.id %}" > {{ ebook.format }}< / a > {{ebook.rights}} at {{ebook.provider}}.
2016-09-23 18:53:54 +00:00
{% if ebook.version_label %} {{ ebook.version_label }}. {% endif %} v{{ ebook.version_iter }}
2016-08-24 19:41:29 +00:00
Downloaded {{ ebook.download_count }} times since {{ ebook.created }}< br / >
{% endfor %}
{% endif %}
2013-06-17 22:53:21 +00:00
{% if edition.ebook_files.all %}
2013-08-27 03:56:01 +00:00
< h2 > Ebook Files for this Edition< / h2 >
< ul >
{% for ebook_file in edition.ebook_files.all %}
2014-09-04 22:33:20 +00:00
{% if ebook_file.file %}
2016-08-24 19:41:29 +00:00
< li > {% if ebook_file.active %}< span class = "yikes" > ACTIVE< / span > {% elif ebook_file.ebook.active %} MIRROR {% endif %}< a href = "{{ebook_file.file.url}}" > {{ebook_file.file}}< / a > created {{ebook_file.created}} {% if ebook_file.asking %}(This file has had the campaign 'ask' added.){% endif %}< / li >
2014-09-04 22:33:20 +00:00
{% endif %}
2013-08-27 03:56:01 +00:00
{% endfor %}
< / ul >
{% endif %}
{% if uploaded %}
< h2 > Your file was successfully loaded. < / h2 >
2014-01-15 13:32:55 +00:00
{% ifequal edition.work.last_campaign.type 2 %}
{% if watermarked %}
< p > Reference id: < b > {{watermarked.referenceid}}< / b > < / p >
< ul >
2014-02-25 18:58:33 +00:00
< li > < a href = "{{watermarked.download_link_epub}}" > Processed epub for testing< / a > < / li >
< li > < a href = "{{watermarked.download_link_mobi}}" > Processed mobi (kindle) for testing< / a > < / li >
2014-01-15 13:32:55 +00:00
< / ul >
2014-02-05 22:02:21 +00:00
{% else %}{% if upload_error %}
2014-01-15 13:32:55 +00:00
< p >
< span class = "yikes" > Unfortunately, your file failed testing.< / span >
The error(s) were: < pre >
{{ upload_error }}< / pre >
< / p >
2014-02-05 22:02:21 +00:00
{% endif %}{% endif %}
2014-01-15 13:32:55 +00:00
{% endifequal %}
{% ifequal edition.work.last_campaign.type 3 %}
{% if upload_error %}
< p > < span class = "yikes" > Unfortunately, your file failed testing.< / span >
The error(s) were: < pre >
{{ upload_error }}< / pre > < / p >
{% endif %}
{% endifequal %}
2013-06-17 22:53:21 +00:00
{% endif %}
2014-01-15 13:32:55 +00:00
{{ upload_error }}
2013-06-17 22:53:21 +00:00
< h2 > Upload Ebook files< / h2 >
2014-01-15 13:32:55 +00:00
{% ifequal edition.work.last_campaign.type 2 %}
2014-02-05 22:02:21 +00:00
< p > At this time, we accept only EPUB files for "Buy to Unglue" campaigns. Files for Kindle will be autogenerated.
2014-01-15 13:32:55 +00:00
{% endifequal %}
{% ifequal edition.work.last_campaign.type 3 %}
< p > You can upload PDF, EPUB and MOBI files for "Thanks for Ungluing" campaigns.
{% endifequal %}
For ePUB files, use the < a href = https://code.google.com/p/epubcheck/" > epubcheck< / a > tool to make sure everything will work properly.< / p >
2013-06-17 22:53:21 +00:00
< form method = "POST" action = "#" enctype = "multipart/form-data" >
{% csrf_token %}
2016-08-24 19:41:29 +00:00
{{form.edition.errors}}{{form.edition}}
< p > {{form.format.errors}}Format: {{form.format}}< / p >
2016-09-23 18:53:54 +00:00
< h3 > Note on versions< / h4 >
< p >
If you want ebooks from two editions with the same format and provider to display, give them different version labels.
< / p >
< span > Version Label (optional): {% if edition.work.versions %}
< select id = 'version_label' >
< option value = "" > (no label) < / option >
{% for vers in edition.work.versions %}< option value = "{{ vers }}" > {{ vers }}< / option > {% endfor %}
< / select > or add a new version label:
{% endif %}
{{ form.new_version_label.errors }} {{ form.new_version_label }} < / span > < br / >
2016-08-24 19:41:29 +00:00
< p > {{form.file.errors}}Upload File: {{form.file}}< / p >
2013-06-17 22:53:21 +00:00
< input type = "submit" id = "submit_file" value = "submit ebook file" >
< / form >
2016-08-24 19:41:29 +00:00
2013-06-17 22:53:21 +00:00
< h2 > More Edition Management< / h2 >
2015-04-28 03:24:02 +00:00
< div > < a href = "{% url 'new_edition' edition.work.id edition.id %}" > Edit this edition< / a > < / div >
2013-06-17 22:53:21 +00:00
{% if edition.work.last_campaign %}
2015-04-28 03:24:02 +00:00
< div > < a href = "{% url 'manage_campaign' edition.work.last_campaign.id %}" > Manage this campaign< / a > < / div >
2016-08-24 19:41:29 +00:00
2013-06-17 22:53:21 +00:00
{% endif %}
{% endblock %}