From ff24fce4143dcbda6d62e16e1c8112eaad0baac2 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Fri, 21 Jun 2013 13:28:30 +0000 Subject: [PATCH] translate detailed record view --- experiments/spclient/mkws.js | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 3bb9aaf..d374990 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -30,6 +30,11 @@ var mkws_locale_lang = { "to": "von", "of": "aus", "found": "gefunden", + "Title": "Titel", + "Author": "Autor", + "Date": "Datum", + "Subject": "Schlagwort", + "Location": "Ort", "dummy": "dummy" }, @@ -49,6 +54,11 @@ var mkws_locale_lang = { "to": "til", "of": "ud af", "found": "fandt", + "Title": "Title", + "Author": "Author", + "Date": "Dato", + "Subject": "Subject", + "Location": "Location", "dummy": "dummy" } @@ -401,7 +411,7 @@ function renderDetails(data, marker) var details = '
'; if (marker) details += ''; if (data["md-title"] != undefined) { - details += ''; } if (data["md-date"] != undefined) - details += ''; + details += ''; if (data["md-author"] != undefined) - details += ''; + details += ''; if (data["md-electronic-url"] != undefined) details += ''; if (data["location"][0]["md-subject"] != undefined) - details += ''; + details += ''; if (data["location"][0]["@name"] != undefined) - details += ''; + details += ''; details += '
'+ marker + '
Title: '+data["md-title"]; + details += '
' + M('Title') + ': '+data["md-title"]; if (data["md-title-remainder"] !== undefined) { details += ' : ' + data["md-title-remainder"] + ' '; } @@ -411,15 +421,15 @@ function renderDetails(data, marker) details += '
Date: ' + data["md-date"] + '
' + M('Date') + ': ' + data["md-date"] + '
Author: ' + data["md-author"] + '
' + M('Author') + ': ' + data["md-author"] + '
URL: ' + data["md-electronic-url"] + '' + '
Subject: ' + data["location"][0]["md-subject"] + '
' + M('Subject') + ': ' + data["location"][0]["md-subject"] + '
Location: ' + data["location"][0]["@name"] + " (" +data["location"][0]["@id"] + ")" + '
' + M('Location') + ': ' + data["location"][0]["@name"] + " (" +data["location"][0]["@id"] + ")" + '
'; return details; } -- 1.7.10.4