Skip to content

Commit 8733181

Browse files
author
webdev778
committed
Correct all maps metadata to use a common format
This fixes #725
1 parent 41e5628 commit 8733181

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

lib/interscript/dsl/metadata.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ def initialize(yaml: false, map_name: "", library: true, &block)
2020

2121
STANDARD_STRING_KEYS = %i{authority_id id
2222
language source_script destination_script
23-
name url creation_date adoption_date description
24-
character source confirmation_date}
23+
name creation_date adoption_date description
24+
character source confirmation_date original_description}
2525

26-
STANDARD_ARRAY_KEYS = %i{notes}
26+
STANDARD_ARRAY_KEYS = %i{notes implementation_notes original_notes url}
2727

28-
NONSTANDARD_KEYS = %i{special_rules original_description original_notes
29-
implementation_notes}
28+
NONSTANDARD_KEYS = %i{special_rules}
3029

3130
NECESSARY_KEYS = %i{name language source_script destination_script}
3231

lib/interscript/visualize/map.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
3636
<% case k
3737
when :url %>
38-
<dd><a href="<%= h v %>"><%= h v %></a>
38+
<dd><% v.each do |i| %><a href="<%= h i %>"><%= h i %></a><% if i != v.last %>; <% end %><% end %>
3939
<% when :notes, :implementation_notes, :special_rules, :original_notes, :original_description # We ignore notes for now %>
4040
<% else %>
4141
<dd><%= h v %>
4242
<% end %>
4343
<% end %>
4444
</dl>
4545
46-
<%= render_stage(self.map.name, :main) %>
46+
<%= render_stage(self.map.name, :main) %>

0 commit comments

Comments
 (0)