Add prolewiki

This commit is contained in:
HackerNCoder 2024-03-17 01:17:38 +01:00
parent 191d968c3e
commit 0a0f97010b
3 changed files with 7 additions and 0 deletions

View file

@ -13,3 +13,5 @@ epub:
russian-justice.epub russian-justice.epub
--- ---
html: russian-justice html: russian-justice
---
prolewiki: Russian_Justice

View file

@ -30,6 +30,10 @@ type = strings
label = html folder name label = html folder name
type = string type = string
[fields.prolewiki]
label = prolewiki Library: name
type = string
[fields.orig] [fields.orig]
label = Origin URL label = Origin URL
type = strings type = strings

View file

@ -33,6 +33,7 @@
<p class="italics">{% if this.publisher %}{{ this.publisher }}, {% endif %}{{ this.pub_date }}</p> <p class="italics">{% if this.publisher %}{{ this.publisher }}, {% endif %}{{ this.pub_date }}</p>
<div class="mt-2"> <div class="mt-2">
{% if this.html %}<p><a href="/lib/html/{{ this.html }}/">Read online</a></p>{% endif %} {% if this.html %}<p><a href="/lib/html/{{ this.html }}/">Read online</a></p>{% endif %}
{% if this.prolewiki %}<p><a href="https://en.prolewiki.org/wiki/Library:{{ this.prolewiki }}">Read on ProleWiki</a></p>{% endif %}
{% if this.epub %}<p {% if this.html %}class="mt-1"{% endif %}>Download EPUB:</p>{% for item in this.epub %}<p>{% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}<a href="{{ url }}">{{ url.split('://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/epub/{{ url }}">comlib.encryptionin.space</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}</p>{% endfor %}{% endif %} {% if this.epub %}<p {% if this.html %}class="mt-1"{% endif %}>Download EPUB:</p>{% for item in this.epub %}<p>{% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}<a href="{{ url }}">{{ url.split('://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/epub/{{ url }}">comlib.encryptionin.space</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}</p>{% endfor %}{% endif %}
{% if this.orig %}<p {% if this.epub %}class="mt-1"{% endif %}>Download source PDF:</p>{% for item in this.orig %}<p>{% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}<a href="{{ url }}">{{ url.split('://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/cache/{{ url }}">cached</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}</p>{% endfor %}{% endif %} {% if this.orig %}<p {% if this.epub %}class="mt-1"{% endif %}>Download source PDF:</p>{% for item in this.orig %}<p>{% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}<a href="{{ url }}">{{ url.split('://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/cache/{{ url }}">cached</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}</p>{% endfor %}{% endif %}
</div> </div>