Skip to content

Commit

Permalink
add URI to misc: metanorma/metanorma-jis#194
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Jul 18, 2024
1 parent a13abda commit 9a97ab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/relaton/render/general/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ template:
# TODO: omitted: author ids, subsidiary titles, subsidiary creators, host archive, item attributes, relationships
presentation: unpublished
thesis: "{{ creatornames }} ({{ role }}) . {{labels['qq-open']}}{{ title }}{{labels['qq-close']}} . {{ medium | capitalize }}. {{ place }}: {{ publisher }}. {{ date }}. {{ labels['at'] | capitalize}}:_{{ access_location }}. {{ authoritative_identifier | join: '. ' }}. {{ other_identifier | join: '. ' }}. {{ uri }}. [{{ labels['viewed'] }}:_{{date_accessed}}]."
misc: "{{ creatornames }} ({{ role }}) . {{labels['qq-open']}}{{ title }}{{labels['qq-close']}} . {{ date }}."
misc: "{{ creatornames }} ({{ role }}) . {{labels['qq-open']}}{{ title }}{{labels['qq-close']}} . {{ date }}. {{ uri }}."
# following are # unsupported types:
map: misc
audiovisual: misc
Expand Down
2 changes: 1 addition & 1 deletion spec/render_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@
</bibitem>
INPUT
output = <<~OUTPUT
<formattedref>JENKINS and Janne RUOSTEKOSKI. <em>Controlled manipulation of light by cooperativeresponse of atoms in an optical lattice</em>. 2012.</formattedref>
<formattedref>JENKINS and Janne RUOSTEKOSKI. <em>Controlled manipulation of light by cooperativeresponse of atoms in an optical lattice</em>. 2012. <link target='https://eprints.soton.ac.uk/338797/'>https://eprints.soton.ac.uk/338797/</link>.</formattedref>
OUTPUT
p = Relaton::Render::General.new
expect(p.render(input))
Expand Down

0 comments on commit 9a97ab3

Please sign in to comment.