SF.net SVN: geonetwork:[1424] sandbox/geonetworkui/BlueNetMEST/web

View: New views
1 Messages — Rating Filter:   Alert me  

SF.net SVN: geonetwork:[1424] sandbox/geonetworkui/BlueNetMEST/web

by volkermische :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 1424
          http://geonetwork.svn.sourceforge.net/geonetwork/?rev=1424&view=rev
Author:   volkermische
Date:     2008-07-23 04:54:40 +0000 (Wed, 23 Jul 2008)

Log Message:
-----------
- Initial commit of files needed for Orbeon

Added Paths:
-----------
    sandbox/geonetworkui/BlueNetMEST/web/orbeon/
    sandbox/geonetworkui/BlueNetMEST/web/orbeon/src/
    sandbox/geonetworkui/BlueNetMEST/web/orbeon/src/home.xhtml
    sandbox/geonetworkui/BlueNetMEST/web/orbeon/src/page-flow.xml

Added: sandbox/geonetworkui/BlueNetMEST/web/orbeon/src/home.xhtml
===================================================================
--- sandbox/geonetworkui/BlueNetMEST/web/orbeon/src/home.xhtml                        (rev 0)
+++ sandbox/geonetworkui/BlueNetMEST/web/orbeon/src/home.xhtml 2008-07-23 04:54:40 UTC (rev 1424)
@@ -0,0 +1,53 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+        xmlns:xf="http://www.w3.org/2002/xforms"
+        xmlns:ev="http://www.w3.org/2001/xml-events"
+        xmlns:widget="http://orbeon.org/oxf/xml/widget"
+        xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
+  <head>
+    <title>GeoNetwork XForms Metadata Editor</title>
+      <xf:model xmlns:xforms="http://www.w3.org/2002/xforms">
+        <!-- for storing username, password -->
+        <xf:instance id="data">
+          <data xmlns="">
+            <username/>
+            <password/>
+            <geonetwork-location/>
+          </data>
+        </xf:instance>
+
+        <!-- for storing the link to the edit metadata page temporary -->
+        <xf:instance id="edit-page">
+          <url xmlns=""/>
+        </xf:instance>
+
+
+        <xf:action ev:event="xforms-model-construct-done">
+        <xf:setvalue ref="instance('data')/geonetwork-location" value="xxforms:get-request-parameter('geonetwork')" />
+        </xf:action>
+
+      </xf:model>
+    </head>
+    <body>
+      <xf:group id="input-data" class="gn-group">
+        <xf:input ref="instance('data')/username">
+          <xf:label>Username:</xf:label>
+        </xf:input>
+        <xf:input ref="instance('data')/password">
+          <xf:label>Password:</xf:label>
+        </xf:input>
+      </xf:group>
+
+      <xf:trigger>
+        <xf:label>Create new document</xf:label>
+        <xf:action ev:event="DOMActivate">
+          <xf:setvalue ref="instance('edit-page')" value="concat('/gn/new&geonetwork=', instance('data')/geonetwork-location, '&username=', instance('data')/username, '&password=', instance('data')/password)"/>
+          <xf:load ref="instance('edit-page')"/>
+        </xf:action>
+      </xf:trigger>
+
+<!--      
+                <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget"/>
+-->
+   </body>
+
+</html>
\ No newline at end of file

Added: sandbox/geonetworkui/BlueNetMEST/web/orbeon/src/page-flow.xml
===================================================================
--- sandbox/geonetworkui/BlueNetMEST/web/orbeon/src/page-flow.xml                        (rev 0)
+++ sandbox/geonetworkui/BlueNetMEST/web/orbeon/src/page-flow.xml 2008-07-23 04:54:40 UTC (rev 1424)
@@ -0,0 +1,13 @@
+<config xmlns="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors">
+    <!-- home page where you enter username/password and choose between creating a new document or editing an existing one.
+    You need to pass the geonetwork location as parameter (/gn/home?geonetwork=localhost:8080/geonetwork)-->
+    <page path-info="/gn/home" matcher="oxf:perl5-matcher" view="home.xhtml"/>
+
+    <!-- create a new metadata document. URL: <orbeon>/gn/new&geonetwork=<geonetwork-location-without-http://-prefix>&username=<username>&password=<password> -->
+    <page path-info="/gn/new&geonetwork=(.*)&username=(.*)&password=(.*)" matcher="oxf:perl5-matcher" view="http://${1}/srv/en/metadata.create.form.xforms.xml?username=${2}&password=${3}"/>
+
+    <!-- edit existing metadata document. URL: <orbeon>/gn/edit/<document-id>&geonetwork=<geonetwork-location-without-http://-prefix>&username=<username>&password=<password> -->
+    <page path-info="/gn/edit/(\d+)&geonetwork=(.*)&username=(.*)&password=(.*)" matcher="oxf:perl5-matcher" view="http://${2}/srv/en/xforms.xml?id=${1}&username=${3}&password=${4}"/>
+    
+    <epilogue url="oxf:/config/epilogue.xpl"/>
+</config>


Property changes on: sandbox/geonetworkui/BlueNetMEST/web/orbeon/src/page-flow.xml
___________________________________________________________________
Added: svn:mime-type
   + text/xml
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GeoNetwork-commit mailing list
GeoNetwork-commit@...
https://lists.sourceforge.net/lists/listinfo/geonetwork-commit
LightInTheBox - Buy quality products at wholesale price