Skip to content

Commit

Permalink
Correct all maps metadata to use a common format
Browse files Browse the repository at this point in the history
This fixes #725
  • Loading branch information
webdev778 committed Dec 6, 2023
1 parent 41e5628 commit 8733181
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions lib/interscript/dsl/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ def initialize(yaml: false, map_name: "", library: true, &block)

STANDARD_STRING_KEYS = %i{authority_id id
language source_script destination_script
name url creation_date adoption_date description
character source confirmation_date}
name creation_date adoption_date description
character source confirmation_date original_description}

STANDARD_ARRAY_KEYS = %i{notes}
STANDARD_ARRAY_KEYS = %i{notes implementation_notes original_notes url}

NONSTANDARD_KEYS = %i{special_rules original_description original_notes
implementation_notes}
NONSTANDARD_KEYS = %i{special_rules}

NECESSARY_KEYS = %i{name language source_script destination_script}

Expand Down
4 changes: 2 additions & 2 deletions lib/interscript/visualize/map.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
<% case k
when :url %>
<dd><a href="<%= h v %>"><%= h v %></a>
<dd><% v.each do |i| %><a href="<%= h i %>"><%= h i %></a><% if i != v.last %>; <% end %><% end %>
<% when :notes, :implementation_notes, :special_rules, :original_notes, :original_description # We ignore notes for now %>
<% else %>
<dd><%= h v %>
<% end %>
<% end %>
</dl>
<%= render_stage(self.map.name, :main) %>
<%= render_stage(self.map.name, :main) %>

0 comments on commit 8733181

Please sign in to comment.