resume_exporter 1.0.0 → 1.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce4e808a61306a1ddaed6e8d6a2ec0f50ccad275
4
- data.tar.gz: 10b654bc305eef2ba48703bc97d235f0125bf92a
3
+ metadata.gz: a3be5372671e4deb4d801644c61be0ca802e3ce4
4
+ data.tar.gz: 5e90518987f68bb68bf6819386aef7e2e911e1bc
5
5
  SHA512:
6
- metadata.gz: 2d56bb08e5b971b26924859b9de613558ee10ff013f6b764903fbae80c972db5866dfe0ca88cf6f7fc7bbb4b8afd07746bb1b7f61254ac5fd3e54c74beeb3ca5
7
- data.tar.gz: 99cdad9c6b2239dc68038cb53b4dc444faa269805ef1709f8076b72a9523a901123d87ff6cf642f0b056fde9d58c1440474980e3c7d608fa5aed00bebf0f6d0d
6
+ metadata.gz: b40e2a8e8d2452d50706128344ec3c56d4b91cdcb35c47f5efb168b80c9bd6a921037074c244880a4e0533ef3db339bf20081b6497683a5ffdc96909e0d19dd3
7
+ data.tar.gz: ca7258446cdf293519b05738262261871ceb18ae7fb4033c2ed6d7486b8195e212f7c315cb94785c3e466d28fe543a1d8b61d6f5597fb97e02104fe5a1677ed5
data/bin/resume_exporter CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
4
4
  require 'commander/import'
5
5
  require 'resume_exporter'
6
6
 
7
- program :version, '1.0.0'
7
+ program :version, '1.1.0'
8
8
  program :description, 'ResumeExporter is a tool to export data from public profile html files.
9
9
  Save your profile (e.g. from LinkedIn, Xing, or Stackoverflow) as html and export to json or xml with the help of ResumeExporter.
10
10
 
data/lib/exporters/xml.rb CHANGED
@@ -4,7 +4,7 @@ require 'builder'
4
4
  module Exporter
5
5
  module Xml
6
6
  def self.export(options = {})
7
- template = options[:template] || "prtflio"
7
+ template = options[:template] || "default"
8
8
  @data = options[:data]
9
9
  Tilt.new(File.expand_path("../templates/#{template}.xml.builder", __dir__)).render(self)
10
10
  end
@@ -17,8 +17,8 @@ module Extractor
17
17
  patents
18
18
  languages
19
19
  interests
20
- extracurriculars
21
- affiliations
20
+ extracurricular
21
+ affiliation
22
22
  governance
23
23
  service
24
24
  references
@@ -201,7 +201,7 @@ module Extractor
201
201
  end
202
202
  end
203
203
 
204
- def affiliations
204
+ def affiliation
205
205
  @doc.css('#organizations li').map do |item|
206
206
  organization = {}
207
207
  organization["organization"] = item.at_css(".item-title").text if item.at_css(".item-title")
@@ -76,7 +76,7 @@ module Extractor
76
76
  end
77
77
  end
78
78
 
79
- def affiliations
79
+ def affiliation
80
80
  @doc.css('#organizations li .title').map do |item|
81
81
  { "organization" => item.text.gsub(/\s+/, ' ').strip }
82
82
  end
@@ -175,7 +175,7 @@ module Extractor
175
175
  end
176
176
  end
177
177
 
178
- def extracurriculars
178
+ def extracurricular
179
179
  @doc.dig("extracurricular").map do |extracurricular|
