File: record_metadata_dc.html

package info (click to toggle)
qgis 3.40.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,181,336 kB
  • sloc: cpp: 1,593,302; python: 370,494; xml: 23,474; perl: 3,664; sh: 3,482; ansic: 2,257; sql: 2,133; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 157
file content (119 lines) | stat: -rw-r--r-- 5,464 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html lang="{{ language }}">
    <head>
        <meta charset="utf-8"/>
        <title>{{ gettext('Record Metadata') }}</title>
        <style type="text/css">
            body, h3 {
                background-color: #ffffff;
                font-family: arial, verdana, sans-serif;
                text-align: left;
                float: left;
            }
            header {
                display: inline-block;
            }
        </style>
    </head>
    <body>
        <header>
            <h3>{{ gettext('Record Metadata') }} (<a href="{{ obj.url }}">{{ gettext('View XML') }}</a>)</h3>
        </header>
        <section id="record-metadata">
            <table>
                <tr>
                    <td>{{ gettext('Identifier') }}</td>
                    <td>{{ obj.identifier if obj.identifier not in [None, 'None', '']
                        else gettext('None') }}</td>
                </tr>
                <tr>
                    <td>{{ gettext('Title') }}</td>
                    <td>{{ obj.title if obj.title not in [None, 'None', '']
                        else gettext('None') }}</td>
                </tr>
                <tr>
                    <td>{{ gettext('Abstract') }}</td>
                    <td>{{ obj.abstract if obj.abstract not in [None, 'None', '']
                        else gettext('None') }}</td>
                </tr>
                <tr>
                    <td>{{ gettext('Subjects') }}</td>
                    <td>{% set filteredSubjects = obj.subjects | select('ne', None) | select('ne', 'None') | select('ne', '') | list %}
                        {{ filteredSubjects | join(',') if filteredSubjects else gettext('None') }}</td>
                </tr>
                <tr>
                    <td>{{ gettext('Creator') }}</td>
                    <td>{{ obj.creator if obj.creator not in [None, 'None', '']
                        else gettext('None') }}</td>
                </tr>
                <tr>
                    <td>{{ gettext('Contributor') }}</td>
                    <td>{{ obj.contributor if obj.contributor not in [None, 'None', '']
                        else gettext('None') }}</td>
                </tr>
                <tr>
                    <td>{{ gettext('Publisher') }}</td>
                    <td>{{ obj.publisher if obj.publisher not in [None, 'None', '']
                        else gettext('None') }}</td>
                </tr>
                <tr>
                    <td>{{ gettext('Modified') }}</td>
                    <td>{{ obj.modified if obj.modified not in [None, 'None', '']
                        else gettext('None') }}</td>
                </tr>
                <tr>
                    <td>{{ gettext('Language') }}</td>
                    <td>{{ obj.language if obj.language not in [None, 'None', '']
                        else gettext('None') }}</td>
                </tr>
                <tr>
                    <td>{{ gettext('Format') }}</td>
                    <td>{{ obj.format if obj.format not in [None, 'None', '']
                        else gettext('None') }}</td>
                </tr>
                <tr>
                    <td>{{ gettext('Rights') }}</td>
                    <td>{% set filteredRights = obj.rights | select('ne', None) | select('ne', 'None') | select('ne', '') | list %}
                        {{ filteredRights | join(',') if filteredRights else gettext('None') }}</td>
                </tr>
                <tr>
                    <td>{{ gettext('Bounding Box') }}</td>
                    <td>{{ [obj.bbox.minx, obj.bbox.miny, obj.bbox.maxx, obj.bbox.maxy] | join(',')
                           if obj.bbox not in [None, 'None', '']
                           else gettext('None') }}</td>
                </tr>
            </table>
        </section>
        <section id="links">
            <h4>Links</h4>
            <ul>
            {% for link in obj.references %}
                <li><a href="{{ link['url'] }}">
                    {{ link['name'] if link['name'] not in [None, 'None', '']
                       else link['description'] if link['description'] not in [None, 'None', '']
                       else link['scheme'] if link['scheme'] not in [None, 'None', '']
                       else gettext('Access Link') }}
                    {% if link['scheme'] not in [None, 'None', '']
                       and ( link['name'] not in [None, 'None', '']
                       or link['description'] not in [None, 'None', ''] ) %}
                           ({{ link['scheme'] }})
                    {% endif %}
                </a></li>
            {% endfor %}
            {% for link in obj.uris %}
                <li><a href="{{ link['url'] }}">
                    {{ link['name'] if link['name'] not in [None, 'None', '']
                       else link['description'] if link['description'] not in [None, 'None', '']
                       else link['protocol'] if link['protocol'] not in [None, 'None', '']
                       else gettext('Access Link') }}
                    {% if link['protocol'] not in [None, 'None', '']
                       and ( link['name'] not in [None, 'None', '']
                       or link['description'] not in [None, 'None', ''] ) %}
                           ({{ link['protocol'] }})
                    {% endif %}
                </a></li>
            {% endfor %}
            </ul>
        </section>
    </body>
</html>