From: Adam Dickmeiss Date: Thu, 21 Jun 2007 09:42:46 +0000 (+0000) Subject: Added new parameter for pz2 object: pazpar2path which sets Pazpar2 path. X-Git-Tag: PAZPAR2.1.0.1~26 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=56691e72db213111b84a3c01d47e1d5cae6c30f0;p=pazpar2-moved-to-github.git Added new parameter for pz2 object: pazpar2path which sets Pazpar2 path. Default value is "search.pz2". --- diff --git a/js/pz2.js b/js/pz2.js index a925994..58c2f1e 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -1,5 +1,5 @@ /* -** $Id: pz2.js,v 1.36 2007-06-13 17:25:02 jakub Exp $ +** $Id: pz2.js,v 1.37 2007-06-21 09:42:46 adam Exp $ ** pz2.js - pazpar2's javascript client library. */ @@ -30,7 +30,7 @@ var pz2 = function(paramArray) { //supported pazpar2's protocol version __myself.suppProtoVer = '1'; - __myself.pz2String = "search.pz2"; + __myself.pz2String = paramArray.pazpar2path || "search.pz2"; __myself.stylesheet = paramArray.detailstylesheet || null; //load stylesheet if required in async mode