Author: sevein
Date: Wed Oct 12 23:38:44 2011
New Revision: 10059

Log:
Complete documentSuccess with more values, show app version, edit link, etc...

Modified:
   
trunk/plugins/qtSwordPlugin/modules/qtSwordPlugin/templates/depositSuccess.xml.php

Modified: 
trunk/plugins/qtSwordPlugin/modules/qtSwordPlugin/templates/depositSuccess.xml.php
==============================================================================
--- 
trunk/plugins/qtSwordPlugin/modules/qtSwordPlugin/templates/depositSuccess.xml.php
  Wed Oct 12 22:35:46 2011        (r10058)
+++ 
trunk/plugins/qtSwordPlugin/modules/qtSwordPlugin/templates/depositSuccess.xml.php
  Wed Oct 12 23:38:44 2011        (r10059)
@@ -1,14 +1,14 @@
+<?php use_helper('Date') ?>
 <?php echo '<?xml version="1.0" encoding="'.sfConfig::get('sf_charset', 
'UTF-8').'" ?>' ?>
 <entry xmlns="http://www.w3.org/2005/Atom";
        xmlns:sword="http://purl.org/net/sword/";>
 
-  <!-- Deposit #id -->
-  <title>My Deposit</title>
+  <title><?php echo render_title($informationObject) ?></title>
 
   <!-- id / date -->
-  <id>info:something:1</id>
+  <id><?php echo $informationObject->id.' / ' . 
format_date($informationObject->createdAt, 's') ?></id>
 
-  <updated>2008-08-18T14:27:08Z</updated>
+  <updated><?php echo format_date($informationObject->createdAt, 's') 
?></updated>
 
   <author>
     <name><?php echo $user->username ?></name>
@@ -18,20 +18,22 @@
     /*
       TODO. See X-On-Behalf-Of [2] and medation
       <contributor><name><?php echo $.. ?></name></contributor>
-    */
-  ?>
 
-  <!-- <category>...<category> -->
+      <category>...<category>
 
-  <!-- <summary type="text">...</summary> -->
+      <content type="application/zip" src="../foobar.zip"/>
 
-  <!-- <content type="application/zip" src="..."/> -->
+      <summary type="text">...</summary>
 
-  <!-- ICA-AtoM 1.2 -->
-  <generator uri="http://dummy-sword-server.example.com/"; 
version="1.3">Stuart's Dummy SWORD Server</generator>
+      <sword:treatment>Treatment description</sword:treatment>
 
-  <link rel="edit" 
href="http://www.myrepository.ac.uk/geography-collection/atom/my_deposit.atom"; 
/>
-  <link rel="edit-media" 
href="http://www.myrepository.ac.uk/geography-collection/atom/my_deposit.atom"; 
/>
+      <link rel="edit-media" href="http://foobar"; />
+    */
+  ?>
+
+  <generator uri="<?php echo url_for('@homepage', true) ?>" version="<?php 
echo qubitConfiguration::VERSION ?>">Qubit <?php echo 
qubitConfiguration::VERSION ?></generator>
+
+  <link rel="edit" href="<?php echo url_for(array($informationObject, 'module' 
=> 'informationobject')) ?>" />
 
   <sword:noOp>false</sword:noOp>
 
@@ -39,6 +41,4 @@
 
   <sword:userAgent><?php echo $_SERVER['HTTP_USER_AGENT'] ?></sword:userAgent>
 
-  <!-- <sword:treatment>Treatment description</sword:treatment> -->
-
 </entry>

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to