-# Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
+# Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
#
# You need node.js to build MKWS. On caliban, get it using:
# export PATH=$PATH:/home/indexdata/node/node-v0.10.32-linux-x64/bin
-# Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
+# Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
DOCS = README.html README.odt README.pdf \
mkws-manual.html mkws-manual.odt mkws-manual.pdf \
- - -
-Copyright 2014 IndexData ApS. <http://indexdata.com>
+Copyright 2014 Index Data ApS. <http://indexdata.com>
- - -
-Copyright (C) 2013-2014 by IndexData ApS, <http://www.indexdata.com>
+Copyright (C) 2013-2014 by Index Data ApS, <http://www.indexdata.com>
- - -
-Copyright (C) 2013-2014 by IndexData ApS, <http://www.indexdata.com>
+Copyright (C) 2013-2014 by Index Data ApS, <http://www.indexdata.com>
-# Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
+# Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
all: apache-config.txt
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="copyright" content="(c) 1999-2013 IndexData ApS, http://indexdata.com" />
+ <meta name="copyright" content="(c) 1999-2013 Index Data ApS, http://indexdata.com" />
<title>MKWS demo: Automatic search</title>
<link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
<script type="text/javascript">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="copyright" content="(c) 1999-2013 IndexData ApS, http://indexdata.com" />
+ <meta name="copyright" content="(c) 1999-2013 Index Data ApS, http://indexdata.com" />
<title>MKWS demo: Automatic search</title>
<link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
<script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="copyright" content="(c) 1999-2013 IndexData ApS, http://indexdata.com" />
+ <meta name="copyright" content="(c) 1999-2013 Index Data ApS, http://indexdata.com" />
<title>MKWS demo: Multiple automatic searches</title>
<link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
<script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="copyright" content="(c) 1999-2013 IndexData ApS, http://indexdata.com" />
+ <meta name="copyright" content="(c) 1999-2013 Index Data ApS, http://indexdata.com" />
<title>MKWS demo: Multiple automatic searches</title>
<link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
<script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="copyright" content="(c) 1999-2014 IndexData ApS, http://indexdata.com" />
+ <meta name="copyright" content="(c) 1999-2014 Index Data ApS, http://indexdata.com" />
<title>MKWS demo: full configuration</title>
<link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
<script type="text/javascript">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="copyright" content="(c) 1999-2013 IndexData ApS, http://indexdata.com" />
+ <meta name="copyright" content="(c) 1999-2013 Index Data ApS, http://indexdata.com" />
<title>MKWS demo: Mike's playground</title>
<link rel="stylesheet" type="text/css" href="http://x.mkws.indexdata.com/mkws.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="copyright" content="(c) 1999-2013 IndexData ApS, http://indexdata.com" />
+ <meta name="copyright" content="(c) 1999-2013 Index Data ApS, http://indexdata.com" />
<title>MKWS demo: mobile-screen resizing</title>
<link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
<script type="text/javascript">
-# Copyright (c) 2014 IndexData ApS. http://indexdata.com
+# Copyright (c) 2014 Index Data ApS. http://indexdata.com
User-agent: *
Disallow: /service-proxy
};
-// Incredible that the standard JavaScript runtime doesn't define a
-// unique windowId. Instead, we have to make one up. And since there's
-// no global area shared between windows, the best we can do for
-// ensuring uniqueness is generating a random ID and crossing our
-// fingers. We stash this in window.name, as it's the only place to
-// keep data that is preserved across reloads and within-site
-// navigation. pz2.js picks this up and uses it as part of the
-// cookie-name, to ensure each tab gets its own session.
-if (window.name) {
- mkws.log("Using existing window.name '" + window.name + "'");
-} else {
- // Ten chars from 26 alpha-numerics = 36^10 = 3.65e15 combinations.
- // At one per second, it will take 116 million years to duplicate a session
- window.name = Math.random().toString(36).slice(2, 12);
- mkws.log("Generated new window.name '" + window.name + "'");
-}
-
-
// Translation function.
mkws.M = function(word) {
var lang = mkws.config.lang;
};
+// We put a session token in window.name, as it's the only place to
+// keep data that is preserved across reloads and within-site
+// navigation. pz2.js picks this up and uses it as part of the
+// cookie-name, to ensure we get a new session when we need one.
+//
+// We want to use different sessions for different windows/tabs (so
+// they don't receive each other's messages), different hosts and
+// different paths on a host (since in general these will
+// authenticate as different libraries). So the window name needs to
+// include the hostname and the path from the URL, plus the token.
+//
+var token;
+if (window.name) {
+ token = window.name.replace(/.*\//, '');
+ mkws.log("Reusing existing window token '" + token + "'");
+} else {
+ // Incredible that the standard JavaScript runtime doesn't define a
+ // unique windowId. Instead, we have to make one up. And since there's
+ // no global area shared between windows, the best we can do for
+ // ensuring uniqueness is generating a random ID and crossing our
+ // fingers.
+ //
+ // Ten chars from 26 alpha-numerics = 36^10 = 3.65e15 combinations.
+ // At one per second, it will take 116 million years to duplicate a token
+ token = Math.random().toString(36).slice(2, 12);
+ mkws.log("Generated new window token '" + token + "'");
+}
+
+window.name = window.location.hostname + window.location.pathname + '/' + token;
+mkws.log("Using window.name '" + window.name + "'");
+
+
// wrapper to provide local copy of the jQuery object.
(function($) {
var log = mkws.log;
-# Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
+# Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
# For running on Mike's local install of node.js
MIKE = PATH=$$PATH:/usr/local/lib/node-v0.10.24-linux-x64/bin
$ make node-modules
--
-Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
+Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
Feb 2014, Wolfram
#!/bin/sh
-# Copyright (c) 2014-2014 IndexData ApS. http://indexdata.com
+# Copyright (c) 2014-2014 Index Data ApS. http://indexdata.com
# Wolfram Schneider
#
# generate temp config file for testing
#!/usr/bin/perl
-# Copyright (c) 2014 IndexData ApS. http://indexdata.com
+# Copyright (c) 2014 Index Data ApS. http://indexdata.com
#
# bomb.pl - wrapper to stop a process after N seconds
#
"jQuery": "*",
"xmlhttprequest": "*",
"jsdom": "<= 0.11.1",
+ "cssstyle": "<= 0.2.14",
"request": "*",
"jasmine-reporters": "<= 0.4.1",
"jasmine-node": "*",
-/* Copyright (c) 2013 IndexData ApS. http://indexdata.com
+/* Copyright (c) 2013 Index Data ApS. http://indexdata.com
*
* async check
*
-/* Copyright (c) 2013 IndexData ApS. http://indexdata.com
+/* Copyright (c) 2013 Index Data ApS. http://indexdata.com
*
* jQuery test
*
-/* Copyright (c) 2013 IndexData ApS. http://indexdata.com
+/* Copyright (c) 2013 Index Data ApS. http://indexdata.com
*
* jQuery test with DOM/windows object
*
-/* Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
+/* Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
*
* check mkws_config = {} object in browser
*
-/* Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
+/* Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
*
* perform papzpar2 / pz2.js search & retrieve request in the browser
*
-/* Copyright (c) 2013 IndexData ApS. http://indexdata.com
+/* Copyright (c) 2013 Index Data ApS. http://indexdata.com
*
* jQuery sample from system documentation
*
-/* Copyright (c) 2013 IndexData ApS. http://indexdata.com
+/* Copyright (c) 2013 Index Data ApS. http://indexdata.com
*
* dummy test
*
-# Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
+# Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
SRC= ../../src
mkws-js mkws-complete.js: Makefile mkws.js ${HANDLEBARS_FILE} ${JQUERY_FILE} ${JQUERY_JSON_FILE} ${PP2_FILE}
( set -e; \
- echo "/*! Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com"; \
+ echo "/*! Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com"; \
echo " Licence: GPL, http://www.indexdata.com/licences/gpl"; \
echo " created at: $$(date)"; \
echo " MKWS GIT id: $$(git show | head -n 1 | perl -npe 's,\S+\s+,,')"; \
-# Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
+# Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
#
# this makefile will generate CSS files for Koha MKWS widgets
font-weight:bold;
color: #2B77AF;
}
-/*! Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
+/*! Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
* Licence: GPL, http://www.indexdata.com/licences/gpl
*
* Style sheet for MKWS plugin for Koha
-/*! Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
+/*! Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
* Licence: GPL, http://www.indexdata.com/licences/gpl
*
* Style sheet for MKWS plugin for Koha
</div>
<p style="text-align: right; font-size: small">
- Copyright (©) 2013-2014 IndexData ApS.
+ Copyright (©) 2013-2014 Index Data ApS.
<a href="http://indexdata.com"><code>http://indexdata.com</code></a>
</p>
</body>
-/*! Copyright (c) 2013 IndexData ApS. http://indexdata.com
+/*! Copyright (c) 2013 Index Data ApS. http://indexdata.com
created at: Thu Dec 19 15:38:43 GMT 2013
mkws.js GIT id: 54b1dadf3e529bd323661138eaf255192706ef50
pz2.js GIT id: fcae86df04ab28f83b889ca873275f68551928df
-/* Copyright (c) 2013 IndexData ApS. http://indexdata.com
+/* Copyright (c) 2013 Index Data ApS. http://indexdata.com
created at: Thu Dec 19 15:38:43 GMT 2013
mkws.js GIT id: 54b1dadf3e529bd323661138eaf255192706ef50
pz2.js GIT id: fcae86df04ab28f83b889ca873275f68551928df
-# Copyright (c) 2014 IndexData ApS. http://indexdata.com
+# Copyright (c) 2014 Index Data ApS. http://indexdata.com
User-agent: *
Disallow: /service-proxy