180
180
  {
181
181
  "title" => extracurricular["title"],
@@ -187,7 +187,7 @@ module Extractor
187
187
  end
188
188
  end
189
189
 
190
- def affiliations
190
+ def affiliation
191
191
  @doc.dig("affiliation", "history").map do |affiliation|
192
192
  {
193
193
  "category" => affiliation["category"],
@@ -64,12 +64,12 @@ module Extractor
64
64
  @doc.dig("interests")
65
65
  end
66
66
 
67
- def extracurriculars
68
- @doc.dig("extracurriculars")
67
+ def extracurricular
68
+ @doc.dig("extracurricular")
69
69
  end
70
70
 
71
- def affiliations
72
- @doc.dig("affiliations")
71
+ def affiliation
72
+ @doc.dig("affiliation")
73
73
  end
74
74
 
75
75
  def governance
@@ -1,5 +1,5 @@
1
1
  json.meta do
2
- json.format "PRTFLIO@0.0.1"
2
+ json.format "PRTFLIO@1.1.0"
3
3
  json.version "0.0.1"
4
4
  end
5
5
 
@@ -24,199 +24,181 @@ json.basics do
24
24
  end
25
25
 
26
26
  json.employment @data.dig("employment") do |job|
27
- json.employer job["employer"]
28
- json.position job["position"]
29
- json.url job["url"]
30
- json.startDate job["startDate"]
31
- json.endDate job["endDate"]
32
- json.summary job["summary"]
33
- json.location job["location"]
34
- json.keywords job["keywords"]
35
- end
27
+ json.employer job["employer"]
28
+ json.position job["position"]
29
+ json.url job["url"]
30
+ json.startDate job["startDate"]
31
+ json.endDate job["endDate"]
32
+ json.summary job["summary"]
33
+ json.location job["location"]
34
+ json.keywords job["keywords"]
36
35
  end
37
36
 
38
37
  json.education @data.dig("education") do |entry|
39
- json.institution entry["institution"]
40
- json.fieldOfStudy entry["fieldOfStudy"]
41
- json.degree entry["degree"]
42
- json.startDate entry["startDate"]
43
- json.endDate entry["endDate"]
44
- json.grade entry["grade"]
45
- json.url entry["url"]
46
- json.summary entry["summary"]
47
- json.location entry["location"]
48
- json.keywords entry["keywords"]
49
- end
38
+ json.institution entry["institution"]
39
+ json.fieldOfStudy entry["fieldOfStudy"]
40
+ json.degree entry["degree"]
41
+ json.startDate entry["startDate"]
42
+ json.endDate entry["endDate"]
43
+ json.grade entry["grade"]
44
+ json.url entry["url"]
45
+ json.summary entry["summary"]
46
+ json.location entry["location"]
47
+ json.keywords entry["keywords"]
50
48
  end
51
49
 
52
50
  json.projects @data.dig("projects") do |project|
53
- json.title project["title"]
54
- json.summary project["summary"]
55
- json.url project["url"]
56
- json.repo project["repo"]
57
- json.startDate project["startDate"]
58
- json.endDate project["endDate"]
59
- json.category project["category"]
60
- json.images project["images"] do |image|
61
- json.thumbnail image["thumbnail"]
62
- json.big image["big"]
63
- end
64
- json.keywords project["keywords"]
51
+ json.title project["title"]
52
+ json.summary project["summary"]
53
+ json.url project["url"]
54
+ json.repo project["repo"]
55
+ json.startDate project["startDate"]
56
+ json.endDate project["endDate"]
57
+ json.category project["category"]
58
+ json.images project["images"] do |image|
59
+ json.thumbnail image["thumbnail"]
60
+ json.big image["big"]
65
61
  end
62
+ json.keywords project["keywords"]
66
63
  end
67
64
 
68
65
  json.openSource @data.dig("openSource") do |project|
69
- json.title project["title"]
70
- json.summary project["summary"]
71
- json.role project["role"]
72
- json.url project["url"]
73
- json.repo project["repo"]
74
- json.startDate project["startDate"]
75
- json.endDate project["endDate"]
76
- json.category project["category"]
77
- json.keywords project["keywords"]
78
- end
66
+ json.title project["title"]
67
+ json.summary project["summary"]
68
+ json.role project["role"]
69
+ json.url project["url"]
70
+ json.repo project["repo"]
71
+ json.startDate project["startDate"]
72
+ json.endDate project["endDate"]
73
+ json.category project["category"]
74
+ json.keywords project["keywords"]
79
75
  end
80
76
 
81
77
  json.skills @data.dig("skills") do |skill|
82
- json.name skill["name"]
83
- json.summary skill["summary"]
84
- json.keywords skill["keywords"]
85
- end
78
+ json.name skill["name"]
79
+ json.summary skill["summary"]
80
+ json.keywords skill["keywords"]
86
81
  end
87
82
 
88
83
  json.qualifications @data.dig("qualifications") do |qualification|
89
- json.category qualification["category"]
90
- json.title qualification["title"]
91
- json.startDate qualification["startDate"]
92
- json.endDate qualification["endDate"]
93
- json.from qualification["from"]
94
- json.summary qualification["summary"]
95
- json.url qualification["url"]
96
- json.keywords qualification["keywords"]
97
- end
84
+ json.category qualification["category"]
85
+ json.title qualification["title"]
86
+ json.startDate qualification["startDate"]
87
+ json.endDate qualification["endDate"]
88
+ json.from qualification["from"]
89
+ json.summary qualification["summary"]
90
+ json.url qualification["url"]
91
+ json.keywords qualification["keywords"]
98
92
  end
99
93
 
100
94
  json.recognition @data.dig("recognition") do |entry|
101
- json.category entry["category"]
102
- json.title entry["title"]
103
- json.startDate entry["startDate"]
104
- json.endDate entry["endDate"]
105
- json.from entry["from"]
106
- json.summary entry["summary"]
107
- json.url entry["url"]
108
- json.keywords entry["keywords"]
109
- end
95
+ json.category entry["category"]
96
+ json.title entry["title"]
97
+ json.startDate entry["startDate"]
98
+ json.endDate entry["endDate"]
99
+ json.from entry["from"]
100
+ json.summary entry["summary"]
101
+ json.url entry["url"]
102
+ json.keywords entry["keywords"]
110
103
  end
111
104
 
112
105
  json.writing @data.dig("writing") do |entry|
113
- json.title entry["title"]
114
- json.category entry["category"]
115
- json.publisher entry["publisher"]
116
- json.date entry["date"]
117
- json.url entry["url"]
118
- json.summary entry["summary"]
119
- json.keywords entry["keywords"]
120
- end
106
+ json.title entry["title"]
107
+ json.category entry["category"]
108
+ json.publisher entry["publisher"]
109
+ json.date entry["date"]
110
+ json.url entry["url"]
111
+ json.summary entry["summary"]
112
+ json.keywords entry["keywords"]
121
113
  end
122
114
 
123
115
  json.reading @data.dig("reading") do |entry|
124
- json.title entry["title"]
125
- json.category entry["category"]
126
- json.url entry["url"]
127
- json.author entry["author"]
128
- json.date entry["date"]
129
- json.summary entry["summary"]
130
- json.keywords entry["keywords"]
131
- end
116
+ json.title entry["title"]
117
+ json.category entry["category"]
118
+ json.url entry["url"]
119
+ json.author entry["author"]
120
+ json.date entry["date"]
121
+ json.summary entry["summary"]
122
+ json.keywords entry["keywords"]
132
123
  end
133
124
 
134
125
  json.speaking @data.dig("speaking") do |entry|
135
- json.title entry["title"]
136
- json.event entry["event"]
137
- json.location entry["location"]
138
- json.url entry["url"]
139
- json.date entry["date"]
140
- json.summary entry["summary"]
141
- json.keywords entry["keywords"]
142
- end
126
+ json.title entry["title"]
127
+ json.event entry["event"]
128
+ json.location entry["location"]
129
+ json.url entry["url"]
130
+ json.date entry["date"]
131
+ json.summary entry["summary"]
132
+ json.keywords entry["keywords"]
143
133
  end
144
134
 
145
135
  json.patents @data.dig("patents") do |patent|
146
- json.title patent["title"]
147
- json.url patent["url"]
148
- json.number patent["number"]
149
- json.status patent["status"]
150
- json.summary patent["summary"]
151
- json.date patent["date"]
152
- json.keywords patent["keywords"]
153
- end
136
+ json.title patent["title"]
137
+ json.url patent["url"]
138
+ json.number patent["number"]
139
+ json.status patent["status"]
140
+ json.summary patent["summary"]
141
+ json.date patent["date"]
142
+ json.keywords patent["keywords"]
154
143
  end
155
144
 
156
145
  json.languages @data.dig("languages") do |language|
157
- json.language language["language"]
158
- json.level language["level"]
159
- json.years language["years"]
160
- end
146
+ json.language language["language"]
147
+ json.level language["level"]
148
+ json.years language["years"]
161
149
  end
162
150
 
163
151
  json.interests @data.dig("interests") do |interest|
164
- json.name interest["name"]
165
- json.summary interest["summary"]
166
- end
152
+ json.name interest["name"]
153
+ json.summary interest["summary"]
167
154
  end
168
155
 
169
- json.extracurriculars @data.dig("extracurriculars") do |entry|
170
- json.title entry["title"]
171
- json.summary entry["summary"]
172
- json.category entry["category"]
173
- json.url entry["url"]
174
- json.location entry["location"]
175
- json.startDate entry["startDate"]
176
- json.endDate entry["endDate"]
177
- json.keywords entry["keywords"]
178
- end
156
+ json.extracurricular @data.dig("extracurricular") do |entry|
157
+ json.title entry["title"]
158
+ json.summary entry["summary"]
159
+ json.category entry["category"]
160
+ json.url entry["url"]
161
+ json.location entry["location"]
162
+ json.startDate entry["startDate"]
163
+ json.endDate entry["endDate"]
164
+ json.keywords entry["keywords"]
179
165
  end
180
166
 
181
- json.affiliations @data.dig("affiliations") do |entry|
182
- json.category entry["category"]
183
- json.organization entry["organization"]
184
- json.url entry["url"]
185
- json.startDate entry["startDate"]
186
- json.endDate entry["endDate"]
187
- json.summary entry["summary"]
188
- json.location entry["location"]
189
- json.keywords entry["keywords"]
190
- end
167
+ json.affiliation @data.dig("affiliation") do |entry|
168
+ json.category entry["category"]
169
+ json.organization entry["organization"]
170
+ json.url entry["url"]
171
+ json.startDate entry["startDate"]
172
+ json.endDate entry["endDate"]
173
+ json.summary entry["summary"]
174
+ json.location entry["location"]
175
+ json.keywords entry["keywords"]
191
176
  end
192
177
 
193
178
  json.governance @data.dig("governance") do |entry|
194
- json.summary entry["summary"]
195
- json.category entry["category"]
196
- json.url entry["url"]
197
- json.organization entry["organization"]
198
- json.startDate entry["startDate"]
199
- json.endDate entry["endDate"]
200
- json.keywords entry["keywords"]
201
- end
179
+ json.summary entry["summary"]
180
+ json.category entry["category"]
181
+ json.url entry["url"]
182
+ json.organization entry["organization"]
183
+ json.startDate entry["startDate"]
184
+ json.endDate entry["endDate"]
185
+ json.keywords entry["keywords"]
202
186
  end
203
187
 
204
188
  json.service @data.dig("service") do |entry|
205
- json.category entry["category"]
206
- json.organization entry["organization"]
207
- json.url entry["url"]
208
- json.startDate entry["startDate"]
209
- json.endDate entry["endDate"]
210
- json.summary entry["summary"]
211
- json.location entry["location"]
212
- json.keywords entry["keywords"]
213
- end
189
+ json.category entry["category"]
190
+ json.organization entry["organization"]
191
+ json.url entry["url"]
192
+ json.startDate entry["startDate"]
193
+ json.endDate entry["endDate"]
194
+ json.summary entry["summary"]
195
+ json.location entry["location"]
196
+ json.keywords entry["keywords"]
214
197
  end
215
198
 
216
199
  json.references @data.dig("references") do |reference|
217
- json.name reference["name"]
218
- json.role reference["role"]
219
- json.company reference["company"]
220
- json.summary reference["summary"]
221
- end
200
+ json.name reference["name"]
201
+ json.role reference["role"]
202
+ json.company reference["company"]
203
+ json.summary reference["summary"]
222
204
  end
@@ -9,16 +9,21 @@ Email: <%= @data.dig("basics", "contact", "email") %>
9
9
  Phone: <%= @data.dig("basics", "contact", "phone") %>
10
10
  Website: <%= @data.dig("basics", "contact", "website") %>
11
11
  Address: <%= @data.dig("basics", "contact", "location") %>
12
+
13
+ <% if @data.dig("basics", "contact", "social") %>
12
14
  <% for social in @data.dig("basics", "contact", "social") %>
13
15
  <%= social["network"] %>: [<%= social["user"] %>](<%= social["url"] %>)
14
16
  <% end %>
17
+ <% end %>
15
18
 
16
19
 
20
+ <% if @data.dig("basics", "disposition") %>
17
21
  # Disposition
18
22
 
19
- <%= @data.dig("employment", "disposition") %>
20
-
23
+ <%= @data.dig("basics", "disposition") %>
24
+ <% end %>
21
25
 
26
+ <% if @data.dig("employment") %>
22
27
  # Work Experience
23
28
 
24
29
  <% for job in @data.dig("employment") %>
@@ -28,11 +33,13 @@ Address: <%= @data.dig("basics", "contact", "location") %>
28
33
  <%= job["location"] %>
29
34
 
30
35
  <%= job["summary"] %>
31
-
36
+ <% if job["keywords"] %>
32
37
  <%= job["keywords"].join(", ") %>
33
-
38
+ <% end %>
39
+ <% end %>
34
40
  <% end %>
35
41
 
42
+ <% if @data.dig("education") %>
36
43
  # Education
37
44
 
38
45
  <% for entry in @data.dig("education") %>
@@ -42,12 +49,14 @@ Address: <%= @data.dig("basics", "contact", "location") %>
42
49
  <%= entry["location"] %>
43
50
 
44
51
  <%= entry["summary"] %>
45
-
52
+ <% if entry["keywords"] %>
46
53
  <%= entry["keywords"].join(", ") %>
47
-
54
+ <% end %>
55
+ <% end %>
48
56
  <% end %>
49
57
 
50
58
 
59
+ <% if @data.dig("projects") %>
51
60
  # Projects
52
61
 
53
62
  <% for project in @data.dig("projects") %>
@@ -56,40 +65,45 @@ Address: <%= @data.dig("basics", "contact", "location") %>
56
65
  <%= project["category"] %>, [<%= project["repo"] %>](<%= project["repo"] %>) | <%= project["startDate"] %> - <%= project["endDate"] %>
57
66
 
58
67
  <%= project["summary"] %>
59
-
68
+ <% if project["keywords"] %>
60
69
  <%= project["keywords"].join(", ") %>
61
-
70
+ <% end %>
71
+ <% end %>
62
72
  <% end %>
63
73
 
64
74
 
65
75
 
76
+ <% if @data.dig("openSource") %>
66
77
  # Open Source
67
78
 
68
- <%= @data.dig("openSource", "summary") %>
69
-
70
-
79
+ <% for project in @data.dig("openSource") %>
71
80
  [<%= project["title"] %>](<%= project["url"] %>)
72
81
 
73
82
  <%= project["category"] %>, [<%= project["repo"] %>](<%= project["repo"] %>) | <%= project["startDate"] %> - <%= project["endDate"] %>
74
83
 
75
84
  <%= project["summary"] %>
76
-
85
+ <% if project["keywords"] %>
77
86
  <%= project["keywords"].join(", ") %>
78
-
87
+ <% end %>
88
+ <% end %>
79
89
  <% end %>
80
90
 
81
91
 
92
+ <% if @data.dig("skills") %>
82
93
  # Skills
83
94
 
84
95
  <% for skill in @data.dig("skills") %>
85
96
  <%= skill["name"] %>
86
- <%= skill["summary"] %>
97
+ <%= skill["summary"] %>
98
+ <% if skill["keywords"] %>
87
99
  <%= skill["keywords"].join(", ") %>
88
-
100
+ <% end %>
101
+ <% end %>
89
102
  <% end %>
90
103
 
91
104
 
92
105
 
106
+ <% if @data.dig("qualifications") %>
93
107
  # Qualifications
94
108
 
95
109
  <% for qualification in @data.dig("qualifications") %>
@@ -98,12 +112,14 @@ Address: <%= @data.dig("basics", "contact", "location") %>
98
112
  <%= qualification["category"] %>, <%= qualification["from"] %> | <%= qualification["startDate"] %> - <%= qualification["endDate"] %>
99
113
 
100
114
  <%= qualification["summary"] %>
101
-
115
+ <% if qualification["keywords"] %>
102
116
  <%= qualification["keywords"].join(", ") %>
103
-
117
+ <% end %>
118
+ <% end %>
104
119
  <% end %>
105
120
 
106
121
 
122
+ <% if @data.dig("recognition") %>
107
123
  # Recognition
108
124
 
109
125
  <% for entry in @data.dig("recognition") %>
@@ -112,12 +128,14 @@ Address: <%= @data.dig("basics", "contact", "location") %>
112
128
  <%= entry["category"] %>, <%= entry["from"] %> | <%= entry["startDate"] %> - <%= entry["endDate"] %>
113
129
 
114
130
  <%= entry["summary"] %>
115
-
131
+ <% if entry["keywords"] %>
116
132
  <%= entry["keywords"].join(", ") %>
117
-
133
+ <% end %>
134
+ <% end %>
118
135
  <% end %>
119
136
 
120
137
 
138
+ <% if @data.dig("writing") %>
121
139
  # Writing
122
140
 
123
141
  <% for entry in @data.dig("writing") %>
@@ -126,12 +144,14 @@ Address: <%= @data.dig("basics", "contact", "location") %>
126
144
  <%= entry["category"] %>, <%= entry["publisher"] %> | <%= entry["date"] %>
127
145
 
128
146
  <%= entry["summary"] %>
129
-
147
+ <% if entry["keywords"] %>
130
148
  <%= entry["keywords"].join(", ") %>
131
-
149
+ <% end %>
150
+ <% end %>
132
151
  <% end %>
133
152
 
134
153
 
154
+ <% if @data.dig("reading") %>
135
155
  # Reading
136
156
 
137
157
  <% for entry in @data.dig("reading") %>
@@ -140,12 +160,14 @@ Address: <%= @data.dig("basics", "contact", "location") %>
140
160
  <%= entry["category"] %>, <%= entry["author"] %> | <%= entry["date"] %>
141
161
 
142
162
  <%= entry["summary"] %>
143
-
163
+ <% if entry["keywords"] %>
144
164
  <%= entry["keywords"].join(", ") %>
145
-
165
+ <% end %>
166
+ <% end %>
146
167
  <% end %>
147
168
 
148
169
 
170
+ <% if @data.dig("speaking") %>
149
171
  # Speaking
150
172
 
151
173
  <% for entry in @data.dig("speaking") %>
@@ -154,12 +176,14 @@ Address: <%= @data.dig("basics", "contact", "location") %>
154
176
  <%= entry["event"] %>, <%= entry["location"] %> | <%= entry["date"] %>
155
177
 
156
178
  <%= entry["summary"] %>
157
-
179
+ <% if entry["keywords"] %>
158
180
  <%= entry["keywords"].join(", ") %>
159
-
181
+ <% end %>
182
+ <% end %>
160
183
  <% end %>
161
184
 
162
185
 
186
+ <% if @data.dig("patents") %>
163
187
  # Patents
164
188
 
165
189
  <% for patent in @data.dig("patents") %>
@@ -168,19 +192,23 @@ Address: <%= @data.dig("basics", "contact", "location") %>
168
192
  <%= patent["number"] %>, <%= patent["status"] %> | <%= patent["date"] %>
169
193
 
170
194
  <%= patent["summary"] %>
171
-
195
+ <% if patent["keywords"] %>
172
196
  <%= patent["keywords"].join(", ") %>
173
-
197
+ <% end %>
198
+ <% end %>
174
199
  <% end %>
175
200
 
176
201
 
202
+ <% if @data.dig("languages") %>
177
203
  # Languages
178
204
 
179
205
  <% for language in @data.dig("languages") %>
180
206
  - <%= language["language"] %>, <%= language["level"] %> (<%= language["years"] %> years)
181
207
  <% end %>
208
+ <% end %>
182
209
 
183
210
 
211
+ <% if @data.dig("interests") %>
184
212
  # Interest
185
213
 
186
214
  <% for interest in @data.dig("interests") %>
@@ -188,38 +216,44 @@ Address: <%= @data.dig("basics", "contact", "location") %>
188
216
  <%= interest["summary"] %>
189
217
 
190
218
  <% end %>
219
+ <% end %>
191
220
 
192
221
 
222
+ <% if @data.dig("extracurricular") %>
193
223
  # Extracurricular
194
224
 
195
- <% for entry in @data.dig("extracurriculars") %>
225
+ <% for entry in @data.dig("extracurricular") %>
196
226
 
197
227
  ## [<%= entry["title"] %>](<%= entry["url"] %>)
198
228
 
199
229
  <%= entry["category"] %>, <%= entry["location"] %> | <%= entry["startDate"] %> - <%= entry["endDate"] %>
200
230
 
201
231
  <%= entry["summary"] %>
202
-
232
+ <% if entry["keywords"] %>
203
233
  <%= entry["keywords"].join(", ") %>
204
-
234
+ <% end %>
235
+ <% end %>
205
236
  <% end %>
206
237
 
207
238
 
239
+ <% if @data.dig("affiliation") %>
208
240
  # Affiliation
209
241
 
210
- <% for entry in @data.dig("affiliations") %>
242
+ <% for entry in @data.dig("affiliation") %>
211
243
 
212
244
  ## [<%= entry["organization"] %>](<%= entry["url"] %>)
213
245
 
214
246
  <%= entry["category"] %>, <%= entry["location"] %> | <%= entry["startDate"] %> - <%= entry["endDate"] %>
215
247
 
216
248
  <%= entry["summary"] %>
217
-
249
+ <% if entry["keywords"] %>
218
250
  <%= entry["keywords"].join(", ") %>
219
-
251
+ <% end %>
252
+ <% end %>
220
253
  <% end %>
221
254
 
222
255
 
256
+ <% if @data.dig("governance") %>
223
257
  # Governance
224
258
 
225
259
  <% for entry in @data.dig("governance") %>
@@ -229,12 +263,14 @@ Address: <%= @data.dig("basics", "contact", "location") %>
229
263
  <%= entry["summary"] %>
230
264
 
231
265
  <%= entry["category"] %> | <%= entry["startDate"] %> - <%= entry["endDate"] %>
232
-
266
+ <% if entry["keywords"] %>
233
267
  <%= entry["keywords"].join(", ") %>
234
-
268
+ <% end %>
269
+ <% end %>
235
270
  <% end %>
236
271
 
237
272
 
273
+ <% if @data.dig("service") %>
238
274
  # Service
239
275
 
240
276
  <% for entry in @data.dig("service") %>
@@ -244,12 +280,14 @@ Address: <%= @data.dig("basics", "contact", "location") %>
244
280
  <%= entry["category"] %>, <%= entry["location"] %> | <%= entry["startDate"] %> - <%= entry["endDate"] %>
245
281
 
246
282
  <%= entry["summary"] %>
247
-
283
+ <% if entry["keywords"] %>
248
284
  <%= entry["keywords"].join(", ") %>
249
-
285
+ <% end %>
286
+ <% end %>
250
287
  <% end %>
251
288
 
252
289
 
290
+ <% if @data.dig("references") %>
253
291
  # References
254
292
 
255
293
  <% for reference in @data.dig("references") %>
@@ -260,3 +298,4 @@ Address: <%= @data.dig("basics", "contact", "location") %>
260
298
  <%= reference["summary"] %>
261
299
 
262
300
  <% end %>
301
+ <% end %>