2 var template = Handlebars.template, templates = mkws.defaultTemplates = mkws.defaultTemplates || {};
3 templates['Image'] = template(function (Handlebars,depth0,helpers,partials,data) {
4 this.compilerInfo = [4,'>= 1.0.0'];
5 helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
6 var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this, helperMissing=helpers.helperMissing;
8 function program1(depth0,data) {
10 var buffer = "", stack1, helper, options;
11 buffer += "\n <a href=\"#\" id=\"";
12 if (helper = helpers.detailLinkId) { stack1 = helper.call(depth0, {hash:{},data:data}); }
13 else { helper = (depth0 && depth0.detailLinkId); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
14 buffer += escapeExpression(stack1)
16 if (helper = helpers.detailClick) { stack1 = helper.call(depth0, {hash:{},data:data}); }
17 else { helper = (depth0 && depth0.detailClick); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
18 buffer += escapeExpression(stack1)
20 stack1 = (helper = helpers['mkws-first'] || (depth0 && depth0['mkws-first']),options={hash:{},inverse:self.noop,fn:self.programWithDepth(2, program2, data, depth0),data:data},helper ? helper.call(depth0, (depth0 && depth0['md-thumburl']), options) : helperMissing.call(depth0, "mkws-first", (depth0 && depth0['md-thumburl']), options));
21 if(stack1 || stack1 === 0) { buffer += stack1; }
22 buffer += "\n <br/>\n </a>\n";
25 function program2(depth0,data,depth1) {
27 var buffer = "", stack1;
28 buffer += "\n <img src=\""
29 + escapeExpression((typeof depth0 === functionType ? depth0.apply(depth0) : depth0))
31 + escapeExpression(((stack1 = (depth1 && depth1['md-title'])),typeof stack1 === functionType ? stack1.apply(depth0) : stack1))
37 stack1 = helpers.each.call(depth0, (depth0 && depth0.hits), {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
38 if(stack1 || stack1 === 0) { buffer += stack1; }
42 templates['Record'] = template(function (Handlebars,depth0,helpers,partials,data) {
43 this.compilerInfo = [4,'>= 1.0.0'];
44 helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
45 var buffer = "", stack1, helper, options, functionType="function", escapeExpression=this.escapeExpression, helperMissing=helpers.helperMissing, self=this;
47 function program1(depth0,data) {
49 var buffer = "", stack1, helper;
51 if (helper = helpers['md-title-remainder']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
52 else { helper = (depth0 && depth0['md-title-remainder']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
53 buffer += escapeExpression(stack1)
58 function program3(depth0,data) {
60 var buffer = "", stack1, helper;
62 if (helper = helpers['md-title-responsibility']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
63 else { helper = (depth0 && depth0['md-title-responsibility']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
64 buffer += escapeExpression(stack1)
69 function program5(depth0,data) {
71 var buffer = "", stack1, helper, options;
72 buffer += "\n <tr>\n <th>"
73 + escapeExpression((helper = helpers['mkws-translate'] || (depth0 && depth0['mkws-translate']),options={hash:{},data:data},helper ? helper.call(depth0, "Date", options) : helperMissing.call(depth0, "mkws-translate", "Date", options)))
75 if (helper = helpers['md-date']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
76 else { helper = (depth0 && depth0['md-date']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
77 buffer += escapeExpression(stack1)
82 function program7(depth0,data) {
84 var buffer = "", stack1, helper, options;
85 buffer += "\n <tr>\n <th>"
86 + escapeExpression((helper = helpers['mkws-translate'] || (depth0 && depth0['mkws-translate']),options={hash:{},data:data},helper ? helper.call(depth0, "Author", options) : helperMissing.call(depth0, "mkws-translate", "Author", options)))
88 if (helper = helpers['md-author']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
89 else { helper = (depth0 && depth0['md-author']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
90 buffer += escapeExpression(stack1)
95 function program9(depth0,data) {
97 var buffer = "", stack1, helper, options;
98 buffer += "\n <tr>\n <th>"
99 + escapeExpression((helper = helpers['mkws-translate'] || (depth0 && depth0['mkws-translate']),options={hash:{},data:data},helper ? helper.call(depth0, "Links", options) : helperMissing.call(depth0, "mkws-translate", "Links", options)))
101 stack1 = helpers.each.call(depth0, (depth0 && depth0['md-electronic-url']), {hash:{},inverse:self.noop,fn:self.program(10, program10, data),data:data});
102 if(stack1 || stack1 === 0) { buffer += stack1; }
103 buffer += "\n </td>\n </tr>\n ";
106 function program10(depth0,data) {
108 var buffer = "", stack1, helper;
109 buffer += "\n <a href=\""
110 + escapeExpression((typeof depth0 === functionType ? depth0.apply(depth0) : depth0))
112 if (helper = helpers['mkws-index1']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
113 else { helper = (depth0 && depth0['mkws-index1']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
114 buffer += escapeExpression(stack1)
119 function program12(depth0,data) {
121 var buffer = "", stack1, helper, options;
122 buffer += "\n <tr>\n <th>"
123 + escapeExpression((helper = helpers['mkws-translate'] || (depth0 && depth0['mkws-translate']),options={hash:{},data:data},helper ? helper.call(depth0, "Subject", options) : helperMissing.call(depth0, "mkws-translate", "Subject", options)))
125 stack1 = (helper = helpers['mkws-first'] || (depth0 && depth0['mkws-first']),options={hash:{
126 'having': ("md-subject")
127 },inverse:self.noop,fn:self.program(13, program13, data),data:data},helper ? helper.call(depth0, (depth0 && depth0.location), options) : helperMissing.call(depth0, "mkws-first", (depth0 && depth0.location), options));
128 if(stack1 || stack1 === 0) { buffer += stack1; }
129 buffer += "\n </td>\n </tr>\n ";
132 function program13(depth0,data) {
134 var buffer = "", stack1;
136 stack1 = helpers['if'].call(depth0, (depth0 && depth0['md-subject']), {hash:{},inverse:self.noop,fn:self.program(14, program14, data),data:data});
137 if(stack1 || stack1 === 0) { buffer += stack1; }
141 function program14(depth0,data) {
143 var buffer = "", stack1, helper, options;
145 stack1 = (helper = helpers['mkws-commaList'] || (depth0 && depth0['mkws-commaList']),options={hash:{},inverse:self.noop,fn:self.program(15, program15, data),data:data},helper ? helper.call(depth0, (depth0 && depth0['md-subject']), options) : helperMissing.call(depth0, "mkws-commaList", (depth0 && depth0['md-subject']), options));
146 if(stack1 || stack1 === 0) { buffer += stack1; }
150 function program15(depth0,data) {
154 + escapeExpression((typeof depth0 === functionType ? depth0.apply(depth0) : depth0));
158 function program17(depth0,data) {
160 var buffer = "", helper, options;
162 + escapeExpression((helper = helpers['mkws-attr'] || (depth0 && depth0['mkws-attr']),options={hash:{},data:data},helper ? helper.call(depth0, "@name", options) : helperMissing.call(depth0, "mkws-attr", "@name", options)));
166 buffer += "\n<table>\n <tr>\n <th>"
167 + escapeExpression((helper = helpers['mkws-translate'] || (depth0 && depth0['mkws-translate']),options={hash:{},data:data},helper ? helper.call(depth0, "Title", options) : helperMissing.call(depth0, "mkws-translate", "Title", options)))
169 if (helper = helpers['md-title']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
170 else { helper = (depth0 && depth0['md-title']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
171 buffer += escapeExpression(stack1)
173 stack1 = helpers['if'].call(depth0, (depth0 && depth0['md-title-remainder']), {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
174 if(stack1 || stack1 === 0) { buffer += stack1; }
176 stack1 = helpers['if'].call(depth0, (depth0 && depth0['md-title-responsibility']), {hash:{},inverse:self.noop,fn:self.program(3, program3, data),data:data});
177 if(stack1 || stack1 === 0) { buffer += stack1; }
178 buffer += "\n </td>\n </tr>\n ";
179 stack1 = helpers['if'].call(depth0, (depth0 && depth0['md-date']), {hash:{},inverse:self.noop,fn:self.program(5, program5, data),data:data});
180 if(stack1 || stack1 === 0) { buffer += stack1; }
182 stack1 = helpers['if'].call(depth0, (depth0 && depth0['md-author']), {hash:{},inverse:self.noop,fn:self.program(7, program7, data),data:data});
183 if(stack1 || stack1 === 0) { buffer += stack1; }
185 stack1 = helpers['if'].call(depth0, (depth0 && depth0['md-electronic-url']), {hash:{},inverse:self.noop,fn:self.program(9, program9, data),data:data});
186 if(stack1 || stack1 === 0) { buffer += stack1; }
188 stack1 = (helper = helpers['mkws-if-any'] || (depth0 && depth0['mkws-if-any']),options={hash:{
189 'having': ("md-subject")
190 },inverse:self.noop,fn:self.program(12, program12, data),data:data},helper ? helper.call(depth0, (depth0 && depth0.location), options) : helperMissing.call(depth0, "mkws-if-any", (depth0 && depth0.location), options));
191 if(stack1 || stack1 === 0) { buffer += stack1; }
192 buffer += "\n <tr>\n <th>"
193 + escapeExpression((helper = helpers['mkws-translate'] || (depth0 && depth0['mkws-translate']),options={hash:{},data:data},helper ? helper.call(depth0, "Locations", options) : helperMissing.call(depth0, "mkws-translate", "Locations", options)))
195 stack1 = (helper = helpers['mkws-commaList'] || (depth0 && depth0['mkws-commaList']),options={hash:{},inverse:self.noop,fn:self.program(17, program17, data),data:data},helper ? helper.call(depth0, (depth0 && depth0.location), options) : helperMissing.call(depth0, "mkws-commaList", (depth0 && depth0.location), options));
196 if(stack1 || stack1 === 0) { buffer += stack1; }
197 buffer += "\n </td>\n </tr>\n</table>\n";
200 templates['Records'] = template(function (Handlebars,depth0,helpers,partials,data) {
201 this.compilerInfo = [4,'>= 1.0.0'];
202 helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
203 var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;
205 function program1(depth0,data) {
207 var buffer = "", stack1, helper;
208 buffer += "\n <div class=\"";
209 if (helper = helpers.containerClass) { stack1 = helper.call(depth0, {hash:{},data:data}); }
210 else { helper = (depth0 && depth0.containerClass); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
211 buffer += escapeExpression(stack1)
212 + "\">\n <a href=\"#\" id=\"";
213 if (helper = helpers.detailLinkId) { stack1 = helper.call(depth0, {hash:{},data:data}); }
214 else { helper = (depth0 && depth0.detailLinkId); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
215 buffer += escapeExpression(stack1)
217 if (helper = helpers.detailClick) { stack1 = helper.call(depth0, {hash:{},data:data}); }
218 else { helper = (depth0 && depth0.detailClick); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
219 buffer += escapeExpression(stack1)
221 if (helper = helpers['md-title']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
222 else { helper = (depth0 && depth0['md-title']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
223 buffer += escapeExpression(stack1)
225 stack1 = helpers['if'].call(depth0, (depth0 && depth0['md-title-remainder']), {hash:{},inverse:self.noop,fn:self.program(2, program2, data),data:data});
226 if(stack1 || stack1 === 0) { buffer += stack1; }
228 stack1 = helpers['if'].call(depth0, (depth0 && depth0['md-title-responsibility']), {hash:{},inverse:self.noop,fn:self.program(4, program4, data),data:data});
229 if(stack1 || stack1 === 0) { buffer += stack1; }
231 stack1 = helpers['if'].call(depth0, (depth0 && depth0.renderedDetails), {hash:{},inverse:self.noop,fn:self.program(6, program6, data),data:data});
232 if(stack1 || stack1 === 0) { buffer += stack1; }
233 buffer += "\n </div>\n";
236 function program2(depth0,data) {
238 var buffer = "", stack1, helper;
239 buffer += "\n <span>";
240 if (helper = helpers['md-title-remainder']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
241 else { helper = (depth0 && depth0['md-title-remainder']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
242 buffer += escapeExpression(stack1)
247 function program4(depth0,data) {
249 var buffer = "", stack1, helper;
250 buffer += "\n <span><i>";
251 if (helper = helpers['md-title-responsibility']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
252 else { helper = (depth0 && depth0['md-title-responsibility']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
253 buffer += escapeExpression(stack1)
258 function program6(depth0,data) {
260 var buffer = "", stack1, helper;
262 if (helper = helpers.renderedDetails) { stack1 = helper.call(depth0, {hash:{},data:data}); }
263 else { helper = (depth0 && depth0.renderedDetails); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
264 if(stack1 || stack1 === 0) { buffer += stack1; }
270 stack1 = helpers.each.call(depth0, (depth0 && depth0.hits), {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
271 if(stack1 || stack1 === 0) { buffer += stack1; }
275 templates['Reference'] = template(function (Handlebars,depth0,helpers,partials,data) {
276 this.compilerInfo = [4,'>= 1.0.0'];
277 helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
278 var buffer = "", stack1, helper, options, functionType="function", escapeExpression=this.escapeExpression, self=this, helperMissing=helpers.helperMissing;
280 function program1(depth0,data) {
282 var buffer = "", stack1, helper;
284 if (helper = helpers['md-title-remainder']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
285 else { helper = (depth0 && depth0['md-title-remainder']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
286 buffer += escapeExpression(stack1)
291 function program3(depth0,data) {
293 var buffer = "", stack1, helper;
295 if (helper = helpers['md-title-responsibility']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
296 else { helper = (depth0 && depth0['md-title-responsibility']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
297 buffer += escapeExpression(stack1)
302 buffer += "\n<img src=\"";
303 if (helper = helpers['md-thumburl']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
304 else { helper = (depth0 && depth0['md-thumburl']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
305 buffer += escapeExpression(stack1)
307 if (helper = helpers['md-title']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
308 else { helper = (depth0 && depth0['md-title']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
309 buffer += escapeExpression(stack1)
310 + "\">\n<h1><a href=\"";
311 if (helper = helpers['md-electronic-url']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
312 else { helper = (depth0 && depth0['md-electronic-url']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
313 buffer += escapeExpression(stack1)
315 if (helper = helpers['md-title']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
316 else { helper = (depth0 && depth0['md-title']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
317 buffer += escapeExpression(stack1)
319 stack1 = helpers['if'].call(depth0, (depth0 && depth0['md-title-remainder']), {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
320 if(stack1 || stack1 === 0) { buffer += stack1; }
322 stack1 = helpers['if'].call(depth0, (depth0 && depth0['md-title-responsibility']), {hash:{},inverse:self.noop,fn:self.program(3, program3, data),data:data});
323 if(stack1 || stack1 === 0) { buffer += stack1; }
325 stack1 = (helper = helpers['mkws-paragraphs'] || (depth0 && depth0['mkws-paragraphs']),options={hash:{},data:data},helper ? helper.call(depth0, (depth0 && depth0['md-description']), (depth0 && depth0.paragraphs), (depth0 && depth0.sentences), options) : helperMissing.call(depth0, "mkws-paragraphs", (depth0 && depth0['md-description']), (depth0 && depth0.paragraphs), (depth0 && depth0.sentences), options));
326 if(stack1 || stack1 === 0) { buffer += stack1; }
327 buffer += "\n<p class=\"mkwsCredit\">Wikipedia</p>\n";
330 templates['Facet'] = template(function (Handlebars,depth0,helpers,partials,data) {
331 this.compilerInfo = [4,'>= 1.0.0'];
332 helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
333 var buffer = "", stack1, helper, functionType="function", escapeExpression=this.escapeExpression, self=this;
335 function program1(depth0,data) {
337 var buffer = "", stack1, helper;
338 buffer += "\n <div class=\"mkwsTerm\">\n <a href=\"#\" ";
339 if (helper = helpers.linkdata) { stack1 = helper.call(depth0, {hash:{},data:data}); }
340 else { helper = (depth0 && depth0.linkdata); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
341 buffer += escapeExpression(stack1)
343 if (helper = helpers.term) { stack1 = helper.call(depth0, {hash:{},data:data}); }
344 else { helper = (depth0 && depth0.term); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
345 buffer += escapeExpression(stack1)
347 if (helper = helpers.count) { stack1 = helper.call(depth0, {hash:{},data:data}); }
348 else { helper = (depth0 && depth0.count); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
349 buffer += escapeExpression(stack1)
350 + "</span>\n </div>\n";
354 buffer += "\n\n<div class=\"mkwsFacetTitle\">";
355 if (helper = helpers.caption) { stack1 = helper.call(depth0, {hash:{},data:data}); }
356 else { helper = (depth0 && depth0.caption); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
357 buffer += escapeExpression(stack1)
359 stack1 = helpers.each.call(depth0, (depth0 && depth0.terms), {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
360 if(stack1 || stack1 === 0) { buffer += stack1; }
364 templates['Termlists'] = template(function (Handlebars,depth0,helpers,partials,data) {
365 this.compilerInfo = [4,'>= 1.0.0'];
366 helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
367 var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;
369 function program1(depth0,data,depth1) {
371 var buffer = "", stack1, helper;
372 buffer += "\n <div class=\"mkwsFacet mkwsTeam_"
373 + escapeExpression(((stack1 = (depth1 && depth1.team)),typeof stack1 === functionType ? stack1.apply(depth0) : stack1))
374 + "\" data-mkws-facet=\"";
375 if (helper = helpers.name) { stack1 = helper.call(depth0, {hash:{},data:data}); }
376 else { helper = (depth0 && depth0.name); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
377 buffer += escapeExpression(stack1)
382 buffer += "\n\n<div class=\"mkwsTermlistsTitle\">Termlists</div>\n";
383 stack1 = helpers.each.call(depth0, (depth0 && depth0.facets), {hash:{},inverse:self.noop,fn:self.programWithDepth(1, program1, data, depth0),data:data});
384 if(stack1 || stack1 === 0) { buffer += stack1; }