-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom-create-deposit.tpl.php
29 lines (29 loc) · 1.02 KB
/
atom-create-deposit.tpl.php
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
<?php
/**
* @file
* Template for the Atom XML used to create deposits.
*
* Available variables:
* $au_title string
* The AU's title.
* $uuid string
* A UUID.
* $utc_timestamp
* A GMT/UTC timestamp.
* $site_name string
* The value of variable_get('site_name', '').
* $entries array
* An array of the content URLs.
*/
?>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:lom="http://lockssomatic.info/SWORD2">
<title><?php print $au_title; ?></title>
<id>urn:uuid:<?php print $uuid; ?></id>
<updated><?php print $utc_timestamp; ?></updated>
<summary type="text">Content deposited to LOCKSS-O-Matic by content provider <?php print $site_name; ?>.</summary>
<?php foreach ($entries as $entry) : ?>
<lom:content size="<?php print $entry['size']; ?>" checksumType="<?php print $entry['checksum_type']; ?>" checksumValue="<?php print $entry['checksum_value']; ?>"><?php print $entry['url']; ?></lom:content>
<?php endforeach; ?>
</entry>