Skip to content

Commit

Permalink
Fix XML structure
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusandrade committed May 21, 2013
1 parent 5bf0286 commit b35ddb7
Showing 1 changed file with 34 additions and 29 deletions.
63 changes: 34 additions & 29 deletions htdocs/isis-oai-provider/map/lilacs_dc.pft
@@ -1,4 +1,9 @@
' <oai-dc:dc xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">'/
' <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:format>'select s(mpu,v9,mpl)
case 'A':'text',if p(v8^q) then '/'v8[1]^q fi,
case 'MATERIAL TEXTUAL':'text',
Expand All @@ -18,38 +23,38 @@
if p(v35) or p(v69) then
' <dc:source>'if p(v35) then v35 else v69 fi'</dc:source>'/,
else
' </dc:source>'/,
' <dc:source/>'/,
fi,

if p(v8) then
(if p(v8^u) then
| <dc:identifier><![CDATA[|v8^u|]]</dc:identifier>|/,
| <dc:identifier><![CDATA[|v8^u|]]></dc:identifier>|/,
else
| <dc:identifier><![CDATA[|v8^i|]]</dc:identifier>|/,
| <dc:identifier><![CDATA[|v8^i|]]></dc:identifier>|/,
fi,)
else
' </dc:identifier>'/,
' <dc:identifier/>'/,
fi,

if p(v10) or p(v11) then
(if p(v10) then
| <dc:creator><![CDATA[|v10^*|]]</dc:creator>|/,
| <dc:creator><![CDATA[|v10^*|]]></dc:creator>|/,
else
| <dc:creator><![CDATA[|v11^*|]]</dc:creator>|/,
| <dc:creator><![CDATA[|v11^*|]]></dc:creator>|/,
fi),
else
if p(v16) or p(v17) then
(if p(v16) then
| <dc:creator><![CDATA[|v16^*|]]</dc:creator>|/,
| <dc:creator><![CDATA[|v16^*|]]></dc:creator>|/,
else
| <dc:creator><![CDATA[|v17^*|]]</dc:creator>|/,
| <dc:creator><![CDATA[|v17^*|]]></dc:creator>|/,
fi),
else
if p(v23) or p(v24) then
(if p(v23) then
| <dc:creator><![CDATA[|v23^*|]]</dc:creator>|/,
| <dc:creator><![CDATA[|v23^*|]]></dc:creator>|/,
else
| <dc:creator><![CDATA[|v24^*|]]</dc:creator>|/,
| <dc:creator><![CDATA[|v24^*|]]></dc:creator>|/,
fi),
else
' </dc:creator>'/,
Expand All @@ -58,18 +63,18 @@ else
fi,

if p(v12) then
(| <dc:title><![CDATA[|v12^*|]]</dc:title>|/),
| <dc:title><![CDATA[|v13^*|]]</dc:title>|/,
(| <dc:title><![CDATA[|v12^*|]]></dc:title>|/),
| <dc:title><![CDATA[|v13^*|]]></dc:title>|/,
else
if p(v18) then
(| <dc:title><![CDATA[|v18^*|]]</dc:title>|/),
| <dc:title><![CDATA[|v19^*|]]</dc:title>|/,
(| <dc:title><![CDATA[|v18^*|]]></dc:title>|/),
| <dc:title><![CDATA[|v19^*|]]></dc:title>|/,
else
if p(v25) then
(| <dc:title><![CDATA[|v25^*|]]</dc:title>|/),
| <dc:title><![CDATA[|v26^*|]]</dc:title>|/,
(| <dc:title><![CDATA[|v25^*|]]></dc:title>|/),
| <dc:title><![CDATA[|v26^*|]]></dc:title>|/,
else
' </dc:title>'/,
' <dc:title/>'/,
fi,
fi,
fi,
Expand All @@ -84,7 +89,7 @@ if p(v30) then,
v30|;|,v31,|(|v32|)|,|: |v14^f|-|v14^l|, |,if a(v14^f) or a(v14^l) then |: |v14^*|, | fi,v64|. |,v38^b+|, |,if a(v38^b) then v38^*+|, |, fi,if p(v38) then '.' fi,
fi,
fi,
']]</dc:relation>'/,
']]></dc:relation>'/,
case 'am':
' <dc:relation><![CDATA['
if p(v16^*) then,
Expand All @@ -96,16 +101,16 @@ fi,
if p(v16) or p(v17) then
v18^*|. |,v66|, |,v62|, |,v63|, |,v64|. |,if p(v14) then if p(v14^f) then 'p.'(v14^f'-'v14^l+|, |'. ') else 'p.'(v14^*+|, |'. ') fi,fi,if p(v38) then if p(v38^b) then (v38^b+|, |'. ') else (v38^*+|, |'. ') fi,fi,|(|v30,|, |v31,|, |v32, if p(v30) then ').' fi, | (|v68|)|,
fi,
']]</dc:relation>'/,
']]></dc:relation>'/,
case 'm':
if p(v66) then
' <dc:relation><![CDATA['v66,'; 'v62,'; 'v63,'; 'v64,'. 'v20| p. |,v38^b|, |".",|(|v30, |, |v31, |, |v32, if p(v30) then ').' fi,| (|v68|).|,
']]</dc:relation>'/,
']]></dc:relation>'/,
fi,
case 'c':
if p(v66) then
' <dc:relation><![CDATA['v66'; ',v62'; ',v63'; 'v64'. ',v20| p. |,v38|.|,
']]</dc:relation>'/,
']]></dc:relation>'/,
fi,
endsel,

Expand All @@ -125,20 +130,20 @@ fi,)
if p(v62) and not s(mpu,v62,mpl):'S.N' then
' <dc:publisher>'v62^*'</dc:publisher>'/,
else
' </dc:publisher>'/,
' <dc:publisher/>'/,
fi,
| <dc:date>|v65.4'-'v65*4.2'-'v65*6.2|</dc:date>|/,

(| <dc:subject><![CDATA[|v71^*|]]</dc:subject>|/,)
(| <dc:subject><![CDATA[|v76^*|]]</dc:subject>|/,)
(| <dc:subject><![CDATA[|v71^*|]]></dc:subject>|/,)
(| <dc:subject><![CDATA[|v76^*|]]></dc:subject>|/,)

if p(v87) and not s(mpu,v87,mpl):'BIREME' then
(' <dc:subject><![CDATA['v87^*,|/|v87^s']]</dc:subject>'/,)
(' <dc:subject><![CDATA['v87^*,|/|v87^s']]></dc:subject>'/,)
fi,

if p(v88) then
(' <dc:subject><![CDATA['v88^*,|/|v88^s']]</dc:subject>'/,)
(' <dc:subject><![CDATA['v88^*,|/|v88^s']]></dc:subject>'/,)
fi,

(| <dc:description><![CDATA[|v83^*|]]</dc:description>|/,)
' </oai-dc:dc>'/
(| <dc:description><![CDATA[|v83^*|]]></dc:description>|/,)
' </oai_dc:dc>'/

0 comments on commit b35ddb7

Please sign in to comment.