Diff
Modified: branches/wf4ever/app/views/packs/edit.rhtml (3221 => 3222)
--- branches/wf4ever/app/views/packs/edit.rhtml 2012-12-05 09:47:25 UTC (rev 3221)
+++ branches/wf4ever/app/views/packs/edit.rhtml 2012-12-05 11:34:58 UTC (rev 3222)
@@ -14,6 +14,17 @@
</center>
<% form_for(:pack, :url ="" pack_path(@pack), :html => { :method => :put }) do |f| %>
+
+ <div class="ro_uri_edit_box">
+ <p><b>Research Object URI</b></p>
+
+ <p>You may associate this workflow with a <em>research object</em> by
+ specifying the URI to it. Once set, metadata will be synchronised
+ with the research object.</p>
+
+ <p><%= f.text_field :ro_uri, :size => 60, :placeholder => 'http://www.example.org/rodl/ROs/research_object/' %></p>
+ </div>
+
<center>
<div class="box_form" style="width: 550px; margin: 1em 0; text-align: left;">
<p><b>Title: </b></p>
Modified: branches/wf4ever/app/views/research_objects/show.rhtml (3221 => 3222)
--- branches/wf4ever/app/views/research_objects/show.rhtml 2012-12-05 09:47:25 UTC (rev 3221)
+++ branches/wf4ever/app/views/research_objects/show.rhtml 2012-12-05 11:34:58 UTC (rev 3222)
@@ -39,7 +39,6 @@
<% resources = @contributable.wf4ever_resources %>
<% annotations = @contributable.annotations %>
-<% if false %>
<% if resources.length > 0 %>
<h2>Pack Items</h2>
@@ -47,7 +46,6 @@
<%= research_object_resources(@contributable) -%>
<% end %>
-<% end %>
<% if annotations.length > 0 %>
Modified: branches/wf4ever/app/views/workflows/edit.rhtml (3221 => 3222)
--- branches/wf4ever/app/views/workflows/edit.rhtml 2012-12-05 09:47:25 UTC (rev 3221)
+++ branches/wf4ever/app/views/workflows/edit.rhtml 2012-12-05 11:34:58 UTC (rev 3222)
@@ -24,7 +24,7 @@
specifying the URI to it. Once set, metadata will be synchronised
with the research object.</p>
- <p><%= f.text_field :ro_uri, :size => 60, :placeholder => 'http://example.org/rodl/ROs/research_object/' %></p>
+ <p><%= f.text_field :ro_uri, :size => 60, :placeholder => 'http://www.example.org/rodl/ROs/research_object/' %></p>
</div>
<%= render :partial => "tags/tags_form", :locals => { :edit => true, :taggable => @workflow } %>
Modified: branches/wf4ever/config/schema.d/packs.xml (3221 => 3222)
--- branches/wf4ever/config/schema.d/packs.xml 2012-12-05 09:47:25 UTC (rev 3221)
+++ branches/wf4ever/config/schema.d/packs.xml 2012-12-05 11:34:58 UTC (rev 3222)
@@ -10,6 +10,7 @@
<column type="text" name="description_html"/>
<column type="datetime" name="created_at"/>
<column type="datetime" name="updated_at"/>
+ <column type="text" name="ro_uri"/>
</table>