This repository has been archived by the owner on Sep 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoai20_listrecords.html
86 lines (82 loc) · 3.83 KB
/
oai20_listrecords.html
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
<!--[
LODEL - Logiciel d'Edition ELectronique.
Copyright (c) 2001-2002, Ghislain Picard, Marin Dacos
Copyright (c) 2003-2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot
Home page: http://www.lodel.org
E-Mail: [email protected]
All Rights Reserved
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.]-->
<USE MACROFILE="macros_site.html">
<MACRO NAME="ENTETE_XML">
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
<responseDate>[#OAI_RESPONSEDATE]</responseDate>
<request[#OAI_ARGS]>[#CURRENTURL|dirname]/oai.[#EXTENSIONSCRIPTS]</request>
<LOOP NAME="listrecords" TABLE="entities" TABLE="types" WHERE="[#OAI_WHERE]" ORDER="entities.id" LIMIT="[#OAI_OFFSET], [#OAI_MAXRECORDS]">
<BEFORE>
<ListRecords>
</BEFORE>
<DO>
<record>
<header>
<IF COND="[#OAIID]">
<identifier>[#OAIID]</identifier>
<ELSE />
<identifier>[#OAI_PREFIX][#ID]</identifier>
</IF>
<IF COND="[#SHORT_DATE]">
<datestamp>[#CREATIONDATE|formateddate("%Y-%m-%d")]</datestamp>
<ELSE/>
<datestamp>[#CREATIONDATE|formateddate("%Y-%m-%dT%H:%M:%SZ")]</datestamp>
</IF>
<LOOP NAME="meta_sets" TABLE="entries, entrytypes" WHERE="identity='[#ID]' AND g_type='oai.set'">
<setSpec>cat_[#ID]</setSpec>
</LOOP>
</header>
<metadata>
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
<dc:title>[(#G_TITLE|removefootnotes|textebrut|strip_amp)]</dc:title>
<!--[<dc:title>[(#G_TITLE|removefootnotes|textebrut|clean_char)]</dc:title>]-->
<LOOP NAME="meta_auteurs" TABLE="persons" WHERE="identity='[#ID]'" ORDER="degree">
<dc:creator>[#G_FIRSTNAME|strip_amp] [#G_FAMILYNAME|strip_amp]</dc:creator>
<!--[<dc:creator>[#G_FIRSTNAME|strip_amp] [#G_FAMILYNAME|clean_char]</dc:creator>]-->
</LOOP>
<dc:type>Text</dc:type>
<IF COND="[#ID|get_dc_description]">
<dc:description>[(#ID|get_dc_description|textebrut|strip_amp)]</dc:description>
<!--[<dc:description>[(#ID|get_dc_description|textebrut|clean_char)]</dc:description>]-->
</IF>
<IF COND="[#ID|get_dc_language]">
<dc:language>[#ID|get_dc_language]</dc:language>
</IF>
<LOOP NAME="meta_dc_subject" TABLE="entries, entrytypes" WHERE="identity='[#ID]' AND (g_type='dc.subject' OR g_type='dc.coverage')">
<[#G_TYPE|dc_rename]>[#G_NAME|strip_set]</[#G_TYPE|dc_rename]>
</LOOP>
<IF COND="[#SHORT_DATE]">
<dc:date>[#CREATIONDATE|formateddate("%Y-%m-%d")]</dc:date>
<ELSE/>
<dc:date>[#CREATIONDATE|formateddate("%Y-%m-%dT%H:%M:%SZ")]</dc:date>
</IF>
<dc:identifier>[#CURRENTURL|dirname]/[#ID|makeurlwithid('document')]</dc:identifier>
</oai_dc:dc>
</metadata>
</record>
</DO>
<AFTER>
[#OAI_RESTOKEN]
</ListRecords>
</AFTER>
<ALTERNATIVE>
<error code="noRecordsMatch">The combination of the given values results in an empty list.</error>
</ALTERNATIVE>
</LOOP>
</OAI-PMH>