<VirtualHost *:80>
ServerName x.example.indexdata.com
DocumentRoot /usr/local/src/git/mkws/examples/htdocs/
+ Alias /tools/htdocs/ /usr/local/src/git/mkws/tools/htdocs/
ErrorLog /var/log/apache2/mkws-examples-error.log
CustomLog /var/log/apache2/mkws-examples-access.log combined
RewriteEngine on
RewriteLogLevel 1
RewriteLog /var/log/apache2/mkws-rewrite.log
- RewriteRule /service-proxy-auth /service-proxy/?command=auth&action=login&username=demo&password=demo [P] # [NE,P]
+ RewriteRule /service-proxy-auth /service-proxy/?command=auth&action=login&username=mkws&password=mkws [P] # [NE,P]
# The following rule allows the server to accept service-proxy
# requests that begin with an escaped "%3F" rather than a literal
Header set Access-Control-Allow-Credentials true
# For MKC Service Proxy
- ProxyPass /service-proxy/ http://mk2-test.indexdata.com/service-proxy/
- ProxyPassReverse /service-proxy/ http://mk2-test.indexdata.com/service-proxy/
+ ProxyPass /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
+ ProxyPassReverse /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
PerlOptions +Parent
PerlSwitches -I/home/indexdata/mkws/tools/mod_perl
The 0.9.x series of releases are beta quality. They are functional but
have not yet been extensively battle-tested.
+0.9.2 [IN PROGRESS]
+ - Full-record template invokes {{translate}} on fieldnames.
+ Fixes MKWS-84 Translate fieldnames in full-record popup.
+
0.9.1 Thu Dec 19 15:33:13 GMT 2013
- First public release.
});
+Handlebars.registerHelper('translate', function(s) {
+ debug("translating '" + s + "'");
+ return M(s);
+});
+
+
// We need {{attr '@name'}} because Handlebars can't parse {{@name}}
Handlebars.registerHelper('attr', function(attrName) {
return this[attrName];
return '\
<table>\
<tr>\
- <th>Title</th>\
+ <th>{{translate "Title"}}</th>\
<td>\
{{md-title}}\
{{#if md-title-remainder}}\
</tr>\
{{#if md-date}}\
<tr>\
- <th>Date</th>\
+ <th>{{translate "Date"}}</th>\
<td>{{md-date}}</td>\
</tr>\
{{/if}}\
{{#if md-author}}\
<tr>\
- <th>Author</th>\
+ <th>{{translate "Author"}}</th>\
<td>{{md-author}}</td>\
</tr>\
{{/if}}\
{{#if md-electronic-url}}\
<tr>\
- <th>URL</th>\
+ <th>{{translate "URL"}}</th>\
<td>\
{{#each md-electronic-url}}\
<a href="{{this}}">{{this}}</a><br/>\
{{/if}}\
{{#if-any location having="md-subject"}}\
<tr>\
- <th>Subject</th>\
+ <th>{{translate "Subject"}}</th>\
<td>\
{{#first location having="md-subject"}}\
{{#if md-subject}}\
</tr>\
{{/if-any}}\
<tr>\
- <th>Locations</th>\
+ <th>{{translate "Locations"}}</th>\
<td>\
{{#commaList location}}\
{{attr "@name"}}{{/commaList}}\