-/* Copyright (c) 2013 IndexData ApS. http://indexdata.com
+/* Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
*
* perform papzpar2 / pz2.js search & retrieve request in the browser
*
});
describe("Check pazpar2 search", function () {
- it("pazpar2 was successfully initialize", function () {
+ it("pazpar2 was successfully initialized", function () {
expect(mkws_config.error).toBe(undefined);
});
});
it("limit search to first author", function () {
+ if (!mkws_config.use_service_proxy) {
+ debug("running raw pp2, ignore non-functional limit search for authors");
+ return;
+ }
+
var hits_all_targets = get_hit_counter();
var author_number = 2; // 2=first author
// do not click on author with numbers, e.g.: "Bower, James M. Beeman, David, 1938-"
expect(click.length).toBe(1);
waitsFor(function () {
- if ($("div#mkwsNavi").length && $("div#mkwsNavi").text().match(/Source: /)) {
+ if ($("div#mkwsNavi").length && $("div#mkwsNavi").text().match(/(Source|datenquelle|kilder): /i)) {
return true;
} else {
return false;