Skip to content

Commit

Permalink
Export both datacolumn tags and dataset tags in EML. issue #310
Browse files Browse the repository at this point in the history
  • Loading branch information
manxingxing committed Aug 7, 2013
1 parent 18748e3 commit 5f0b6a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/views/datasets/show.eml.haml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
%abstract
= content_tag_unless_blank :para, @dataset.abstract
= content_tag_unless_blank :para, @dataset.circumstances
- unless @dataset.tags.empty?
- unless @tags.empty?
%keywordSet
- @dataset.tags.each do |tag|
- @tags.each do |tag|
%keyword= tag.name
%keywordThesaurus Portal Tags
- unless @datacolumns.empty?
Expand Down
2 changes: 1 addition & 1 deletion app/views/datasets/show.xml.builder
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ xml.dataset(:id => @dataset.id) {
xml.design @dataset.design
xml.uploaded_at @dataset.created_at
xml.authors {
@dataset.owners.each do |u|
@contacts.each do |u|
xml.author(id: u.id) {
xml.name u.full_name
xml.email u.email
Expand Down

0 comments on commit 5f0b6a7

Please sign in to comment.