relaton-render 1.2.2 → 1.4.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +6 -1
- data/.github/workflows/release.yml +1 -1
- data/.rubocop.yml +2 -2
- data/Gemfile +15 -2
- data/lib/isodoc-yaml/i18n-ar.yaml +8 -2
- data/lib/isodoc-yaml/i18n-de.yaml +8 -2
- data/lib/isodoc-yaml/i18n-en.yaml +8 -2
- data/lib/isodoc-yaml/i18n-es.yaml +8 -2
- data/lib/isodoc-yaml/i18n-fr.yaml +8 -2
- data/lib/isodoc-yaml/i18n-ja.yaml +13 -7
- data/lib/isodoc-yaml/i18n-ru.yaml +8 -2
- data/lib/isodoc-yaml/i18n-zh-Hans.yaml +8 -2
- data/lib/isodoc-yaml/i18n-zh-Hant.yaml +8 -2
- data/lib/relaton/render/iso690/element.rb +43 -0
- data/lib/relaton/render/iso690/elements/component_part.rb +50 -0
- data/lib/relaton/render/iso690/elements/creator.rb +129 -0
- data/lib/relaton/render/iso690/elements/edition.rb +47 -0
- data/lib/relaton/render/iso690/elements/identifier.rb +32 -0
- data/lib/relaton/render/iso690/elements/location.rb +27 -0
- data/lib/relaton/render/iso690/elements/medium.rb +27 -0
- data/lib/relaton/render/iso690/elements/numeration.rb +26 -0
- data/lib/relaton/render/iso690/elements/production.rb +36 -0
- data/lib/relaton/render/iso690/elements/pub_date.rb +51 -0
- data/lib/relaton/render/iso690/elements/series.rb +40 -0
- data/lib/relaton/render/iso690/elements/title.rb +30 -0
- data/lib/relaton/render/iso690/elements.rb +40 -0
- data/lib/relaton/render/iso690/fields.rb +53 -0
- data/lib/relaton/render/iso690/i18n/en.yml +13 -0
- data/lib/relaton/render/iso690/i18n/fr.yml +14 -0
- data/lib/relaton/render/iso690/i18n.rb +53 -0
- data/lib/relaton/render/iso690/identifier_kinds.rb +34 -0
- data/lib/relaton/render/iso690/index_renderer.rb +57 -0
- data/lib/relaton/render/iso690/kinds.rb +43 -0
- data/lib/relaton/render/iso690/renderer.rb +52 -0
- data/lib/relaton/render/iso690/style/locale.rb +44 -0
- data/lib/relaton/render/iso690/style/name_form.rb +21 -0
- data/lib/relaton/render/iso690/style/scheme.rb +23 -0
- data/lib/relaton/render/iso690/style/sort_rule.rb +25 -0
- data/lib/relaton/render/iso690/style/template_map.rb +28 -0
- data/lib/relaton/render/iso690/style/type_template.rb +21 -0
- data/lib/relaton/render/iso690/style.rb +76 -0
- data/lib/relaton/render/iso690/styles/author-date.yml +28 -0
- data/lib/relaton/render/iso690/template.rb +72 -0
- data/lib/relaton/render/iso690.rb +22 -0
- data/lib/relaton/render/version.rb +1 -1
- data/lib/relaton-render.rb +3 -7
- data/relaton-render.gemspec +2 -19
- metadata +35 -249
- data/lib/relaton/render/fields/date.rb +0 -48
- data/lib/relaton/render/fields/fields.rb +0 -266
- data/lib/relaton/render/general/citations.rb +0 -178
- data/lib/relaton/render/general/config.yml +0 -129
- data/lib/relaton/render/general/render.rb +0 -316
- data/lib/relaton/render/general/render_classes.rb +0 -132
- data/lib/relaton/render/general/uri.rb +0 -57
- data/lib/relaton/render/i18n/i18n.rb +0 -40
- data/lib/relaton/render/parse/parse.rb +0 -152
- data/lib/relaton/render/parse/parse_contributors.rb +0 -184
- data/lib/relaton/render/parse/parse_extract.rb +0 -200
- data/lib/relaton/render/parse/parse_id.rb +0 -128
- data/lib/relaton/render/template/liquid.rb +0 -48
- data/lib/relaton/render/template/subclasses.rb +0 -123
- data/lib/relaton/render/template/template.rb +0 -228
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
require_relative "date"
|
|
2
|
-
|
|
3
|
-
module Relaton
|
|
4
|
-
module Render
|
|
5
|
-
class Fields
|
|
6
|
-
def initialize(options)
|
|
7
|
-
@r = options[:renderer]
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
# the @i18n.select choices here need to rely on
|
|
11
|
-
# fields already present, they can't rely on fields they are yet to build
|
|
12
|
-
def compound_fields_format(hash)
|
|
13
|
-
name_fields_format(hash)
|
|
14
|
-
role_fields_format(hash)
|
|
15
|
-
date_fields_format(hash)
|
|
16
|
-
edition_fields_format(hash)
|
|
17
|
-
place_fields_format(hash)
|
|
18
|
-
series_fields_format(hash)
|
|
19
|
-
misc_fields_format(hash)
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def comma(hash)
|
|
23
|
-
"#{@r.i18n.select(hash).get.dig('punct', 'comma') || ','} "
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
def place_fields_format(hash)
|
|
27
|
-
hash[:place_raw]&.map! do |p|
|
|
28
|
-
# TODO use enum-comma?
|
|
29
|
-
if p.is_a?(Array)
|
|
30
|
-
p.join(comma(hash))
|
|
31
|
-
else p
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
hash[:place] =
|
|
35
|
-
nameformat(hash[:place_raw].map { |x| { nonpersonal: x } }, hash)
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
def name_fields_format(hash)
|
|
39
|
-
[%i(creatornames creators), %i(host_creatornames host_creators),
|
|
40
|
-
%i(publisher publisher_raw), %i(distributor distributor_raw),
|
|
41
|
-
%i(authorizer authorizer_raw)]
|
|
42
|
-
.each do |k|
|
|
43
|
-
hash[k[0]] = nameformat(hash[k[1]], hash)
|
|
44
|
-
end
|
|
45
|
-
hash[:publisher_abbrev] = hash[:publisher_abbrev_raw]&.join(comma(hash))
|
|
46
|
-
hash[:authorcite] = authorciteformat(hash[:creators], hash)
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def role_fields_format(hash)
|
|
50
|
-
hash[:role] = role_inflect(hash[:creators], hash[:role_raw], hash)
|
|
51
|
-
hash[:host_role] =
|
|
52
|
-
role_inflect(hash[:host_creators], hash[:host_role_raw], hash)
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
def edition_fields_format(hash)
|
|
56
|
-
hash[:edition] =
|
|
57
|
-
editionformat(hash[:edition_raw], hash[:edition_num], hash)
|
|
58
|
-
hash[:draft] = draftformat(hash[:draft_raw], hash)
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
def misc_fields_format(hash)
|
|
62
|
-
hash[:medium] = mediumformat(hash[:medium_raw], hash)
|
|
63
|
-
hash[:extent] = extentformat(hash[:extent_raw], hash)
|
|
64
|
-
hash[:size] = sizeformat(hash[:size_raw], hash)
|
|
65
|
-
hash[:uri] = uriformat(hash[:uri_raw])
|
|
66
|
-
hash[:status] = statusformat(hash[:status_raw], hash)
|
|
67
|
-
hash[:other_identifier] =
|
|
68
|
-
otheridentifierformat(hash[:other_identifier_raw], hash)
|
|
69
|
-
hash
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
def otheridentifierformat(otherids, _hash)
|
|
73
|
-
otherids&.map do |i|
|
|
74
|
-
# ret = "#{i[0]}: <esc>#{i[1]}</esc>"
|
|
75
|
-
# @r.i18n.select(hash).l10n(ret) # no i18n!
|
|
76
|
-
"#{i[0]}: #{i[1]}"
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
def statusformat(status, hash)
|
|
81
|
-
status.nil? and return
|
|
82
|
-
@r.i18n.select(hash).get.dig("stage", status) || status
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
# date => disambiguated_date, the disambiguation happens in citations/
|
|
86
|
-
def date_fields_format(hash)
|
|
87
|
-
[%i(date date), %i(disambiguated_date date),
|
|
88
|
-
%i(date_updated date_updated),
|
|
89
|
-
%i(date_accessed date_accessed)].each do |k|
|
|
90
|
-
hash[k[0]] = dateformat(hash[k[1]], hash, k)
|
|
91
|
-
k[1] == :date &&
|
|
92
|
-
!%w(standard webresource website).include?(hash[:type]) and
|
|
93
|
-
hash[k[0]] ||= @r.i18n.select(nil).get["no_date"]
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
def mediumformat(medium, hash)
|
|
98
|
-
medium.nil? and return nil
|
|
99
|
-
ret = %w(content genre form carrier size
|
|
100
|
-
scale).each_with_object([]) do |i, m|
|
|
101
|
-
m << "<esc>#{medium[i]}</esc>" if medium[i]
|
|
102
|
-
m
|
|
103
|
-
end.compact
|
|
104
|
-
i = @r.i18n.select(hash)
|
|
105
|
-
i.l10n(ret.join(comma(hash)))
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
def series_fields_format(hash)
|
|
109
|
-
parts =
|
|
110
|
-
%i(series_title series_abbr series_num series_partnumber
|
|
111
|
-
series_run series_formatted series_dates series_place series_org)
|
|
112
|
-
series_out = parts.each_with_object({}) do |i, m|
|
|
113
|
-
m[i] = hash[i]
|
|
114
|
-
end
|
|
115
|
-
t = hash[:type] == "article" ? @r.journaltemplate : @r.seriestemplate
|
|
116
|
-
hash[:series] = t.render(series_out, hash)
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
def nameformat(names, hash)
|
|
120
|
-
names.nil? and return names
|
|
121
|
-
parts = %i(surname initials given middle nonpersonal)
|
|
122
|
-
names_out = names.each_with_object({}) do |n, m|
|
|
123
|
-
parts.each do |i|
|
|
124
|
-
m[i] ||= []
|
|
125
|
-
m[i] << n[i]
|
|
126
|
-
end
|
|
127
|
-
end
|
|
128
|
-
@r.nametemplate.render(names_out, hash)
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
def authorciteformat(names, hash)
|
|
132
|
-
names.nil? || @r.authorcitetemplate.nil? and return names
|
|
133
|
-
parts = %i(surname initials given middle nonpersonal)
|
|
134
|
-
names_out = names.each_with_object({}) do |n, m|
|
|
135
|
-
parts.each do |i|
|
|
136
|
-
m[i] ||= []
|
|
137
|
-
m[i] << n[i]
|
|
138
|
-
end
|
|
139
|
-
end
|
|
140
|
-
@r.authorcitetemplate.render(names_out, hash)
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
def role_inflect(contribs, role, hash)
|
|
144
|
-
role.nil? || contribs.empty? ||
|
|
145
|
-
%w(author publisher distributor
|
|
146
|
-
authorizer).include?(role) and return nil
|
|
147
|
-
number = contribs.size > 1 ? "pl" : "sg"
|
|
148
|
-
x = @r.i18n.select(hash).get[role]
|
|
149
|
-
x.is_a?(Hash) or return role
|
|
150
|
-
x[number] || role
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
def editionformat(edn, num, hash)
|
|
154
|
-
num || edn && !edn.empty? or return
|
|
155
|
-
edn_num = edn&.gsub(/<\/?esc>/, "")
|
|
156
|
-
num || /^\d+$/.match?(edn_num) and
|
|
157
|
-
return @r.i18n.select(hash)
|
|
158
|
-
.populate("edition_ordinal", { "var1" => num || edn_num.to_i })
|
|
159
|
-
@r.i18n.select(hash).populate("edition_cardinal", { "var1" => edn })
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
def draftformat(num, hash)
|
|
163
|
-
num.nil? ||
|
|
164
|
-
(num.is_a?(Hash) && num[:status].nil? &&
|
|
165
|
-
num[:iteration].nil?) and return nil
|
|
166
|
-
@r.i18n.select(hash).draft.sub("%", num)
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def extentformat(extent, hash)
|
|
170
|
-
extent.map do |stack|
|
|
171
|
-
stack.map do |e|
|
|
172
|
-
e1 = e.transform_values { |v| v.is_a?(Hash) ? range(v) : v }
|
|
173
|
-
ret = e.each_with_object({}) do |(k, v), m|
|
|
174
|
-
extentformat1(k, v, m, e1, hash)
|
|
175
|
-
m
|
|
176
|
-
end
|
|
177
|
-
@r.extenttemplate.render(hash.merge(ret), hash)
|
|
178
|
-
end.join(" ")
|
|
179
|
-
end.join("; ")
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
def extentformat1(key, val, hash, norm_hash, context)
|
|
183
|
-
if %i(volume issue page).include?(key)
|
|
184
|
-
hash["#{key}_raw".to_sym] = norm_hash[key]
|
|
185
|
-
hash[key] =
|
|
186
|
-
pagevolformat(norm_hash[key], val, key.to_s, false, context)
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
def range(hash)
|
|
191
|
-
hash[:on] and return hash[:on]
|
|
192
|
-
hash.has_key?(:from) && hash[:from].nil? and return nil
|
|
193
|
-
!hash[:from] and return hash
|
|
194
|
-
hash[:to] && hash[:to] != hash[:from] and
|
|
195
|
-
return "#{hash[:from]}–#{hash[:to]}"
|
|
196
|
-
hash[:from]
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
def sizeformat(size, hash)
|
|
200
|
-
return nil unless size
|
|
201
|
-
|
|
202
|
-
ret = size.transform_values do |v|
|
|
203
|
-
@r.i18n.select(hash).l10n(v.join(" + "))
|
|
204
|
-
end
|
|
205
|
-
.each_with_object({}) do |(k, v), m|
|
|
206
|
-
sizeformat1(k, v, m, hash)
|
|
207
|
-
m
|
|
208
|
-
end
|
|
209
|
-
@r.sizetemplate.render(ret.merge(type: hash[:type]), hash)
|
|
210
|
-
end
|
|
211
|
-
|
|
212
|
-
def sizeformat1(key, val, hash, context)
|
|
213
|
-
case key
|
|
214
|
-
when "volume", "issue", "page"
|
|
215
|
-
hash["#{key}_raw".to_sym] = val
|
|
216
|
-
hash[key.to_sym] = pagevolformat(val, nil, key, true, context)
|
|
217
|
-
when "data" then hash[:data] = val
|
|
218
|
-
when "duration" then hash[:duration] = val
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def pagevolformat(value, value_raw, type, is_size, hash)
|
|
223
|
-
value.nil? and return nil
|
|
224
|
-
num = "pl"
|
|
225
|
-
if is_size
|
|
226
|
-
value == "1" and num = "sg"
|
|
227
|
-
else
|
|
228
|
-
value_raw[:to] or num = "sg"
|
|
229
|
-
end
|
|
230
|
-
i = @r.i18n.select(hash)
|
|
231
|
-
i.l10n(i.get[is_size ? "size" : "extent"][type][num]
|
|
232
|
-
.sub("%", value))
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
def date_range(hash)
|
|
236
|
-
hash[:from] && !hash[:to] and return "#{hash[:from]}–"
|
|
237
|
-
range(hash)
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
def dateformat(date, hash, type)
|
|
241
|
-
date.nil? and return nil
|
|
242
|
-
date.is_a?(String) and return date
|
|
243
|
-
%i(from to on).each do |k|
|
|
244
|
-
date[k] = @r.dateklass
|
|
245
|
-
.new(date[k], renderer: @r, bibitem: hash, type: type).render
|
|
246
|
-
end
|
|
247
|
-
date_range(date)
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
def uriformat(uri)
|
|
251
|
-
uri.nil? || uri.empty? and return nil
|
|
252
|
-
# do not process uri contents in l10n
|
|
253
|
-
"<fmt-link target='#{uri}'><esc>#{uri}</esc></fmt-link>"
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
private
|
|
257
|
-
|
|
258
|
-
def tw_cldr_lang
|
|
259
|
-
if @r.lang != "zh" then @r.lang.to_sym
|
|
260
|
-
elsif @r.script == "Hant" then :"zh-tw"
|
|
261
|
-
else :"zh-cn"
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
end
|
|
266
|
-
end
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
module Relaton
|
|
2
|
-
module Render
|
|
3
|
-
class Citations
|
|
4
|
-
def initialize(opt = {})
|
|
5
|
-
# invoking i18n hash, but we preference the specific renderer's i18n
|
|
6
|
-
@i18n = opt[:i18n]
|
|
7
|
-
@lang = opt[:lang] # document lang and script
|
|
8
|
-
@script = opt[:script]
|
|
9
|
-
# hash of renderers, to be applied to specific citation by selector
|
|
10
|
-
@renderer = opt[:renderer]
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def renderer(_cite)
|
|
14
|
-
@renderer[:default]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# takes array of { id, type, author, date, ord, data }
|
|
18
|
-
def render(ret)
|
|
19
|
-
cites = citations(ret)
|
|
20
|
-
enhance_data(cites)
|
|
21
|
-
cites.each_key do |k|
|
|
22
|
-
cites[k] = render1(cites[k])
|
|
23
|
-
end
|
|
24
|
-
cites
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def enhance_data(cites)
|
|
28
|
-
ret = extract_uris_for_lookup(cites)
|
|
29
|
-
ret.empty? and return
|
|
30
|
-
# functionality removed: date needs to be given explicitly
|
|
31
|
-
# @renderer.urls_exist_concurrent(ret.keys).each do |k, v|
|
|
32
|
-
# ret[k].each { |u| add_date_accessed(cites[u], k, v) }
|
|
33
|
-
# end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
def extract_uris_for_lookup(cites)
|
|
37
|
-
cites.each_with_object({}) do |(k, v), m|
|
|
38
|
-
u = extract_uri_for_lookup(v) or next
|
|
39
|
-
m[u] ||= []
|
|
40
|
-
m[u] << k
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def extract_uri_for_lookup(cite)
|
|
45
|
-
t = renderer(cite).renderer(cite[:type] || "misc").template_raw
|
|
46
|
-
c = cite[:data]
|
|
47
|
-
t.is_a?(String) or return
|
|
48
|
-
(/\{\{\s*date_accessed\s*\}\}/.match?(t) &&
|
|
49
|
-
/\{\{\s*uri\s*\}\}/.match?(t) &&
|
|
50
|
-
c[:uri_raw] && !c[:date_accessed]) or return
|
|
51
|
-
c[:uri_raw]
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
def add_date_accessed(cite, uri, status)
|
|
55
|
-
r = renderer(cite)
|
|
56
|
-
if status
|
|
57
|
-
cite[:data][:date_accessed] = { on: ::Date.today.to_s }
|
|
58
|
-
cite[:data] = r.fieldsklass.new(renderer: r)
|
|
59
|
-
.compound_fields_format(cite[:data])
|
|
60
|
-
else
|
|
61
|
-
r.url_warn(uri)
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
def render1(cit)
|
|
66
|
-
ref, ref1, r = render1_prep(cit)
|
|
67
|
-
i = @i18n.select(cit[:data])
|
|
68
|
-
cit[:formattedref] =
|
|
69
|
-
r.valid_parse(i.l10n(ref1))
|
|
70
|
-
cit[:citation][:full] = r.valid_parse(i.l10n(ref))
|
|
71
|
-
%i(type data renderer).each { |x| cit.delete(x) }
|
|
72
|
-
cit
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
def use_terminator?(ref, final, _cit)
|
|
76
|
-
!ref || ref.empty? and return false
|
|
77
|
-
!ref.end_with?(final)
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
def render1_prep(cit)
|
|
81
|
-
r = renderer(cit)
|
|
82
|
-
ref = r.renderer(cit[:type] || "misc").render(cit[:data], cit[:data])
|
|
83
|
-
final = @i18n.select(cit[:data]).get
|
|
84
|
-
.dig("punct", "biblio-terminator") || "."
|
|
85
|
-
ref1 = ref
|
|
86
|
-
use_terminator?(ref, final, cit) and ref1 += final
|
|
87
|
-
[ref, ref1, r]
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
# TODO: configure how multiple ids are joined, from template?
|
|
91
|
-
def citations(ret)
|
|
92
|
-
ret = disambig_author_date_citations(ret)
|
|
93
|
-
ret.each_value do |b|
|
|
94
|
-
i = @i18n.select(b[:data])
|
|
95
|
-
b[:citation][:default] =
|
|
96
|
-
i.l10n(b[:data][:authoritative_identifier]&.first || "")
|
|
97
|
-
d = b[:data].merge(citestyle: "short")
|
|
98
|
-
b[:citation][:short] = i.l10n(renderer(b).citeshorttemplate.render(d, d))
|
|
99
|
-
citations_iterate_cite_styles(b, i)
|
|
100
|
-
end
|
|
101
|
-
ret
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
def citations_iterate_cite_styles(bib, i18n)
|
|
105
|
-
r = renderer(bib)
|
|
106
|
-
r.citetemplate.citation_styles.each do |style|
|
|
107
|
-
bib[:citation][style] =
|
|
108
|
-
i18n.l10n(r.citetemplate
|
|
109
|
-
.render(bib.merge(citestyle: style)
|
|
110
|
-
.merge(bib[:data]), bib[:data]))
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
# takes array of { id, type, author, date, ord, data }
|
|
115
|
-
def disambig_author_date_citations(ret)
|
|
116
|
-
author_date_to_hash(suffix_date(sort_ord(author_date_breakdown(ret))))
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
def author_date_breakdown(ret)
|
|
120
|
-
ret.each_with_object({}) do |b, m|
|
|
121
|
-
m[b[:author]] ||= {}
|
|
122
|
-
m[b[:author]][b[:date]] ||= []
|
|
123
|
-
m[b[:author]][b[:date]] << b
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
def sort_ord(ret)
|
|
128
|
-
ret.each do |author, v|
|
|
129
|
-
v.each_key do |date|
|
|
130
|
-
ret[author][date].sort_by! { |a| a[:ord] }
|
|
131
|
-
end
|
|
132
|
-
end
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
def suffix_date(ret)
|
|
136
|
-
ret.each do |k, v|
|
|
137
|
-
v.each do |k1, v1|
|
|
138
|
-
s = v1.reject { |b| b[:date].nil? }.size
|
|
139
|
-
s.zero? || k.nil? and next
|
|
140
|
-
suffix_date1(ret, k, k1, s)
|
|
141
|
-
copy_date_fields(ret, k, k1)
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
ret
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
def suffix_date1(ret, key1, key2, size)
|
|
148
|
-
size > 1 or return
|
|
149
|
-
ret[key1][key2].each_with_index do |b, i|
|
|
150
|
-
b[:date].nil? and next
|
|
151
|
-
b[:disambiguated_date] = b[:date] + ("a".ord + i).chr.to_s
|
|
152
|
-
end
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
def copy_date_fields(ret, key1, key2)
|
|
156
|
-
ret[key1][key2].each do |b|
|
|
157
|
-
b[:date].nil? and next
|
|
158
|
-
b[:data][:date] = b[:date]
|
|
159
|
-
b[:disambiguated_date] ||= b[:date]
|
|
160
|
-
b[:data][:disambiguated_date] = b[:disambiguated_date]
|
|
161
|
-
end
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
def author_date_to_hash(ret)
|
|
165
|
-
ret.each_with_object({}) do |(_k, v), m|
|
|
166
|
-
v.each_value do |v1|
|
|
167
|
-
v1.each do |b|
|
|
168
|
-
m[b[:id]] = { author: @i18n.select(b[:data]).l10n(b[:author]),
|
|
169
|
-
date: b[:disambiguated_date] || b[:date],
|
|
170
|
-
citation: {},
|
|
171
|
-
data: b[:data], type: b[:type] }
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
end
|
|
175
|
-
end
|
|
176
|
-
end
|
|
177
|
-
end
|
|
178
|
-
end
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
nametemplate:
|
|
2
|
-
one: "{% if nonpersonal[0] %}{{ nonpersonal[0] }}{% else %}{{surname[0] | upcase }} ,_{%if given[0]%}{{given[0]}} {{middle[0]}}{%else%}{{initials[0] | join: ' '}}.{%endif%}{% endif %}"
|
|
3
|
-
two: "{% if nonpersonal[0] %}{{ nonpersonal[0] }}{% else %}{{surname[0] | upcase}} ,_{%if given[0]%}{{given[0]}} {{middle[0]}}{%else%}{{initials[0] | join: ' '}}.{%endif%}{% endif %} {{ labels['author_and'] }} {% if nonpersonal[1] %}{{ nonpersonal[1] }}{% else %}{%if given[1]%}{{given[1]}} {{middle[1]}}{%else%}{{initials[1] | join: ' '}}.{%endif%} {{surname[1] | upcase}}{% endif %}"
|
|
4
|
-
more: "{% if nonpersonal[0] %}{{ nonpersonal[0] }}{% else %}{{surname[0] | upcase}} ,_{%if given[0]%}{{given[0]}} {{middle[0]}}{%else%}{{initials[0] | join: ' '}}.{%endif%}{% endif %} , {% if nonpersonal[1] %}{{ nonpersonal[1] }}{% else %}{%if given[1]%}{{given[1]}} {{middle[1]}}{%else%}{{initials[1] | join: ' '}}.{%endif%} {{surname[1] | upcase}}{% endif %} {{ labels['author_and'] }} {% if nonpersonal[2] %}{{ nonpersonal[2] }}{% else %}{%if given[2]%}{{given[2]}} {{middle[2]}}{%else%}{{initials[2] | join: ' '}}.{%endif%} {{surname[2] | upcase}}{% endif %}"
|
|
5
|
-
# disabled the following: they should be provided in inheriting calls
|
|
6
|
-
# etal: "{% if nonpersonal[0] %}{{ nonpersonal[0] }}{% else %}{{surname[0] | upcase}} ,_{%if given[0]%}{{given[0]}} {{middle[0]}}{%else%}{{initials[0] | join: ' '}}.{%endif%}{% endif %}, {% if nonpersonal[1] %}{{ nonpersonal[1] }}{% else %}{%if given[1]%}{{given[1]}} {{middle[1]}}{%else%}{{initials[1] | join: ' '}}.{%endif%} {{surname[1] | upcase}}{% endif %} <em>et al.</em>"
|
|
7
|
-
# etal_count: 5
|
|
8
|
-
|
|
9
|
-
authorcitetemplate:
|
|
10
|
-
one: "{% if nonpersonal[0] %}{{ nonpersonal[0] }}{% else %}{{surname[0] }}{% endif %}"
|
|
11
|
-
two: "{% if nonpersonal[0] %}{{ nonpersonal[0] }}{% else %}{{surname[0] }}{% endif %} {{ labels['author_and'] }} {% if nonpersonal[1] %}{{ nonpersonal[1] }}{% else %}{{surname[1] }}{% endif %}"
|
|
12
|
-
more: "{% if nonpersonal[0] %}{{ nonpersonal[0] }}{% else %}{{surname[0] }}{% endif %}, {% if nonpersonal[1] %}{{ nonpersonal[1] }}{% else %}{{surname[1] }}{% endif %} {{ labels['author_and'] }} {% if nonpersonal[2] %}{{ nonpersonal[2] }}{% else %}{{surname[2] }}{% endif %}"
|
|
13
|
-
# disabled the following: they should be provided in inheriting calls
|
|
14
|
-
# etal: "{% if nonpersonal[0] %}{{ nonpersonal[0] }}{% else %}{{surname[0] }}{% endif %}, {% if nonpersonal[1] %}{{ nonpersonal[1] }}{% else %}{{surname[1] }}{% endif %} <em>et al.</em>"
|
|
15
|
-
# etal_count: 5
|
|
16
|
-
|
|
17
|
-
seriestemplate: "{% if series_formatted %}{{ series_formatted }}{%else%}{% if series_abbr %}{{series_abbr}}{% else %}{{series_title}}{% endif %} ({{series_run}}) {{series_num}}|({{series_partnumber}}){%endif%}"
|
|
18
|
-
journaltemplate: "<em>{% if series_abbr %}{{series_abbr}}{% else %}{{series_title}}{% endif %}</em> ({{series_run}}) {{ labels['volume'] }}_{{series_num}} {{ labels['part'] }}_{{series_partnumber}}"
|
|
19
|
-
|
|
20
|
-
extenttemplate:
|
|
21
|
-
book: "{{ volume }}, {{ page }}"
|
|
22
|
-
booklet: book
|
|
23
|
-
proceedings: book
|
|
24
|
-
journal: book
|
|
25
|
-
standard: book
|
|
26
|
-
techreport: book
|
|
27
|
-
inbook: "{{ volume }}: {{ page }}"
|
|
28
|
-
article: "{{ volume }} {{issue}} , {{ page }}, {{ duration }}"
|
|
29
|
-
misc: "{{ volume }} {{issue}} , {{ page }}, {{ duration }}"
|
|
30
|
-
sizetemplate:
|
|
31
|
-
dataset: "{{ data }}"
|
|
32
|
-
electronic resource: dataset
|
|
33
|
-
webresource: dataset
|
|
34
|
-
misc: "{{ volume }}, {{ issue }}, {{ page }}, {{ data }}, {{ duration }}"
|
|
35
|
-
|
|
36
|
-
language: en
|
|
37
|
-
script: Latn
|
|
38
|
-
|
|
39
|
-
citetemplate:
|
|
40
|
-
author_date: "{{ author }} {{ disambiguated_date}}"
|
|
41
|
-
author_date_br: "{{ author }} ({{ disambiguated_date}})"
|
|
42
|
-
author: "{{ author }}"
|
|
43
|
-
date: "{{ disambiguated_date }}"
|
|
44
|
-
reference_tag: "{{ biblio_tag }}"
|
|
45
|
-
title: "{{ title }}"
|
|
46
|
-
title_reference_tag: "{{ title }} {{ biblio_tag }}"
|
|
47
|
-
short:
|
|
48
|
-
book: "{{ creatornames }} ({{role}}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} [{{medium}}] $$$ {{ edition | capitalize_first }}$$$ ({{ series }}$$$|) {% if place %}{{place}}{%else%}{{ labels['no_place']}}{%endif%}: {{publisher}}$$$ {{date}}$$$ {{ labels['updated'] | capitalize }}:_{{date_updated}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{size}}$$$ {{extent}}$$$"
|
|
49
|
-
booklet: book
|
|
50
|
-
manual: book
|
|
51
|
-
proceedings: book
|
|
52
|
-
inbook: "{{ creatornames }} ({{role}}) $$$ {{labels['punct']['open-secondary-title']}}{{ title }}{{labels['punct']['close-secondary-title']}} $$$ {{ labels['in'] | capitalize }}: {{ host_creatornames}} ({{ host_role}}) : {{labels['punct']['open-title']}}{{host_title}}{{labels['punct']['close-title']}} [{{medium}}] $$$ {{ edition | capitalize_first }}$$$ ({{ series }}$$$|) {% if place %}{{place}}{%else%}{{ labels['no_place']}}{%endif%}: {{publisher}}$$$ {{date}}$$$ {{size}}$$$ {{extent}}$$$ {{ labels['updated'] | capitalize }}:_{{date_updated}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$"
|
|
53
|
-
inproceedings: inbook
|
|
54
|
-
incollection: inbook
|
|
55
|
-
journal: "{{labels['punct']['open-title']}}{{ title}}{{labels['punct']['close-title']}} [{{medium}}] $$$ {{ edition | capitalize_first }}$$$ {{place}}: {{publisher}}$$$ {{date}}$$$ {{size}}$$$ {{extent}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$"
|
|
56
|
-
article: "{{ creatornames }} ({{role}}) $$$ {{labels['punct']['open-secondary-title']}}{{ title }}{{labels['punct']['close-secondary-title']}}$$$ {{ series }} [{{medium}}] $$$ {{ edition | capitalize_first }}$$$ {{size}}$$$ {{ extent }}$$$ {{place}}: {{publisher}}$$$ {{date}}$$$ {{ labels['updated'] | capitalize }}:_{{date_updated}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$"
|
|
57
|
-
software: "{{ creatornames }} ({{ role}}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ labels['version'] | capitalize }}_{{ edition_raw }}$$$ {{medium | capitalize}}$$$ {{place}}: {{publisher}}$$$ {{date}}$$$ {{ labels['updated'] | capitalize }}:_{{date_updated}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$ {{size}}$$$ {{ extent}}$$$"
|
|
58
|
-
electronic resource: software
|
|
59
|
-
standard: "{{ creatornames }} ({{ role}}) $$$ {{ authoritative_identifier | join: '|' }}: {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ medium | capitalize }}$$$ {{ edition | capitalize_first }}$$$ {{ place }}: {{ publisher }}$$$ {{date}}$$$ {{size}}$$$ {{ extent }}$$$ {{ other_identifier | join: '$$$ ' }}"
|
|
60
|
-
techreport: standard
|
|
61
|
-
dataset: "{{ creatornames }} ({{ role }}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ labels['version'] | capitalize }}_{{ edition_raw }}$$$ {{medium | capitalize }}$$$ {{ labels['in'] | capitalize }}:_{{series}}$$$ {{date}}$$$ {{ labels['updated'] | capitalize }}:_{{date_updated}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$ {{ size }}$$$ {{ extent}}$$$"
|
|
62
|
-
website: "{{ creatornames }} ({{ role }}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ labels['version'] | capitalize }}_{{ edition_raw }}$$$ {{medium | capitalize }}$$$ {{ place }}: {{ publisher }}$$$ {{date}}$$$ {{ labels['updated'] | capitalize }}:_{{date_updated}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$"
|
|
63
|
-
webresource: website
|
|
64
|
-
unpublished: "{{ creatornames }} ({{ role }}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ medium | capitalize }}$$$ {{ date }}$$$ {{ labels['at'] | capitalize}}:_{{ access_location }}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$"
|
|
65
|
-
thesis: "{{ creatornames }} ({{ role }}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ medium | capitalize }}$$$ {{ place }}: {{ publisher }}$$$ {{ date }}$$$ {{ labels['at'] | capitalize}}:_{{ access_location }}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$"
|
|
66
|
-
misc: "{{ creatornames }} ({{ role }}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ date }}$$$"
|
|
67
|
-
map: misc
|
|
68
|
-
audiovisual: misc
|
|
69
|
-
film: misc
|
|
70
|
-
video: misc
|
|
71
|
-
broadcast: misc
|
|
72
|
-
graphic_work: misc
|
|
73
|
-
music: misc
|
|
74
|
-
performance: misc
|
|
75
|
-
patent: misc
|
|
76
|
-
archival: misc
|
|
77
|
-
social_media: misc
|
|
78
|
-
alert: misc
|
|
79
|
-
message: misc
|
|
80
|
-
conversation: misc
|
|
81
|
-
internal: misc
|
|
82
|
-
|
|
83
|
-
template:
|
|
84
|
-
book: "{{ creatornames }} ({{role}}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} [{{medium}}] $$$ {{ edition | capitalize_first }}$$$ ({{ series }}$$$|) {% if place %}{{place}}{%else%}{{ labels['no_place']}}{%endif%}: {{publisher}}$$$ {{date}}$$$ {{ labels['updated'] | capitalize }}:_{{date_updated}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$ {{ labels['at'] | capitalize}}:_{{ access_location }}$$$ [{{ labels['viewed'] }}:_{{date_accessed}}]$$$ {{size}}$$$ {{extent}}$$$"
|
|
85
|
-
# TODO: omitted: author ids, subsidiary titles, subsidiary creators, rights metadata, distributor, item attributes, relationships
|
|
86
|
-
booklet: book
|
|
87
|
-
manual: book
|
|
88
|
-
proceedings: book
|
|
89
|
-
inbook: "{{ creatornames }} ({{role}}) $$$ {{labels['punct']['open-secondary-title']}}{{ title }}{{labels['punct']['close-secondary-title']}} $$$ {{ labels['in'] | capitalize }}: {{ host_creatornames}} ({{ host_role}}) : {{labels['punct']['open-title']}}{{host_title}}{{labels['punct']['close-title']}} [{{medium}}] $$$ {{ edition | capitalize_first }}$$$ ({{ series }}$$$|) {% if place %}{{place}}{%else%}{{ labels['no_place']}}{%endif%}: {{publisher}}$$$ {{date}}$$$ {{size}}$$$ {{extent}}$$$ {{ labels['updated'] | capitalize }}:_{{date_updated}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$ {{ labels['at'] | capitalize}}:_{{ access_location }}$$$ [{{ labels['viewed'] }}:_{{date_accessed}}]$$$"
|
|
90
|
-
inproceedings: inbook
|
|
91
|
-
incollection: inbook
|
|
92
|
-
# TODO: omitted: author ids, additional info for component part, subsidiary titles of host resource, rights metadata, distributor, relationships
|
|
93
|
-
journal: "{{labels['punct']['open-title']}}{{ title}}{{labels['punct']['close-title']}} [{{medium}}] $$$ {{ edition | capitalize_first }}$$$ {{place}}: {{publisher}}$$$ {{date}}$$$ {{size}}$$$ {{extent}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$ {{ labels['at'] | capitalize}}:_{{ access_location }}$$$ [{{ labels['viewed'] }}:_{{date_accessed}}]$$$"
|
|
94
|
-
# TODO subsidiary titles, rights metadata, item attributes, relationships
|
|
95
|
-
article: "{{ creatornames }} ({{role}}) $$$ {{labels['punct']['open-secondary-title']}}{{ title }}{{labels['punct']['close-secondary-title']}}$$$ {{ series }} [{{medium}}] $$$ {{ edition | capitalize_first }}$$$ {{size}}$$$ {{ extent }}$$$ {{place}}: {{publisher}}$$$ {{date}}$$$ {{ labels['updated'] | capitalize }}:_{{date_updated}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$ {{ labels['at'] | capitalize}}:_{{ access_location }}$$$ [{{ labels['viewed'] }}:_{{date_accessed}}]$$$"
|
|
96
|
-
# TODO: omitted: author ids, subsidiary titles, rights metadata, distributor, item attributes, relationships; newspapers
|
|
97
|
-
software: "{{ creatornames }} ({{ role}}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ labels['version'] | capitalize }}_{{ edition_raw }}$$$ {{medium | capitalize}}$$$ {{place}}: {{publisher}}$$$ {{date}}$$$ {{ labels['updated'] | capitalize }}:_{{date_updated}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$ {{size}}$$$ {{ extent}}$$$ [{{ labels['viewed'] }}:_{{date_accessed}}]$$$ "
|
|
98
|
-
# TODO: omitted: author ids, subsidiary titles, subsidiary creators, copyright, license, distributor, system requirements, relationships
|
|
99
|
-
electronic resource: software
|
|
100
|
-
standard: "{{ creatornames }} ({{ role}}) $$$ {{ authoritative_identifier | join: '|' }}: {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ medium | capitalize }}$$$ {{ edition | capitalize_first }}$$$ {{ place }}: {{ publisher }}$$$ {{date}}$$$ {{size}}$$$ {{ extent }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$ {{ labels['at'] | capitalize}}:_{{ access_location }}$$$ [{{ labels['viewed'] }}:_{{date_accessed}}]$$$"
|
|
101
|
-
# TODO: omitted: author ids, subsidiary titles, rights metadata, distributor, persistent identifier, item attributes, relationships
|
|
102
|
-
techreport: standard
|
|
103
|
-
dataset: "{{ creatornames }} ({{ role }}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ labels['version'] | capitalize }}_{{ edition_raw }}$$$ {{medium | capitalize }}$$$ {{ labels['in'] | capitalize }}:_{{series}}$$$ {{date}}$$$ {{ labels['updated'] | capitalize }}:_{{date_updated}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$ {{ size }}$$$ {{ extent}}$$$ [{{ labels['viewed'] }}:_{{date_accessed}}]$$$ "
|
|
104
|
-
# TODO: omitted: author ids, system requirements, host archive, copyright, license, data source, distributor, usage instructions, relationships, provenance
|
|
105
|
-
website: "{{ creatornames }} ({{ role }}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ labels['version'] | capitalize }}_{{ edition_raw }}$$$ {{medium | capitalize }}$$$ {{ place }}: {{ publisher }}$$$ {{date}}$$$ {{ labels['updated'] | capitalize }}:_{{date_updated}}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$ [{{ labels['viewed'] }}:_{{date_accessed}}]$$$ "
|
|
106
|
-
# TODO: omitted: author ids, page title, system requirements, subsidiary creator, rights metadata, distributor, persistent identifier, archive location, archive date and time, relationships
|
|
107
|
-
webresource: website
|
|
108
|
-
# TODO: component part
|
|
109
|
-
unpublished: "{{ creatornames }} ({{ role }}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ medium | capitalize }}$$$ {{ date }}$$$ {{ labels['at'] | capitalize}}:_{{ access_location }}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$ [{{ labels['viewed'] }}:_{{date_accessed}}]$$$"
|
|
110
|
-
# TODO: omitted: author ids, subsidiary titles, subsidiary creators, host archive, item attributes, relationships
|
|
111
|
-
presentation: unpublished
|
|
112
|
-
thesis: "{{ creatornames }} ({{ role }}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ medium | capitalize }}$$$ {{ place }}: {{ publisher }}$$$ {{ date }}$$$ {{ labels['at'] | capitalize}}:_{{ access_location }}$$$ {{ authoritative_identifier | join: '$$$ ' }}$$$ {{ other_identifier | join: '$$$ ' }}$$$ {{ uri }}$$$ [{{ labels['viewed'] }}:_{{date_accessed}}]$$$"
|
|
113
|
-
misc: "{{ creatornames }} ({{ role }}) $$$ {{labels['punct']['open-title']}}{{ title }}{{labels['punct']['close-title']}} $$$ {{ date }}$$$ {{ uri }}$$$"
|
|
114
|
-
# following are # unsupported types:
|
|
115
|
-
map: misc
|
|
116
|
-
audiovisual: misc
|
|
117
|
-
film: misc
|
|
118
|
-
video: misc
|
|
119
|
-
broadcast: misc
|
|
120
|
-
graphic_work: misc
|
|
121
|
-
music: misc
|
|
122
|
-
performance: misc
|
|
123
|
-
patent: misc
|
|
124
|
-
archival: misc
|
|
125
|
-
social_media: misc
|
|
126
|
-
alert: misc
|
|
127
|
-
message: misc
|
|
128
|
-
conversation: misc
|
|
129
|
-
internal: misc
|