-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdublin_core.xml
31 lines (29 loc) · 1.11 KB
/
dublin_core.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<csw:Record
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:ows="http://www.opengis.net/ows"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/record.xsd">
<%!
from datetime import datetime
%>
<dc:identifier>${identifier}</dc:identifier>
<dc:title>${title}</dc:title>
<dct:modified>${datetime.now().strftime('%Y-%m-%dT%H:%M:%SZ')}</dct:modified>
<dct:abstract>${abstract}</dct:abstract>
<dc:type>${type}</dc:type>
% for keyword in keywords.split(','):
<dc:subject>${keyword}</dc:subject>
% endfor
<dc:format>${format}</dc:format>
<dc:creator>${creator}</dc:creator>
<dc:language>en</dc:language>
<ows:BoundingBox crs="urn:x-ogc:def:crs:EPSG:6.11:4326">
<ows:LowerCorner>-90 -180</ows:LowerCorner>
<ows:UpperCorner>90 180</ows:UpperCorner>
</ows:BoundingBox>
<dc:source>${source}</dc:source>
<dc:rights>${rights}</dc:rights>
</csw:Record>