Skip to content
This repository was archived by the owner on Mar 24, 2020. It is now read-only.

Commit e18f35e

Browse files
committed
Add edit button to Collection Level Record
Add test for CLR edit button Update test
1 parent e3fb09d commit e18f35e

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

app/views/dams_collections/_show_editor_tools.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
</li>
1919
<% end %>
2020
<% } %>
21+
<%= render :partial => 'shared/fields/edit_button' %>
2122
<% end %>
2223
</ul>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<a class="btn btn-small btn-primary" target="edit-form" href="<%= rdf_edit_url (@document['id'])%>">
2+
<i class="icon-edit icon-white"></i>Edit
3+
</a>
4+

spec/features/dams_collections_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,11 @@
239239
expect(page).to have_content("Push to OSF");
240240
expect(page).to have_content("Delete from OSF");
241241
end
242+
scenario "should contain damsmanger url for RDF Edit" do
243+
sign_in_developer
244+
visit dams_collection_path @provCollection
245+
expect(page).to have_xpath "//a[contains(@href,'/damsmanager/rdfImport.do?ark=#{@provCollection.pid}')]"
246+
end
242247
end
243248

244249
feature 'Collection that has DOI identifier' do

0 commit comments

Comments
 (0)