diff --git a/discuss_data/templates/dddatasets/pdf_dataset.html b/discuss_data/templates/dddatasets/pdf_dataset.html index 6cb874456742b7a9a11663b44e183c06b4b4abb2..aa9d10619359682740def882a60dc83d5c5038f4 100644 --- a/discuss_data/templates/dddatasets/pdf_dataset.html +++ b/discuss_data/templates/dddatasets/pdf_dataset.html @@ -1,38 +1,34 @@ -{% load static %} - - +{% load static i18n compress%} - - - - - + Discuss-Data.net: {{ ds.get_fulltitle }} + - - -
-
-
-
-
-
-

{{ ds.get_fulltitle }}, {{ ds.version }}

- {{ ds.get_absolute_url }}
-
+ +
+ + Open Platform for the Interactive Discussion of Research Data Quality (on the example of area studies on the post-Soviet region) +
+
+

{{ ds.title }}

+

{{ ds.subtitle }}

+

Version {{ ds.version }}, {% trans "Dataset created by" %} {{ ds.creators }}

+ {{ ds.get_absolute_url }}
-

Data Citation

+

{% trans "Data Citation" %}

{{ ds.get_data_citation }}

-

Description

+

{% trans "Description" %}

{{ ds.description }}

-

Files

+

{% trans "Files" %}

-

Metadata

+

{% trans "Metadata" %}

{% comment %} @@ -48,8 +44,8 @@ {% endcomment %} - - + + @@ -128,10 +124,6 @@ - - - - @@ -154,6 +146,31 @@
FieldContent
Title: {{ ds.title }}Title: {{ ds.title }}
Subtitle: Related datasets (text): {{ ds.related_dataset_text }}
Related Publications:{% for elem in ds.publications.all %}{{ elem }}{% if not forloop.last %}, {% endif %}{% endfor %}
Institutional Affiliation: {{ ds.institutional_affiliation }}
+ +

{% trans "Version History" %}

+ + +

{% trans "Publications" %}

+ {% if ds.get_dataset_publications %} + + {% else %} +

{% trans "No publications were added to this Dataset." %}

+ {% endif %} + +

{% trans "Data License" %}

+

{{ ds.license.get_license_title }} ({{ ds.license.get_license_type_display }})

+ {{ ds.license.get_license_text }} +
diff --git a/discuss_data/templates/dddatasets/pdf_datasets_styles.css b/discuss_data/templates/dddatasets/pdf_datasets_styles.css new file mode 100644 index 0000000000000000000000000000000000000000..53f0553053c05d245cf10a0782dbdae02a65e290 --- /dev/null +++ b/discuss_data/templates/dddatasets/pdf_datasets_styles.css @@ -0,0 +1,108 @@ +@page { + /*margin: 3cm 2cm; padding-left: 1.5cm;*/ + /* + @top-center { + content: "Introduction to CSS 2.1"; + vertical-align: bottom; + border-bottom: 0.5pt solid } + */ + + @bottom-center { + content: "{{ ds.title }} v{{ ds.version}}, Page " counter(page) "/" counter(pages) + } + font-family: sans-serif; + font-size: x-small; + /* + @left-top { + content: "W3C Recommendation"; + background: #005a9c; + color: #fff; + text-align: right; + transform-origin: 100% 0; + transform: rotate(-90deg) + } + */ + +} + +@media print { + a[href]:after { + content: none !important; + } + + #metadata { + page-break-before: always; + } + +} + +body { + font-family: sans-serif; + font-size: medium; +} + +header { + position: fixed; + top: 0; + left: 0; + height: 2.5cm; + width: 100%; + border-bottom: 1px solid black; + +} + +.pdf-logo +{ + float: left; + width: auto; + height: 1.3cm; + padding-right: 2.8cm; +} + +.pdf-header { + text-align: justify; + border-bottom: 1px solid black; + padding-bottom: .5cm; +} + +table { + width: 100%; + border-collapse: collapse; + table-layout: fixed; +} + +th, +td { + padding: 5px; + /*background-color: rgba(255,255,255,0.2); + color: #fff;*/ + + + +} + +th { + text-align: left; +} + +tr:nth-of-type(odd) { + background: #EEEEEE; +} + +.row-field { + width: 35%; +} + +.row-value { + width: 65%; +} + +.list-unstyled { + list-style: none; + margin-left: 0; + padding-left: 0; +} + +.list-unstyled li { + padding-bottom: .3cm; +} \ No newline at end of file