Apache Lucene open-source search software
SOLR-1497 - remove solrjs
Ryan McKinley2e4b1427fa58
diff --git a/client/javascript/NOTICE.txt b/client/javascript/NOTICE.txtdeleted file mode 100644index 3d40e9b49c4..00000000000--- a/client/javascript/NOTICE.txt+++ /dev/null@@ -1,64 +0,0 @@-==============================================================- Apache Solr / Contrib Javascript- Copyright 2006-2008 The Apache Software Foundation-==============================================================---=========================================================================-== jQuery -- http://www.jquery.com/ ==-=========================================================================--Copyright (c) 2008 John Resig, http://jquery.com/--Permission is hereby granted, free of charge, to any person obtaining-a copy of this software and associated documentation files (the-"Software"), to deal in the Software without restriction, including-without limitation the rights to use, copy, modify, merge, publish,-distribute, sublicense, and/or sell copies of the Software, and to-permit persons to whom the Software is furnished to do so, subject to-the following conditions:--The above copyright notice and this permission notice shall be-included in all copies or substantial portions of the Software.--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.----=========================================================================-== JsDoc Toolkit -- http://www.jsdoctoolkit.org/ ==-=========================================================================--JsDoc Toolkit--All code specific to JsDoc Toolkit are free, open source and licensed-for use under the X11/MIT License.--JsDoc Toolkit is Copyright (c)2008 Michael Mathews <[email protected]>--This program is free software; you can redistribute it and/or-modify it under the terms below.--Permission is hereby granted, free of charge, to any person obtaining-a copy of this software and associated documentation files (the-"Software"), to deal in the Software without restriction, including-without limitation the rights to use, copy, modify, merge, publish,-distribute, sublicense, and/or sell copies of the Software, and to-permit persons to whom the Software is furnished to do so, subject to-the following conditions: The above copyright notice and this-permission notice must be included in all copies or substantial-portions of the Software.--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.diff --git a/client/javascript/README.txt b/client/javascript/README.txtnew file mode 100644index 00000000000..34188b01fa0--- /dev/null+++ b/client/javascript/README.txt@@ -0,0 +1,5 @@+For a Solr JavaScript Client, see:+http://evolvingweb.github.com/ajax-solr/++For information on (now deprecated) SorlJS, see:+http://wiki.apache.org/solr/SolrJS\ No newline at end of filediff --git a/client/javascript/build.xml b/client/javascript/build.xmldeleted file mode 100644index ff334833cbb..00000000000--- a/client/javascript/build.xml+++ /dev/null@@ -1,137 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->-<project name="solrjs" default="dist" basedir=".">-- <!-- our current version -->- <property name="version" value="1.4-dev"/>-- <!-- a filelist for the core js files in correct order -->- <filelist id="src_core" dir="src/core" >- <file name="Core.js"/>- <file name="QueryItem.js"/>- <file name="Manager.js"/>- <file name="AbstractWidget.js"/>- <file name="AbstractServerSideWidget.js"/>- <file name="AbstractClientSideWidget.js"/>- </filelist>-- <!-- a fileset for the server side widget files -->- <fileset id="src_serverside" dir="src/serverside" >- <include name="*.js"/>- </fileset>-- <!-- a fileset for the client side widget files -->- <fileset id="src_clientside" dir="src/clientside" >- <include name="*.js"/>- </fileset>--- <!-- create dist -->- <target name="clean">- <delete dir="dist" quiet="true"/>- <delete dir="doc" quiet="true"/>- </target>-- <target name="create-dist-folder" depends="clean">- <mkdir dir="dist" />- </target>-- <!-- create a single js file -->- <target name="concat" depends="create-dist-folder">- <concat destfile="dist/solrjs-${version}.js" fixlastline="true">- <filelist refid="src_core"/>- <fileset refid="src_serverside"/>- <fileset refid="src_clientside"/>- </concat>- </target>-- <target name="dist" depends="concat,docs">- <jar destfile="dist/solrjs-${version}-templates.jar">- <fileset dir="src/templates" >- <include name="*.vm"/>- </fileset>- </jar>- </target>-- <!-- create docs -->- <target name="docs">- <delete dir="dist/doc"/>- <mkdir dir="dist/doc"/>- <java jar="lib/jsdoc/jsdoc-toolkit/jsrun.jar" fork="true" failonerror="true">- <arg value="lib/jsdoc/jsdoc-toolkit/app/run.js"/>- <arg value="-r=4" />- <arg value="src/" />- <arg value="-t=lib/jsdoc/jsdoc-toolkit/templates/jsdoc"/>- <arg value="-d=dist/doc"/>- <arg value="-p"/>- </java>- </target>--- <!--+- | Reuters example- +-->-- <!-- start solr server, using example/reuters/testsolr/solr -->- <target name="reuters-start">- <copy todir="example/reuters/testsolr/solr/lib" overwrite="true">- <fileset dir="../../contrib/velocity/src/main/solr/lib/" />- </copy>- <copy file="dist/solrjs-${version}-templates.jar" todir="example/reuters/testsolr/solr/lib" />- <java jar="../../example/start.jar" fork="true" failonerror="true" dir="../../example">- <sysproperty key="solr.solr.home" value="../client/javascript/example/reuters/testsolr/solr"/>- </java>- </target>-- <!-- import testdata (server has to be online via reuters-start) -->- <target name="reuters-import">- <javac srcdir="example/reuters/importer/java">- <classpath>- <fileset dir="../../lib">- <include name="*.jar"/>- </fileset>- <fileset dir="../../dist">- <include name="*.jar"/>- </fileset>- </classpath>- </javac>- <java classname="org.apache.solr.solrjs.ReutersService" fork="true" dir="example/reuters/testdata">- <arg value="http://localhost:8983/solr/" />- <arg value="." />- <classpath>- <fileset dir="../../lib">- <include name="*.jar"/>- </fileset>- <fileset dir="../../dist">- <include name="*.jar"/>- </fileset>- <fileset dir="../../dist/solrj-lib">- <include name="*.jar"/>- </fileset>- <path location="example/reuters/importer/java"/>- </classpath>- </java>- </target>-- <!-- do nothing for now, required for generate maven artifacts -->- <target name="build"/>- <target name="example"/>- <target name="javadoc"/>- <target name="test"/> <!-- TODO: Tests would be nice :) -->-</project>--diff --git a/client/javascript/example/core/testClientside.html b/client/javascript/example/core/testClientside.htmldeleted file mode 100644index 5fd94e52151..00000000000--- a/client/javascript/example/core/testClientside.html+++ /dev/null@@ -1,75 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"- "http://www.w3.org/TR/html4/loose.dtd">-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->-<html>-<head>- <style type="text/css">- body { font-family: Arial, sans; font-size: 0.8em}- </style>-- <script src="../../lib/jquery/jquery-1.2.6.js"></script>- <script src="../../src/core/Core.js"></script>- <script src="../../src/core/QueryItem.js"></script>- <script src="../../src/core/Manager.js"></script>- <script src="../../src/core/AbstractWidget.js"></script>- <script src="../../src/core/AbstractServerSideWidget.js"></script>- <script src="../../src/core/AbstractClientSideWidget.js"></script>- <script src="../../src/clientside/ExtensibleResultWidget.js"/></script>- <script src="../../src/clientside/FacetWidget.js"/></script>- <script>- var $sj = jQuery.noConflict();- </script>--- <script>- var solrjsManager;- $sj(document).ready(function(){- solrjsManager = new $sj.solrjs.Manager({solrUrl:"http://localhost:8983/solr/select"});- // a custom result widget- var resultWidget = new $sj.solrjs.ExtensibleResultWidget({- id:"result",- target:"#result",- rows:20,- renderResult : function(docs, pageSize, offset) {- var container = jQuery("<div/>");- $sj.each(docs, function(i, item) {- jQuery("<h3/>").html(item["id"]).appendTo(container);- if (item["cat"] != null) {- jQuery("<p/>").html(item["cat"].toString()).appendTo(container);- }- jQuery("<hr/>").appendTo(container);- });- container.appendTo(this.target);- }- });-- solrjsManager.addWidget(resultWidget);- solrjsManager.addWidget(new $sj.solrjs.FacetWidget({id:"cat", target:"#cat", fieldName:"cat"}));- solrjsManager.doRequestAll();- });- </script>- <style>img{ height: 100px; float: left; }</style>-</head>-<body>- <div id="facets" style="float:left;width:300px;">- <h3 style="margin-top:0px">cat</h3>- <div id="cat"></div>- </div>- <div id="result" style="margin-left:300px;"></div>-</body>-</html>diff --git a/client/javascript/example/core/testServerside.html b/client/javascript/example/core/testServerside.htmldeleted file mode 100644index 51deb88ea07..00000000000--- a/client/javascript/example/core/testServerside.html+++ /dev/null@@ -1,69 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"- "http://www.w3.org/TR/html4/loose.dtd">-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->-<html>-<head>- <style type="text/css">- body { font-family: Arial, sans; font-size: 0.8em}- </style>-- <script src="../../lib/jquery/jquery-1.2.6.js"></script>- <script src="../../src/core/Core.js"></script>- <script src="../../src/core/QueryItem.js"></script>- <script src="../../src/core/Manager.js"></script>- <script src="../../src/core/AbstractWidget.js"></script>- <script src="../../src/core/AbstractServerSideWidget.js"></script>- <script src="../../src/core/AbstractClientSideWidget.js"></script>- <script src="../../src/serverside/SimpleServerSideWidget.js"/></script>- <script src="../../src/serverside/FacetServerSideWidget.js"/></script>-- <script>- var $sj = jQuery.noConflict();- </script>--- <script>- var solrjsManager;- $sj(document).ready(function(){- solrjsManager = new $sj.solrjs.Manager({solrUrl:"http://localhost:8983/solr/select"});-- // a custom result widget- var resultWidget = new $sj.solrjs.SimpleServerSideWidget({- id:"result",- target:"#result",- rows:5,- templateName:"testresult"- });-- solrjsManager.addWidget(resultWidget);- solrjsManager.addWidget(new $sj.solrjs.FacetServerSideWidget({id:"cat", target:"#cat", fieldName:"cat"}));- solrjsManager.doRequestAll();- });- </script>- </head>--<body>- <body>- <div id="facets" style="float:left;width:300px;">- <h3 style="margin-top:0px">cat</h3>- <div id="cat"></div>- </div>- <div id="result" style="margin-left:300px;"></div>-</body>-</body>-</html>diff --git a/client/javascript/example/reuters/images/contenth2.gif b/client/javascript/example/reuters/images/contenth2.gifdeleted file mode 100644index 706048b0448..00000000000Binary files a/client/javascript/example/reuters/images/contenth2.gif and /dev/null differdiff --git a/client/javascript/example/reuters/images/header.gif b/client/javascript/example/reuters/images/header.gifdeleted file mode 100644index 93217e4e526..00000000000Binary files a/client/javascript/example/reuters/images/header.gif and /dev/null differdiff --git a/client/javascript/example/reuters/images/sidebarh2.gif b/client/javascript/example/reuters/images/sidebarh2.gifdeleted file mode 100644index b18356fd0c7..00000000000Binary files a/client/javascript/example/reuters/images/sidebarh2.gif and /dev/null differdiff --git a/client/javascript/example/reuters/importer/java/org/apache/solr/solrjs/ReutersService.java b/client/javascript/example/reuters/importer/java/org/apache/solr/solrjs/ReutersService.javadeleted file mode 100644index 8c5523c3f57..00000000000--- a/client/javascript/example/reuters/importer/java/org/apache/solr/solrjs/ReutersService.java+++ /dev/null@@ -1,267 +0,0 @@-package org.apache.solr.solrjs;-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import java.io.BufferedReader;-import java.io.ByteArrayInputStream;-import java.io.File;-import java.io.FileFilter;-import java.io.FileReader;-import java.io.IOException;-import java.net.MalformedURLException;-import java.net.URL;-import java.text.ParseException;-import java.text.SimpleDateFormat;-import java.util.ArrayList;-import java.util.HashMap;-import java.util.List;-import java.util.Locale;-import java.util.Map;--import javax.xml.parsers.DocumentBuilder;-import javax.xml.parsers.DocumentBuilderFactory;-import javax.xml.parsers.ParserConfigurationException;-import javax.xml.xpath.XPath;-import javax.xml.xpath.XPathConstants;-import javax.xml.xpath.XPathExpressionException;-import javax.xml.xpath.XPathFactory;--import org.apache.solr.client.solrj.SolrServer;-import org.apache.solr.client.solrj.SolrServerException;-import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer;-import org.apache.solr.common.SolrInputDocument;-import org.w3c.dom.Document;-import org.w3c.dom.Element;-import org.w3c.dom.NodeList;-import org.xml.sax.SAXException;--public class ReutersService {-- private Map<String, String> countryCodesMap = new HashMap<String, String>();-- public static void main(String[] args) throws XPathExpressionException, IOException, ParserConfigurationException, SAXException, SolrServerException, ParseException {- String usage = "Usage: java -jar reutersimporter.jar <solrUrl> <datadir>";-- URL solrUrl = null;- try {- solrUrl = new URL(args[0]);- } catch (Exception e) {- System.out.println("First argument needs to be an URL!");- System.out.println(usage);- }- File baseDir = null;- try {- baseDir = new File(args[1]);- if (!baseDir.exists() || !baseDir.isDirectory()) {- System.out.println("Second argument needs to be an existing directory!");;- System.out.println(usage);- }- } catch (Exception e) {- System.out.println("Second argument needs to be an existing directory!");;- System.out.println(usage);- }-- if (solrUrl != null && baseDir!= null && baseDir.exists() && baseDir.isDirectory()) {- ReutersService reutersService = new ReutersService(solrUrl.toExternalForm());- reutersService.readDirectory(baseDir);- }- }-- /**- * The Solr Server to use- */- private SolrServer solrServer;-- /**- * A shared xpath instance- */- private final XPath xPath = XPathFactory.newInstance().newXPath();-- /**- * The format used in the sgml files.- * eg. 26-FEB-1987 15:01:01.79- */- private final SimpleDateFormat reutersDateFormat = new SimpleDateFormat("dd-MMM-yyyy kk:mm:ss.SS", Locale.ENGLISH);-- /**- * A service that inputs the reuters TODO dataset.- * @param solrUrl The url of the solr server.- */- public ReutersService(String solrUrl) {- try {- this.solrServer = new CommonsHttpSolrServer(solrUrl);- this.solrServer.ping();- } catch (Exception e) {- throw new RuntimeException("unable to connect to solr server: " + solrUrl, e );- }- }-- /**- * Takes a <REUTERS> node and converts it into a SolrInoutDocument.- * @param element A <REUTERS> node.- * @throws XPathExpressionException- * @throws SolrServerException- * @throws IOException- * @throws ParseException- */- public void readDocument(Element element) throws XPathExpressionException, SolrServerException, IOException, ParseException {-- SolrInputDocument inputDocument = new SolrInputDocument();- inputDocument.addField("id", element.getAttribute("NEWID"));- inputDocument.addField("title", xPath.evaluate("TEXT/TITLE", element));- inputDocument.addField("dateline", xPath.evaluate("TEXT/DATELINE", element).trim());- inputDocument.addField("text", xPath.evaluate("TEXT/BODY", element).trim());- inputDocument.addField("places", readList("PLACES/D", element));- inputDocument.addField("topics", readList("TOPICS/D", element));- inputDocument.addField("organisations", readList("ORGS/D", element));- inputDocument.addField("exchanges", readList("EXCHANGES/D", element));- inputDocument.addField("companies", readList("COMPANIES/D", element));- try {- inputDocument.addField("date", this.reutersDateFormat.parse(xPath.evaluate("DATE", element)));- } catch (ParseException e) {- inputDocument.addField("date", this.reutersDateFormat.parse("0" + xPath.evaluate("DATE", element)));- }-- for (Object place : inputDocument.getFieldValues("places")) {- String code = this.countryCodesMap.get(place);- if (code == null) {- try {- code = getCodeForPlace((String) place);- this.countryCodesMap.put((String) place, code);- } catch (SAXException e) {- e.printStackTrace();- } catch (ParserConfigurationException e) {- e.printStackTrace();- }- }- inputDocument.addField("countryCodes", code);- }-- this.solrServer.add(inputDocument);- System.out.println(inputDocument.getField("title"));- }-- private String getCodeForPlace(String place) throws MalformedURLException, SAXException, IOException, ParserConfigurationException, XPathExpressionException {- DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();- DocumentBuilder docBuilder = dbfac.newDocumentBuilder();- Document doc = docBuilder.parse(new URL("http://ws.geonames.org/search?q=" + place).openStream());- return xPath.evaluate("/geonames/geoname/countryCode", doc);- }-- /**- * Reads a whole .sgml file.- * @param file The sgml reuters file.- * @throws XPathExpressionException- * @throws IOException- * @throws ParserConfigurationException- * @throws SAXException- * @throws SolrServerException- * @throws ParseException- */- public void readFile(File file) throws XPathExpressionException, IOException, ParserConfigurationException, SAXException, SolrServerException, ParseException {- String documentString = readFileAsString(file);-- // remove "bad" entities- documentString = documentString.replaceAll("&#\\d;", "");- documentString = documentString.replaceAll("&#\\d\\d;", "");-- // remove doctype declaration- documentString = documentString.replaceAll("<!DOCTYPE lewis SYSTEM \"lewis.dtd\">", "");-- // add a document root- documentString = "<root>" + documentString + "</root>";-- DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();- DocumentBuilder docBuilder = dbfac.newDocumentBuilder();- Document doc = docBuilder.parse(new ByteArrayInputStream(documentString.getBytes()));-- NodeList nodeList = (NodeList) xPath.evaluate("/root/REUTERS", doc, XPathConstants.NODESET);- System.out.println("READING FILE: " + file.getAbsoluteFile());- for (int i=0; i< nodeList.getLength(); i++) {- System.out.print(" - " + file.getName() + "(" + i + ") ");- readDocument((Element) nodeList.item(i));- }-- this.solrServer.commit();-- }-- /**- * Reads a whole directory containing reuters .sgml files-- * @param directory- * @throws XPathExpressionException- * @throws IOException- * @throws ParserConfigurationException- * @throws SAXException- * @throws SolrServerException- * @throws ParseException- */- public void readDirectory(File directory) throws XPathExpressionException, IOException, ParserConfigurationException, SAXException, SolrServerException, ParseException {- File[] files = directory.listFiles(new FileFilter() {- public boolean accept(File pathname) {- if (pathname.getName().contains(".sgm")) {- return true;- }- return false;- }- });- if (files.length == 0) {- throw new RuntimeException("Directory doesn't contain sgml files!");- }- for (int i = 0; i < files.length; i++) {- File file = files[i];- readFile(file);- }- }-- /**- * Helper that converts a listnode into a java list.- * @param path- * @param element- * @return- * @throws XPathExpressionException- */- private List<String> readList(String path, Element element) throws XPathExpressionException {- List<String> list = new ArrayList<String>();- NodeList nodeList = (NodeList) xPath.evaluate(path, element, XPathConstants.NODESET);- for (int i=0; i< nodeList.getLength(); i++) {- list.add(nodeList.item(i).getTextContent());- }- return list;- }-- /**- * Helper that reads a file into a string.- * @param file- * @return- * @throws java.io.IOException- */- private static String readFileAsString(File file) throws java.io.IOException {- StringBuilder fileData = new StringBuilder(1000);- BufferedReader reader = new BufferedReader(new FileReader(file));- char[] buf = new char[1024];- int numRead=0;- while((numRead=reader.read(buf)) != -1){- String readData = String.valueOf(buf, 0, numRead);- fileData.append(readData);- buf = new char[1024];- }- reader.close();- return fileData.toString();- }--}diff --git a/client/javascript/example/reuters/index.html b/client/javascript/example/reuters/index.htmldeleted file mode 100644index c21ca5cebd3..00000000000--- a/client/javascript/example/reuters/index.html+++ /dev/null@@ -1,199 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->-<html xmlns="http://www.w3.org/1999/xhtml">- <head>- <title>SolrJS</title>- <link rel="stylesheet" type="text/css" href="style.css" media="screen" />-- <link rel="stylesheet" type="text/css" href="../../src/css/solrjs.css" />- <link rel="stylesheet" type="text/css" href="../../lib/jquery-autocomplete/jquery.autocomplete.css" />-- <script src="../../lib/jquery/jquery-1.2.6.js"></script>- <script src="../../lib/jquery-autocomplete/jquery.autocomplete.js"</script>- <script src="../../src/core/Core.js"></script>- <script src="../../src/core/QueryItem.js"></script>- <script src="../../src/core/Manager.js"></script>- <script src="../../src/core/AbstractSelectionView.js"></script>- <script src="../../src/core/AbstractWidget.js"></script>- <script src="../../src/core/AbstractServerSideWidget.js"></script>- <script src="../../src/core/AbstractClientSideWidget.js"></script>- <script src="../../src/clientside/ExtensibleResultWidget.js"/></script>- <script src="../../src/clientside/AutocompleteWidget.js"/></script>- <script src="../../src/clientside/CalendarWidget.js"/></script>- <script src="../../src/clientside/TagcloudWidget.js"/></script>- <script src="../../src/clientside/CountryCodeWidget.js"/></script>-- <link rel="stylesheet" type="text/css" media="all" href="../../lib/jscalendar/aqua/theme.css" title="Aqua" />- <script type="text/javascript" src="../../lib/jscalendar/calendar.js"></script>- <script type="text/javascript" src="../../lib/jscalendar/lang/calendar-en.js"></script>-- <script>- var $sj = jQuery.noConflict();-- var solrjsManager;- $sj(document).ready(function(){- solrjsManager = new $sj.solrjs.Manager({solrUrl:"http://localhost:8983/solr/select", resourcesBase: "../../src/resources"});-- var resultWidget = new $sj.solrjs.ExtensibleResultWidget({- id:"result",- target:"#result",- rows:10,- showLoadingDiv: true,- renderResult : function(docs, pageSize, offset, numFound) {- var container = jQuery("<div/>");-- // paging- jQuery("<a/>").html("<<").attr("href", "javascript:solrjsManager.doRequest(0, true)").appendTo(container);- jQuery("<a/>").html("<").attr("href", "javascript:solrjsManager.doRequest(" + Math.max(0, (parseInt(offset) - parseInt(pageSize))) + ", true)").appendTo(container);- jQuery("<a/>").html(">").attr("href", "javascript:solrjsManager.doRequest(" + Math.min((parseInt(numFound) - parseInt(pageSize)), (parseInt(offset) + parseInt(pageSize))) + ", true)").appendTo(container);- jQuery("<a/>").html(">>").attr("href", "javascript:solrjsManager.doRequest(" + (parseInt(numFound) - parseInt(pageSize)) + ", true)").appendTo(container);- jQuery("<span/>").html("displaying " + (parseInt(offset) + 1) + " to " + Math.min(numFound, (parseInt(offset) + parseInt(pageSize))) + " of " + numFound ).appendTo(container);- jQuery("<hr/>").appendTo(container);-- // result- $sj.each(docs, function(i, item) {- jQuery("<h2/>").html(item["title"]).appendTo(container);- var topics = jQuery("<p/>").appendTo(container);- if (item["topics"] != null) {- $sj.each(item["topics"], function(i, topic) {- var items = "[new jQuery.solrjs.QueryItem({field:'topics',value:'" + topic + "'})]";- jQuery("<a/>").html(topic).attr("href", "javascript:solrjsManager.clearSelection();solrjsManager.selectItems('result'," + items + ")").appendTo(topics);- });- }- if (item["organisations"] != null) {- $sj.each(item["organisations"], function(i, topic) {- var items = "[new jQuery.solrjs.QueryItem({field:'organisations' ,value:'" + topic + "'})]";- jQuery("<a/>").html(topic).attr("href", "javascript:solrjsManager.clearSelection();solrjsManager.selectItems('result'," + items + ")").appendTo(topics);- });- }- if (item["exchanges"] != null) {- $sj.each(item["exchanges"], function(i, topic) {- var items = "[new jQuery.solrjs.QueryItem({field:'exchanges' ,value:'" + topic + "'})]";- jQuery("<a/>").html(topic).attr("href", "javascript:solrjsManager.clearSelection();solrjsManager.selectItems('result'," + items + ")").appendTo(topics);- });- }- if (item["text"].length > 300) {- var short = jQuery("<p/>").attr("id", "short_" + item["id"]).html(item["dateline"] + " " + item["text"].substring(0,Math.min(300,item["text"].length))).appendTo(container).css("display", "block");- jQuery("<p/>").attr("id", "long_" + item["id"]).html(item["dateline"] + " " + item["text"]).appendTo(container).css("display", "none");- jQuery("<a/>").html(" more").attr("href", "javascript:toggle('#short_" + item['id'] + "', '#long_" + item['id'] + "');").appendTo(short);- } else {- jQuery("<p/>").attr("id", "long_" + item["id"]).html(item["dateline"] + " " + item["text"]).appendTo(container);- }- });- container.appendTo(this.target);- }- });- solrjsManager.addWidget(resultWidget);-- solrjsManager.addWidget(new $sj.solrjs.AutocompleteWidget({id:"search", target:"#search", fulltextFieldName:"allText", fieldNames:["topics", "organisations", "exchanges"]}));- solrjsManager.addWidget(new $sj.solrjs.TagcloudWidget({id:"topics", target:"#topics", fieldName:"topics", size:50}));- solrjsManager.addWidget(new $sj.solrjs.TagcloudWidget({id:"organisations", target:"#organisations", fieldName:"organisations", size:20}));- solrjsManager.addWidget(new $sj.solrjs.TagcloudWidget({id:"exchanges", target:"#exchanges", fieldName:"exchanges", size:20}));- solrjsManager.addWidget(new $sj.solrjs.CountryCodeWidget({id:"countries", target:"#countries", fieldName:"countryCodes"}));- solrjsManager.addWidget(new $sj.solrjs.CalendarWidget({id:"calendar", target:"#calendar", fieldName:"date", startDate: new Date(1987,01,01), endDate: new Date(1987,10,31)}));-- var selectionView = new $sj.solrjs.AbstractSelectionView({- id:"selectionView",- target:"#selection",- displaySelection : function(selectedItems) {- jQuery(this.target).empty();- if(selectedItems.length == 0) {- jQuery("<div/>").html("Viewing all documents!").appendTo(this.target);- return;- } else if(selectedItems.length > 1) {- jQuery("<a/>").html("remove all").attr("href", "javascript:solrjsManager.doRequestAll()").appendTo(this.target);- }-- for (var i = 0; i < selectedItems.length; ++i) {- var item = selectedItems[i];- jQuery("<a/>").html("(x) " + item.field + ":" + item.value).attr("href", "javascript:solrjsManager.deselectItem('" + item.toSolrQuery() + "')").appendTo(this.target);- }- }- });- solrjsManager.addSelectionView(selectionView);-- solrjsManager.doRequestAll();-- });-- function toggle(id1, id2) {- $sj(id1).css("display", "none");- $sj(id2).css("display", "block");- }- </script>-- </head>- <body>- <div id="wrap">- <div id="header">- <h1><a href="#">SolrJS Demonstration</a></h1>- <h2>Browse REUTERS business news from 1987</h2>- </div>- <div class="right">- <div id="result">- <div id="navigation"></div>- <div id="docs"></div>- </div>- </div>-- <div class="left">- <h2>Current Selection</h2>- <ul>- <li> <div id="selection"></div> </li>- </ul>- <h2>Search</h2>- <ul>- <li>- <span style="font-size:80%"> ( press ESC to close suggestions) </span>- <div id="search"></div>- </li>- </ul>- <h2>Top Topics</h2>- <ul>- <li> <div id="topics"></div> </li>- </ul>- <h2>Top Organisations</h2>- <ul>- <li> <div id="organisations"></div> </li>- </ul>- <h2>Top Exchanges</h2>- <ul>- <li> <div id="exchanges"></div> </li>- </ul>- <h2>By Country</h2>- <ul>- <li> <div id="countries"></div> </li>- <li> <div id="preview"></div> </li>- </ul>- <h2>By Date</h2>- <ul>- <li> <div id="calendar" style="width:160px"></div> </li>- </ul>- <div style="clear:both"></div>- </div>-- <div style="clear: both;"> </div>-- </div>--- <div class="footer">- Design by <a href="http://www.free-css-templates.com/">Free CSS Templates</a> - Thanks to <a href="http://www.dubaiapartments.biz/">Dubai Villas</a>- </div>- </body>-</html>\ No newline at end of filediff --git a/client/javascript/example/reuters/style.css b/client/javascript/example/reuters/style.cssdeleted file mode 100644index 3016b99e463..00000000000--- a/client/javascript/example/reuters/style.css+++ /dev/null@@ -1,128 +0,0 @@-/*- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.-*/--* {- padding: 0;- margin: 0;-}--body {-background: #fff url(images/header.gif) repeat-x;-font-family: Verdana, Arial, Helvetica, sans-serif;-font-size: 12px;-line-height: 18px;-color: #333333;;-}--img { border: none; }-a { color: #6998F0; text-decoration: none; }-a:hover { text-decoration: underline; color : #000; }--#wrap {-width: 1000px;-margin: 0px auto;-}--#header {-height: 90px;-}--#header h1 {-padding: 20px 0 5px 10px;-font-size: 20px;-letter-spacing: -2px;-}-#header h1 a {-color: #000;-text-decoration: none;-}-#header h1 a:hover {-text-decoration: none;-color: #666;-}-#header h2 {-padding-left: 11px;-font-size: 14px;-color: #666;-font-weight: 100;-}--.right {-float: right;-width: 538px;-text-align: justify;-padding: 10px 20px 10px 40px;-border-left: 1px solid #aaa;-min-height:1000px;-}-.right h2 {-color: #B4241B;-font-size: 20px;-letter-spacing: -2px;-font-weight: 100;-padding : 15px 0 5px 0;-}-.right h2 a {--}-.right h2 a:hover {--}-.left {-float: left;-width: 400px;-padding: 10px 0 10px 0px;-}-.left h2 {-font-size: 13px;-color: #333;-padding: 5px 0 2px 10px;-}-.left ul {-list-style-type: none;-padding: 5px 0 10px 5px;-}-.left ul li {-padding: 2px 20px;--}--.left ul li a {-display: block;-color: #6998F0;-}-.left ul li a:hover {-color: #ff0000;-}--.footer {-text-align: center;-color: #666;-font-size: 11px;-padding: 10px;-background: #f7f7f7;-border-top: 1px solid #aaa;-}-.footer a { color: #666; }--#result a {- margin-right:5px;-}--#search input {- width:350px;-}diff --git a/client/javascript/example/reuters/testdata/download-dataset.sh b/client/javascript/example/reuters/testdata/download-dataset.shdeleted file mode 100755index 46870d26574..00000000000--- a/client/javascript/example/reuters/testdata/download-dataset.sh+++ /dev/null@@ -1,4 +0,0 @@-wget http://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz-tar xvf reuters21578.tar.gz-wget http://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz-tar xvf reuters21578.tar.gzdiff --git a/client/javascript/example/reuters/testsolr/solr/conf/admin-extra.html b/client/javascript/example/reuters/testsolr/solr/conf/admin-extra.htmldeleted file mode 100644index aa739da862c..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/admin-extra.html+++ /dev/null@@ -1,31 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<!-- The content of this page will be statically included into the top-of the admin page. Uncomment this as an example to see there the content-will show up.--<hr>-<i>This line will appear before the first table</i>-<tr>-<td colspan="2">-This row will be appended to the end of the first table-</td>-</tr>-<hr>---->diff --git a/client/javascript/example/reuters/testsolr/solr/conf/elevate.xml b/client/javascript/example/reuters/testsolr/solr/conf/elevate.xmldeleted file mode 100644index 7630ebe20fb..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/elevate.xml+++ /dev/null@@ -1,36 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<!-- If this file is found in the config directory, it will only be- loaded once at startup. If it is found in Solr's data- directory, it will be re-loaded every commit.--->--<elevate>- <query text="foo bar">- <doc id="1" />- <doc id="2" />- <doc id="3" />- </query>-- <query text="ipod">- <doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->- <doc id="IW-02" exclude="true" /> <!-- exclude this cable -->- </query>--</elevate>diff --git a/client/javascript/example/reuters/testsolr/solr/conf/protwords.txt b/client/javascript/example/reuters/testsolr/solr/conf/protwords.txtdeleted file mode 100644index 1dfc0abecbf..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/protwords.txt+++ /dev/null@@ -1,21 +0,0 @@-# The ASF licenses this file to You under the Apache License, Version 2.0-# (the "License"); you may not use this file except in compliance with-# the License. You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.--#------------------------------------------------------------------------# Use a protected word file to protect against the stemmer reducing two-# unrelated words to the same base word.--# Some non-words that normally won't be encountered,-# just to test that they won't be stemmed.-dontstems-zwhacky-diff --git a/client/javascript/example/reuters/testsolr/solr/conf/schema.xml b/client/javascript/example/reuters/testsolr/solr/conf/schema.xmldeleted file mode 100755index c2520577ce3..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/schema.xml+++ /dev/null@@ -1,251 +0,0 @@-<schema name="example" version="1.1">- <types>- <!-- field type definitions. The "name" attribute is- just a label to be used by field definitions. The "class"- attribute and any other attributes determine the real- behavior of the fieldType.- Class names starting with "solr" refer to java classes in the- org.apache.solr.analysis package.- -->-- <!-- The StrField type is not analyzed, but indexed/stored verbatim.- - StrField and TextField support an optional compressThreshold which- limits compression (if enabled in the derived fields) to values which- exceed a certain size (in characters).- -->- <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>-- <!-- boolean type: "true" or "false" -->- <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true"/>-- <!-- The optional sortMissingLast and sortMissingFirst attributes are- currently supported on types that are sorted internally as strings.- - If sortMissingLast="true", then a sort on this field will cause documents- without the field to come after documents with the field,- regardless of the requested sort order (asc or desc).- - If sortMissingFirst="true", then a sort on this field will cause documents- without the field to come before documents with the field,- regardless of the requested sort order.- - If sortMissingLast="false" and sortMissingFirst="false" (the default),- then default lucene sorting will be used which places docs without the- field first in an ascending sort and last in a descending sort.- -->--- <!-- numeric field types that store and index the text- value verbatim (and hence don't support range queries, since the- lexicographic ordering isn't equal to the numeric ordering) -->- <fieldType name="integer" class="solr.IntField" omitNorms="true"/>- <fieldType name="long" class="solr.LongField" omitNorms="true"/>- <fieldType name="float" class="solr.FloatField" omitNorms="true"/>- <fieldType name="double" class="solr.DoubleField" omitNorms="true"/>--- <!-- Numeric field types that manipulate the value into- a string value that isn't human-readable in its internal form,- but with a lexicographic ordering the same as the numeric ordering,- so that range queries work correctly. -->- <fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/>- <fieldType name="slong" class="solr.SortableLongField" sortMissingLast="true" omitNorms="true"/>- <fieldType name="sfloat" class="solr.SortableFloatField" sortMissingLast="true" omitNorms="true"/>- <fieldType name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true" omitNorms="true"/>--- <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and- is a more restricted form of the canonical representation of dateTime- http://www.w3.org/TR/xmlschema-2/#dateTime- The trailing "Z" designates UTC time and is mandatory.- Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z- All other components are mandatory.-- Expressions can also be used to denote calculations that should be- performed relative to "NOW" to determine the value, ie...-- NOW/HOUR- ... Round to the start of the current hour- NOW-1DAY- ... Exactly 1 day prior to now- NOW/DAY+6MONTHS+3DAYS- ... 6 months and 3 days in the future from the start of- the current day-- Consult the DateField javadocs for more information.- -->- <fieldType name="date" class="solr.DateField" sortMissingLast="true" omitNorms="true"/>--- <!-- The "RandomSortField" is not used to store or search any- data. You can declare fields of this type it in your schema- to generate psuedo-random orderings of your docs for sorting- purposes. The ordering is generated based on the field name- and the version of the index, As long as the index version- remains unchanged, and the same field name is reused,- the ordering of the docs will be consistent.- If you want differend psuedo-random orderings of documents,- for the same version of the index, use a dynamicField and- change the name- -->- <fieldType name="random" class="solr.RandomSortField" indexed="true" />-- <!-- solr.TextField allows the specification of custom text analyzers- specified as a tokenizer and a list of token filters. Different- analyzers may be specified for indexing and querying.-- The optional positionIncrementGap puts space between multiple fields of- this type on the same document, with the purpose of preventing false phrase- matching across fields.-- For more info on customizing your analyzer chain, please see- http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters- -->-- <!-- One can also specify an existing Analyzer class that has a- default constructor via the class attribute on the analyzer element- <fieldType name="text_greek" class="solr.TextField">- <analyzer class="org.apache.lucene.analysis.el.GreekAnalyzer"/>- </fieldType>- -->-- <!-- A text field that only splits on whitespace for exact matching of words -->- <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">- <analyzer>- <tokenizer class="solr.WhitespaceTokenizerFactory"/>- </analyzer>- </fieldType>-- <!-- A text field that uses WordDelimiterFilter to enable splitting and matching of- words on case-change, alpha numeric boundaries, and non-alphanumeric chars,- so that a query of "wifi" or "wi fi" could match a document containing "Wi-Fi".- Synonyms and stopwords are customized by external files, and stemming is enabled.- Duplicate tokens at the same position (which may result from Stemmed Synonyms or- WordDelim parts) are removed.- -->- <fieldType name="text" class="solr.TextField" positionIncrementGap="100">- <analyzer type="index">- <tokenizer class="solr.WhitespaceTokenizerFactory"/>- <!-- in this example, we will only use synonyms at query time- <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>- -->- <!-- Case insensitive stop word removal.- enablePositionIncrements=true ensures that a 'gap' is left to- allow for accurate phrase queries.- -->- <filter class="solr.StopFilterFactory"- ignoreCase="true"- words="stopwords.txt"- enablePositionIncrements="true"- />- <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>- <filter class="solr.LowerCaseFilterFactory"/>- <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>- <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>- </analyzer>- <analyzer type="query">- <tokenizer class="solr.WhitespaceTokenizerFactory"/>- <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>- <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>- <filter class="solr.LowerCaseFilterFactory"/>- <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>- <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>- </analyzer>- </fieldType>--- <!-- Less flexible matching, but less false matches. Probably not ideal for product names,- but may be good for SKUs. Can insert dashes in the wrong place and still match. -->- <fieldType name="textTight" class="solr.TextField" positionIncrementGap="100" >- <analyzer>- <tokenizer class="solr.WhitespaceTokenizerFactory"/>- <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/>- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>- <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>- <filter class="solr.LowerCaseFilterFactory"/>- <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>- <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>- </analyzer>- </fieldType>--- <!--- Setup simple analysis for spell checking- -->- <fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100" >- <analyzer>- <tokenizer class="solr.StandardTokenizerFactory"/>- <filter class="solr.LowerCaseFilterFactory"/>- <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>- </analyzer>- </fieldType>-- <!-- This is an example of using the KeywordTokenizer along- With various TokenFilterFactories to produce a sortable field- that does not include some properties of the source text- -->- <fieldType name="alphaOnlySort" class="solr.TextField" sortMissingLast="true" omitNorms="true">- <analyzer>- <!-- KeywordTokenizer does no actual tokenizing, so the entire- input string is preserved as a single token- -->- <tokenizer class="solr.KeywordTokenizerFactory"/>- <!-- The LowerCase TokenFilter does what you expect, which can be- when you want your sorting to be case insensitive- -->- <filter class="solr.LowerCaseFilterFactory" />- <!-- The TrimFilter removes any leading or trailing whitespace -->- <filter class="solr.TrimFilterFactory" />- <!-- The PatternReplaceFilter gives you the flexibility to use- Java Regular expression to replace any sequence of characters- matching a pattern with an arbitrary replacement string,- which may include back refrences to portions of the orriginal- string matched by the pattern.-- See the Java Regular Expression documentation for more- infomation on pattern and replacement string syntax.-- http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/package-summary.html- -->- <filter class="solr.PatternReplaceFilterFactory"- pattern="([^a-z])" replacement="" replace="all"- />- </analyzer>- </fieldType>-- <!-- since fields of this type are by default not stored or indexed, any data added to- them will be ignored outright- -->- <fieldtype name="ignored" stored="false" indexed="false" class="solr.StrField" />-- </types>--- <fields>- <field name="id" type="string" indexed="true" stored="true" required="true" />- <field name="title" type="text" indexed="true" stored="true"/>- <field name="text" type="text" indexed="true" stored="true"/>- <field name="date" type="date" indexed="true" stored="true"/>- <field name="dateline" type="text" indexed="true" stored="true"/>- <field name="places" type="string" indexed="true" stored="true" multiValued="true" omitNorms="true" termVectors="true" />- <field name="countryCodes" type="string" indexed="true" stored="true" multiValued="true" omitNorms="true" termVectors="true" />- <field name="topics" type="string" indexed="true" stored="true" multiValued="true" omitNorms="true" termVectors="true" />- <field name="organisations" type="string" indexed="true" stored="true" multiValued="true" omitNorms="true" termVectors="true" />- <field name="exchanges" type="string" indexed="true" stored="true" multiValued="true" omitNorms="true" termVectors="true" />- <field name="companies" type="string" indexed="true" stored="true" multiValued="true" omitNorms="true" termVectors="true" />- <field name="allText" type="text" indexed="true" stored="true" multiValued="true" omitNorms="true" termVectors="true" />- </fields>-- <copyField source="title" dest="allText"/>- <copyField source="text" dest="allText"/>- <copyField source="places" dest="allText"/>- <copyField source="topics" dest="allText"/>- <copyField source="companies" dest="allText"/>- <copyField source="exchanges" dest="allText"/>-- <uniqueKey>id</uniqueKey>-- <defaultSearchField>text</defaultSearchField>-- <solrQueryParser defaultOperator="OR"/>---</schema>diff --git a/client/javascript/example/reuters/testsolr/solr/conf/scripts.conf b/client/javascript/example/reuters/testsolr/solr/conf/scripts.confdeleted file mode 100644index f58b262ae0c..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/scripts.conf+++ /dev/null@@ -1,24 +0,0 @@-# Licensed to the Apache Software Foundation (ASF) under one or more-# contributor license agreements. See the NOTICE file distributed with-# this work for additional information regarding copyright ownership.-# The ASF licenses this file to You under the Apache License, Version 2.0-# (the "License"); you may not use this file except in compliance with-# the License. You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.--user=-solr_hostname=localhost-solr_port=8983-rsyncd_port=18983-data_dir=-webapp_name=solr-master_host=-master_data_dir=-master_status_dir=diff --git a/client/javascript/example/reuters/testsolr/solr/conf/solrconfig.xml b/client/javascript/example/reuters/testsolr/solr/conf/solrconfig.xmldeleted file mode 100755index d2b495c6ff3..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/solrconfig.xml+++ /dev/null@@ -1,698 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<config>- <!-- Set this to 'false' if you want solr to continue working after it has- encountered an severe configuration error. In a production environment,- you may want solr to keep working even if one handler is mis-configured.-- You may also set this to false using by setting the system property:- -Dsolr.abortOnConfigurationError=false- -->- <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>-- <!-- Used to specify an alternate directory to hold all index data- other than the default ./data under the Solr home.- If replication is in use, this should match the replication configuration. -->- <dataDir>${solr.data.dir:./solr/data}</dataDir>--- <indexDefaults>- <!-- Values here affect all index writers and act as a default unless overridden. -->- <useCompoundFile>false</useCompoundFile>-- <mergeFactor>10</mergeFactor>- <!--- If both ramBufferSizeMB and maxBufferedDocs is set, then Lucene will flush based on whichever limit is hit first.-- -->- <!--<maxBufferedDocs>1000</maxBufferedDocs>-->- <!-- Tell Lucene when to flush documents to disk.- Giving Lucene more memory for indexing means faster indexing at the cost of more RAM-- If both ramBufferSizeMB and maxBufferedDocs is set, then Lucene will flush based on whichever limit is hit first.-- -->- <ramBufferSizeMB>32</ramBufferSizeMB>- <maxMergeDocs>2147483647</maxMergeDocs>- <maxFieldLength>10000</maxFieldLength>- <writeLockTimeout>1000</writeLockTimeout>- <commitLockTimeout>10000</commitLockTimeout>-- <!--- Expert: Turn on Lucene's auto commit capability.- This causes intermediate segment flushes to write a new lucene- index descriptor, enabling it to be opened by an external- IndexReader.- NOTE: Despite the name, this value does not have any relation to Solr's autoCommit functionality- -->- <!--<luceneAutoCommit>false</luceneAutoCommit>-->- <!--- Expert:- The Merge Policy in Lucene controls how merging is handled by Lucene. The default in 2.3 is the LogByteSizeMergePolicy, previous- versions used LogDocMergePolicy.-- LogByteSizeMergePolicy chooses segments to merge based on their size. The Lucene 2.2 default, LogDocMergePolicy chose when- to merge based on number of documents-- Other implementations of MergePolicy must have a no-argument constructor- -->- <!--<mergePolicy>org.apache.lucene.index.LogByteSizeMergePolicy</mergePolicy>-->-- <!--- Expert:- The Merge Scheduler in Lucene controls how merges are performed. The ConcurrentMergeScheduler (Lucene 2.3 default)- can perform merges in the background using separate threads. The SerialMergeScheduler (Lucene 2.2 default) does not.- -->- <!--<mergeScheduler>org.apache.lucene.index.ConcurrentMergeScheduler</mergeScheduler>-->-- <!--- This option specifies which Lucene LockFactory implementation to use.-- single = SingleInstanceLockFactory - suggested for a read-only index- or when there is no possibility of another process trying- to modify the index.- native = NativeFSLockFactory- simple = SimpleFSLockFactory-- (For backwards compatibility with Solr 1.2, 'simple' is the default- if not specified.)- -->- <lockType>single</lockType>- </indexDefaults>-- <mainIndex>- <!-- options specific to the main on-disk lucene index -->- <useCompoundFile>false</useCompoundFile>- <ramBufferSizeMB>32</ramBufferSizeMB>- <mergeFactor>10</mergeFactor>- <!-- Deprecated -->- <!--<maxBufferedDocs>1000</maxBufferedDocs>-->- <maxMergeDocs>2147483647</maxMergeDocs>- <maxFieldLength>10000</maxFieldLength>-- <!-- If true, unlock any held write or commit locks on startup.- This defeats the locking mechanism that allows multiple- processes to safely access a lucene index, and should be- used with care.- This is not needed if lock type is 'none' or 'single'- -->- <unlockOnStartup>false</unlockOnStartup>- </mainIndex>-- <!-- Enables JMX if and only if an existing MBeanServer is found, use- this if you want to configure JMX through JVM parameters. Remove- this to disable exposing Solr configuration and statistics to JMX.-- If you want to connect to a particular server, specify the agentId- e.g. <jmx agentId="myAgent" />-- If you want to start a new MBeanServer, specify the serviceUrl- e.g <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr" />-- For more details see http://wiki.apache.org/solr/SolrJmx- -->- <jmx />-- <!-- the default high-performance update handler -->- <updateHandler class="solr.DirectUpdateHandler2">-- <!-- A prefix of "solr." for class names is an alias that- causes solr to search appropriate packages, including- org.apache.solr.(search|update|request|core|analysis)- -->-- <!-- Perform a <commit/> automatically under certain conditions:- maxDocs - number of updates since last commit is greater than this- maxTime - oldest uncommited update (in ms) is this long ago- <autoCommit>- <maxDocs>10000</maxDocs>- <maxTime>1000</maxTime>- </autoCommit>- -->-- <!-- The RunExecutableListener executes an external command.- exe - the name of the executable to run- dir - dir to use as the current working directory. default="."- wait - the calling thread waits until the executable returns. default="true"- args - the arguments to pass to the program. default=nothing- env - environment variables to set. default=nothing- -->- <!-- A postCommit event is fired after every commit or optimize command- <listener event="postCommit" class="solr.RunExecutableListener">- <str name="exe">solr/bin/snapshooter</str>- <str name="dir">.</str>- <bool name="wait">true</bool>- <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>- <arr name="env"> <str>MYVAR=val1</str> </arr>- </listener>- -->- <!-- A postOptimize event is fired only after every optimize command, useful- in conjunction with index distribution to only distribute optimized indicies- <listener event="postOptimize" class="solr.RunExecutableListener">- <str name="exe">snapshooter</str>- <str name="dir">solr/bin</str>- <bool name="wait">true</bool>- </listener>- -->-- </updateHandler>--- <query>- <!-- Maximum number of clauses in a boolean query... can affect- range or prefix queries that expand to big boolean- queries. An exception is thrown if exceeded. -->- <maxBooleanClauses>1024</maxBooleanClauses>--- <!-- Cache used by SolrIndexSearcher for filters (DocSets),- unordered sets of *all* documents that match a query.- When a new searcher is opened, its caches may be prepopulated- or "autowarmed" using data from caches in the old searcher.- autowarmCount is the number of items to prepopulate. For LRUCache,- the autowarmed items will be the most recently accessed items.- Parameters:- class - the SolrCache implementation (currently only LRUCache)- size - the maximum number of entries in the cache- initialSize - the initial capacity (number of entries) of- the cache. (seel java.util.HashMap)- autowarmCount - the number of entries to prepopulate from- and old cache.- -->- <filterCache- class="solr.LRUCache"- size="512"- initialSize="512"- autowarmCount="128"/>-- <!-- queryResultCache caches results of searches - ordered lists of- document ids (DocList) based on a query, a sort, and the range- of documents requested. -->- <queryResultCache- class="solr.LRUCache"- size="512"- initialSize="512"- autowarmCount="32"/>-- <!-- documentCache caches Lucene Document objects (the stored fields for each document).- Since Lucene internal document ids are transient, this cache will not be autowarmed. -->- <documentCache- class="solr.LRUCache"- size="512"- initialSize="512"- autowarmCount="0"/>-- <!-- If true, stored fields that are not requested will be loaded lazily.-- This can result in a significant speed improvement if the usual case is to- not load all stored fields, especially if the skipped fields are large compressed- text fields.- -->- <enableLazyFieldLoading>true</enableLazyFieldLoading>-- <!-- Example of a generic cache. These caches may be accessed by name- through SolrIndexSearcher.getCache(),cacheLookup(), and cacheInsert().- The purpose is to enable easy caching of user/application level data.- The regenerator argument should be specified as an implementation- of solr.search.CacheRegenerator if autowarming is desired. -->- <!--- <cache name="myUserCache"- class="solr.LRUCache"- size="4096"- initialSize="1024"- autowarmCount="1024"- regenerator="org.mycompany.mypackage.MyRegenerator"- />- -->-- <!-- An optimization that attempts to use a filter to satisfy a search.- If the requested sort does not include score, then the filterCache- will be checked for a filter matching the query. If found, the filter- will be used as the source of document ids, and then the sort will be- applied to that.- <useFilterForSortedQuery>true</useFilterForSortedQuery>- -->-- <!-- An optimization for use with the queryResultCache. When a search- is requested, a superset of the requested number of document ids- are collected. For example, if a search for a particular query- requests matching documents 10 through 19, and queryWindowSize is 50,- then documents 0 through 49 will be collected and cached. Any further- requests in that range can be satisfied via the cache. -->- <queryResultWindowSize>50</queryResultWindowSize>-- <!-- Maximum number of documents to cache for any entry in the- queryResultCache. -->- <queryResultMaxDocsCached>200</queryResultMaxDocsCached>-- <!-- This entry enables an int hash representation for filters (DocSets)- when the number of items in the set is less than maxSize. For smaller- sets, this representation is more memory efficient, more efficient to- iterate over, and faster to take intersections. -->- <HashDocSet maxSize="3000" loadFactor="0.75"/>-- <!-- a newSearcher event is fired whenever a new searcher is being prepared- and there is a current searcher handling requests (aka registered). -->- <!-- QuerySenderListener takes an array of NamedList and executes a- local query request for each NamedList in sequence. -->- <listener event="newSearcher" class="solr.QuerySenderListener">- <arr name="queries">- <lst> <str name="q">solr</str> <str name="start">0</str> <str name="rows">10</str> </lst>- <lst> <str name="q">rocks</str> <str name="start">0</str> <str name="rows">10</str> </lst>- <lst><str name="q">static newSearcher warming query from solrconfig.xml</str></lst>- </arr>- </listener>-- <!-- a firstSearcher event is fired whenever a new searcher is being- prepared but there is no current registered searcher to handle- requests or to gain autowarming data from. -->- <listener event="firstSearcher" class="solr.QuerySenderListener">- <arr name="queries">- <lst> <str name="q">fast_warm</str> <str name="start">0</str> <str name="rows">10</str> </lst>- <lst><str name="q">static firstSearcher warming query from solrconfig.xml</str></lst>- </arr>- </listener>-- <!-- If a search request comes in and there is no current registered searcher,- then immediately register the still warming searcher and use it. If- "false" then all requests will block until the first searcher is done- warming. -->- <useColdSearcher>false</useColdSearcher>-- <!-- Maximum number of searchers that may be warming in the background- concurrently. An error is returned if this limit is exceeded. Recommend- 1-2 for read-only slaves, higher for masters w/o cache warming. -->- <maxWarmingSearchers>2</maxWarmingSearchers>-- </query>-- <!--- Let the dispatch filter handler /select?qt=XXX- handleSelect=true will use consistent error handling for /select and /update- handleSelect=false will use solr1.1 style error formatting- -->- <requestDispatcher handleSelect="true" >- <!--Make sure your system has some authentication before enabling remote streaming! -->- <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" />-- <!-- Set HTTP caching related parameters (for proxy caches and clients).-- To get the behaviour of Solr 1.2 (ie: no caching related headers)- use the never304="true" option and do not specify a value for- <cacheControl>- -->- <!-- <httpCaching never304="true"> -->- <httpCaching lastModifiedFrom="openTime"- etagSeed="Solr">- <!-- lastModFrom="openTime" is the default, the Last-Modified value- (and validation against If-Modified-Since requests) will all be- relative to when the current Searcher was opened.- You can change it to lastModFrom="dirLastMod" if you want the- value to exactly corrispond to when the physical index was last- modified.-- etagSeed="..." is an option you can change to force the ETag- header (and validation against If-None-Match requests) to be- differnet even if the index has not changed (ie: when making- significant changes to your config file)-- lastModifiedFrom and etagSeed are both ignored if you use the- never304="true" option.- -->- <!-- If you include a <cacheControl> directive, it will be used to- generate a Cache-Control header, as well as an Expires header- if the value contains "max-age="-- By default, no Cache-Control header is generated.-- You can use the <cacheControl> option even if you have set- never304="true"- -->- <!-- <cacheControl>max-age=30, public</cacheControl> -->- </httpCaching>- </requestDispatcher>--- <!-- requestHandler plugins... incoming queries will be dispatched to the- correct handler based on the path or the qt (query type) param.- Names starting with a '/' are accessed with the a path equal to the- registered name. Names without a leading '/' are accessed with:- http://host/app/select?qt=name- If no qt is defined, the requestHandler that declares default="true"- will be used.- -->- <requestHandler name="standard" class="solr.SearchHandler" default="true">- <!-- default values for query parameters -->- <lst name="defaults">- <str name="echoParams">explicit</str>- <!--- <int name="rows">10</int>- <str name="fl">*</str>- <str name="version">2.1</str>- -->- </lst>- </requestHandler>--- <!-- DisMaxRequestHandler allows easy searching across multiple fields- for simple user-entered phrases. It's implementation is now- just the standard SearchHandler with a default query type- of "dismax".- see http://wiki.apache.org/solr/DisMaxRequestHandler- -->- <requestHandler name="dismax" class="solr.SearchHandler" >- <lst name="defaults">- <str name="defType">dismax</str>- <str name="echoParams">explicit</str>- <float name="tie">0.01</float>- <str name="qf">- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4- </str>- <str name="pf">- text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9- </str>- <str name="bf">- ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3- </str>- <str name="fl">- id,name,price,score- </str>- <str name="mm">- 2<-1 5<-2 6<90%- </str>- <int name="ps">100</int>- <str name="q.alt">*:*</str>- <!-- example highlighter config, enable per-query with hl=true -->- <str name="hl.fl">text features name</str>- <!-- for this field, we want no fragmenting, just highlighting -->- <str name="f.name.hl.fragsize">0</str>- <!-- instructs Solr to return the field itself if no query terms are- found -->- <str name="f.name.hl.alternateField">name</str>- <str name="f.text.hl.fragmenter">regex</str> <!-- defined below -->- </lst>- </requestHandler>-- <!-- Note how you can register the same handler multiple times with- different names (and different init parameters)- -->- <requestHandler name="partitioned" class="solr.SearchHandler" >- <lst name="defaults">- <str name="defType">dismax</str>- <str name="echoParams">explicit</str>- <str name="qf">text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0</str>- <str name="mm">2<-1 5<-2 6<90%</str>- <!-- This is an example of using Date Math to specify a constantly- moving date range in a config...- -->- <str name="bq">incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2</str>- </lst>- <!-- In addition to defaults, "appends" params can be specified- to identify values which should be appended to the list of- multi-val params from the query (or the existing "defaults").-- In this example, the param "fq=instock:true" will be appended to- any query time fq params the user may specify, as a mechanism for- partitioning the index, independent of any user selected filtering- that may also be desired (perhaps as a result of faceted searching).-- NOTE: there is *absolutely* nothing a client can do to prevent these- "appends" values from being used, so don't use this mechanism- unless you are sure you always want it.- -->- <lst name="appends">- <str name="fq">inStock:true</str>- </lst>- <!-- "invariants" are a way of letting the Solr maintainer lock down- the options available to Solr clients. Any params values- specified here are used regardless of what values may be specified- in either the query, the "defaults", or the "appends" params.-- In this example, the facet.field and facet.query params are fixed,- limiting the facets clients can use. Faceting is not turned on by- default - but if the client does specify facet=true in the request,- these are the only facets they will be able to see counts for;- regardless of what other facet.field or facet.query params they- may specify.-- NOTE: there is *absolutely* nothing a client can do to prevent these- "invariants" values from being used, so don't use this mechanism- unless you are sure you always want it.- -->- <lst name="invariants">- <str name="facet.field">cat</str>- <str name="facet.field">manu_exact</str>- <str name="facet.query">price:[* TO 500]</str>- <str name="facet.query">price:[500 TO *]</str>- </lst>- </requestHandler>--- <!--- Search components are registered to SolrCore and used by Search Handlers-- By default, the following components are avaliable:-- <searchComponent name="query" class="org.apache.solr.handler.component.QueryComponent" />- <searchComponent name="facet" class="org.apache.solr.handler.component.FacetComponent" />- <searchComponent name="mlt" class="org.apache.solr.handler.component.MoreLikeThisComponent" />- <searchComponent name="highlight" class="org.apache.solr.handler.component.HighlightComponent" />- <searchComponent name="debug" class="org.apache.solr.handler.component.DebugComponent" />-- Default configuration in a requestHandler would look like:- <arr name="components">- <str>query</str>- <str>facet</str>- <str>mlt</str>- <str>highlight</str>- <str>debug</str>- </arr>-- If you register a searchComponent to one of the standard names, that will be used instead.- To insert handlers before or after the 'standard' components, use:-- <arr name="first-components">- <str>myFirstComponentName</str>- </arr>-- <arr name="last-components">- <str>myLastComponentName</str>- </arr>- -->-- <!-- The spell check component can return a list of alternative spelling- suggestions. -->- <searchComponent name="spellcheck" class="solr.SpellCheckComponent">-- <str name="queryAnalyzerFieldType">textSpell</str>-- <lst name="spellchecker">- <str name="name">default</str>- <str name="field">spell</str>- <str name="spellcheckIndexDir">./spellchecker1</str>-- </lst>- <lst name="spellchecker">- <str name="name">jarowinkler</str>- <str name="field">spell</str>- <!-- Use a different Distance Measure -->- <str name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str>- <str name="spellcheckIndexDir">./spellchecker2</str>-- </lst>-- <lst name="spellchecker">- <str name="classname">solr.FileBasedSpellChecker</str>- <str name="name">file</str>- <str name="sourceLocation">spellings.txt</str>- <str name="characterEncoding">UTF-8</str>- <str name="spellcheckIndexDir">./spellcheckerFile</str>- </lst>- </searchComponent>-- <!-- a request handler utilizing the spellcheck component -->- <requestHandler name="/spellCheckCompRH" class="solr.SearchHandler">- <lst name="defaults">- <!-- omp = Only More Popular -->- <str name="spellcheck.onlyMorePopular">false</str>- <!-- exr = Extended Results -->- <str name="spellcheck.extendedResults">false</str>- <!-- The number of suggestions to return -->- <str name="spellcheck.count">1</str>- </lst>- <arr name="last-components">- <str>spellcheck</str>- </arr>- </requestHandler>-- <!-- a search component that enables you to configure the top results for- a given query regardless of the normal lucene scoring.-->- <searchComponent name="elevator" class="solr.QueryElevationComponent" >- <!-- pick a fieldType to analyze queries -->- <str name="queryFieldType">string</str>- <str name="config-file">elevate.xml</str>- </searchComponent>-- <!-- a request handler utilizing the elevator component -->- <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">- <lst name="defaults">- <str name="echoParams">explicit</str>- </lst>- <arr name="last-components">- <str>elevator</str>- </arr>- </requestHandler>--- <!-- Update request handler.-- Note: Since solr1.1 requestHandlers requires a valid content type header if posted in- the body. For example, curl now requires: -H 'Content-type:text/xml; charset=utf-8'- The response format differs from solr1.1 formatting and returns a standard error code.-- To enable solr1.1 behavior, remove the /update handler or change its path- -->- <requestHandler name="/update" class="solr.XmlUpdateRequestHandler" />-- <!--- Analysis request handler. Since Solr 1.3. Use to returnhow a document is analyzed. Useful- for debugging and as a token server for other types of applications- -->- <requestHandler name="/analysis" class="solr.AnalysisRequestHandler" />--- <!-- CSV update handler, loaded on demand -->- <requestHandler name="/update/csv" class="solr.CSVRequestHandler" startup="lazy" />--- <!--- Admin Handlers - This will register all the standard admin RequestHandlers. Adding- this single handler is equivalent to registering:-- <requestHandler name="/admin/luke" class="org.apache.solr.handler.admin.LukeRequestHandler" />- <requestHandler name="/admin/system" class="org.apache.solr.handler.admin.SystemInfoHandler" />- <requestHandler name="/admin/plugins" class="org.apache.solr.handler.admin.PluginInfoHandler" />- <requestHandler name="/admin/threads" class="org.apache.solr.handler.admin.ThreadDumpHandler" />- <requestHandler name="/admin/properties" class="org.apache.solr.handler.admin.PropertiesRequestHandler" />- <requestHandler name="/admin/file" class="org.apache.solr.handler.admin.ShowFileRequestHandler" >-- If you wish to hide files under ${solr.home}/conf, explicitly register the ShowFileRequestHandler using:- <requestHandler name="/admin/file" class="org.apache.solr.handler.admin.ShowFileRequestHandler" >- <lst name="invariants">- <str name="hidden">synonyms.txt</str>- <str name="hidden">anotherfile.txt</str>- </lst>- </requestHandler>- -->- <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />-- <!-- ping/healthcheck -->- <requestHandler name="/admin/ping" class="PingRequestHandler">- <lst name="defaults">- <str name="qt">standard</str>- <str name="q">solrpingquery</str>- <str name="echoParams">all</str>- </lst>- </requestHandler>-- <!-- Echo the request contents back to the client -->- <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >- <lst name="defaults">- <str name="echoParams">explicit</str> <!-- for all params (including the default etc) use: 'all' -->- <str name="echoHandler">true</str>- </lst>- </requestHandler>-- <highlighting>- <!-- Configure the standard fragmenter -->- <!-- This could most likely be commented out in the "default" case -->- <fragmenter name="gap" class="org.apache.solr.highlight.GapFragmenter" default="true">- <lst name="defaults">- <int name="hl.fragsize">100</int>- </lst>- </fragmenter>-- <!-- A regular-expression-based fragmenter (f.i., for sentence extraction) -->- <fragmenter name="regex" class="org.apache.solr.highlight.RegexFragmenter">- <lst name="defaults">- <!-- slightly smaller fragsizes work better because of slop -->- <int name="hl.fragsize">70</int>- <!-- allow 50% slop on fragment sizes -->- <float name="hl.regex.slop">0.5</float>- <!-- a basic sentence pattern -->- <str name="hl.regex.pattern">[-\w ,/\n\"']{20,200}</str>- </lst>- </fragmenter>-- <!-- Configure the standard formatter -->- <formatter name="html" class="org.apache.solr.highlight.HtmlFormatter" default="true">- <lst name="defaults">- <str name="hl.simple.pre"><![CDATA[<em>]]></str>- <str name="hl.simple.post"><![CDATA[</em>]]></str>- </lst>- </formatter>- </highlighting>---- <!-- queryResponseWriter plugins... query responses will be written using the- writer specified by the 'wt' request parameter matching the name of a registered- writer.- The "default" writer is the default and will be used if 'wt' is not specified- in the request. XMLResponseWriter will be used if nothing is specified here.- The json, python, and ruby writers are also available by default.-- <queryResponseWriter name="xml" class="org.apache.solr.request.XMLResponseWriter" default="true"/>- <queryResponseWriter name="json" class="org.apache.solr.request.JSONResponseWriter"/>- <queryResponseWriter name="python" class="org.apache.solr.request.PythonResponseWriter"/>- <queryResponseWriter name="ruby" class="org.apache.solr.request.RubyResponseWriter"/>- <queryResponseWriter name="php" class="org.apache.solr.request.PHPResponseWriter"/>- <queryResponseWriter name="phps" class="org.apache.solr.request.PHPSerializedResponseWriter"/>-- <queryResponseWriter name="custom" class="com.example.MyResponseWriter"/>- -->-- <!-- XSLT response writer transforms the XML output by any xslt file found- in Solr's conf/xslt directory. Changes to xslt files are checked for- every xsltCacheLifetimeSeconds.- -->- <queryResponseWriter name="xslt" class="org.apache.solr.request.XSLTResponseWriter">- <int name="xsltCacheLifetimeSeconds">5</int>- </queryResponseWriter>-- <queryResponseWriter name="velocity" class="org.apache.solr.request.VelocityResponseWriter"/>-- <!-- example of registering a query parser- <queryParser name="lucene" class="org.apache.solr.search.LuceneQParserPlugin"/>- -->-- <!-- example of registering a custom function parser- <valueSourceParser name="myfunc" class="com.mycompany.MyValueSourceParser" />- -->-- <!-- config for the admin interface -->- <admin>- <defaultQuery>solr</defaultQuery>-- <!-- configure a healthcheck file for servers behind a loadbalancer- <healthcheck type="file">server-enabled</healthcheck>- -->- </admin>--</config>diff --git a/client/javascript/example/reuters/testsolr/solr/conf/spellings.txt b/client/javascript/example/reuters/testsolr/solr/conf/spellings.txtdeleted file mode 100644index d7ede6f5611..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/spellings.txt+++ /dev/null@@ -1,2 +0,0 @@-pizza-history\ No newline at end of filediff --git a/client/javascript/example/reuters/testsolr/solr/conf/stopwords.txt b/client/javascript/example/reuters/testsolr/solr/conf/stopwords.txtdeleted file mode 100644index 8433c832d2c..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/stopwords.txt+++ /dev/null@@ -1,57 +0,0 @@-# Licensed to the Apache Software Foundation (ASF) under one or more-# contributor license agreements. See the NOTICE file distributed with-# this work for additional information regarding copyright ownership.-# The ASF licenses this file to You under the Apache License, Version 2.0-# (the "License"); you may not use this file except in compliance with-# the License. You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.--#------------------------------------------------------------------------# a couple of test stopwords to test that the words are really being-# configured from this file:-stopworda-stopwordb--#Standard english stop words taken from Lucene's StopAnalyzer-an-and-are-as-at-be-but-by-for-if-in-into-is-it-no-not-of-on-or-s-such-t-that-the-their-then-there-these-they-this-to-was-will-with-diff --git a/client/javascript/example/reuters/testsolr/solr/conf/synonyms.txt b/client/javascript/example/reuters/testsolr/solr/conf/synonyms.txtdeleted file mode 100644index b0e31cb7ec8..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/synonyms.txt+++ /dev/null@@ -1,31 +0,0 @@-# The ASF licenses this file to You under the Apache License, Version 2.0-# (the "License"); you may not use this file except in compliance with-# the License. You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.--#------------------------------------------------------------------------#some test synonym mappings unlikely to appear in real input text-aaa => aaaa-bbb => bbbb1 bbbb2-ccc => cccc1,cccc2-a\=>a => b\=>b-a\,a => b\,b-fooaaa,baraaa,bazaaa--# Some synonym groups specific to this example-GB,gib,gigabyte,gigabytes-MB,mib,megabyte,megabytes-Television, Televisions, TV, TVs-#notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming-#after us won't split it into two words.--# Synonym mappings can be used for spelling correction too-pixima => pixma-diff --git a/client/javascript/example/reuters/testsolr/solr/conf/velocity/VM_global_library.vm b/client/javascript/example/reuters/testsolr/solr/conf/velocity/VM_global_library.vmdeleted file mode 100644index af117df1ebf..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/velocity/VM_global_library.vm+++ /dev/null@@ -1,36 +0,0 @@-#macro(url_for_filters $filter_queries)- /solr/itas?fq=$filter_queries-#end--#macro(url_for_home)/solr/itas#end--#macro(url_for_start $start)/solr/itas?start=$start#end--#macro(url_for_nested_facet $field $value)/solr/itas?fq=$field:$value#end--#macro(link_to_previous_page $text)- #if($page.current_page_number > 1)- #set($prev_start = $page.start - $page.results_per_page)- <a class="prev-page" href="#url_for_start($prev_start)">$text</a>- #end-#end--#macro(link_to_next_page $text)- #if($page.current_page_number < $page.page_count)- #set($next_start = $page.start + $page.results_per_page)- <a class="next-page" href="#url_for_start($next_start)">$text</a>- #end-#end--#macro(link_to_page $page_number $text)- #if($page_number == $page.current_page_number)- $text- #else- #if($page_number <= $page.page_count)- #set($page_start = $page_number * $page.results_per_page - $page.results_per_page)- <a class="page" href="#url_for_start($page_start)">$text</a>- #end- #end-#end--#macro(param $key)$request.params.get($key)#enddiff --git a/client/javascript/example/reuters/testsolr/solr/conf/velocity/browse.vm b/client/javascript/example/reuters/testsolr/solr/conf/velocity/browse.vmdeleted file mode 100644index 9c1b4e11489..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/velocity/browse.vm+++ /dev/null@@ -1,70 +0,0 @@-#set($doclist=$response.values.response)-#set($searcher=$request.searcher)-#set($params=$request.params)-#set($fields=$response.returnFields)-<html>-## TODO: Implement layouts-<head>- <title>#param('title')</title>- <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>- <script type="text/javascript" src="/solr/admin/jquery-1.2.3.min.js"></script>- <link rel="stylesheet" type="text/css" href="/solr/admin/file?file=/velocity/main.css&contentType=text/css"/>-</head>-<body>--<div>- #parse("header.vm")-- #set($filter_queries = $params.getParams('fq'))- #foreach($fq in $filter_queries)- > <a href="#url_for_filters($filter_queries.subList(0,$velocityCount))">$fq</a>- #end-</div>--<div class="query-box">- <form id="query-form" action="/solr/itas" method="GET">- Query: <input type="text" name="q" value="$!params.get('q')"/>- </form>-</div>--<div class="facet-fields">- #foreach($field in $response.values.facet_counts.facet_fields)- <span class="facet-field">$field.key</span>- <ul>- #foreach($facet in $field.value)- #set($facetURL = "#url_for_nested_facet($field.key, $facet.key)")- #if ($facetURL != '')- <li><a href="$facetURL">$facet.key</a> ($facet.value)</li>- #end- #end- </ul>- #end-</div>--<div class="pagination">- <span><span class="results-found">$page.results_found</span> results found in ${response.responseHeader.QTime} ms</span>-</div>--<div class="results">- #foreach($id in $doclist.iterator())- #set($doc = $searcher.doc($id,$response.returnFields))- #parse("hit.vm")- #end-</div>--<div class="pagination">- #link_to_previous_page("previous")- <span class="results-found">$page.results_found</span> results found.- Page <span class="page-num">$page.current_page_number</span> of <span- class="page-count">$page.page_count</span>- #link_to_next_page("next")-- <br/>-</div>--<div>- #parse("footer.vm")-</div>--</body>-</html>\ No newline at end of filediff --git a/client/javascript/example/reuters/testsolr/solr/conf/velocity/header.vm b/client/javascript/example/reuters/testsolr/solr/conf/velocity/header.vmdeleted file mode 100644index e69de29bb2d..00000000000diff --git a/client/javascript/example/reuters/testsolr/solr/conf/velocity/hit.vm b/client/javascript/example/reuters/testsolr/solr/conf/velocity/hit.vmdeleted file mode 100644index 34c884dd501..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/velocity/hit.vm+++ /dev/null@@ -1,18 +0,0 @@-<div class="result-document">- #foreach($field in $doc.fields)- #if($response.returnFields.contains("*") || $response.returnFields.contains($field.name()))- <p>- <span class="field-name">$field.name() :</span>- <span>- ##TODO: Need to provide helpers for field values, including HTML escaping and highlighting- #foreach($value in $doc.getFieldables($field.name()))- $request.schema.getFieldType($field.name()).toExternal($value)- #end- </span>- </p>- #end- #end- #if($params.getBool("debugQuery",false))- <a href="#" onclick='jQuery(this).siblings("pre").toggle(); return false;'>toggle explain</a> <pre style="display:none">$response.values.debug.explain.get($doc.get('id'))</pre>- #end-</div>diff --git a/client/javascript/example/reuters/testsolr/solr/conf/velocity/main.css b/client/javascript/example/reuters/testsolr/solr/conf/velocity/main.cssdeleted file mode 100644index 11f01716b3a..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/velocity/main.css+++ /dev/null@@ -1,96 +0,0 @@-.array-field {- border: 2px solid #474747;- background: #FFE9D8;- padding: 5px;- margin: 5px;-}--.array-field-list li {- list-style: circle;- margin-left: 20px;-}--body {- font-family: Arial, Helvetica, sans-serif;- font-size: 10pt;-}--.constraints-title {- background: gray;-}--.facet-fields {- float: left;- margin: 5px;- margin-top: 0px;- background: #FEC293;- border: 2px solid #474747;- width: 185px;- padding: 2px;-}--.facet-field {- font-weight: bold;-}--.highlight {- color: white;- background-color: gray;- border: 1px black solid;-}--.highlight-box {- margin-left: 15px;-}--.field-name {- font-weight: bold;-}--.highlighted-facet-field {- background: white;-}--#logo {- margin: 10px;-}--.query-box, .constraints {- padding: 5px;- margin: 5px;- border: 3px solid #474747;- color: white;- background: #FD9644;- font-weight: bold;- font-size: 16px;-}--.query-box input {- margin-left: 8px;- width: 85%;-}--.pagination {- padding-left: 33%;- font-weight: bold;- background: gray;- color: white;- margin: 5px;- margin-left: 200px;-}--.result-document {- border: 3px solid #474747;- background: #FEC293;- padding: 5px;- margin: 5px;- margin-left: 200px;-}--.selected-facet-field {- font-weight: bold;-}--li.show {- list-style: disc;-}\ No newline at end of filediff --git a/client/javascript/example/reuters/testsolr/solr/conf/xslt/example.xsl b/client/javascript/example/reuters/testsolr/solr/conf/xslt/example.xsldeleted file mode 100644index 6832a1d4cb3..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/xslt/example.xsl+++ /dev/null@@ -1,132 +0,0 @@-<?xml version='1.0' encoding='UTF-8'?>--<!--- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- -->--<!--- Simple transform of Solr query results to HTML- -->-<xsl:stylesheet version='1.0'- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'->-- <xsl:output media-type="text/html; charset=UTF-8" encoding="UTF-8"/>-- <xsl:variable name="title" select="concat('Solr search results (',response/result/@numFound,' documents)')"/>-- <xsl:template match='/'>- <html>- <head>- <title><xsl:value-of select="$title"/></title>- <xsl:call-template name="css"/>- </head>- <body>- <h1><xsl:value-of select="$title"/></h1>- <div class="note">- This has been formatted by the sample "example.xsl" transform -- use your own XSLT to get a nicer page- </div>- <xsl:apply-templates select="response/result/doc"/>- </body>- </html>- </xsl:template>-- <xsl:template match="doc">- <xsl:variable name="pos" select="position()"/>- <div class="doc">- <table width="100%">- <xsl:apply-templates>- <xsl:with-param name="pos"><xsl:value-of select="$pos"/></xsl:with-param>- </xsl:apply-templates>- </table>- </div>- </xsl:template>-- <xsl:template match="doc/*[@name='score']" priority="100">- <xsl:param name="pos"></xsl:param>- <tr>- <td class="name">- <xsl:value-of select="@name"/>- </td>- <td class="value">- <xsl:value-of select="."/>-- <xsl:if test="boolean(//lst[@name='explain'])">- <xsl:element name="a">- <!-- can't allow whitespace here -->- <xsl:attribute name="href">javascript:toggle("<xsl:value-of select="concat('exp-',$pos)" />");</xsl:attribute>?</xsl:element>- <br/>- <xsl:element name="div">- <xsl:attribute name="class">exp</xsl:attribute>- <xsl:attribute name="id">- <xsl:value-of select="concat('exp-',$pos)" />- </xsl:attribute>- <xsl:value-of select="//lst[@name='explain']/str[position()=$pos]"/>- </xsl:element>- </xsl:if>- </td>- </tr>- </xsl:template>-- <xsl:template match="doc/arr" priority="100">- <tr>- <td class="name">- <xsl:value-of select="@name"/>- </td>- <td class="value">- <ul>- <xsl:for-each select="*">- <li><xsl:value-of select="."/></li>- </xsl:for-each>- </ul>- </td>- </tr>- </xsl:template>--- <xsl:template match="doc/*">- <tr>- <td class="name">- <xsl:value-of select="@name"/>- </td>- <td class="value">- <xsl:value-of select="."/>- </td>- </tr>- </xsl:template>-- <xsl:template match="*"/>-- <xsl:template name="css">- <script>- function toggle(id) {- var obj = document.getElementById(id);- obj.style.display = (obj.style.display != 'block') ? 'block' : 'none';- }- </script>- <style type="text/css">- body { font-family: "Lucida Grande", sans-serif }- td.name { font-style: italic; font-size:80%; }- td { vertical-align: top; }- ul { margin: 0px; margin-left: 1em; padding: 0px; }- .note { font-size:80%; }- .doc { margin-top: 1em; border-top: solid grey 1px; }- .exp { display: none; font-family: monospace; white-space: pre; }- </style>- </xsl:template>--</xsl:stylesheet>diff --git a/client/javascript/example/reuters/testsolr/solr/conf/xslt/example_atom.xsl b/client/javascript/example/reuters/testsolr/solr/conf/xslt/example_atom.xsldeleted file mode 100644index e1c7d5a2af2..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/xslt/example_atom.xsl+++ /dev/null@@ -1,67 +0,0 @@-<?xml version='1.0' encoding='UTF-8'?>--<!--- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- -->--<!--- Simple transform of Solr query results to Atom- -->--<xsl:stylesheet version='1.0'- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>-- <xsl:output- method="xml"- encoding="utf-8"- media-type="text/xml; charset=UTF-8"- />-- <xsl:template match='/'>- <xsl:variable name="query" select="response/lst[@name='responseHeader']/lst[@name='params']/str[@name='q']"/>- <feed xmlns="http://www.w3.org/2005/Atom">- <title>Example Solr Atom 1.0 Feed</title>- <subtitle>- This has been formatted by the sample "example_atom.xsl" transform -- use your own XSLT to get a nicer Atom feed.- </subtitle>- <author>- <name>Apache Solr</name>- <email>[email protected]</email>- </author>- <link rel="self" type="application/atom+xml"- href="http://localhost:8983/solr/q={$query}&wt=xslt&tr=atom.xsl"/>- <updated>- <xsl:value-of select="response/result/doc[position()=1]/date[@name='timestamp']"/>- </updated>- <id>tag:localhost,2007:example</id>- <xsl:apply-templates select="response/result/doc"/>- </feed>- </xsl:template>-- <!-- search results xslt -->- <xsl:template match="doc">- <xsl:variable name="id" select="str[@name='id']"/>- <entry>- <title><xsl:value-of select="str[@name='name']"/></title>- <link href="http://localhost:8983/solr/select?q={$id}"/>- <id>tag:localhost,2007:<xsl:value-of select="$id"/></id>- <summary><xsl:value-of select="arr[@name='features']"/></summary>- <updated><xsl:value-of select="date[@name='timestamp']"/></updated>- </entry>- </xsl:template>--</xsl:stylesheet>diff --git a/client/javascript/example/reuters/testsolr/solr/conf/xslt/example_rss.xsl b/client/javascript/example/reuters/testsolr/solr/conf/xslt/example_rss.xsldeleted file mode 100644index 3e09e654d5f..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/xslt/example_rss.xsl+++ /dev/null@@ -1,66 +0,0 @@-<?xml version='1.0' encoding='UTF-8'?>--<!--- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- -->--<!--- Simple transform of Solr query results to RSS- -->--<xsl:stylesheet version='1.0'- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>-- <xsl:output- method="xml"- encoding="utf-8"- media-type="text/xml; charset=UTF-8"- />- <xsl:template match='/'>- <rss version="2.0">- <channel>- <title>Example Solr RSS 2.0 Feed</title>- <link>http://localhost:8983/solr</link>- <description>- This has been formatted by the sample "example_rss.xsl" transform -- use your own XSLT to get a nicer RSS feed.- </description>- <language>en-us</language>- <docs>http://localhost:8983/solr</docs>- <xsl:apply-templates select="response/result/doc"/>- </channel>- </rss>- </xsl:template>-- <!-- search results xslt -->- <xsl:template match="doc">- <xsl:variable name="id" select="str[@name='id']"/>- <xsl:variable name="timestamp" select="date[@name='timestamp']"/>- <item>- <title><xsl:value-of select="str[@name='name']"/></title>- <link>- http://localhost:8983/solr/select?q=id:<xsl:value-of select="$id"/>- </link>- <description>- <xsl:value-of select="arr[@name='features']"/>- </description>- <pubDate><xsl:value-of select="$timestamp"/></pubDate>- <guid>- http://localhost:8983/solr/select?q=id:<xsl:value-of select="$id"/>- </guid>- </item>- </xsl:template>-</xsl:stylesheet>diff --git a/client/javascript/example/reuters/testsolr/solr/conf/xslt/luke.xsl b/client/javascript/example/reuters/testsolr/solr/conf/xslt/luke.xsldeleted file mode 100644index 6e9a064d7e0..00000000000--- a/client/javascript/example/reuters/testsolr/solr/conf/xslt/luke.xsl+++ /dev/null@@ -1,337 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->---<!--- Display the luke request handler with graphs- -->-<xsl:stylesheet- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"- xmlns="http://www.w3.org/1999/xhtml"- version="1.0"- >- <xsl:output- method="html"- encoding="UTF-8"- media-type="text/html; charset=UTF-8"- doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"- />-- <xsl:variable name="title">Solr Luke Request Handler Response</xsl:variable>-- <xsl:template match="/">- <html xmlns="http://www.w3.org/1999/xhtml">- <head>- <link rel="stylesheet" type="text/css" href="solr-admin.css"/>- <link rel="icon" href="favicon.ico" type="image/ico"/>- <link rel="shortcut icon" href="favicon.ico" type="image/ico"/>- <title>- <xsl:value-of select="$title"/>- </title>- <xsl:call-template name="css"/>-- </head>- <body>- <h1>- <xsl:value-of select="$title"/>- </h1>- <div class="doc">- <ul>- <xsl:if test="response/lst[@name='index']">- <li>- <a href="#index">Index Statistics</a>- </li>- </xsl:if>- <xsl:if test="response/lst[@name='fields']">- <li>- <a href="#fields">Field Statistics</a>- <ul>- <xsl:for-each select="response/lst[@name='fields']/lst">- <li>- <a href="#{@name}">- <xsl:value-of select="@name"/>- </a>- </li>- </xsl:for-each>- </ul>- </li>- </xsl:if>- <xsl:if test="response/lst[@name='doc']">- <li>- <a href="#doc">Document statistics</a>- </li>- </xsl:if>- </ul>- </div>- <xsl:if test="response/lst[@name='index']">- <h2><a name="index"/>Index Statistics</h2>- <xsl:apply-templates select="response/lst[@name='index']"/>- </xsl:if>- <xsl:if test="response/lst[@name='fields']">- <h2><a name="fields"/>Field Statistics</h2>- <xsl:apply-templates select="response/lst[@name='fields']"/>- </xsl:if>- <xsl:if test="response/lst[@name='doc']">- <h2><a name="doc"/>Document statistics</h2>- <xsl:apply-templates select="response/lst[@name='doc']"/>- </xsl:if>- </body>- </html>- </xsl:template>-- <xsl:template match="lst">- <xsl:if test="parent::lst">- <tr>- <td colspan="2">- <div class="doc">- <xsl:call-template name="list"/>- </div>- </td>- </tr>- </xsl:if>- <xsl:if test="not(parent::lst)">- <div class="doc">- <xsl:call-template name="list"/>- </div>- </xsl:if>- </xsl:template>-- <xsl:template name="list">- <xsl:if test="count(child::*)>0">- <table>- <thead>- <tr>- <th colspan="2">- <p>- <a name="{@name}"/>- </p>- <xsl:value-of select="@name"/>- </th>- </tr>- </thead>- <tbody>- <xsl:choose>- <xsl:when- test="@name='histogram'">- <tr>- <td colspan="2">- <xsl:call-template name="histogram"/>- </td>- </tr>- </xsl:when>- <xsl:otherwise>- <xsl:apply-templates/>- </xsl:otherwise>- </xsl:choose>- </tbody>- </table>- </xsl:if>- </xsl:template>-- <xsl:template name="histogram">- <div class="doc">- <xsl:call-template name="barchart">- <xsl:with-param name="max_bar_width">50</xsl:with-param>- <xsl:with-param name="iwidth">800</xsl:with-param>- <xsl:with-param name="iheight">160</xsl:with-param>- <xsl:with-param name="fill">blue</xsl:with-param>- </xsl:call-template>- </div>- </xsl:template>-- <xsl:template name="barchart">- <xsl:param name="max_bar_width"/>- <xsl:param name="iwidth"/>- <xsl:param name="iheight"/>- <xsl:param name="fill"/>- <xsl:variable name="max">- <xsl:for-each select="int">- <xsl:sort data-type="number" order="descending"/>- <xsl:if test="position()=1">- <xsl:value-of select="."/>- </xsl:if>- </xsl:for-each>- </xsl:variable>- <xsl:variable name="bars">- <xsl:value-of select="count(int)"/>- </xsl:variable>- <xsl:variable name="bar_width">- <xsl:choose>- <xsl:when test="$max_bar_width < ($iwidth div $bars)">- <xsl:value-of select="$max_bar_width"/>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="$iwidth div $bars"/>- </xsl:otherwise>- </xsl:choose>- </xsl:variable>- <table class="histogram">- <tbody>- <tr>- <xsl:for-each select="int">- <td>- <xsl:value-of select="."/>- <div class="histogram">- <xsl:attribute name="style">background-color: <xsl:value-of select="$fill"/>; width: <xsl:value-of select="$bar_width"/>px; height: <xsl:value-of select="($iheight*number(.)) div $max"/>px;</xsl:attribute>- </div>- </td>- </xsl:for-each>- </tr>- <tr>- <xsl:for-each select="int">- <td>- <xsl:value-of select="@name"/>- </td>- </xsl:for-each>- </tr>- </tbody>- </table>- </xsl:template>-- <xsl:template name="keyvalue">- <xsl:choose>- <xsl:when test="@name">- <tr>- <td class="name">- <xsl:value-of select="@name"/>- </td>- <td class="value">- <xsl:value-of select="."/>- </td>- </tr>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="."/>- </xsl:otherwise>- </xsl:choose>- </xsl:template>-- <xsl:template match="int|bool|long|float|double|uuid|date">- <xsl:call-template name="keyvalue"/>- </xsl:template>-- <xsl:template match="arr">- <tr>- <td class="name">- <xsl:value-of select="@name"/>- </td>- <td class="value">- <ul>- <xsl:for-each select="child::*">- <li>- <xsl:apply-templates/>- </li>- </xsl:for-each>- </ul>- </td>- </tr>- </xsl:template>-- <xsl:template match="str">- <xsl:choose>- <xsl:when test="@name='schema' or @name='index' or @name='flags'">- <xsl:call-template name="schema"/>- </xsl:when>- <xsl:otherwise>- <xsl:call-template name="keyvalue"/>- </xsl:otherwise>- </xsl:choose>- </xsl:template>-- <xsl:template name="schema">- <tr>- <td class="name">- <xsl:value-of select="@name"/>- </td>- <td class="value">- <xsl:if test="contains(.,'unstored')">- <xsl:value-of select="."/>- </xsl:if>- <xsl:if test="not(contains(.,'unstored'))">- <xsl:call-template name="infochar2string">- <xsl:with-param name="charList">- <xsl:value-of select="."/>- </xsl:with-param>- </xsl:call-template>- </xsl:if>- </td>- </tr>- </xsl:template>-- <xsl:template name="infochar2string">- <xsl:param name="i">1</xsl:param>- <xsl:param name="charList"/>-- <xsl:variable name="char">- <xsl:value-of select="substring($charList,$i,1)"/>- </xsl:variable>- <xsl:choose>- <xsl:when test="$char='I'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='I']"/> - </xsl:when>- <xsl:when test="$char='T'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='T']"/> - </xsl:when>- <xsl:when test="$char='S'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='S']"/> - </xsl:when>- <xsl:when test="$char='M'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='M']"/> - </xsl:when>- <xsl:when test="$char='V'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='V']"/> - </xsl:when>- <xsl:when test="$char='o'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='o']"/> - </xsl:when>- <xsl:when test="$char='p'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='p']"/> - </xsl:when>- <xsl:when test="$char='O'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='O']"/> - </xsl:when>- <xsl:when test="$char='L'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='L']"/> - </xsl:when>- <xsl:when test="$char='B'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='B']"/> - </xsl:when>- <xsl:when test="$char='C'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='C']"/> - </xsl:when>- <xsl:when test="$char='f'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='f']"/> - </xsl:when>- <xsl:when test="$char='l'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='l']"/> -- </xsl:when>- </xsl:choose>-- <xsl:if test="not($i>=string-length($charList))">- <xsl:call-template name="infochar2string">- <xsl:with-param name="i">- <xsl:value-of select="$i+1"/>- </xsl:with-param>- <xsl:with-param name="charList">- <xsl:value-of select="$charList"/>- </xsl:with-param>- </xsl:call-template>- </xsl:if>- </xsl:template>- <xsl:template name="css">- <style type="text/css">- <![CDATA[- td.name {font-style: italic; font-size:80%; }- .doc { margin: 0.5em; border: solid grey 1px; }- .exp { display: none; font-family: monospace; white-space: pre; }- div.histogram { background: none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;}- table.histogram { width: auto; vertical-align: bottom; }- table.histogram td, table.histogram th { text-align: center; vertical-align: bottom; border-bottom: 1px solid #ff9933; width: auto; }- ]]>- </style>- </xsl:template>-</xsl:stylesheet>diff --git a/client/javascript/example/reuters/web/images/contenth2.gif b/client/javascript/example/reuters/web/images/contenth2.gifdeleted file mode 100644index 706048b0448..00000000000Binary files a/client/javascript/example/reuters/web/images/contenth2.gif and /dev/null differdiff --git a/client/javascript/example/reuters/web/images/header.gif b/client/javascript/example/reuters/web/images/header.gifdeleted file mode 100644index 93217e4e526..00000000000Binary files a/client/javascript/example/reuters/web/images/header.gif and /dev/null differdiff --git a/client/javascript/example/reuters/web/images/sidebarh2.gif b/client/javascript/example/reuters/web/images/sidebarh2.gifdeleted file mode 100644index b18356fd0c7..00000000000Binary files a/client/javascript/example/reuters/web/images/sidebarh2.gif and /dev/null differdiff --git a/client/javascript/example/reuters/web/index.html b/client/javascript/example/reuters/web/index.htmldeleted file mode 100644index 2df7b9d1716..00000000000--- a/client/javascript/example/reuters/web/index.html+++ /dev/null@@ -1,189 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->-<html xmlns="http://www.w3.org/1999/xhtml">- <head>- <title>SolrJS</title>- <link rel="stylesheet" type="text/css" href="style.css" media="screen" />-- <link rel="stylesheet" type="text/css" href="../../src/css/solrjs.css" />- <link rel="stylesheet" type="text/css" href="../../lib/jquery-autocomplete/jquery.autocomplete.css" />-- <script src="../../lib/jquery/jquery-1.2.6.js"></script>- <script src="../../lib/jquery-autocomplete/jquery.autocomplete.js"</script>- <script src="../../src/core/Core.js"></script>- <script src="../../src/core/QueryItem.js"></script>- <script src="../../src/core/Manager.js"></script>- <script src="../../src/core/AbstractSelectionView.js"></script>- <script src="../../src/core/AbstractWidget.js"></script>- <script src="../../src/core/AbstractServerSideWidget.js"></script>- <script src="../../src/core/AbstractClientSideWidget.js"></script>- <script src="../../src/clientside/ExtensibleResultWidget.js"/></script>- <script src="../../src/clientside/AutocompleteWidget.js"/></script>- <script src="../../src/clientside/TagcloudWidget.js"/></script>- <script src="../../src/clientside/CountryCodeWidget.js"/></script>-- <script>- var $sj = jQuery.noConflict();-- var solrjsManager;- $sj(document).ready(function(){- solrjsManager = new $sj.solrjs.Manager({solrUrl:"http://localhost:8983/solr/select", resourcesBase: "../../src/resources"});-- var resultWidget = new $sj.solrjs.ExtensibleResultWidget({- id:"result",- target:"#result",- rows:10,- showLoadingDiv: true,- renderResult : function(docs, pageSize, offset, numFound) {- var container = jQuery("<div/>");-- // paging- jQuery("<a/>").html("<<").attr("href", "javascript:solrjsManager.doRequest(0, true)").appendTo(container);- jQuery("<a/>").html("<").attr("href", "javascript:solrjsManager.doRequest(" + Math.max(0, (parseInt(offset) - parseInt(pageSize))) + ", true)").appendTo(container);- jQuery("<a/>").html(">").attr("href", "javascript:solrjsManager.doRequest(" + Math.min((parseInt(numFound) - parseInt(pageSize)), (parseInt(offset) + parseInt(pageSize))) + ", true)").appendTo(container);- jQuery("<a/>").html(">>").attr("href", "javascript:solrjsManager.doRequest(" + (parseInt(numFound) - parseInt(pageSize)) + ", true)").appendTo(container);- jQuery("<span/>").html("displaying " + (parseInt(offset) + 1) + " to " + Math.min(numFound, (parseInt(offset) + parseInt(pageSize))) + " of " + numFound ).appendTo(container);- jQuery("<hr/>").appendTo(container);-- // result- $sj.each(docs, function(i, item) {- jQuery("<h2/>").html(item["title"]).appendTo(container);- var topics = jQuery("<p/>").appendTo(container);- if (item["topics"] != null) {- $sj.each(item["topics"], function(i, topic) {- var items = "[new jQuery.solrjs.QueryItem({field:'topics',value:'" + topic + "'})]";- jQuery("<a/>").html(topic).attr("href", "javascript:solrjsManager.clearSelection();solrjsManager.selectItems('result'," + items + ")").appendTo(topics);- });- }- if (item["organisations"] != null) {- $sj.each(item["organisations"], function(i, topic) {- var items = "[new jQuery.solrjs.QueryItem({field:'organisations' ,value:'" + topic + "'})]";- jQuery("<a/>").html(topic).attr("href", "javascript:solrjsManager.clearSelection();solrjsManager.selectItems('result'," + items + ")").appendTo(topics);- });- }- if (item["exchanges"] != null) {- $sj.each(item["exchanges"], function(i, topic) {- var items = "[new jQuery.solrjs.QueryItem({field:'exchanges' ,value:'" + topic + "'})]";- jQuery("<a/>").html(topic).attr("href", "javascript:solrjsManager.clearSelection();solrjsManager.selectItems('result'," + items + ")").appendTo(topics);- });- }- if (item["text"].length > 300) {- var short = jQuery("<p/>").attr("id", "short_" + item["id"]).html(item["dateline"] + " " + item["text"].substring(0,Math.min(300,item["text"].length))).appendTo(container).css("display", "block");- jQuery("<p/>").attr("id", "long_" + item["id"]).html(item["dateline"] + " " + item["text"]).appendTo(container).css("display", "none");- jQuery("<a/>").html(" more").attr("href", "javascript:toggle('#short_" + item['id'] + "', '#long_" + item['id'] + "');").appendTo(short);- } else {- jQuery("<p/>").attr("id", "long_" + item["id"]).html(item["dateline"] + " " + item["text"]).appendTo(container);- }- });- container.appendTo(this.target);- }- });- solrjsManager.addWidget(resultWidget);-- solrjsManager.addWidget(new $sj.solrjs.AutocompleteWidget({id:"search", target:"#search", fulltextFieldName:"allText", fieldNames:["topics", "organisations", "exchanges"]}));- solrjsManager.addWidget(new $sj.solrjs.TagcloudWidget({id:"topics", target:"#topics", fieldName:"topics", size:50}));- solrjsManager.addWidget(new $sj.solrjs.TagcloudWidget({id:"organisations", target:"#organisations", fieldName:"organisations", size:20}));- solrjsManager.addWidget(new $sj.solrjs.TagcloudWidget({id:"exchanges", target:"#exchanges", fieldName:"exchanges", size:20}));- solrjsManager.addWidget(new $sj.solrjs.CountryCodeWidget({id:"countries", target:"#countries", fieldName:"countryCodes"}));-- var selectionView = new $sj.solrjs.AbstractSelectionView({- id:"selectionView",- target:"#selection",- displaySelection : function(selectedItems) {- jQuery(this.target).empty();- if(selectedItems.length == 0) {- jQuery("<div/>").html("Viewing all documents!").appendTo(this.target);- return;- } else if(selectedItems.length > 1) {- jQuery("<a/>").html("remove all").attr("href", "javascript:solrjsManager.doRequestAll()").appendTo(this.target);- }-- for (var i = 0; i < selectedItems.length; ++i) {- var item = selectedItems[i];- jQuery("<a/>").html("(x) " + item.field + ":" + item.value).attr("href", "javascript:solrjsManager.deselectItem('" + item.toSolrQuery() + "')").appendTo(this.target);- }- }- });- solrjsManager.addSelectionView(selectionView);-- solrjsManager.doRequestAll();-- });-- function toggle(id1, id2) {- $sj(id1).css("display", "none");- $sj(id2).css("display", "block");- }- </script>-- </head>- <body>- <div id="wrap">- <div id="header">- <h1><a href="#">SolrJS Demonstration</a></h1>- <h2>Browse REUTERS business news from 1987</h2>- </div>- <div class="right">- <div id="result">- <div id="navigation"></div>- <div id="docs"></div>- </div>- </div>-- <div class="left">- <h2>Current Selection</h2>- <ul>- <li> <div id="selection"></div> </li>- </ul>- <h2>Search</h2>- <ul>- <li>- <span style="font-size:80%"> ( press ESC to close suggestions) </span>- <div id="search"></div>- </li>- </ul>- <h2>Top Topics</h2>- <ul>- <li> <div id="topics"></div> </li>- </ul>- <h2>Top Organisations</h2>- <ul>- <li> <div id="organisations"></div> </li>- </ul>- <h2>Top Exchanges</h2>- <ul>- <li> <div id="exchanges"></div> </li>- </ul>- <h2>By Country</h2>- <ul>- <li> <div id="countries"></div> </li>- <li> <div id="preview"></div> </li>- </ul>- <div style="clear:both"></div>- </div>-- <div style="clear: both;"> </div>-- </div>--- <div class="footer">- Design by <a href="http://www.free-css-templates.com/">Free CSS Templates</a> - Thanks to <a href="http://www.dubaiapartments.biz/">Dubai Villas</a>- </div>- </body>-</html>\ No newline at end of filediff --git a/client/javascript/example/reuters/web/style.css b/client/javascript/example/reuters/web/style.cssdeleted file mode 100644index 3016b99e463..00000000000--- a/client/javascript/example/reuters/web/style.css+++ /dev/null@@ -1,128 +0,0 @@-/*- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.-*/--* {- padding: 0;- margin: 0;-}--body {-background: #fff url(images/header.gif) repeat-x;-font-family: Verdana, Arial, Helvetica, sans-serif;-font-size: 12px;-line-height: 18px;-color: #333333;;-}--img { border: none; }-a { color: #6998F0; text-decoration: none; }-a:hover { text-decoration: underline; color : #000; }--#wrap {-width: 1000px;-margin: 0px auto;-}--#header {-height: 90px;-}--#header h1 {-padding: 20px 0 5px 10px;-font-size: 20px;-letter-spacing: -2px;-}-#header h1 a {-color: #000;-text-decoration: none;-}-#header h1 a:hover {-text-decoration: none;-color: #666;-}-#header h2 {-padding-left: 11px;-font-size: 14px;-color: #666;-font-weight: 100;-}--.right {-float: right;-width: 538px;-text-align: justify;-padding: 10px 20px 10px 40px;-border-left: 1px solid #aaa;-min-height:1000px;-}-.right h2 {-color: #B4241B;-font-size: 20px;-letter-spacing: -2px;-font-weight: 100;-padding : 15px 0 5px 0;-}-.right h2 a {--}-.right h2 a:hover {--}-.left {-float: left;-width: 400px;-padding: 10px 0 10px 0px;-}-.left h2 {-font-size: 13px;-color: #333;-padding: 5px 0 2px 10px;-}-.left ul {-list-style-type: none;-padding: 5px 0 10px 5px;-}-.left ul li {-padding: 2px 20px;--}--.left ul li a {-display: block;-color: #6998F0;-}-.left ul li a:hover {-color: #ff0000;-}--.footer {-text-align: center;-color: #666;-font-size: 11px;-padding: 10px;-background: #f7f7f7;-border-top: 1px solid #aaa;-}-.footer a { color: #666; }--#result a {- margin-right:5px;-}--#search input {- width:350px;-}diff --git a/client/javascript/example/testServerside.html b/client/javascript/example/testServerside.htmldeleted file mode 100644index 99ea7d018c4..00000000000--- a/client/javascript/example/testServerside.html+++ /dev/null@@ -1,69 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"- "http://www.w3.org/TR/html4/loose.dtd">-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->-<html>-<head>- <style type="text/css">- body { font-family: Arial, sans; font-size: 0.8em}- </style>-- <script src="../lib/jquery/jquery-1.2.6.js"></script>- <script src="../src/core/Core.js"></script>- <script src="../src/core/QueryItem.js"></script>- <script src="../src/core/Manager.js"></script>- <script src="../src/core/AbstractWidget.js"></script>- <script src="../src/core/AbstractServerSideWidget.js"></script>- <script src="../src/core/AbstractClientSideWidget.js"></script>- <script src="../src/serverside/SimpleServerSideWidget.js"/></script>- <script src="../src/serverside/FacetServerSideWidget.js"/></script>-- <script>- var $sj = jQuery.noConflict();- </script>--- <script>- var solrjsManager;- $sj(document).ready(function(){- solrjsManager = new $sj.solrjs.Manager({solrUrl:"http://localhost:8983/solr/select"});-- // a custom result widget- var resultWidget = new $sj.solrjs.SimpleServerSideWidget({- id:"result",- target:"#result",- rows:5,- templateName:"result"- });-- solrjsManager.addWidget(resultWidget);- solrjsManager.addWidget(new $sj.solrjs.FacetServerSideWidget({id:"topics", target:"#topics", fieldName:"topics"}));- solrjsManager.doRequestAll();- });- </script>- </head>--<body>- <body>- <div id="facets" style="float:left;width:300px;">- <h3 style="margin-top:0px">topics</h3>- <div id="topics"></div>- </div>- <div id="result" style="margin-left:300px;"></div>-</body>-</body>-</html>diff --git a/client/javascript/example/testsolr/solr/conf/admin-extra.html b/client/javascript/example/testsolr/solr/conf/admin-extra.htmldeleted file mode 100644index aa739da862c..00000000000--- a/client/javascript/example/testsolr/solr/conf/admin-extra.html+++ /dev/null@@ -1,31 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<!-- The content of this page will be statically included into the top-of the admin page. Uncomment this as an example to see there the content-will show up.--<hr>-<i>This line will appear before the first table</i>-<tr>-<td colspan="2">-This row will be appended to the end of the first table-</td>-</tr>-<hr>---->diff --git a/client/javascript/example/testsolr/solr/conf/elevate.xml b/client/javascript/example/testsolr/solr/conf/elevate.xmldeleted file mode 100644index 7630ebe20fb..00000000000--- a/client/javascript/example/testsolr/solr/conf/elevate.xml+++ /dev/null@@ -1,36 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<!-- If this file is found in the config directory, it will only be- loaded once at startup. If it is found in Solr's data- directory, it will be re-loaded every commit.--->--<elevate>- <query text="foo bar">- <doc id="1" />- <doc id="2" />- <doc id="3" />- </query>-- <query text="ipod">- <doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->- <doc id="IW-02" exclude="true" /> <!-- exclude this cable -->- </query>--</elevate>diff --git a/client/javascript/example/testsolr/solr/conf/protwords.txt b/client/javascript/example/testsolr/solr/conf/protwords.txtdeleted file mode 100644index 1dfc0abecbf..00000000000--- a/client/javascript/example/testsolr/solr/conf/protwords.txt+++ /dev/null@@ -1,21 +0,0 @@-# The ASF licenses this file to You under the Apache License, Version 2.0-# (the "License"); you may not use this file except in compliance with-# the License. You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.--#------------------------------------------------------------------------# Use a protected word file to protect against the stemmer reducing two-# unrelated words to the same base word.--# Some non-words that normally won't be encountered,-# just to test that they won't be stemmed.-dontstems-zwhacky-diff --git a/client/javascript/example/testsolr/solr/conf/schema.xml b/client/javascript/example/testsolr/solr/conf/schema.xmldeleted file mode 100755index d461778ff55..00000000000--- a/client/javascript/example/testsolr/solr/conf/schema.xml+++ /dev/null@@ -1,412 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<!--- This is the Solr schema file. This file should be named "schema.xml" and- should be in the conf directory under the solr home- (i.e. ./solr/conf/schema.xml by default)- or located where the classloader for the Solr webapp can find it.-- This example schema is the recommended starting point for users.- It should be kept correct and concise, usable out-of-the-box.-- For more information, on how to customize this file, please see- http://wiki.apache.org/solr/SchemaXml--->--<schema name="example" version="1.1">- <!-- attribute "name" is the name of this schema and is only used for display purposes.- Applications should change this to reflect the nature of the search collection.- version="1.1" is Solr's version number for the schema syntax and semantics. It should- not normally be changed by applications.- 1.0: multiValued attribute did not exist, all fields are multiValued by nature- 1.1: multiValued attribute introduced, false by default -->-- <types>- <!-- field type definitions. The "name" attribute is- just a label to be used by field definitions. The "class"- attribute and any other attributes determine the real- behavior of the fieldType.- Class names starting with "solr" refer to java classes in the- org.apache.solr.analysis package.- -->-- <!-- The StrField type is not analyzed, but indexed/stored verbatim.- - StrField and TextField support an optional compressThreshold which- limits compression (if enabled in the derived fields) to values which- exceed a certain size (in characters).- -->- <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>-- <!-- boolean type: "true" or "false" -->- <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true"/>-- <!-- The optional sortMissingLast and sortMissingFirst attributes are- currently supported on types that are sorted internally as strings.- - If sortMissingLast="true", then a sort on this field will cause documents- without the field to come after documents with the field,- regardless of the requested sort order (asc or desc).- - If sortMissingFirst="true", then a sort on this field will cause documents- without the field to come before documents with the field,- regardless of the requested sort order.- - If sortMissingLast="false" and sortMissingFirst="false" (the default),- then default lucene sorting will be used which places docs without the- field first in an ascending sort and last in a descending sort.- -->--- <!-- numeric field types that store and index the text- value verbatim (and hence don't support range queries, since the- lexicographic ordering isn't equal to the numeric ordering) -->- <fieldType name="integer" class="solr.IntField" omitNorms="true"/>- <fieldType name="long" class="solr.LongField" omitNorms="true"/>- <fieldType name="float" class="solr.FloatField" omitNorms="true"/>- <fieldType name="double" class="solr.DoubleField" omitNorms="true"/>--- <!-- Numeric field types that manipulate the value into- a string value that isn't human-readable in its internal form,- but with a lexicographic ordering the same as the numeric ordering,- so that range queries work correctly. -->- <fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/>- <fieldType name="slong" class="solr.SortableLongField" sortMissingLast="true" omitNorms="true"/>- <fieldType name="sfloat" class="solr.SortableFloatField" sortMissingLast="true" omitNorms="true"/>- <fieldType name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true" omitNorms="true"/>--- <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and- is a more restricted form of the canonical representation of dateTime- http://www.w3.org/TR/xmlschema-2/#dateTime- The trailing "Z" designates UTC time and is mandatory.- Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z- All other components are mandatory.-- Expressions can also be used to denote calculations that should be- performed relative to "NOW" to determine the value, ie...-- NOW/HOUR- ... Round to the start of the current hour- NOW-1DAY- ... Exactly 1 day prior to now- NOW/DAY+6MONTHS+3DAYS- ... 6 months and 3 days in the future from the start of- the current day-- Consult the DateField javadocs for more information.- -->- <fieldType name="date" class="solr.DateField" sortMissingLast="true" omitNorms="true"/>--- <!-- The "RandomSortField" is not used to store or search any- data. You can declare fields of this type it in your schema- to generate psuedo-random orderings of your docs for sorting- purposes. The ordering is generated based on the field name- and the version of the index, As long as the index version- remains unchanged, and the same field name is reused,- the ordering of the docs will be consistent.- If you want differend psuedo-random orderings of documents,- for the same version of the index, use a dynamicField and- change the name- -->- <fieldType name="random" class="solr.RandomSortField" indexed="true" />-- <!-- solr.TextField allows the specification of custom text analyzers- specified as a tokenizer and a list of token filters. Different- analyzers may be specified for indexing and querying.-- The optional positionIncrementGap puts space between multiple fields of- this type on the same document, with the purpose of preventing false phrase- matching across fields.-- For more info on customizing your analyzer chain, please see- http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters- -->-- <!-- One can also specify an existing Analyzer class that has a- default constructor via the class attribute on the analyzer element- <fieldType name="text_greek" class="solr.TextField">- <analyzer class="org.apache.lucene.analysis.el.GreekAnalyzer"/>- </fieldType>- -->-- <!-- A text field that only splits on whitespace for exact matching of words -->- <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">- <analyzer>- <tokenizer class="solr.WhitespaceTokenizerFactory"/>- </analyzer>- </fieldType>-- <!-- A text field that uses WordDelimiterFilter to enable splitting and matching of- words on case-change, alpha numeric boundaries, and non-alphanumeric chars,- so that a query of "wifi" or "wi fi" could match a document containing "Wi-Fi".- Synonyms and stopwords are customized by external files, and stemming is enabled.- Duplicate tokens at the same position (which may result from Stemmed Synonyms or- WordDelim parts) are removed.- -->- <fieldType name="text" class="solr.TextField" positionIncrementGap="100">- <analyzer type="index">- <tokenizer class="solr.WhitespaceTokenizerFactory"/>- <!-- in this example, we will only use synonyms at query time- <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>- -->- <!-- Case insensitive stop word removal.- add enablePositionIncrements=true in both the index and query- analyzers to leave a 'gap' for more accurate phrase queries.- -->- <filter class="solr.StopFilterFactory"- ignoreCase="true"- words="stopwords.txt"- enablePositionIncrements="true"- />- <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>- <filter class="solr.LowerCaseFilterFactory"/>- <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>- <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>- </analyzer>- <analyzer type="query">- <tokenizer class="solr.WhitespaceTokenizerFactory"/>- <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>- <filter class="solr.StopFilterFactory"- ignoreCase="true"- words="stopwords.txt"- enablePositionIncrements="true"- />- <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>- <filter class="solr.LowerCaseFilterFactory"/>- <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>- <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>- </analyzer>- </fieldType>--- <!-- Less flexible matching, but less false matches. Probably not ideal for product names,- but may be good for SKUs. Can insert dashes in the wrong place and still match. -->- <fieldType name="textTight" class="solr.TextField" positionIncrementGap="100" >- <analyzer>- <tokenizer class="solr.WhitespaceTokenizerFactory"/>- <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/>- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>- <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>- <filter class="solr.LowerCaseFilterFactory"/>- <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>- <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>- </analyzer>- </fieldType>-- <!--- Setup simple analysis for spell checking- -->- <fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100" >- <analyzer>- <tokenizer class="solr.StandardTokenizerFactory"/>- <filter class="solr.LowerCaseFilterFactory"/>- <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>- </analyzer>- </fieldType>-- <!-- charFilter + "CharStream aware" WhitespaceTokenizer -->- <!--- <fieldType name="textCharNorm" class="solr.TextField" positionIncrementGap="100" >- <analyzer>- <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>- <tokenizer class="solr.CharStreamAwareWhitespaceTokenizerFactory"/>- </analyzer>- </fieldType>- -->-- <!-- This is an example of using the KeywordTokenizer along- With various TokenFilterFactories to produce a sortable field- that does not include some properties of the source text- -->- <fieldType name="alphaOnlySort" class="solr.TextField" sortMissingLast="true" omitNorms="true">- <analyzer>- <!-- KeywordTokenizer does no actual tokenizing, so the entire- input string is preserved as a single token- -->- <tokenizer class="solr.KeywordTokenizerFactory"/>- <!-- The LowerCase TokenFilter does what you expect, which can be- when you want your sorting to be case insensitive- -->- <filter class="solr.LowerCaseFilterFactory" />- <!-- The TrimFilter removes any leading or trailing whitespace -->- <filter class="solr.TrimFilterFactory" />- <!-- The PatternReplaceFilter gives you the flexibility to use- Java Regular expression to replace any sequence of characters- matching a pattern with an arbitrary replacement string,- which may include back refrences to portions of the orriginal- string matched by the pattern.-- See the Java Regular Expression documentation for more- infomation on pattern and replacement string syntax.-- http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/package-summary.html- -->- <filter class="solr.PatternReplaceFilterFactory"- pattern="([^a-z])" replacement="" replace="all"- />- </analyzer>- </fieldType>-- <fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" >- <analyzer>- <tokenizer class="solr.StandardTokenizerFactory"/>- <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>- </analyzer>- </fieldtype>--- <!-- since fields of this type are by default not stored or indexed, any data added to- them will be ignored outright- -->- <fieldtype name="ignored" stored="false" indexed="false" class="solr.StrField" />-- </types>--- <fields>- <!-- Valid attributes for fields:- name: mandatory - the name for the field- type: mandatory - the name of a previously defined type from the <types> section- indexed: true if this field should be indexed (searchable or sortable)- stored: true if this field should be retrievable- compressed: [false] if this field should be stored using gzip compression- (this will only apply if the field type is compressable; among- the standard field types, only TextField and StrField are)- multiValued: true if this field may contain multiple values per document- omitNorms: (expert) set to true to omit the norms associated with- this field (this disables length normalization and index-time- boosting for the field, and saves some memory). Only full-text- fields or fields that need an index-time boost need norms.- termVectors: [false] set to true to store the term vector for a given field.- When using MoreLikeThis, fields used for similarity should be stored for- best performance.- termPositions: Store position information with the term vector. This will increase storage costs.- termOffsets: Store offset information with the term vector. This will increase storage costs.- -->-- <field name="id" type="string" indexed="true" stored="true" required="true" />- <field name="sku" type="textTight" indexed="true" stored="true" omitNorms="true"/>- <field name="name" type="text" indexed="true" stored="true"/>- <field name="nameSort" type="string" indexed="true" stored="false"/>- <field name="alphaNameSort" type="alphaOnlySort" indexed="true" stored="false"/>- <field name="manu" type="text" indexed="true" stored="true" omitNorms="true"/>- <field name="cat" type="text_ws" indexed="true" stored="true" multiValued="true" omitNorms="true" termVectors="true" />- <field name="features" type="text" indexed="true" stored="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>- <field name="includes" type="text" indexed="true" stored="true"/>-- <field name="weight" type="sfloat" indexed="true" stored="true"/>- <field name="price" type="sfloat" indexed="true" stored="true"/>- <!-- "default" values can be specified for fields, indicating which- value should be used if no value is specified when adding a document.- -->- <field name="popularity" type="sint" indexed="true" stored="true" default="0"/>- <field name="inStock" type="boolean" indexed="true" stored="true"/>-- <!-- Some sample docs exists solely to demonstrate the spellchecker- functionality, this is the only field they container.- Typically you might build the spellchecker of "catchall" type field- containing all of the text in each document- -->- <field name="word" type="string" indexed="true" stored="true"/>--- <!-- catchall field, containing all other searchable text fields (implemented- via copyField further on in this schema -->- <field name="text" type="text" indexed="true" stored="false" multiValued="true"/>-- <!-- non-tokenized version of manufacturer to make it easier to sort or group- results by manufacturer. copied from "manu" via copyField -->- <field name="manu_exact" type="string" indexed="true" stored="false"/>-- <!-- Here, default is used to create a "timestamp" field indicating- When each document was indexed.- -->- <field name="timestamp" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>-- <field name="spell" type="textSpell" indexed="true" stored="true" multiValued="true"/>- <!-- Dynamic field definitions. If a field name is not found, dynamicFields- will be used if the name matches any of the patterns.- RESTRICTION: the glob-like pattern in the name attribute must have- a "*" only at the start or the end.- EXAMPLE: name="*_i" will match any field ending in _i (like myid_i, z_i)- Longer patterns will be matched first. if equal size patterns- both match, the first appearing in the schema will be used. -->- <dynamicField name="*_i" type="sint" indexed="true" stored="true"/>- <dynamicField name="*_s" type="string" indexed="true" stored="true"/>- <dynamicField name="*_l" type="slong" indexed="true" stored="true"/>- <dynamicField name="*_t" type="text" indexed="true" stored="true"/>- <dynamicField name="*_b" type="boolean" indexed="true" stored="true"/>- <dynamicField name="*_f" type="sfloat" indexed="true" stored="true"/>- <dynamicField name="*_d" type="sdouble" indexed="true" stored="true"/>- <dynamicField name="*_dt" type="date" indexed="true" stored="true"/>-- <dynamicField name="random*" type="random" />-- <!-- uncomment the following to ignore any fields that don't already match an existing- field name or dynamic field, rather than reporting them as an error.- alternately, change the type="ignored" to some other type e.g. "text" if you want- unknown fields indexed and/or stored by default -->- <!--dynamicField name="*" type="ignored" /-->-- </fields>-- <!-- Field to use to determine and enforce document uniqueness.- Unless this field is marked with required="false", it will be a required field- -->- <uniqueKey>id</uniqueKey>-- <!-- field for the QueryParser to use when an explicit fieldname is absent -->- <defaultSearchField>text</defaultSearchField>-- <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->- <solrQueryParser defaultOperator="OR"/>-- <!-- copyField commands copy one field to another at the time a document- is added to the index. It's used either to index the same field differently,- or to add multiple fields to the same field for easier/faster searching. -->- <copyField source="id" dest="sku"/>-- <copyField source="incubationdate_dt" dest="incubationdate_s"/>- <copyField source="cat" dest="text"/>- <copyField source="name" dest="text"/>- <copyField source="name" dest="nameSort"/>- <copyField source="name" dest="alphaNameSort"/>- <copyField source="manu" dest="text"/>- <copyField source="features" dest="text"/>- <copyField source="includes" dest="text"/>-- <copyField source="manu" dest="manu_exact"/>-- <copyField source="name" dest="spell"/>-- <!-- Similarity is the scoring routine for each document vs. a query.- A custom similarity may be specified here, but the default is fine- for most applications. -->- <!-- <similarity class="org.apache.lucene.search.DefaultSimilarity"/> -->- <!-- ... OR ...- Specify a SimilarityFactory class name implementation- allowing parameters to be used.- -->- <!--- <similarity class="com.example.solr.CustomSimilarityFactory">- <str name="paramkey">param value</str>- </similarity>- -->---</schema>diff --git a/client/javascript/example/testsolr/solr/conf/scripts.conf b/client/javascript/example/testsolr/solr/conf/scripts.confdeleted file mode 100644index f58b262ae0c..00000000000--- a/client/javascript/example/testsolr/solr/conf/scripts.conf+++ /dev/null@@ -1,24 +0,0 @@-# Licensed to the Apache Software Foundation (ASF) under one or more-# contributor license agreements. See the NOTICE file distributed with-# this work for additional information regarding copyright ownership.-# The ASF licenses this file to You under the Apache License, Version 2.0-# (the "License"); you may not use this file except in compliance with-# the License. You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.--user=-solr_hostname=localhost-solr_port=8983-rsyncd_port=18983-data_dir=-webapp_name=solr-master_host=-master_data_dir=-master_status_dir=diff --git a/client/javascript/example/testsolr/solr/conf/solrconfig.xml b/client/javascript/example/testsolr/solr/conf/solrconfig.xmldeleted file mode 100755index d2b495c6ff3..00000000000--- a/client/javascript/example/testsolr/solr/conf/solrconfig.xml+++ /dev/null@@ -1,698 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<config>- <!-- Set this to 'false' if you want solr to continue working after it has- encountered an severe configuration error. In a production environment,- you may want solr to keep working even if one handler is mis-configured.-- You may also set this to false using by setting the system property:- -Dsolr.abortOnConfigurationError=false- -->- <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>-- <!-- Used to specify an alternate directory to hold all index data- other than the default ./data under the Solr home.- If replication is in use, this should match the replication configuration. -->- <dataDir>${solr.data.dir:./solr/data}</dataDir>--- <indexDefaults>- <!-- Values here affect all index writers and act as a default unless overridden. -->- <useCompoundFile>false</useCompoundFile>-- <mergeFactor>10</mergeFactor>- <!--- If both ramBufferSizeMB and maxBufferedDocs is set, then Lucene will flush based on whichever limit is hit first.-- -->- <!--<maxBufferedDocs>1000</maxBufferedDocs>-->- <!-- Tell Lucene when to flush documents to disk.- Giving Lucene more memory for indexing means faster indexing at the cost of more RAM-- If both ramBufferSizeMB and maxBufferedDocs is set, then Lucene will flush based on whichever limit is hit first.-- -->- <ramBufferSizeMB>32</ramBufferSizeMB>- <maxMergeDocs>2147483647</maxMergeDocs>- <maxFieldLength>10000</maxFieldLength>- <writeLockTimeout>1000</writeLockTimeout>- <commitLockTimeout>10000</commitLockTimeout>-- <!--- Expert: Turn on Lucene's auto commit capability.- This causes intermediate segment flushes to write a new lucene- index descriptor, enabling it to be opened by an external- IndexReader.- NOTE: Despite the name, this value does not have any relation to Solr's autoCommit functionality- -->- <!--<luceneAutoCommit>false</luceneAutoCommit>-->- <!--- Expert:- The Merge Policy in Lucene controls how merging is handled by Lucene. The default in 2.3 is the LogByteSizeMergePolicy, previous- versions used LogDocMergePolicy.-- LogByteSizeMergePolicy chooses segments to merge based on their size. The Lucene 2.2 default, LogDocMergePolicy chose when- to merge based on number of documents-- Other implementations of MergePolicy must have a no-argument constructor- -->- <!--<mergePolicy>org.apache.lucene.index.LogByteSizeMergePolicy</mergePolicy>-->-- <!--- Expert:- The Merge Scheduler in Lucene controls how merges are performed. The ConcurrentMergeScheduler (Lucene 2.3 default)- can perform merges in the background using separate threads. The SerialMergeScheduler (Lucene 2.2 default) does not.- -->- <!--<mergeScheduler>org.apache.lucene.index.ConcurrentMergeScheduler</mergeScheduler>-->-- <!--- This option specifies which Lucene LockFactory implementation to use.-- single = SingleInstanceLockFactory - suggested for a read-only index- or when there is no possibility of another process trying- to modify the index.- native = NativeFSLockFactory- simple = SimpleFSLockFactory-- (For backwards compatibility with Solr 1.2, 'simple' is the default- if not specified.)- -->- <lockType>single</lockType>- </indexDefaults>-- <mainIndex>- <!-- options specific to the main on-disk lucene index -->- <useCompoundFile>false</useCompoundFile>- <ramBufferSizeMB>32</ramBufferSizeMB>- <mergeFactor>10</mergeFactor>- <!-- Deprecated -->- <!--<maxBufferedDocs>1000</maxBufferedDocs>-->- <maxMergeDocs>2147483647</maxMergeDocs>- <maxFieldLength>10000</maxFieldLength>-- <!-- If true, unlock any held write or commit locks on startup.- This defeats the locking mechanism that allows multiple- processes to safely access a lucene index, and should be- used with care.- This is not needed if lock type is 'none' or 'single'- -->- <unlockOnStartup>false</unlockOnStartup>- </mainIndex>-- <!-- Enables JMX if and only if an existing MBeanServer is found, use- this if you want to configure JMX through JVM parameters. Remove- this to disable exposing Solr configuration and statistics to JMX.-- If you want to connect to a particular server, specify the agentId- e.g. <jmx agentId="myAgent" />-- If you want to start a new MBeanServer, specify the serviceUrl- e.g <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr" />-- For more details see http://wiki.apache.org/solr/SolrJmx- -->- <jmx />-- <!-- the default high-performance update handler -->- <updateHandler class="solr.DirectUpdateHandler2">-- <!-- A prefix of "solr." for class names is an alias that- causes solr to search appropriate packages, including- org.apache.solr.(search|update|request|core|analysis)- -->-- <!-- Perform a <commit/> automatically under certain conditions:- maxDocs - number of updates since last commit is greater than this- maxTime - oldest uncommited update (in ms) is this long ago- <autoCommit>- <maxDocs>10000</maxDocs>- <maxTime>1000</maxTime>- </autoCommit>- -->-- <!-- The RunExecutableListener executes an external command.- exe - the name of the executable to run- dir - dir to use as the current working directory. default="."- wait - the calling thread waits until the executable returns. default="true"- args - the arguments to pass to the program. default=nothing- env - environment variables to set. default=nothing- -->- <!-- A postCommit event is fired after every commit or optimize command- <listener event="postCommit" class="solr.RunExecutableListener">- <str name="exe">solr/bin/snapshooter</str>- <str name="dir">.</str>- <bool name="wait">true</bool>- <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>- <arr name="env"> <str>MYVAR=val1</str> </arr>- </listener>- -->- <!-- A postOptimize event is fired only after every optimize command, useful- in conjunction with index distribution to only distribute optimized indicies- <listener event="postOptimize" class="solr.RunExecutableListener">- <str name="exe">snapshooter</str>- <str name="dir">solr/bin</str>- <bool name="wait">true</bool>- </listener>- -->-- </updateHandler>--- <query>- <!-- Maximum number of clauses in a boolean query... can affect- range or prefix queries that expand to big boolean- queries. An exception is thrown if exceeded. -->- <maxBooleanClauses>1024</maxBooleanClauses>--- <!-- Cache used by SolrIndexSearcher for filters (DocSets),- unordered sets of *all* documents that match a query.- When a new searcher is opened, its caches may be prepopulated- or "autowarmed" using data from caches in the old searcher.- autowarmCount is the number of items to prepopulate. For LRUCache,- the autowarmed items will be the most recently accessed items.- Parameters:- class - the SolrCache implementation (currently only LRUCache)- size - the maximum number of entries in the cache- initialSize - the initial capacity (number of entries) of- the cache. (seel java.util.HashMap)- autowarmCount - the number of entries to prepopulate from- and old cache.- -->- <filterCache- class="solr.LRUCache"- size="512"- initialSize="512"- autowarmCount="128"/>-- <!-- queryResultCache caches results of searches - ordered lists of- document ids (DocList) based on a query, a sort, and the range- of documents requested. -->- <queryResultCache- class="solr.LRUCache"- size="512"- initialSize="512"- autowarmCount="32"/>-- <!-- documentCache caches Lucene Document objects (the stored fields for each document).- Since Lucene internal document ids are transient, this cache will not be autowarmed. -->- <documentCache- class="solr.LRUCache"- size="512"- initialSize="512"- autowarmCount="0"/>-- <!-- If true, stored fields that are not requested will be loaded lazily.-- This can result in a significant speed improvement if the usual case is to- not load all stored fields, especially if the skipped fields are large compressed- text fields.- -->- <enableLazyFieldLoading>true</enableLazyFieldLoading>-- <!-- Example of a generic cache. These caches may be accessed by name- through SolrIndexSearcher.getCache(),cacheLookup(), and cacheInsert().- The purpose is to enable easy caching of user/application level data.- The regenerator argument should be specified as an implementation- of solr.search.CacheRegenerator if autowarming is desired. -->- <!--- <cache name="myUserCache"- class="solr.LRUCache"- size="4096"- initialSize="1024"- autowarmCount="1024"- regenerator="org.mycompany.mypackage.MyRegenerator"- />- -->-- <!-- An optimization that attempts to use a filter to satisfy a search.- If the requested sort does not include score, then the filterCache- will be checked for a filter matching the query. If found, the filter- will be used as the source of document ids, and then the sort will be- applied to that.- <useFilterForSortedQuery>true</useFilterForSortedQuery>- -->-- <!-- An optimization for use with the queryResultCache. When a search- is requested, a superset of the requested number of document ids- are collected. For example, if a search for a particular query- requests matching documents 10 through 19, and queryWindowSize is 50,- then documents 0 through 49 will be collected and cached. Any further- requests in that range can be satisfied via the cache. -->- <queryResultWindowSize>50</queryResultWindowSize>-- <!-- Maximum number of documents to cache for any entry in the- queryResultCache. -->- <queryResultMaxDocsCached>200</queryResultMaxDocsCached>-- <!-- This entry enables an int hash representation for filters (DocSets)- when the number of items in the set is less than maxSize. For smaller- sets, this representation is more memory efficient, more efficient to- iterate over, and faster to take intersections. -->- <HashDocSet maxSize="3000" loadFactor="0.75"/>-- <!-- a newSearcher event is fired whenever a new searcher is being prepared- and there is a current searcher handling requests (aka registered). -->- <!-- QuerySenderListener takes an array of NamedList and executes a- local query request for each NamedList in sequence. -->- <listener event="newSearcher" class="solr.QuerySenderListener">- <arr name="queries">- <lst> <str name="q">solr</str> <str name="start">0</str> <str name="rows">10</str> </lst>- <lst> <str name="q">rocks</str> <str name="start">0</str> <str name="rows">10</str> </lst>- <lst><str name="q">static newSearcher warming query from solrconfig.xml</str></lst>- </arr>- </listener>-- <!-- a firstSearcher event is fired whenever a new searcher is being- prepared but there is no current registered searcher to handle- requests or to gain autowarming data from. -->- <listener event="firstSearcher" class="solr.QuerySenderListener">- <arr name="queries">- <lst> <str name="q">fast_warm</str> <str name="start">0</str> <str name="rows">10</str> </lst>- <lst><str name="q">static firstSearcher warming query from solrconfig.xml</str></lst>- </arr>- </listener>-- <!-- If a search request comes in and there is no current registered searcher,- then immediately register the still warming searcher and use it. If- "false" then all requests will block until the first searcher is done- warming. -->- <useColdSearcher>false</useColdSearcher>-- <!-- Maximum number of searchers that may be warming in the background- concurrently. An error is returned if this limit is exceeded. Recommend- 1-2 for read-only slaves, higher for masters w/o cache warming. -->- <maxWarmingSearchers>2</maxWarmingSearchers>-- </query>-- <!--- Let the dispatch filter handler /select?qt=XXX- handleSelect=true will use consistent error handling for /select and /update- handleSelect=false will use solr1.1 style error formatting- -->- <requestDispatcher handleSelect="true" >- <!--Make sure your system has some authentication before enabling remote streaming! -->- <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" />-- <!-- Set HTTP caching related parameters (for proxy caches and clients).-- To get the behaviour of Solr 1.2 (ie: no caching related headers)- use the never304="true" option and do not specify a value for- <cacheControl>- -->- <!-- <httpCaching never304="true"> -->- <httpCaching lastModifiedFrom="openTime"- etagSeed="Solr">- <!-- lastModFrom="openTime" is the default, the Last-Modified value- (and validation against If-Modified-Since requests) will all be- relative to when the current Searcher was opened.- You can change it to lastModFrom="dirLastMod" if you want the- value to exactly corrispond to when the physical index was last- modified.-- etagSeed="..." is an option you can change to force the ETag- header (and validation against If-None-Match requests) to be- differnet even if the index has not changed (ie: when making- significant changes to your config file)-- lastModifiedFrom and etagSeed are both ignored if you use the- never304="true" option.- -->- <!-- If you include a <cacheControl> directive, it will be used to- generate a Cache-Control header, as well as an Expires header- if the value contains "max-age="-- By default, no Cache-Control header is generated.-- You can use the <cacheControl> option even if you have set- never304="true"- -->- <!-- <cacheControl>max-age=30, public</cacheControl> -->- </httpCaching>- </requestDispatcher>--- <!-- requestHandler plugins... incoming queries will be dispatched to the- correct handler based on the path or the qt (query type) param.- Names starting with a '/' are accessed with the a path equal to the- registered name. Names without a leading '/' are accessed with:- http://host/app/select?qt=name- If no qt is defined, the requestHandler that declares default="true"- will be used.- -->- <requestHandler name="standard" class="solr.SearchHandler" default="true">- <!-- default values for query parameters -->- <lst name="defaults">- <str name="echoParams">explicit</str>- <!--- <int name="rows">10</int>- <str name="fl">*</str>- <str name="version">2.1</str>- -->- </lst>- </requestHandler>--- <!-- DisMaxRequestHandler allows easy searching across multiple fields- for simple user-entered phrases. It's implementation is now- just the standard SearchHandler with a default query type- of "dismax".- see http://wiki.apache.org/solr/DisMaxRequestHandler- -->- <requestHandler name="dismax" class="solr.SearchHandler" >- <lst name="defaults">- <str name="defType">dismax</str>- <str name="echoParams">explicit</str>- <float name="tie">0.01</float>- <str name="qf">- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4- </str>- <str name="pf">- text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9- </str>- <str name="bf">- ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3- </str>- <str name="fl">- id,name,price,score- </str>- <str name="mm">- 2<-1 5<-2 6<90%- </str>- <int name="ps">100</int>- <str name="q.alt">*:*</str>- <!-- example highlighter config, enable per-query with hl=true -->- <str name="hl.fl">text features name</str>- <!-- for this field, we want no fragmenting, just highlighting -->- <str name="f.name.hl.fragsize">0</str>- <!-- instructs Solr to return the field itself if no query terms are- found -->- <str name="f.name.hl.alternateField">name</str>- <str name="f.text.hl.fragmenter">regex</str> <!-- defined below -->- </lst>- </requestHandler>-- <!-- Note how you can register the same handler multiple times with- different names (and different init parameters)- -->- <requestHandler name="partitioned" class="solr.SearchHandler" >- <lst name="defaults">- <str name="defType">dismax</str>- <str name="echoParams">explicit</str>- <str name="qf">text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0</str>- <str name="mm">2<-1 5<-2 6<90%</str>- <!-- This is an example of using Date Math to specify a constantly- moving date range in a config...- -->- <str name="bq">incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2</str>- </lst>- <!-- In addition to defaults, "appends" params can be specified- to identify values which should be appended to the list of- multi-val params from the query (or the existing "defaults").-- In this example, the param "fq=instock:true" will be appended to- any query time fq params the user may specify, as a mechanism for- partitioning the index, independent of any user selected filtering- that may also be desired (perhaps as a result of faceted searching).-- NOTE: there is *absolutely* nothing a client can do to prevent these- "appends" values from being used, so don't use this mechanism- unless you are sure you always want it.- -->- <lst name="appends">- <str name="fq">inStock:true</str>- </lst>- <!-- "invariants" are a way of letting the Solr maintainer lock down- the options available to Solr clients. Any params values- specified here are used regardless of what values may be specified- in either the query, the "defaults", or the "appends" params.-- In this example, the facet.field and facet.query params are fixed,- limiting the facets clients can use. Faceting is not turned on by- default - but if the client does specify facet=true in the request,- these are the only facets they will be able to see counts for;- regardless of what other facet.field or facet.query params they- may specify.-- NOTE: there is *absolutely* nothing a client can do to prevent these- "invariants" values from being used, so don't use this mechanism- unless you are sure you always want it.- -->- <lst name="invariants">- <str name="facet.field">cat</str>- <str name="facet.field">manu_exact</str>- <str name="facet.query">price:[* TO 500]</str>- <str name="facet.query">price:[500 TO *]</str>- </lst>- </requestHandler>--- <!--- Search components are registered to SolrCore and used by Search Handlers-- By default, the following components are avaliable:-- <searchComponent name="query" class="org.apache.solr.handler.component.QueryComponent" />- <searchComponent name="facet" class="org.apache.solr.handler.component.FacetComponent" />- <searchComponent name="mlt" class="org.apache.solr.handler.component.MoreLikeThisComponent" />- <searchComponent name="highlight" class="org.apache.solr.handler.component.HighlightComponent" />- <searchComponent name="debug" class="org.apache.solr.handler.component.DebugComponent" />-- Default configuration in a requestHandler would look like:- <arr name="components">- <str>query</str>- <str>facet</str>- <str>mlt</str>- <str>highlight</str>- <str>debug</str>- </arr>-- If you register a searchComponent to one of the standard names, that will be used instead.- To insert handlers before or after the 'standard' components, use:-- <arr name="first-components">- <str>myFirstComponentName</str>- </arr>-- <arr name="last-components">- <str>myLastComponentName</str>- </arr>- -->-- <!-- The spell check component can return a list of alternative spelling- suggestions. -->- <searchComponent name="spellcheck" class="solr.SpellCheckComponent">-- <str name="queryAnalyzerFieldType">textSpell</str>-- <lst name="spellchecker">- <str name="name">default</str>- <str name="field">spell</str>- <str name="spellcheckIndexDir">./spellchecker1</str>-- </lst>- <lst name="spellchecker">- <str name="name">jarowinkler</str>- <str name="field">spell</str>- <!-- Use a different Distance Measure -->- <str name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str>- <str name="spellcheckIndexDir">./spellchecker2</str>-- </lst>-- <lst name="spellchecker">- <str name="classname">solr.FileBasedSpellChecker</str>- <str name="name">file</str>- <str name="sourceLocation">spellings.txt</str>- <str name="characterEncoding">UTF-8</str>- <str name="spellcheckIndexDir">./spellcheckerFile</str>- </lst>- </searchComponent>-- <!-- a request handler utilizing the spellcheck component -->- <requestHandler name="/spellCheckCompRH" class="solr.SearchHandler">- <lst name="defaults">- <!-- omp = Only More Popular -->- <str name="spellcheck.onlyMorePopular">false</str>- <!-- exr = Extended Results -->- <str name="spellcheck.extendedResults">false</str>- <!-- The number of suggestions to return -->- <str name="spellcheck.count">1</str>- </lst>- <arr name="last-components">- <str>spellcheck</str>- </arr>- </requestHandler>-- <!-- a search component that enables you to configure the top results for- a given query regardless of the normal lucene scoring.-->- <searchComponent name="elevator" class="solr.QueryElevationComponent" >- <!-- pick a fieldType to analyze queries -->- <str name="queryFieldType">string</str>- <str name="config-file">elevate.xml</str>- </searchComponent>-- <!-- a request handler utilizing the elevator component -->- <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">- <lst name="defaults">- <str name="echoParams">explicit</str>- </lst>- <arr name="last-components">- <str>elevator</str>- </arr>- </requestHandler>--- <!-- Update request handler.-- Note: Since solr1.1 requestHandlers requires a valid content type header if posted in- the body. For example, curl now requires: -H 'Content-type:text/xml; charset=utf-8'- The response format differs from solr1.1 formatting and returns a standard error code.-- To enable solr1.1 behavior, remove the /update handler or change its path- -->- <requestHandler name="/update" class="solr.XmlUpdateRequestHandler" />-- <!--- Analysis request handler. Since Solr 1.3. Use to returnhow a document is analyzed. Useful- for debugging and as a token server for other types of applications- -->- <requestHandler name="/analysis" class="solr.AnalysisRequestHandler" />--- <!-- CSV update handler, loaded on demand -->- <requestHandler name="/update/csv" class="solr.CSVRequestHandler" startup="lazy" />--- <!--- Admin Handlers - This will register all the standard admin RequestHandlers. Adding- this single handler is equivalent to registering:-- <requestHandler name="/admin/luke" class="org.apache.solr.handler.admin.LukeRequestHandler" />- <requestHandler name="/admin/system" class="org.apache.solr.handler.admin.SystemInfoHandler" />- <requestHandler name="/admin/plugins" class="org.apache.solr.handler.admin.PluginInfoHandler" />- <requestHandler name="/admin/threads" class="org.apache.solr.handler.admin.ThreadDumpHandler" />- <requestHandler name="/admin/properties" class="org.apache.solr.handler.admin.PropertiesRequestHandler" />- <requestHandler name="/admin/file" class="org.apache.solr.handler.admin.ShowFileRequestHandler" >-- If you wish to hide files under ${solr.home}/conf, explicitly register the ShowFileRequestHandler using:- <requestHandler name="/admin/file" class="org.apache.solr.handler.admin.ShowFileRequestHandler" >- <lst name="invariants">- <str name="hidden">synonyms.txt</str>- <str name="hidden">anotherfile.txt</str>- </lst>- </requestHandler>- -->- <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />-- <!-- ping/healthcheck -->- <requestHandler name="/admin/ping" class="PingRequestHandler">- <lst name="defaults">- <str name="qt">standard</str>- <str name="q">solrpingquery</str>- <str name="echoParams">all</str>- </lst>- </requestHandler>-- <!-- Echo the request contents back to the client -->- <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >- <lst name="defaults">- <str name="echoParams">explicit</str> <!-- for all params (including the default etc) use: 'all' -->- <str name="echoHandler">true</str>- </lst>- </requestHandler>-- <highlighting>- <!-- Configure the standard fragmenter -->- <!-- This could most likely be commented out in the "default" case -->- <fragmenter name="gap" class="org.apache.solr.highlight.GapFragmenter" default="true">- <lst name="defaults">- <int name="hl.fragsize">100</int>- </lst>- </fragmenter>-- <!-- A regular-expression-based fragmenter (f.i., for sentence extraction) -->- <fragmenter name="regex" class="org.apache.solr.highlight.RegexFragmenter">- <lst name="defaults">- <!-- slightly smaller fragsizes work better because of slop -->- <int name="hl.fragsize">70</int>- <!-- allow 50% slop on fragment sizes -->- <float name="hl.regex.slop">0.5</float>- <!-- a basic sentence pattern -->- <str name="hl.regex.pattern">[-\w ,/\n\"']{20,200}</str>- </lst>- </fragmenter>-- <!-- Configure the standard formatter -->- <formatter name="html" class="org.apache.solr.highlight.HtmlFormatter" default="true">- <lst name="defaults">- <str name="hl.simple.pre"><![CDATA[<em>]]></str>- <str name="hl.simple.post"><![CDATA[</em>]]></str>- </lst>- </formatter>- </highlighting>---- <!-- queryResponseWriter plugins... query responses will be written using the- writer specified by the 'wt' request parameter matching the name of a registered- writer.- The "default" writer is the default and will be used if 'wt' is not specified- in the request. XMLResponseWriter will be used if nothing is specified here.- The json, python, and ruby writers are also available by default.-- <queryResponseWriter name="xml" class="org.apache.solr.request.XMLResponseWriter" default="true"/>- <queryResponseWriter name="json" class="org.apache.solr.request.JSONResponseWriter"/>- <queryResponseWriter name="python" class="org.apache.solr.request.PythonResponseWriter"/>- <queryResponseWriter name="ruby" class="org.apache.solr.request.RubyResponseWriter"/>- <queryResponseWriter name="php" class="org.apache.solr.request.PHPResponseWriter"/>- <queryResponseWriter name="phps" class="org.apache.solr.request.PHPSerializedResponseWriter"/>-- <queryResponseWriter name="custom" class="com.example.MyResponseWriter"/>- -->-- <!-- XSLT response writer transforms the XML output by any xslt file found- in Solr's conf/xslt directory. Changes to xslt files are checked for- every xsltCacheLifetimeSeconds.- -->- <queryResponseWriter name="xslt" class="org.apache.solr.request.XSLTResponseWriter">- <int name="xsltCacheLifetimeSeconds">5</int>- </queryResponseWriter>-- <queryResponseWriter name="velocity" class="org.apache.solr.request.VelocityResponseWriter"/>-- <!-- example of registering a query parser- <queryParser name="lucene" class="org.apache.solr.search.LuceneQParserPlugin"/>- -->-- <!-- example of registering a custom function parser- <valueSourceParser name="myfunc" class="com.mycompany.MyValueSourceParser" />- -->-- <!-- config for the admin interface -->- <admin>- <defaultQuery>solr</defaultQuery>-- <!-- configure a healthcheck file for servers behind a loadbalancer- <healthcheck type="file">server-enabled</healthcheck>- -->- </admin>--</config>diff --git a/client/javascript/example/testsolr/solr/conf/spellings.txt b/client/javascript/example/testsolr/solr/conf/spellings.txtdeleted file mode 100644index d7ede6f5611..00000000000--- a/client/javascript/example/testsolr/solr/conf/spellings.txt+++ /dev/null@@ -1,2 +0,0 @@-pizza-history\ No newline at end of filediff --git a/client/javascript/example/testsolr/solr/conf/stopwords.txt b/client/javascript/example/testsolr/solr/conf/stopwords.txtdeleted file mode 100644index b5824da3263..00000000000--- a/client/javascript/example/testsolr/solr/conf/stopwords.txt+++ /dev/null@@ -1,58 +0,0 @@-# Licensed to the Apache Software Foundation (ASF) under one or more-# contributor license agreements. See the NOTICE file distributed with-# this work for additional information regarding copyright ownership.-# The ASF licenses this file to You under the Apache License, Version 2.0-# (the "License"); you may not use this file except in compliance with-# the License. You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.--#------------------------------------------------------------------------# a couple of test stopwords to test that the words are really being-# configured from this file:-stopworda-stopwordb--#Standard english stop words taken from Lucene's StopAnalyzer-a-an-and-are-as-at-be-but-by-for-if-in-into-is-it-no-not-of-on-or-s-such-t-that-the-their-then-there-these-they-this-to-was-will-with-diff --git a/client/javascript/example/testsolr/solr/conf/synonyms.txt b/client/javascript/example/testsolr/solr/conf/synonyms.txtdeleted file mode 100644index b0e31cb7ec8..00000000000--- a/client/javascript/example/testsolr/solr/conf/synonyms.txt+++ /dev/null@@ -1,31 +0,0 @@-# The ASF licenses this file to You under the Apache License, Version 2.0-# (the "License"); you may not use this file except in compliance with-# the License. You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.--#------------------------------------------------------------------------#some test synonym mappings unlikely to appear in real input text-aaa => aaaa-bbb => bbbb1 bbbb2-ccc => cccc1,cccc2-a\=>a => b\=>b-a\,a => b\,b-fooaaa,baraaa,bazaaa--# Some synonym groups specific to this example-GB,gib,gigabyte,gigabytes-MB,mib,megabyte,megabytes-Television, Televisions, TV, TVs-#notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming-#after us won't split it into two words.--# Synonym mappings can be used for spelling correction too-pixima => pixma-diff --git a/client/javascript/example/testsolr/solr/conf/velocity/VM_global_library.vm b/client/javascript/example/testsolr/solr/conf/velocity/VM_global_library.vmdeleted file mode 100644index af117df1ebf..00000000000--- a/client/javascript/example/testsolr/solr/conf/velocity/VM_global_library.vm+++ /dev/null@@ -1,36 +0,0 @@-#macro(url_for_filters $filter_queries)- /solr/itas?fq=$filter_queries-#end--#macro(url_for_home)/solr/itas#end--#macro(url_for_start $start)/solr/itas?start=$start#end--#macro(url_for_nested_facet $field $value)/solr/itas?fq=$field:$value#end--#macro(link_to_previous_page $text)- #if($page.current_page_number > 1)- #set($prev_start = $page.start - $page.results_per_page)- <a class="prev-page" href="#url_for_start($prev_start)">$text</a>- #end-#end--#macro(link_to_next_page $text)- #if($page.current_page_number < $page.page_count)- #set($next_start = $page.start + $page.results_per_page)- <a class="next-page" href="#url_for_start($next_start)">$text</a>- #end-#end--#macro(link_to_page $page_number $text)- #if($page_number == $page.current_page_number)- $text- #else- #if($page_number <= $page.page_count)- #set($page_start = $page_number * $page.results_per_page - $page.results_per_page)- <a class="page" href="#url_for_start($page_start)">$text</a>- #end- #end-#end--#macro(param $key)$request.params.get($key)#enddiff --git a/client/javascript/example/testsolr/solr/conf/velocity/browse.vm b/client/javascript/example/testsolr/solr/conf/velocity/browse.vmdeleted file mode 100644index 9c1b4e11489..00000000000--- a/client/javascript/example/testsolr/solr/conf/velocity/browse.vm+++ /dev/null@@ -1,70 +0,0 @@-#set($doclist=$response.values.response)-#set($searcher=$request.searcher)-#set($params=$request.params)-#set($fields=$response.returnFields)-<html>-## TODO: Implement layouts-<head>- <title>#param('title')</title>- <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>- <script type="text/javascript" src="/solr/admin/jquery-1.2.3.min.js"></script>- <link rel="stylesheet" type="text/css" href="/solr/admin/file?file=/velocity/main.css&contentType=text/css"/>-</head>-<body>--<div>- #parse("header.vm")-- #set($filter_queries = $params.getParams('fq'))- #foreach($fq in $filter_queries)- > <a href="#url_for_filters($filter_queries.subList(0,$velocityCount))">$fq</a>- #end-</div>--<div class="query-box">- <form id="query-form" action="/solr/itas" method="GET">- Query: <input type="text" name="q" value="$!params.get('q')"/>- </form>-</div>--<div class="facet-fields">- #foreach($field in $response.values.facet_counts.facet_fields)- <span class="facet-field">$field.key</span>- <ul>- #foreach($facet in $field.value)- #set($facetURL = "#url_for_nested_facet($field.key, $facet.key)")- #if ($facetURL != '')- <li><a href="$facetURL">$facet.key</a> ($facet.value)</li>- #end- #end- </ul>- #end-</div>--<div class="pagination">- <span><span class="results-found">$page.results_found</span> results found in ${response.responseHeader.QTime} ms</span>-</div>--<div class="results">- #foreach($id in $doclist.iterator())- #set($doc = $searcher.doc($id,$response.returnFields))- #parse("hit.vm")- #end-</div>--<div class="pagination">- #link_to_previous_page("previous")- <span class="results-found">$page.results_found</span> results found.- Page <span class="page-num">$page.current_page_number</span> of <span- class="page-count">$page.page_count</span>- #link_to_next_page("next")-- <br/>-</div>--<div>- #parse("footer.vm")-</div>--</body>-</html>\ No newline at end of filediff --git a/client/javascript/example/testsolr/solr/conf/velocity/header.vm b/client/javascript/example/testsolr/solr/conf/velocity/header.vmdeleted file mode 100644index e69de29bb2d..00000000000diff --git a/client/javascript/example/testsolr/solr/conf/velocity/hit.vm b/client/javascript/example/testsolr/solr/conf/velocity/hit.vmdeleted file mode 100644index 34c884dd501..00000000000--- a/client/javascript/example/testsolr/solr/conf/velocity/hit.vm+++ /dev/null@@ -1,18 +0,0 @@-<div class="result-document">- #foreach($field in $doc.fields)- #if($response.returnFields.contains("*") || $response.returnFields.contains($field.name()))- <p>- <span class="field-name">$field.name() :</span>- <span>- ##TODO: Need to provide helpers for field values, including HTML escaping and highlighting- #foreach($value in $doc.getFieldables($field.name()))- $request.schema.getFieldType($field.name()).toExternal($value)- #end- </span>- </p>- #end- #end- #if($params.getBool("debugQuery",false))- <a href="#" onclick='jQuery(this).siblings("pre").toggle(); return false;'>toggle explain</a> <pre style="display:none">$response.values.debug.explain.get($doc.get('id'))</pre>- #end-</div>diff --git a/client/javascript/example/testsolr/solr/conf/velocity/main.css b/client/javascript/example/testsolr/solr/conf/velocity/main.cssdeleted file mode 100644index 11f01716b3a..00000000000--- a/client/javascript/example/testsolr/solr/conf/velocity/main.css+++ /dev/null@@ -1,96 +0,0 @@-.array-field {- border: 2px solid #474747;- background: #FFE9D8;- padding: 5px;- margin: 5px;-}--.array-field-list li {- list-style: circle;- margin-left: 20px;-}--body {- font-family: Arial, Helvetica, sans-serif;- font-size: 10pt;-}--.constraints-title {- background: gray;-}--.facet-fields {- float: left;- margin: 5px;- margin-top: 0px;- background: #FEC293;- border: 2px solid #474747;- width: 185px;- padding: 2px;-}--.facet-field {- font-weight: bold;-}--.highlight {- color: white;- background-color: gray;- border: 1px black solid;-}--.highlight-box {- margin-left: 15px;-}--.field-name {- font-weight: bold;-}--.highlighted-facet-field {- background: white;-}--#logo {- margin: 10px;-}--.query-box, .constraints {- padding: 5px;- margin: 5px;- border: 3px solid #474747;- color: white;- background: #FD9644;- font-weight: bold;- font-size: 16px;-}--.query-box input {- margin-left: 8px;- width: 85%;-}--.pagination {- padding-left: 33%;- font-weight: bold;- background: gray;- color: white;- margin: 5px;- margin-left: 200px;-}--.result-document {- border: 3px solid #474747;- background: #FEC293;- padding: 5px;- margin: 5px;- margin-left: 200px;-}--.selected-facet-field {- font-weight: bold;-}--li.show {- list-style: disc;-}\ No newline at end of filediff --git a/client/javascript/example/testsolr/solr/conf/xslt/example.xsl b/client/javascript/example/testsolr/solr/conf/xslt/example.xsldeleted file mode 100644index 6832a1d4cb3..00000000000--- a/client/javascript/example/testsolr/solr/conf/xslt/example.xsl+++ /dev/null@@ -1,132 +0,0 @@-<?xml version='1.0' encoding='UTF-8'?>--<!--- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- -->--<!--- Simple transform of Solr query results to HTML- -->-<xsl:stylesheet version='1.0'- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'->-- <xsl:output media-type="text/html; charset=UTF-8" encoding="UTF-8"/>-- <xsl:variable name="title" select="concat('Solr search results (',response/result/@numFound,' documents)')"/>-- <xsl:template match='/'>- <html>- <head>- <title><xsl:value-of select="$title"/></title>- <xsl:call-template name="css"/>- </head>- <body>- <h1><xsl:value-of select="$title"/></h1>- <div class="note">- This has been formatted by the sample "example.xsl" transform -- use your own XSLT to get a nicer page- </div>- <xsl:apply-templates select="response/result/doc"/>- </body>- </html>- </xsl:template>-- <xsl:template match="doc">- <xsl:variable name="pos" select="position()"/>- <div class="doc">- <table width="100%">- <xsl:apply-templates>- <xsl:with-param name="pos"><xsl:value-of select="$pos"/></xsl:with-param>- </xsl:apply-templates>- </table>- </div>- </xsl:template>-- <xsl:template match="doc/*[@name='score']" priority="100">- <xsl:param name="pos"></xsl:param>- <tr>- <td class="name">- <xsl:value-of select="@name"/>- </td>- <td class="value">- <xsl:value-of select="."/>-- <xsl:if test="boolean(//lst[@name='explain'])">- <xsl:element name="a">- <!-- can't allow whitespace here -->- <xsl:attribute name="href">javascript:toggle("<xsl:value-of select="concat('exp-',$pos)" />");</xsl:attribute>?</xsl:element>- <br/>- <xsl:element name="div">- <xsl:attribute name="class">exp</xsl:attribute>- <xsl:attribute name="id">- <xsl:value-of select="concat('exp-',$pos)" />- </xsl:attribute>- <xsl:value-of select="//lst[@name='explain']/str[position()=$pos]"/>- </xsl:element>- </xsl:if>- </td>- </tr>- </xsl:template>-- <xsl:template match="doc/arr" priority="100">- <tr>- <td class="name">- <xsl:value-of select="@name"/>- </td>- <td class="value">- <ul>- <xsl:for-each select="*">- <li><xsl:value-of select="."/></li>- </xsl:for-each>- </ul>- </td>- </tr>- </xsl:template>--- <xsl:template match="doc/*">- <tr>- <td class="name">- <xsl:value-of select="@name"/>- </td>- <td class="value">- <xsl:value-of select="."/>- </td>- </tr>- </xsl:template>-- <xsl:template match="*"/>-- <xsl:template name="css">- <script>- function toggle(id) {- var obj = document.getElementById(id);- obj.style.display = (obj.style.display != 'block') ? 'block' : 'none';- }- </script>- <style type="text/css">- body { font-family: "Lucida Grande", sans-serif }- td.name { font-style: italic; font-size:80%; }- td { vertical-align: top; }- ul { margin: 0px; margin-left: 1em; padding: 0px; }- .note { font-size:80%; }- .doc { margin-top: 1em; border-top: solid grey 1px; }- .exp { display: none; font-family: monospace; white-space: pre; }- </style>- </xsl:template>--</xsl:stylesheet>diff --git a/client/javascript/example/testsolr/solr/conf/xslt/example_atom.xsl b/client/javascript/example/testsolr/solr/conf/xslt/example_atom.xsldeleted file mode 100644index e1c7d5a2af2..00000000000--- a/client/javascript/example/testsolr/solr/conf/xslt/example_atom.xsl+++ /dev/null@@ -1,67 +0,0 @@-<?xml version='1.0' encoding='UTF-8'?>--<!--- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- -->--<!--- Simple transform of Solr query results to Atom- -->--<xsl:stylesheet version='1.0'- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>-- <xsl:output- method="xml"- encoding="utf-8"- media-type="text/xml; charset=UTF-8"- />-- <xsl:template match='/'>- <xsl:variable name="query" select="response/lst[@name='responseHeader']/lst[@name='params']/str[@name='q']"/>- <feed xmlns="http://www.w3.org/2005/Atom">- <title>Example Solr Atom 1.0 Feed</title>- <subtitle>- This has been formatted by the sample "example_atom.xsl" transform -- use your own XSLT to get a nicer Atom feed.- </subtitle>- <author>- <name>Apache Solr</name>- <email>[email protected]</email>- </author>- <link rel="self" type="application/atom+xml"- href="http://localhost:8983/solr/q={$query}&wt=xslt&tr=atom.xsl"/>- <updated>- <xsl:value-of select="response/result/doc[position()=1]/date[@name='timestamp']"/>- </updated>- <id>tag:localhost,2007:example</id>- <xsl:apply-templates select="response/result/doc"/>- </feed>- </xsl:template>-- <!-- search results xslt -->- <xsl:template match="doc">- <xsl:variable name="id" select="str[@name='id']"/>- <entry>- <title><xsl:value-of select="str[@name='name']"/></title>- <link href="http://localhost:8983/solr/select?q={$id}"/>- <id>tag:localhost,2007:<xsl:value-of select="$id"/></id>- <summary><xsl:value-of select="arr[@name='features']"/></summary>- <updated><xsl:value-of select="date[@name='timestamp']"/></updated>- </entry>- </xsl:template>--</xsl:stylesheet>diff --git a/client/javascript/example/testsolr/solr/conf/xslt/example_rss.xsl b/client/javascript/example/testsolr/solr/conf/xslt/example_rss.xsldeleted file mode 100644index 3e09e654d5f..00000000000--- a/client/javascript/example/testsolr/solr/conf/xslt/example_rss.xsl+++ /dev/null@@ -1,66 +0,0 @@-<?xml version='1.0' encoding='UTF-8'?>--<!--- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- -->--<!--- Simple transform of Solr query results to RSS- -->--<xsl:stylesheet version='1.0'- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>-- <xsl:output- method="xml"- encoding="utf-8"- media-type="text/xml; charset=UTF-8"- />- <xsl:template match='/'>- <rss version="2.0">- <channel>- <title>Example Solr RSS 2.0 Feed</title>- <link>http://localhost:8983/solr</link>- <description>- This has been formatted by the sample "example_rss.xsl" transform -- use your own XSLT to get a nicer RSS feed.- </description>- <language>en-us</language>- <docs>http://localhost:8983/solr</docs>- <xsl:apply-templates select="response/result/doc"/>- </channel>- </rss>- </xsl:template>-- <!-- search results xslt -->- <xsl:template match="doc">- <xsl:variable name="id" select="str[@name='id']"/>- <xsl:variable name="timestamp" select="date[@name='timestamp']"/>- <item>- <title><xsl:value-of select="str[@name='name']"/></title>- <link>- http://localhost:8983/solr/select?q=id:<xsl:value-of select="$id"/>- </link>- <description>- <xsl:value-of select="arr[@name='features']"/>- </description>- <pubDate><xsl:value-of select="$timestamp"/></pubDate>- <guid>- http://localhost:8983/solr/select?q=id:<xsl:value-of select="$id"/>- </guid>- </item>- </xsl:template>-</xsl:stylesheet>diff --git a/client/javascript/example/testsolr/solr/conf/xslt/luke.xsl b/client/javascript/example/testsolr/solr/conf/xslt/luke.xsldeleted file mode 100644index 6e9a064d7e0..00000000000--- a/client/javascript/example/testsolr/solr/conf/xslt/luke.xsl+++ /dev/null@@ -1,337 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->---<!--- Display the luke request handler with graphs- -->-<xsl:stylesheet- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"- xmlns="http://www.w3.org/1999/xhtml"- version="1.0"- >- <xsl:output- method="html"- encoding="UTF-8"- media-type="text/html; charset=UTF-8"- doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"- />-- <xsl:variable name="title">Solr Luke Request Handler Response</xsl:variable>-- <xsl:template match="/">- <html xmlns="http://www.w3.org/1999/xhtml">- <head>- <link rel="stylesheet" type="text/css" href="solr-admin.css"/>- <link rel="icon" href="favicon.ico" type="image/ico"/>- <link rel="shortcut icon" href="favicon.ico" type="image/ico"/>- <title>- <xsl:value-of select="$title"/>- </title>- <xsl:call-template name="css"/>-- </head>- <body>- <h1>- <xsl:value-of select="$title"/>- </h1>- <div class="doc">- <ul>- <xsl:if test="response/lst[@name='index']">- <li>- <a href="#index">Index Statistics</a>- </li>- </xsl:if>- <xsl:if test="response/lst[@name='fields']">- <li>- <a href="#fields">Field Statistics</a>- <ul>- <xsl:for-each select="response/lst[@name='fields']/lst">- <li>- <a href="#{@name}">- <xsl:value-of select="@name"/>- </a>- </li>- </xsl:for-each>- </ul>- </li>- </xsl:if>- <xsl:if test="response/lst[@name='doc']">- <li>- <a href="#doc">Document statistics</a>- </li>- </xsl:if>- </ul>- </div>- <xsl:if test="response/lst[@name='index']">- <h2><a name="index"/>Index Statistics</h2>- <xsl:apply-templates select="response/lst[@name='index']"/>- </xsl:if>- <xsl:if test="response/lst[@name='fields']">- <h2><a name="fields"/>Field Statistics</h2>- <xsl:apply-templates select="response/lst[@name='fields']"/>- </xsl:if>- <xsl:if test="response/lst[@name='doc']">- <h2><a name="doc"/>Document statistics</h2>- <xsl:apply-templates select="response/lst[@name='doc']"/>- </xsl:if>- </body>- </html>- </xsl:template>-- <xsl:template match="lst">- <xsl:if test="parent::lst">- <tr>- <td colspan="2">- <div class="doc">- <xsl:call-template name="list"/>- </div>- </td>- </tr>- </xsl:if>- <xsl:if test="not(parent::lst)">- <div class="doc">- <xsl:call-template name="list"/>- </div>- </xsl:if>- </xsl:template>-- <xsl:template name="list">- <xsl:if test="count(child::*)>0">- <table>- <thead>- <tr>- <th colspan="2">- <p>- <a name="{@name}"/>- </p>- <xsl:value-of select="@name"/>- </th>- </tr>- </thead>- <tbody>- <xsl:choose>- <xsl:when- test="@name='histogram'">- <tr>- <td colspan="2">- <xsl:call-template name="histogram"/>- </td>- </tr>- </xsl:when>- <xsl:otherwise>- <xsl:apply-templates/>- </xsl:otherwise>- </xsl:choose>- </tbody>- </table>- </xsl:if>- </xsl:template>-- <xsl:template name="histogram">- <div class="doc">- <xsl:call-template name="barchart">- <xsl:with-param name="max_bar_width">50</xsl:with-param>- <xsl:with-param name="iwidth">800</xsl:with-param>- <xsl:with-param name="iheight">160</xsl:with-param>- <xsl:with-param name="fill">blue</xsl:with-param>- </xsl:call-template>- </div>- </xsl:template>-- <xsl:template name="barchart">- <xsl:param name="max_bar_width"/>- <xsl:param name="iwidth"/>- <xsl:param name="iheight"/>- <xsl:param name="fill"/>- <xsl:variable name="max">- <xsl:for-each select="int">- <xsl:sort data-type="number" order="descending"/>- <xsl:if test="position()=1">- <xsl:value-of select="."/>- </xsl:if>- </xsl:for-each>- </xsl:variable>- <xsl:variable name="bars">- <xsl:value-of select="count(int)"/>- </xsl:variable>- <xsl:variable name="bar_width">- <xsl:choose>- <xsl:when test="$max_bar_width < ($iwidth div $bars)">- <xsl:value-of select="$max_bar_width"/>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="$iwidth div $bars"/>- </xsl:otherwise>- </xsl:choose>- </xsl:variable>- <table class="histogram">- <tbody>- <tr>- <xsl:for-each select="int">- <td>- <xsl:value-of select="."/>- <div class="histogram">- <xsl:attribute name="style">background-color: <xsl:value-of select="$fill"/>; width: <xsl:value-of select="$bar_width"/>px; height: <xsl:value-of select="($iheight*number(.)) div $max"/>px;</xsl:attribute>- </div>- </td>- </xsl:for-each>- </tr>- <tr>- <xsl:for-each select="int">- <td>- <xsl:value-of select="@name"/>- </td>- </xsl:for-each>- </tr>- </tbody>- </table>- </xsl:template>-- <xsl:template name="keyvalue">- <xsl:choose>- <xsl:when test="@name">- <tr>- <td class="name">- <xsl:value-of select="@name"/>- </td>- <td class="value">- <xsl:value-of select="."/>- </td>- </tr>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="."/>- </xsl:otherwise>- </xsl:choose>- </xsl:template>-- <xsl:template match="int|bool|long|float|double|uuid|date">- <xsl:call-template name="keyvalue"/>- </xsl:template>-- <xsl:template match="arr">- <tr>- <td class="name">- <xsl:value-of select="@name"/>- </td>- <td class="value">- <ul>- <xsl:for-each select="child::*">- <li>- <xsl:apply-templates/>- </li>- </xsl:for-each>- </ul>- </td>- </tr>- </xsl:template>-- <xsl:template match="str">- <xsl:choose>- <xsl:when test="@name='schema' or @name='index' or @name='flags'">- <xsl:call-template name="schema"/>- </xsl:when>- <xsl:otherwise>- <xsl:call-template name="keyvalue"/>- </xsl:otherwise>- </xsl:choose>- </xsl:template>-- <xsl:template name="schema">- <tr>- <td class="name">- <xsl:value-of select="@name"/>- </td>- <td class="value">- <xsl:if test="contains(.,'unstored')">- <xsl:value-of select="."/>- </xsl:if>- <xsl:if test="not(contains(.,'unstored'))">- <xsl:call-template name="infochar2string">- <xsl:with-param name="charList">- <xsl:value-of select="."/>- </xsl:with-param>- </xsl:call-template>- </xsl:if>- </td>- </tr>- </xsl:template>-- <xsl:template name="infochar2string">- <xsl:param name="i">1</xsl:param>- <xsl:param name="charList"/>-- <xsl:variable name="char">- <xsl:value-of select="substring($charList,$i,1)"/>- </xsl:variable>- <xsl:choose>- <xsl:when test="$char='I'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='I']"/> - </xsl:when>- <xsl:when test="$char='T'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='T']"/> - </xsl:when>- <xsl:when test="$char='S'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='S']"/> - </xsl:when>- <xsl:when test="$char='M'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='M']"/> - </xsl:when>- <xsl:when test="$char='V'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='V']"/> - </xsl:when>- <xsl:when test="$char='o'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='o']"/> - </xsl:when>- <xsl:when test="$char='p'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='p']"/> - </xsl:when>- <xsl:when test="$char='O'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='O']"/> - </xsl:when>- <xsl:when test="$char='L'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='L']"/> - </xsl:when>- <xsl:when test="$char='B'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='B']"/> - </xsl:when>- <xsl:when test="$char='C'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='C']"/> - </xsl:when>- <xsl:when test="$char='f'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='f']"/> - </xsl:when>- <xsl:when test="$char='l'">- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='l']"/> -- </xsl:when>- </xsl:choose>-- <xsl:if test="not($i>=string-length($charList))">- <xsl:call-template name="infochar2string">- <xsl:with-param name="i">- <xsl:value-of select="$i+1"/>- </xsl:with-param>- <xsl:with-param name="charList">- <xsl:value-of select="$charList"/>- </xsl:with-param>- </xsl:call-template>- </xsl:if>- </xsl:template>- <xsl:template name="css">- <style type="text/css">- <![CDATA[- td.name {font-style: italic; font-size:80%; }- .doc { margin: 0.5em; border: solid grey 1px; }- .exp { display: none; font-family: monospace; white-space: pre; }- div.histogram { background: none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;}- table.histogram { width: auto; vertical-align: bottom; }- table.histogram td, table.histogram th { text-align: center; vertical-align: bottom; border-bottom: 1px solid #ff9933; width: auto; }- ]]>- </style>- </xsl:template>-</xsl:stylesheet>diff --git a/client/javascript/lib/jquery-autocomplete/jquery.autocomplete.css b/client/javascript/lib/jquery-autocomplete/jquery.autocomplete.cssdeleted file mode 100644index 91b6228337a..00000000000--- a/client/javascript/lib/jquery-autocomplete/jquery.autocomplete.css+++ /dev/null@@ -1,48 +0,0 @@-.ac_results {- padding: 0px;- border: 1px solid black;- background-color: white;- overflow: hidden;- z-index: 99999;-}--.ac_results ul {- width: 100%;- list-style-position: outside;- list-style: none;- padding: 0;- margin: 0;-}--.ac_results li {- margin: 0px;- padding: 2px 5px;- cursor: default;- display: block;- /*- if width will be 100% horizontal scrollbar will apear- when scroll mode will be used- */- /*width: 100%;*/- font: menu;- font-size: 12px;- /*- it is very important, if line-height not setted or setted- in relative units scroll will be broken in firefox- */- line-height: 16px;- overflow: hidden;-}--.ac_loading {- background: white url('indicator.gif') right center no-repeat;-}--.ac_odd {- background-color: #eee;-}--.ac_over {- background-color: #0A246A;- color: white;-}diff --git a/client/javascript/lib/jquery-autocomplete/jquery.autocomplete.js b/client/javascript/lib/jquery-autocomplete/jquery.autocomplete.jsdeleted file mode 100644index 5ad9178f862..00000000000--- a/client/javascript/lib/jquery-autocomplete/jquery.autocomplete.js+++ /dev/null@@ -1,759 +0,0 @@-/*- * Autocomplete - jQuery plugin 1.0.2- *- * Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer- *- * Dual licensed under the MIT and GPL licenses:- * http://www.opensource.org/licenses/mit-license.php- * http://www.gnu.org/licenses/gpl.html- *- * Revision: $Id: jquery.autocomplete.js 5747 2008-06-25 18:30:55Z joern.zaefferer $- *- */--;(function($) {--$.fn.extend({- autocomplete: function(urlOrData, options) {- var isUrl = typeof urlOrData == "string";- options = $.extend({}, $.Autocompleter.defaults, {- url: isUrl ? urlOrData : null,- data: isUrl ? null : urlOrData,- delay: isUrl ? $.Autocompleter.defaults.delay : 10,- max: options && !options.scroll ? 10 : 150- }, options);-- // if highlight is set to false, replace it with a do-nothing function- options.highlight = options.highlight || function(value) { return value; };-- // if the formatMatch option is not specified, then use formatItem for backwards compatibility- options.formatMatch = options.formatMatch || options.formatItem;-- return this.each(function() {- new $.Autocompleter(this, options);- });- },- result: function(handler) {- return this.bind("result", handler);- },- search: function(handler) {- return this.trigger("search", [handler]);- },- flushCache: function() {- return this.trigger("flushCache");- },- setOptions: function(options){- return this.trigger("setOptions", [options]);- },- unautocomplete: function() {- return this.trigger("unautocomplete");- }-});--$.Autocompleter = function(input, options) {-- var KEY = {- UP: 38,- DOWN: 40,- DEL: 46,- TAB: 9,- RETURN: 13,- ESC: 27,- COMMA: 188,- PAGEUP: 33,- PAGEDOWN: 34,- BACKSPACE: 8- };-- // Create $ object for input element- var $input = $(input).attr("autocomplete", "off").addClass(options.inputClass);-- var timeout;- var previousValue = "";- var cache = $.Autocompleter.Cache(options);- var hasFocus = 0;- var lastKeyPressCode;- var config = {- mouseDownOnSelect: false- };- var select = $.Autocompleter.Select(options, input, selectCurrent, config);-- var blockSubmit;-- // prevent form submit in opera when selecting with return key- $.browser.opera && $(input.form).bind("submit.autocomplete", function() {- if (blockSubmit) {- blockSubmit = false;- return false;- }- });-- // only opera doesn't trigger keydown multiple times while pressed, others don't work with keypress at all- $input.bind(($.browser.opera ? "keypress" : "keydown") + ".autocomplete", function(event) {- // track last key pressed- lastKeyPressCode = event.keyCode;- switch(event.keyCode) {-- case KEY.UP:- event.preventDefault();- if ( select.visible() ) {- select.prev();- } else {- onChange(0, true);- }- break;-- case KEY.DOWN:- event.preventDefault();- if ( select.visible() ) {- select.next();- } else {- onChange(0, true);- }- break;-- case KEY.PAGEUP:- event.preventDefault();- if ( select.visible() ) {- select.pageUp();- } else {- onChange(0, true);- }- break;-- case KEY.PAGEDOWN:- event.preventDefault();- if ( select.visible() ) {- select.pageDown();- } else {- onChange(0, true);- }- break;-- // matches also semicolon- case options.multiple && $.trim(options.multipleSeparator) == "," && KEY.COMMA:- case KEY.TAB:- case KEY.RETURN:- if( selectCurrent() ) {- // stop default to prevent a form submit, Opera needs special handling- event.preventDefault();- blockSubmit = true;- return false;- }- break;-- case KEY.ESC:- select.hide();- break;-- default:- clearTimeout(timeout);- timeout = setTimeout(onChange, options.delay);- break;- }- }).focus(function(){- // track whether the field has focus, we shouldn't process any- // results if the field no longer has focus- hasFocus++;- }).blur(function() {- hasFocus = 0;- if (!config.mouseDownOnSelect) {- hideResults();- }- }).click(function() {- // show select when clicking in a focused field- if ( hasFocus++ > 1 && !select.visible() ) {- onChange(0, true);- }- }).bind("search", function() {- // TODO why not just specifying both arguments?- var fn = (arguments.length > 1) ? arguments[1] : null;- function findValueCallback(q, data) {- var result;- if( data && data.length ) {- for (var i=0; i < data.length; i++) {- if( data[i].result.toLowerCase() == q.toLowerCase() ) {- result = data[i];- break;- }- }- }- if( typeof fn == "function" ) fn(result);- else $input.trigger("result", result && [result.data, result.value]);- }- $.each(trimWords($input.val()), function(i, value) {- request(value, findValueCallback, findValueCallback);- });- }).bind("flushCache", function() {- cache.flush();- }).bind("setOptions", function() {- $.extend(options, arguments[1]);- // if we've updated the data, repopulate- if ( "data" in arguments[1] )- cache.populate();- }).bind("unautocomplete", function() {- select.unbind();- $input.unbind();- $(input.form).unbind(".autocomplete");- });--- function selectCurrent() {- var selected = select.selected();- if( !selected )- return false;-- var v = selected.result;- previousValue = v;-- if ( options.multiple ) {- var words = trimWords($input.val());- if ( words.length > 1 ) {- v = words.slice(0, words.length - 1).join( options.multipleSeparator ) + options.multipleSeparator + v;- }- v += options.multipleSeparator;- }-- $input.val(v);- hideResultsNow();- $input.trigger("result", [selected.data, selected.value]);- return true;- }-- function onChange(crap, skipPrevCheck) {- if( lastKeyPressCode == KEY.DEL ) {- select.hide();- return;- }-- var currentValue = $input.val();-- if ( !skipPrevCheck && currentValue == previousValue )- return;-- previousValue = currentValue;-- currentValue = lastWord(currentValue);- if ( currentValue.length >= options.minChars) {- $input.addClass(options.loadingClass);- if (!options.matchCase)- currentValue = currentValue.toLowerCase();- request(currentValue, receiveData, hideResultsNow);- } else {- stopLoading();- select.hide();- }- };-- function trimWords(value) {- if ( !value ) {- return [""];- }- var words = value.split( options.multipleSeparator );- var result = [];- $.each(words, function(i, value) {- if ( $.trim(value) )- result[i] = $.trim(value);- });- return result;- }-- function lastWord(value) {- if ( !options.multiple )- return value;- var words = trimWords(value);- return words[words.length - 1];- }-- // fills in the input box w/the first match (assumed to be the best match)- // q: the term entered- // sValue: the first matching result- function autoFill(q, sValue){- // autofill in the complete box w/the first match as long as the user hasn't entered in more data- // if the last user key pressed was backspace, don't autofill- if( options.autoFill && (lastWord($input.val()).toLowerCase() == q.toLowerCase()) && lastKeyPressCode != KEY.BACKSPACE ) {- // fill in the value (keep the case the user has typed)- $input.val($input.val() + sValue.substring(lastWord(previousValue).length));- // select the portion of the value not typed by the user (so the next character will erase)- $.Autocompleter.Selection(input, previousValue.length, previousValue.length + sValue.length);- }- };-- function hideResults() {- clearTimeout(timeout);- timeout = setTimeout(hideResultsNow, 200);- };-- function hideResultsNow() {- var wasVisible = select.visible();- select.hide();- clearTimeout(timeout);- stopLoading();- if (options.mustMatch) {- // call search and run callback- $input.search(- function (result){- // if no value found, clear the input box- if( !result ) {- if (options.multiple) {- var words = trimWords($input.val()).slice(0, -1);- $input.val( words.join(options.multipleSeparator) + (words.length ? options.multipleSeparator : "") );- }- else- $input.val( "" );- }- }- );- }- if (wasVisible)- // position cursor at end of input field- $.Autocompleter.Selection(input, input.value.length, input.value.length);- };-- function receiveData(q, data) {- if ( data && data.length && hasFocus ) {- stopLoading();- select.display(data, q);- autoFill(q, data[0].value);- select.show();- } else {- hideResultsNow();- }- };-- function request(term, success, failure) {- if (!options.matchCase)- term = term.toLowerCase();- var data = cache.load(term);- // recieve the cached data- if (data && data.length) {- success(term, data);- // if an AJAX url has been supplied, try loading the data now- } else if( (typeof options.url == "string") && (options.url.length > 0) ){-- var extraParams = {- timestamp: +new Date()- };- $.each(options.extraParams, function(key, param) {- extraParams[key] = typeof param == "function" ? param() : param;- });-- $.ajax({- // try to leverage ajaxQueue plugin to abort previous requests- mode: "abort",- // limit abortion to this input- port: "autocomplete" + input.name,- dataType: options.dataType,- url: options.url,- data: $.extend({- q: lastWord(term),- limit: options.max- }, extraParams),- success: function(data) {- var parsed = options.parse && options.parse(data) || parse(data);- cache.add(term, parsed);- success(term, parsed);- }- });- } else {- // if we have a failure, we need to empty the list -- this prevents the the [TAB] key from selecting the last successful match- select.emptyList();- failure(term);- }- };-- function parse(data) {- var parsed = [];- var rows = data.split("\n");- for (var i=0; i < rows.length; i++) {- var row = $.trim(rows[i]);- if (row) {- row = row.split("|");- parsed[parsed.length] = {- data: row,- value: row[0],- result: options.formatResult && options.formatResult(row, row[0]) || row[0]- };- }- }- return parsed;- };-- function stopLoading() {- $input.removeClass(options.loadingClass);- };--};--$.Autocompleter.defaults = {- inputClass: "ac_input",- resultsClass: "ac_results",- loadingClass: "ac_loading",- minChars: 1,- delay: 400,- matchCase: false,- matchSubset: true,- matchContains: false,- cacheLength: 10,- max: 100,- mustMatch: false,- extraParams: {},- selectFirst: true,- formatItem: function(row) { return row[0]; },- formatMatch: null,- autoFill: false,- width: 0,- multiple: false,- multipleSeparator: ", ",- highlight: function(value, term) {- return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>");- },- scroll: true,- scrollHeight: 180-};--$.Autocompleter.Cache = function(options) {-- var data = {};- var length = 0;-- function matchSubset(s, sub) {- if (!options.matchCase)- s = s.toLowerCase();- var i = s.indexOf(sub);- if (i == -1) return false;- return i == 0 || options.matchContains;- };-- function add(q, value) {- if (length > options.cacheLength){- flush();- }- if (!data[q]){- length++;- }- data[q] = value;- }-- function populate(){- if( !options.data ) return false;- // track the matches- var stMatchSets = {},- nullData = 0;-- // no url was specified, we need to adjust the cache length to make sure it fits the local data store- if( !options.url ) options.cacheLength = 1;-- // track all options for minChars = 0- stMatchSets[""] = [];-- // loop through the array and create a lookup structure- for ( var i = 0, ol = options.data.length; i < ol; i++ ) {- var rawValue = options.data[i];- // if rawValue is a string, make an array otherwise just reference the array- rawValue = (typeof rawValue == "string") ? [rawValue] : rawValue;-- var value = options.formatMatch(rawValue, i+1, options.data.length);- if ( value === false )- continue;-- var firstChar = value.charAt(0).toLowerCase();- // if no lookup array for this character exists, look it up now- if( !stMatchSets[firstChar] )- stMatchSets[firstChar] = [];-- // if the match is a string- var row = {- value: value,- data: rawValue,- result: options.formatResult && options.formatResult(rawValue) || value- };-- // push the current match into the set list- stMatchSets[firstChar].push(row);-- // keep track of minChars zero items- if ( nullData++ < options.max ) {- stMatchSets[""].push(row);- }- };-- // add the data items to the cache- $.each(stMatchSets, function(i, value) {- // increase the cache size- options.cacheLength++;- // add to the cache- add(i, value);- });- }-- // populate any existing data- setTimeout(populate, 25);-- function flush(){- data = {};- length = 0;- }-- return {- flush: flush,- add: add,- populate: populate,- load: function(q) {- if (!options.cacheLength || !length)- return null;- /*- * if dealing w/local data and matchContains than we must make sure- * to loop through all the data collections looking for matches- */- if( !options.url && options.matchContains ){- // track all matches- var csub = [];- // loop through all the data grids for matches- for( var k in data ){- // don't search through the stMatchSets[""] (minChars: 0) cache- // this prevents duplicates- if( k.length > 0 ){- var c = data[k];- $.each(c, function(i, x) {- // if we've got a match, add it to the array- if (matchSubset(x.value, q)) {- csub.push(x);- }- });- }- }- return csub;- } else- // if the exact item exists, use it- if (data[q]){- return data[q];- } else- if (options.matchSubset) {- for (var i = q.length - 1; i >= options.minChars; i--) {- var c = data[q.substr(0, i)];- if (c) {- var csub = [];- $.each(c, function(i, x) {- if (matchSubset(x.value, q)) {- csub[csub.length] = x;- }- });- return csub;- }- }- }- return null;- }- };-};--$.Autocompleter.Select = function (options, input, select, config) {- var CLASSES = {- ACTIVE: "ac_over"- };-- var listItems,- active = -1,- data,- term = "",- needsInit = true,- element,- list;-- // Create results- function init() {- if (!needsInit)- return;- element = $("<div/>")- .hide()- .addClass(options.resultsClass)- .css("position", "absolute")- .appendTo(document.body);-- list = $("<ul/>").appendTo(element).mouseover( function(event) {- if(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') {- active = $("li", list).removeClass(CLASSES.ACTIVE).index(target(event));- $(target(event)).addClass(CLASSES.ACTIVE);- }- }).click(function(event) {- $(target(event)).addClass(CLASSES.ACTIVE);- select();- // TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus- input.focus();- return false;- }).mousedown(function() {- config.mouseDownOnSelect = true;- }).mouseup(function() {- config.mouseDownOnSelect = false;- });-- if( options.width > 0 )- element.css("width", options.width);-- needsInit = false;- }-- function target(event) {- var element = event.target;- while(element && element.tagName != "LI")- element = element.parentNode;- // more fun with IE, sometimes event.target is empty, just ignore it then- if(!element)- return [];- return element;- }-- function moveSelect(step) {- listItems.slice(active, active + 1).removeClass(CLASSES.ACTIVE);- movePosition(step);- var activeItem = listItems.slice(active, active + 1).addClass(CLASSES.ACTIVE);- if(options.scroll) {- var offset = 0;- listItems.slice(0, active).each(function() {- offset += this.offsetHeight;- });- if((offset + activeItem[0].offsetHeight - list.scrollTop()) > list[0].clientHeight) {- list.scrollTop(offset + activeItem[0].offsetHeight - list.innerHeight());- } else if(offset < list.scrollTop()) {- list.scrollTop(offset);- }- }- };-- function movePosition(step) {- active += step;- if (active < 0) {- active = listItems.size() - 1;- } else if (active >= listItems.size()) {- active = 0;- }- }-- function limitNumberOfItems(available) {- return options.max && options.max < available- ? options.max- : available;- }-- function fillList() {- list.empty();- var max = limitNumberOfItems(data.length);- for (var i=0; i < max; i++) {- if (!data[i])- continue;- var formatted = options.formatItem(data[i].data, i+1, max, data[i].value, term);- if ( formatted === false )- continue;- var li = $("<li/>").html( options.highlight(formatted, term) ).addClass(i%2 == 0 ? "ac_even" : "ac_odd").appendTo(list)[0];- $.data(li, "ac_data", data[i]);- }- listItems = list.find("li");- if ( options.selectFirst ) {- listItems.slice(0, 1).addClass(CLASSES.ACTIVE);- active = 0;- }- // apply bgiframe if available- if ( $.fn.bgiframe )- list.bgiframe();- }-- return {- display: function(d, q) {- init();- data = d;- term = q;- fillList();- },- next: function() {- moveSelect(1);- },- prev: function() {- moveSelect(-1);- },- pageUp: function() {- if (active != 0 && active - 8 < 0) {- moveSelect( -active );- } else {- moveSelect(-8);- }- },- pageDown: function() {- if (active != listItems.size() - 1 && active + 8 > listItems.size()) {- moveSelect( listItems.size() - 1 - active );- } else {- moveSelect(8);- }- },- hide: function() {- element && element.hide();- listItems && listItems.removeClass(CLASSES.ACTIVE);- active = -1;- },- visible : function() {- return element && element.is(":visible");- },- current: function() {- return this.visible() && (listItems.filter("." + CLASSES.ACTIVE)[0] || options.selectFirst && listItems[0]);- },- show: function() {- var offset = $(input).offset();- element.css({- width: typeof options.width == "string" || options.width > 0 ? options.width : $(input).width(),- top: offset.top + input.offsetHeight,- left: offset.left- }).show();- if(options.scroll) {- list.scrollTop(0);- list.css({- maxHeight: options.scrollHeight,- overflow: 'auto'- });-- if($.browser.msie && typeof document.body.style.maxHeight === "undefined") {- var listHeight = 0;- listItems.each(function() {- listHeight += this.offsetHeight;- });- var scrollbarsVisible = listHeight > options.scrollHeight;- list.css('height', scrollbarsVisible ? options.scrollHeight : listHeight );- if (!scrollbarsVisible) {- // IE doesn't recalculate width when scrollbar disappears- listItems.width( list.width() - parseInt(listItems.css("padding-left")) - parseInt(listItems.css("padding-right")) );- }- }-- }- },- selected: function() {- var selected = listItems && listItems.filter("." + CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);- return selected && selected.length && $.data(selected[0], "ac_data");- },- emptyList: function (){- list && list.empty();- },- unbind: function() {- element && element.remove();- }- };-};--$.Autocompleter.Selection = function(field, start, end) {- if( field.createTextRange ){- var selRange = field.createTextRange();- selRange.collapse(true);- selRange.moveStart("character", start);- selRange.moveEnd("character", end);- selRange.select();- } else if( field.setSelectionRange ){- field.setSelectionRange(start, end);- } else {- if( field.selectionStart ){- field.selectionStart = start;- field.selectionEnd = end;- }- }- field.focus();-};--})(jQuery);\ No newline at end of filediff --git a/client/javascript/lib/jquery-jcalendar/jquery-jcalendar.css b/client/javascript/lib/jquery-jcalendar/jquery-jcalendar.cssdeleted file mode 100644index 3bbdaa65545..00000000000--- a/client/javascript/lib/jquery-jcalendar/jquery-jcalendar.css+++ /dev/null@@ -1,216 +0,0 @@-/* Main Style Sheet for jQuery UI date picker */-#ui-datepicker-div, .ui-datepicker-inline {- font-family: Arial, Helvetica, sans-serif;- font-size: 14px;- padding: 0;- margin: 0;- background: #ddd;- width: 185px;-}-#ui-datepicker-div {- display: none;- border: 1px solid #777;- z-index: 100; /*must have*/-}-.ui-datepicker-inline {- float: left;- display: block;- border: 0;-}-.ui-datepicker-rtl {- direction: rtl;-}-.ui-datepicker-dialog {- padding: 5px !important;- border: 4px ridge #ddd !important;-}-.ui-datepicker-disabled {- position: absolute;- z-index: 100;- background-color: white;- opacity: 0.5;-}-button.ui-datepicker-trigger {- width: 25px;-}-img.ui-datepicker-trigger {- margin: 2px;- vertical-align: middle;-}-.ui-datepicker-prompt {- float: left;- padding: 2px;- background: #ddd;- color: #000;-}-* html .ui-datepicker-prompt {- width: 185px;-}-.ui-datepicker-control, .ui-datepicker-links, .ui-datepicker-header, .ui-datepicker {- clear: both;- float: left;- width: 100%;- color: #fff;-}-.ui-datepicker-control {- background: #400;- padding: 2px 0px;-}-.ui-datepicker-links {- background: #000;- padding: 2px 0px;-}-.ui-datepicker-control, .ui-datepicker-links {- font-weight: bold;- font-size: 80%;-}-.ui-datepicker-links label { /* disabled links */- padding: 2px 5px;- color: #888;-}-.ui-datepicker-clear, .ui-datepicker-prev {- float: left;- width: 34%;-}-.ui-datepicker-rtl .ui-datepicker-clear, .ui-datepicker-rtl .ui-datepicker-prev {- float: right;- text-align: right;-}-.ui-datepicker-current {- float: left;- width: 30%;- text-align: center;-}-.ui-datepicker-close, .ui-datepicker-next {- float: right;- width: 34%;- text-align: right;-}-.ui-datepicker-rtl .ui-datepicker-close, .ui-datepicker-rtl .ui-datepicker-next {- float: left;- text-align: left;-}-.ui-datepicker-header {- padding: 1px 0 3px;- background: #333;- text-align: center;- font-weight: bold;- height: 1.3em;-}-.ui-datepicker-header select {- background: #333;- color: #fff;- border: 0px;- font-weight: bold;-}-.ui-datepicker {- background: #ccc;- text-align: center;- font-size: 100%;-}-.ui-datepicker a {- display: block;- width: 100%;-}-.ui-datepicker-title-row {- background: #777;-}-.ui-datepicker-days-row {- background: #eee;- color: #666;-}-.ui-datepicker-week-col {- background: #777;- color: #fff;-}-.ui-datepicker-days-cell {- color: #000;- height:40px;- width:50px;- vertical-align:top;- border: 1px solid #ddd;-}-.ui-datepicker-days-cell a{- display: block;-}-.ui-datepicker-week-end-cell {- background: #ddd;-}-.ui-datepicker-title-row .ui-datepicker-week-end-cell {- background: #777;-}-.ui-datepicker-days-cell-over {- background: #fff;- border: 1px solid #777;-}-.ui-datepicker-unselectable {- color: #888;-}-.ui-datepicker-today {- background: #fcc !important;-}-.ui-datepicker-current-day {- background: #999 !important;-}-.ui-datepicker-status {- background: #ddd;- width: 100%;- font-size: 80%;- text-align: center;-}--/* ________ Datepicker Links _______--** Reset link properties and then override them with !important */-#ui-datepicker-div a, .ui-datepicker-inline a {- cursor: pointer;- margin: 0;- padding: 0;- background: none;- color: #000;-}-.ui-datepicker-inline .ui-datepicker-links a {- padding: 0 5px !important;-}-.ui-datepicker-control a, .ui-datepicker-links a {- padding: 2px 5px !important;- color: #eee !important;-}-.ui-datepicker-title-row a {- color: #eee !important;-}-.ui-datepicker-control a:hover {- background: #fdd !important;- color: #333 !important;-}-.ui-datepicker-links a:hover, .ui-datepicker-title-row a:hover {- background: #ddd !important;- color: #333 !important;-}--/* ___________ MULTIPLE MONTHS _________*/--.ui-datepicker-multi .ui-datepicker {- border: 1px solid #777;-}-.ui-datepicker-one-month {- float: left;- width: 185px;-}-.ui-datepicker-new-row {- clear: left;-}--/* ___________ IE6 IFRAME FIX ________ */--.ui-datepicker-cover {- display: none; /*sorry for IE5*/- display/**/: block; /*sorry for IE5*/- position: absolute; /*must have*/- z-index: -1; /*must have*/- filter: mask(); /*must have*/- top: -4px; /*must have*/- left: -4px; /*must have*/- width: 200px; /*must have*/- height: 200px; /*must have*/-}diff --git a/client/javascript/lib/jquery-jcalendar/jquery-jcalendar.js b/client/javascript/lib/jquery-jcalendar/jquery-jcalendar.jsdeleted file mode 100644index a6cdf9fe81d..00000000000--- a/client/javascript/lib/jquery-jcalendar/jquery-jcalendar.js+++ /dev/null@@ -1,195 +0,0 @@-;(function($){$.ui={plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args){var set=instance.plugins[name];if(!set){return;}-for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args);}}}},cssCache:{},css:function(name){if($.ui.cssCache[name]){return $.ui.cssCache[name];}-var tmp=$('<div class="ui-gen">').addClass(name).css({position:'absolute',top:'-5000px',left:'-5000px',display:'block'}).appendTo('body');$.ui.cssCache[name]=!!((!(/auto|default/).test(tmp.css('cursor'))||(/^[1-9]/).test(tmp.css('height'))||(/^[1-9]/).test(tmp.css('width'))||!(/none/).test(tmp.css('backgroundImage'))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))));try{$('body').get(0).removeChild(tmp.get(0));}catch(e){}-return $.ui.cssCache[name];},disableSelection:function(el){$(el).attr('unselectable','on').css('MozUserSelect','none');},enableSelection:function(el){$(el).attr('unselectable','off').css('MozUserSelect','');},hasScroll:function(e,a){var scroll=/top/.test(a||"top")?'scrollTop':'scrollLeft',has=false;if(e[scroll]>0)return true;e[scroll]=1;has=e[scroll]>0?true:false;e[scroll]=0;return has;}};var _remove=$.fn.remove;$.fn.remove=function(){$("*",this).add(this).triggerHandler("remove");return _remove.apply(this,arguments);};function getter(namespace,plugin,method){var methods=$[namespace][plugin].getter||[];methods=(typeof methods=="string"?methods.split(/,?\s+/):methods);return($.inArray(method,methods)!=-1);}-$.widget=function(name,prototype){var namespace=name.split(".")[0];name=name.split(".")[1];$.fn[name]=function(options){var isMethodCall=(typeof options=='string'),args=Array.prototype.slice.call(arguments,1);if(isMethodCall&&getter(namespace,name,options)){var instance=$.data(this[0],name);return(instance?instance[options].apply(instance,args):undefined);}-return this.each(function(){var instance=$.data(this,name);if(isMethodCall&&instance&&$.isFunction(instance[options])){instance[options].apply(instance,args);}else if(!isMethodCall){$.data(this,name,new $[namespace][name](this,options));}});};$[namespace][name]=function(element,options){var self=this;this.widgetName=name;this.widgetBaseClass=namespace+'-'+name;this.options=$.extend({},$.widget.defaults,$[namespace][name].defaults,options);this.element=$(element).bind('setData.'+name,function(e,key,value){return self.setData(key,value);}).bind('getData.'+name,function(e,key){return self.getData(key);}).bind('remove',function(){return self.destroy();});this.init();};$[namespace][name].prototype=$.extend({},$.widget.prototype,prototype);};$.widget.prototype={init:function(){},destroy:function(){this.element.removeData(this.widgetName);},getData:function(key){return this.options[key];},setData:function(key,value){this.options[key]=value;if(key=='disabled'){this.element[value?'addClass':'removeClass'](this.widgetBaseClass+'-disabled');}},enable:function(){this.setData('disabled',false);},disable:function(){this.setData('disabled',true);}};$.widget.defaults={disabled:false};$.ui.mouse={mouseInit:function(){var self=this;this.element.bind('mousedown.'+this.widgetName,function(e){return self.mouseDown(e);});if($.browser.msie){this._mouseUnselectable=this.element.attr('unselectable');this.element.attr('unselectable','on');}-this.started=false;},mouseDestroy:function(){this.element.unbind('.'+this.widgetName);($.browser.msie&&this.element.attr('unselectable',this._mouseUnselectable));},mouseDown:function(e){(this._mouseStarted&&this.mouseUp(e));this._mouseDownEvent=e;var self=this,btnIsLeft=(e.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(e.target).parents().add(e.target).filter(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this.mouseCapture(e)){return true;}-this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self._mouseDelayMet=true;},this.options.delay);}-if(this.mouseDistanceMet(e)&&this.mouseDelayMet(e)){this._mouseStarted=(this.mouseStart(e)!==false);if(!this._mouseStarted){e.preventDefault();return true;}}-this._mouseMoveDelegate=function(e){return self.mouseMove(e);};this._mouseUpDelegate=function(e){return self.mouseUp(e);};$(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);return false;},mouseMove:function(e){if($.browser.msie&&!e.button){return this.mouseUp(e);}-if(this._mouseStarted){this.mouseDrag(e);return false;}-if(this.mouseDistanceMet(e)&&this.mouseDelayMet(e)){this._mouseStarted=(this.mouseStart(this._mouseDownEvent,e)!==false);(this._mouseStarted?this.mouseDrag(e):this.mouseUp(e));}-return!this._mouseStarted;},mouseUp:function(e){$(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseStop(e);}-return false;},mouseDistanceMet:function(e){return(Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance);},mouseDelayMet:function(e){return this._mouseDelayMet;},mouseStart:function(e){},mouseDrag:function(e){},mouseStop:function(e){},mouseCapture:function(e){return true;}};$.ui.mouse.defaults={cancel:null,distance:1,delay:0};})(jQuery);(function($){var PROP_NAME='datepicker';function Datepicker(){this.debug=false;this._curInst=null;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId='ui-datepicker-div';this._appendClass='ui-datepicker-append';this._triggerClass='ui-datepicker-trigger';this._dialogClass='ui-datepicker-dialog';this._promptClass='ui-datepicker-prompt';this._unselectableClass='ui-datepicker-unselectable';this._currentClass='ui-datepicker-current-day';this.regional=[];this.regional['']={clearText:'Clear',clearStatus:'Erase the current date',closeText:'Close',closeStatus:'Close without change',prevText:'<Prev',prevStatus:'Show the previous month',nextText:'Next>',nextStatus:'Show the next month',currentText:'Today',currentStatus:'Show the current month',monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'],monthNamesShort:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],monthStatus:'Show a different month',yearStatus:'Show a different year',weekHeader:'Wk',weekStatus:'Week of the year',dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],dayNamesShort:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],dayNamesMin:['Su','Mo','Tu','We','Th','Fr','Sa'],dayStatus:'Set DD as first week day',dateStatus:'Select DD, M d',dateFormat:'mm/dd/yy',firstDay:0,initStatus:'Select a date',isRTL:false};this._defaults={showOn:'focus',showAnim:'show',showOptions:{},defaultDate:null,appendText:'',buttonText:'...',buttonImage:'',buttonImageOnly:false,closeAtTop:true,mandatory:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:true,changeYear:true,yearRange:'-10:+10',changeFirstDay:true,highlightWeek:false,showOtherMonths:false,showWeeks:false,calculateWeek:this.iso8601Week,shortYearCutoff:'+10',showStatus:false,statusForDate:this.dateStatus,minDate:null,maxDate:null,duration:'normal',beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,stepMonths:1,rangeSelect:false,rangeSeparator:' - ',altField:'',altFormat:''};$.extend(this._defaults,this.regional['']);this.dpDiv=$('<div id="'+this._mainDivId+'" style="display: none;"></div>');}-$.extend(Datepicker.prototype,{markerClassName:'hasDatepicker',log:function(){if(this.debug)-console.log.apply('',arguments);},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this;},_attachDatepicker:function(target,settings){var inlineSettings=null;for(attrName in this._defaults){var attrValue=target.getAttribute('date:'+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue);}catch(err){inlineSettings[attrName]=attrValue;}}}-var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=='div'||nodeName=='span');if(!target.id)-target.id='dp'+new Date().getTime();var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=='input'){this._connectDatepicker(target,inst);}else if(inline){this._inlineDatepicker(target,inst);}},_newInst:function(target,inline){return{id:target[0].id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="ui-datepicker-inline"></div>'))};},_connectDatepicker:function(target,inst){var input=$(target);if(input.hasClass(this.markerClassName))-return;var appendText=this._get(inst,'appendText');var isRTL=this._get(inst,'isRTL');if(appendText)-input[isRTL?'before':'after']('<span class="'+this._appendClass+'">'+appendText+'</span>');var showOn=this._get(inst,'showOn');if(showOn=='focus'||showOn=='both')-input.focus(this._showDatepicker);if(showOn=='button'||showOn=='both'){var buttonText=this._get(inst,'buttonText');var buttonImage=this._get(inst,'buttonImage');var trigger=$(this._get(inst,'buttonImageOnly')?$('<img/>').addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==''?buttonText:$('<img/>').attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?'before':'after'](trigger);trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target)-$.datepicker._hideDatepicker();else-$.datepicker._showDatepicker(target);return false;});}-input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value;}).bind("getData.datepicker",function(event,key){return this._get(inst,key);});$.data(target,PROP_NAME,inst);},_inlineDatepicker:function(target,inst){var input=$(target);if(input.hasClass(this.markerClassName))-return;input.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value;}).bind("getData.datepicker",function(event,key){return this._get(inst,key);});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);},_inlineShow:function(inst){var numMonths=this._getNumberOfMonths(inst);inst.dpDiv.width(numMonths[1]*$('.ui-datepicker',inst.dpDiv[0]).width());},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id='dp'+new Date().getTime();this._dialogInput=$('<input type="text" id="'+id+'" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$('body').append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst);}-extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY];}-this._dialogInput.css('left',this._pos[0]+'px').css('top',this._pos[1]+'px');inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI)-$.blockUI(this.dpDiv);$.data(this._dialogInput[0],PROP_NAME,inst);return this;},_destroyDatepicker:function(target){var nodeName=target.nodeName.toLowerCase();var $target=$(target);$.removeData(target,PROP_NAME);if(nodeName=='input'){$target.siblings('.'+this._appendClass).remove().end().siblings('.'+this._triggerClass).remove().end().removeClass(this.markerClassName).unbind('focus',this._showDatepicker).unbind('keydown',this._doKeyDown).unbind('keypress',this._doKeyPress);}else if(nodeName=='div'||nodeName=='span')-$target.removeClass(this.markerClassName).empty();},_enableDatepicker:function(target){target.disabled=false;$(target).siblings('button.'+this._triggerClass).each(function(){this.disabled=false;}).end().siblings('img.'+this._triggerClass).css({opacity:'1.0',cursor:''});this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value);});},_disableDatepicker:function(target){target.disabled=true;$(target).siblings('button.'+this._triggerClass).each(function(){this.disabled=true;}).end().siblings('img.'+this._triggerClass).css({opacity:'0.5',cursor:'default'});this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value);});this._disabledInputs[this._disabledInputs.length]=target;},_isDisabledDatepicker:function(target){if(!target)-return false;for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target)-return true;}-return false;},_changeDatepicker:function(target,name,value){var settings=name||{};if(typeof name=='string'){settings={};settings[name]=value;}-if(inst=$.data(target,PROP_NAME)){extendRemove(inst.settings,settings);this._updateDatepicker(inst);}},_setDateDatepicker:function(target,date,endDate){var inst=$.data(target,PROP_NAME);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);}},_getDateDatepicker:function(target){var inst=$.data(target,PROP_NAME);if(inst)-this._setDateFromField(inst);return(inst?this._getDate(inst):null);},_doKeyDown:function(e){var inst=$.data(e.target,PROP_NAME);var handled=true;if($.datepicker._datepickerShowing)-switch(e.keyCode){case 9:$.datepicker._hideDatepicker(null,'');break;case 13:$.datepicker._selectDay(e.target,inst.selectedMonth,inst.selectedYear,$('td.ui-datepicker-days-cell-over',inst.dpDiv)[0]);return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,'duration'));break;case 33:$.datepicker._adjustDate(e.target,(e.ctrlKey?-1:-$.datepicker._get(inst,'stepMonths')),(e.ctrlKey?'Y':'M'));break;case 34:$.datepicker._adjustDate(e.target,(e.ctrlKey?+1:+$.datepicker._get(inst,'stepMonths')),(e.ctrlKey?'Y':'M'));break;case 35:if(e.ctrlKey)$.datepicker._clearDate(e.target);break;case 36:if(e.ctrlKey)$.datepicker._gotoToday(e.target);break;case 37:if(e.ctrlKey)$.datepicker._adjustDate(e.target,-1,'D');break;case 38:if(e.ctrlKey)$.datepicker._adjustDate(e.target,-7,'D');break;case 39:if(e.ctrlKey)$.datepicker._adjustDate(e.target,+1,'D');break;case 40:if(e.ctrlKey)$.datepicker._adjustDate(e.target,+7,'D');break;default:handled=false;}-else if(e.keyCode==36&&e.ctrlKey)-$.datepicker._showDatepicker(this);else-handled=false;if(handled){e.preventDefault();e.stopPropagation();}},_doKeyPress:function(e){var inst=$.data(e.target,PROP_NAME);var chars=$.datepicker._possibleChars($.datepicker._get(inst,'dateFormat'));var chr=String.fromCharCode(e.charCode==undefined?e.keyCode:e.charCode);return e.ctrlKey||(chr<' '||!chars||chars.indexOf(chr)>-1);},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!='input')-input=$('input',input.parentNode)[0];if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input)-return;var inst=$.data(input,PROP_NAME);var beforeShow=$.datepicker._get(inst,'beforeShow');extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,'');$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog)-input.value='';if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight;}-var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css('position')=='fixed';return!isFixed;});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop;}-var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:'absolute',display:'block',top:'-1000px'});$.datepicker._updateDatepicker(inst);inst.dpDiv.width($.datepicker._getNumberOfMonths(inst)[1]*$('.ui-datepicker',inst.dpDiv[0])[0].offsetWidth);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?'static':(isFixed?'fixed':'absolute')),display:'none',left:offset.left+'px',top:offset.top+'px'});if(!inst.inline){var showAnim=$.datepicker._get(inst,'showAnim')||'show';var duration=$.datepicker._get(inst,'duration');var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version)<7)-$('iframe.ui-datepicker-cover').css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4});};if($.effects&&$.effects[showAnim])-inst.dpDiv.show(showAnim,$.datepicker._get(inst,'showOptions'),duration,postProcess);else-inst.dpDiv[showAnim](duration,postProcess);if(duration=='')-postProcess();if(inst.input[0].type!='hidden')-inst.input[0].focus();$.datepicker._curInst=inst;}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};inst.dpDiv.empty().append(this._generateDatepicker(inst)).find('iframe.ui-datepicker-cover').css({width:dims.width,height:dims.height});var numMonths=this._getNumberOfMonths(inst);inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?'add':'remove')+'Class']('ui-datepicker-multi');inst.dpDiv[(this._get(inst,'isRTL')?'add':'remove')+'Class']('ui-datepicker-rtl');if(inst.input&&inst.input[0].type!='hidden')-$(inst.input[0]).focus();},_checkOffset:function(inst,offset,isFixed){var pos=inst.input?this._findPos(inst.input[0]):null;var browserWidth=window.innerWidth||document.documentElement.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;if(this._get(inst,'isRTL')||(offset.left+inst.dpDiv.width()-scrollX)>browserWidth)-offset.left=Math.max((isFixed?0:scrollX),pos[0]+(inst.input?inst.input.width():0)-(isFixed?scrollX:0)-inst.dpDiv.width()--(isFixed&&$.browser.opera?document.documentElement.scrollLeft:0));else-offset.left-=(isFixed?scrollX:0);if((offset.top+inst.dpDiv.height()-scrollY)>browserHeight)-offset.top=Math.max((isFixed?0:scrollY),pos[1]-(isFixed?scrollY:0)-(this._inDialog?0:inst.dpDiv.height())--(isFixed&&$.browser.opera?document.documentElement.scrollTop:0));else-offset.top-=(isFixed?scrollY:0);return offset;},_findPos:function(obj){while(obj&&(obj.type=='hidden'||obj.nodeType!=1)){obj=obj.nextSibling;}-var position=$(obj).offset();return[position.left,position.top];},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst)-return;var rangeSelect=this._get(inst,'rangeSelect');if(rangeSelect&&this._stayOpen)-this._selectDate('#'+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));this._stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,'duration'));var showAnim=this._get(inst,'showAnim');var postProcess=function(){$.datepicker._tidyDialog(inst);};if(duration!=''&&$.effects&&$.effects[showAnim])-inst.dpDiv.hide(showAnim,$.datepicker._get(inst,'showOptions'),duration,postProcess);else-inst.dpDiv[(duration==''?'hide':(showAnim=='slideDown'?'slideUp':(showAnim=='fadeIn'?'fadeOut':'hide')))](duration,postProcess);if(duration=='')-this._tidyDialog(inst);var onClose=this._get(inst,'onClose');if(onClose)-onClose.apply((inst.input?inst.input[0]:null),[this._getDate(inst),inst]);this._datepickerShowing=false;this._lastInput=null;inst.settings.prompt=null;if(this._inDialog){this._dialogInput.css({position:'absolute',left:'0',top:'-100px'});if($.blockUI){$.unblockUI();$('body').append(this.dpDiv);}}-this._inDialog=false;}-this._curInst=null;},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker');$('.'+this._promptClass,inst.dpDiv).remove();},_checkExternalClick:function(event){if(!$.datepicker._curInst)-return;var $target=$(event.target);if(($target.parents('#'+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI))-$.datepicker._hideDatepicker(null,'');},_adjustDate:function(id,offset,period){var target=$(id);var inst=$.data(target[0],PROP_NAME);this._adjustInstDate(inst,offset,period);this._updateDatepicker(inst);},_gotoToday:function(id){var target=$(id);var inst=$.data(target[0],PROP_NAME);if(this._get(inst,'gotoCurrent')&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear;}-else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();}-this._adjustDate(target);this._notifyChange(inst);},_selectMonthYear:function(id,select,period){var target=$(id);var inst=$.data(target[0],PROP_NAME);inst._selectingMonthYear=false;inst[period=='M'?'drawMonth':'drawYear']=select.options[select.selectedIndex].value-0;this._adjustDate(target);this._notifyChange(inst);},_clickMonthYear:function(id){var target=$(id);var inst=$.data(target[0],PROP_NAME);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie)-inst.input[0].focus();inst._selectingMonthYear=!inst._selectingMonthYear;},_changeFirstDay:function(id,day){var target=$(id);var inst=$.data(target[0],PROP_NAME);inst.settings.firstDay=day;this._updateDatepicker(inst);},_selectDay:function(id,month,year,td){if($(td).hasClass(this._unselectableClass))-return;var target=$(id);var inst=$.data(target[0],PROP_NAME);var rangeSelect=this._get(inst,'rangeSelect');if(rangeSelect){this._stayOpen=!this._stayOpen;if(this._stayOpen){$('.ui-datepicker td').removeClass(this._currentClass);$(td).addClass(this._currentClass);}}-inst.selectedDay=inst.currentDay=$('a',td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(this._stayOpen){inst.endDay=inst.endMonth=inst.endYear=null;}-else if(rangeSelect){inst.endDay=inst.currentDay;inst.endMonth=inst.currentMonth;inst.endYear=inst.currentYear;}-this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(this._stayOpen){inst.rangeStart=new Date(inst.currentYear,inst.currentMonth,inst.currentDay);this._updateDatepicker(inst);}-else if(rangeSelect){inst.selectedDay=inst.currentDay=inst.rangeStart.getDate();inst.selectedMonth=inst.currentMonth=inst.rangeStart.getMonth();inst.selectedYear=inst.currentYear=inst.rangeStart.getFullYear();inst.rangeStart=null;if(inst.inline)-this._updateDatepicker(inst);}},_clearDate:function(id){var target=$(id);var inst=$.data(target[0],PROP_NAME);if(this._get(inst,'mandatory'))-return;this._stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,'');},_selectDate:function(id,dateStr){var target=$(id);var inst=$.data(target[0],PROP_NAME);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(this._get(inst,'rangeSelect')&&dateStr)-dateStr=(inst.rangeStart?this._formatDate(inst,inst.rangeStart):dateStr)+this._get(inst,'rangeSeparator')+dateStr;if(inst.input)-inst.input.val(dateStr);this._updateAlternate(inst);var onSelect=this._get(inst,'onSelect');if(onSelect)-onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);else if(inst.input)-inst.input.trigger('change');if(inst.inline)-this._updateDatepicker(inst);else if(!this._stayOpen){this._hideDatepicker(null,this._get(inst,'duration'));this._lastInput=inst.input[0];if(typeof(inst.input[0])!='object')-inst.input[0].focus();this._lastInput=null;}},_updateAlternate:function(inst){var altField=this._get(inst,'altField');if(altField){var altFormat=this._get(inst,'altFormat');var date=this._getDate(inst);dateStr=(isArray(date)?(!date[0]&&!date[1]?'':this.formatDate(altFormat,date[0],this._getFormatConfig(inst))+-this._get(inst,'rangeSeparator')+this.formatDate(altFormat,date[1]||date[0],this._getFormatConfig(inst))):this.formatDate(altFormat,date,this._getFormatConfig(inst)));$(altField).each(function(){$(this).val(dateStr);});}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),''];},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate(),(date.getTimezoneOffset()/-60));var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate);}else if(checkDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDay-3){checkDate.setDate(checkDate.getDate()+3);return $.datepicker.iso8601Week(checkDate);}}-return Math.floor(((checkDate-firstMon)/86400000)/7)+1;},dateStatus:function(date,inst){return $.datepicker.formatDate($.datepicker._get(inst,'dateStatus'),date,$.datepicker._getFormatConfig(inst));},parseDate:function(format,value,settings){if(format==null||value==null)-throw'Invalid arguments';value=(typeof value=='object'?value.toString():value+'');if(value=='')-return null;var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches)-iFormat++;return matches;};var getNumber=function(match){lookAhead(match);var origSize=(match=='@'?14:(match=='y'?4:2));var size=origSize;var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>='0'&&value.charAt(iValue)<='9'){num=num*10+(value.charAt(iValue++)-0);size--;}-if(size==origSize)-throw'Missing number at position '+iValue;return num;};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j<names.length;j++)-size=Math.max(size,names[j].length);var name='';var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue++);for(var i=0;i<names.length;i++)-if(name==names[i])-return i+1;size--;}-throw'Unknown name at position '+iInit;};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat))-throw'Unexpected literal at position '+iValue;iValue++;};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal)-if(format.charAt(iFormat)=="'"&&!lookAhead("'"))-literal=false;else-checkLiteral();else-switch(format.charAt(iFormat)){case'd':day=getNumber('d');break;case'D':getName('D',dayNamesShort,dayNames);break;case'm':month=getNumber('m');break;case'M':month=getName('M',monthNamesShort,monthNames);break;case'y':year=getNumber('y');break;case'@':var date=new Date(getNumber('@'));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'"))-checkLiteral();else-literal=true;break;default:checkLiteral();}}-if(year<100)-year+=new Date().getFullYear()-new Date().getFullYear()%100+-(year<=shortYearCutoff?0:-100);var date=new Date(year,month-1,day);if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day)-throw'Invalid date';return date;},ATOM:'yy-mm-dd',COOKIE:'D, dd M yy',ISO_8601:'yy-mm-dd',RFC_822:'D, d M y',RFC_850:'DD, dd-M-y',RFC_1036:'D, d M y',RFC_1123:'D, d M yy',RFC_2822:'D, d M yy',RSS:'D, d M y',TIMESTAMP:'@',W3C:'yy-mm-dd',formatDate:function(format,date,settings){if(!date)-return'';var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches)-iFormat++;return matches;};var formatNumber=function(match,value){return(lookAhead(match)&&value<10?'0':'')+value;};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value]);};var output='';var literal=false;if(date)-for(var iFormat=0;iFormat<format.length;iFormat++){if(literal)-if(format.charAt(iFormat)=="'"&&!lookAhead("'"))-literal=false;else-output+=format.charAt(iFormat);else-switch(format.charAt(iFormat)){case'd':output+=formatNumber('d',date.getDate());break;case'D':output+=formatName('D',date.getDay(),dayNamesShort,dayNames);break;case'm':output+=formatNumber('m',date.getMonth()+1);break;case'M':output+=formatName('M',date.getMonth(),monthNamesShort,monthNames);break;case'y':output+=(lookAhead('y')?date.getFullYear():(date.getYear()%100<10?'0':'')+date.getYear()%100);break;case'@':output+=date.getTime();break;case"'":if(lookAhead("'"))-output+="'";else-literal=true;break;default:output+=format.charAt(iFormat);}}-return output;},_possibleChars:function(format){var chars='';var literal=false;for(var iFormat=0;iFormat<format.length;iFormat++)-if(literal)-if(format.charAt(iFormat)=="'"&&!lookAhead("'"))-literal=false;else-chars+=format.charAt(iFormat);else-switch(format.charAt(iFormat)){case'd':case'm':case'y':case'@':chars+='0123456789';break;case'D':case'M':return null;case"'":if(lookAhead("'"))-chars+="'";else-literal=true;break;default:chars+=format.charAt(iFormat);}-return chars;},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name];},_setDateFromField:function(inst){var dateFormat=this._get(inst,'dateFormat');var dates=inst.input?inst.input.val().split(this._get(inst,'rangeSeparator')):null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);if(dates.length>0){var settings=this._getFormatConfig(inst);if(dates.length>1){date=this.parseDate(dateFormat,dates[1],settings)||defaultDate;inst.endDay=date.getDate();inst.endMonth=date.getMonth();inst.endYear=date.getFullYear();}-try{date=this.parseDate(dateFormat,dates[0],settings)||defaultDate;}catch(e){this.log(e);date=defaultDate;}}-inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates[0]?date.getDate():0);inst.currentMonth=(dates[0]?date.getMonth():0);inst.currentYear=(dates[0]?date.getFullYear():0);this._adjustInstDate(inst);},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,'defaultDate'),new Date());var minDate=this._getMinMaxDate(inst,'min',true);var maxDate=this._getMinMaxDate(inst,'max');date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date;},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setUTCDate(date.getUTCDate()+offset);return date;};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||'d'){case'd':case'D':day+=(matches[1]-0);break;case'w':case'W':day+=(matches[1]*7);break;case'm':case'M':month+=(matches[1]-0);day=Math.min(day,getDaysInMonth(year,month));break;case'y':case'Y':year+=(matches[1]-0);day=Math.min(day,getDaysInMonth(year,month));break;}-matches=pattern.exec(offset);}-return new Date(year,month,day);};return(date==null?defaultDate:(typeof date=='string'?offsetString(date,this._getDaysInMonth):(typeof date=='number'?offsetNumeric(date):date)));},_setDate:function(inst,date,endDate){var clear=!(date);date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(this._get(inst,'rangeSelect')){if(endDate){endDate=this._determineDate(endDate,null);inst.endDay=endDate.getDate();inst.endMonth=endDate.getMonth();inst.endYear=endDate.getFullYear();}else{inst.endDay=inst.currentDay;inst.endMonth=inst.currentMonth;inst.endYear=inst.currentYear;}}-this._adjustInstDate(inst);if(inst.input)-inst.input.val(clear?'':this._formatDate(inst)+-(!this._get(inst,'rangeSelect')?'':this._get(inst,'rangeSeparator')+-this._formatDate(inst,inst.endDay,inst.endMonth,inst.endYear)));},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=='')?null:new Date(inst.currentYear,inst.currentMonth,inst.currentDay));if(this._get(inst,'rangeSelect')){return[inst.rangeStart||startDate,(!inst.endYear?null:new Date(inst.endYear,inst.endMonth,inst.endDay))];}else-return startDate;},_generateDatepicker:function(inst){var today=new Date();today=new Date(today.getFullYear(),today.getMonth(),today.getDate());var showStatus=this._get(inst,'showStatus');var isRTL=this._get(inst,'isRTL');var clear=(this._get(inst,'mandatory')?'':'<div class="ui-datepicker-clear"><a onclick="jQuery.datepicker._clearDate(\'#'+inst.id+'\');"'+-(showStatus?this._addStatus(inst,this._get(inst,'clearStatus')||' '):'')+'>'+-this._get(inst,'clearText')+'</a></div>');var controls='<div class="ui-datepicker-control">'+(isRTL?'':clear)+'<div class="ui-datepicker-close"><a onclick="jQuery.datepicker._hideDatepicker();"'+-(showStatus?this._addStatus(inst,this._get(inst,'closeStatus')||' '):'')+'>'+-this._get(inst,'closeText')+'</a></div>'+(isRTL?clear:'')+'</div>';var prompt=this._get(inst,'prompt');var closeAtTop=this._get(inst,'closeAtTop');var hideIfNoPrevNext=this._get(inst,'hideIfNoPrevNext');var navigationAsDateFormat=this._get(inst,'navigationAsDateFormat');var numMonths=this._getNumberOfMonths(inst);var stepMonths=this._get(inst,'stepMonths');var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=(!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay));var minDate=this._getMinMaxDate(inst,'min',true);var maxDate=this._getMinMaxDate(inst,'max');var drawMonth=inst.drawMonth;var drawYear=inst.drawYear;if(maxDate){var maxDraw=new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate());maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(new Date(drawYear,drawMonth,1)>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--;}}}-var prevText=this._get(inst,'prevText');prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,new Date(drawYear,drawMonth-stepMonths,1),this._getFormatConfig(inst)));var prev='<div class="ui-datepicker-prev">'+(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a onclick="jQuery.datepicker._adjustDate(\'#'+inst.id+'\', -'+stepMonths+', \'M\');"'+-(showStatus?this._addStatus(inst,this._get(inst,'prevStatus')||' '):'')+'>'+prevText+'</a>':(hideIfNoPrevNext?'':'<label>'+prevText+'</label>'))+'</div>';var nextText=this._get(inst,'nextText');nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,new Date(drawYear,drawMonth+stepMonths,1),this._getFormatConfig(inst)));var next='<div class="ui-datepicker-next">'+(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a onclick="jQuery.datepicker._adjustDate(\'#'+inst.id+'\', +'+stepMonths+', \'M\');"'+-(showStatus?this._addStatus(inst,this._get(inst,'nextStatus')||' '):'')+'>'+nextText+'</a>':(hideIfNoPrevNext?'':'<label>'+nextText+'</label>'))+'</div>';var currentText=this._get(inst,'currentText');currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,today,this._getFormatConfig(inst)));var html=(prompt?'<div class="'+this._promptClass+'">'+prompt+'</div>':'')+-(closeAtTop&&!inst.inline?controls:'')+'<div class="ui-datepicker-links">'+(isRTL?next:prev)+-(this._isInRange(inst,(this._get(inst,'gotoCurrent')&&inst.currentDay?currentDate:today))?'<div class="ui-datepicker-current">'+'<a onclick="jQuery.datepicker._gotoToday(\'#'+inst.id+'\');"'+-(showStatus?this._addStatus(inst,this._get(inst,'currentStatus')||' '):'')+'>'+-currentText+'</a></div>':'')+(isRTL?prev:next)+'</div>';var firstDay=this._get(inst,'firstDay');var changeFirstDay=this._get(inst,'changeFirstDay');var dayNames=this._get(inst,'dayNames');var dayNamesShort=this._get(inst,'dayNamesShort');var dayNamesMin=this._get(inst,'dayNamesMin');var monthNames=this._get(inst,'monthNames');var beforeShowDay=this._get(inst,'beforeShowDay');var highlightWeek=this._get(inst,'highlightWeek');var showOtherMonths=this._get(inst,'showOtherMonths');var showWeeks=this._get(inst,'showWeeks');var calculateWeek=this._get(inst,'calculateWeek')||this.iso8601Week;var status=(showStatus?this._get(inst,'dayStatus')||' ':'');var dateStatus=this._get(inst,'statusForDate')||this.dateStatus;var endDate=inst.endDay?new Date(inst.endYear,inst.endMonth,inst.endDay):currentDate;for(var row=0;row<numMonths[0];row++)-for(var col=0;col<numMonths[1];col++){var selectedDate=new Date(drawYear,drawMonth,inst.selectedDay);html+='<div class="ui-datepicker-one-month'+(col==0?' ui-datepicker-new-row':'')+'">'+-this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,showStatus,monthNames)+'<table class="ui-datepicker" cellpadding="0" cellspacing="0"><thead>'+'<tr class="ui-datepicker-title-row">'+-(showWeeks?'<td>'+this._get(inst,'weekHeader')+'</td>':'');for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;var dayStatus=(status.indexOf('DD')>-1?status.replace(/DD/,dayNames[day]):status.replace(/D/,dayNamesShort[day]));html+='<td'+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end-cell"':'')+'>'+-(!changeFirstDay?'<span':'<a onclick="jQuery.datepicker._changeFirstDay(\'#'+inst.id+'\', '+day+');"')+-(showStatus?this._addStatus(inst,dayStatus):'')+' title="'+dayNames[day]+'">'+-dayNamesMin[day]+(changeFirstDay?'</a>':'</span>')+'</td>';}-html+='</tr></thead><tbody>';var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth)-inst.selectedDay=Math.min(inst.selectedDay,daysInMonth);var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var printDate=new Date(drawYear,drawMonth,1-leadDays);var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));for(var dRow=0;dRow<numRows;dRow++){html+='<tr class="ui-datepicker-days-row">'+-(showWeeks?'<td class="ui-datepicker-week-col">'+calculateWeek(printDate)+'</td>':'');for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,'']);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);html+='<td class="ui-datepicker-days-cell'+-((dow+firstDay+6)%7>=5?' ui-datepicker-week-end-cell':'')+-(otherMonth?' ui-datepicker-otherMonth':'')+-(printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth?' ui-datepicker-days-cell-over':'')+-(unselectable?' '+this._unselectableClass:'')+-(otherMonth&&!showOtherMonths?'':' '+daySettings[1]+-(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?' '+this._currentClass:'')+-(printDate.getTime()==today.getTime()?' ui-datepicker-today':''))+'"'+-((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':'')+-(unselectable?(highlightWeek?' onmouseover="jQuery(this).parent().addClass(\'ui-datepicker-week-over\');"'+' onmouseout="jQuery(this).parent().removeClass(\'ui-datepicker-week-over\');"':''):' onmouseover="jQuery(this).addClass(\'ui-datepicker-days-cell-over\')'+-(highlightWeek?'.parent().addClass(\'ui-datepicker-week-over\')':'')+';'+-(!showStatus||(otherMonth&&!showOtherMonths)?'':'jQuery(\'#ui-datepicker-status-'+-inst.id+'\').html(\''+(dateStatus.apply((inst.input?inst.input[0]:null),[printDate,inst])||' ')+'\');')+'"'+' onmouseout="jQuery(this).removeClass(\'ui-datepicker-days-cell-over\')'+-(highlightWeek?'.parent().removeClass(\'ui-datepicker-week-over\')':'')+';'+-(!showStatus||(otherMonth&&!showOtherMonths)?'':'jQuery(\'#ui-datepicker-status-'+-inst.id+'\').html(\' \');')+'" onclick="jQuery.datepicker._selectDay(\'#'+-inst.id+'\','+drawMonth+','+drawYear+', this);"')+'>'+-(otherMonth?(showOtherMonths?printDate.getDate():' '):(unselectable?printDate.getDate():'<a>'+printDate.getDate()+'</a>'))+'</td>';printDate.setUTCDate(printDate.getUTCDate()+1);}-html+='</tr>';}-drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++;}-html+='</tbody></table></div>';}-html+=(showStatus?'<div style="clear: both;"></div><div id="ui-datepicker-status-'+inst.id+'" class="ui-datepicker-status">'+(this._get(inst,'initStatus')||' ')+'</div>':'')+-(!closeAtTop&&!inst.inline?controls:'')+'<div style="clear: both;"></div>'+-($.browser.msie&&parseInt($.browser.version)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover"></iframe>':'');return html;},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,showStatus,monthNames){minDate=(inst.rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var html='<div class="ui-datepicker-header">';if(secondary||!this._get(inst,'changeMonth'))-html+=monthNames[drawMonth]+' ';else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);html+='<select class="ui-datepicker-new-month" '+'onchange="jQuery.datepicker._selectMonthYear(\'#'+inst.id+'\', this, \'M\');" '+'onclick="jQuery.datepicker._clickMonthYear(\'#'+inst.id+'\');"'+-(showStatus?this._addStatus(inst,this._get(inst,'monthStatus')||' '):'')+'>';for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth()))-html+='<option value="'+month+'"'+-(month==drawMonth?' selected="selected"':'')+'>'+monthNames[month]+'</option>';}-html+='</select>';}-if(secondary||!this._get(inst,'changeYear'))-html+=drawYear;else{var years=this._get(inst,'yearRange').split(':');var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10;}else if(years[0].charAt(0)=='+'||years[0].charAt(0)=='-'){year=endYear=new Date().getFullYear();year+=parseInt(years[0],10);endYear+=parseInt(years[1],10);}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10);}-year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-new-year" '+'onchange="jQuery.datepicker._selectMonthYear(\'#'+inst.id+'\', this, \'Y\');" '+'onclick="jQuery.datepicker._clickMonthYear(\'#'+inst.id+'\');"'+-(showStatus?this._addStatus(inst,this._get(inst,'yearStatus')||' '):'')+'>';for(;year<=endYear;year++){html+='<option value="'+year+'"'+-(year==drawYear?' selected="selected"':'')+'>'+year+'</option>';}-html+='</select>';}-html+='</div>';return html;},_addStatus:function(inst,text){return' onmouseover="jQuery(\'#ui-datepicker-status-'+inst.id+'\').html(\''+text+'\');" '+'onmouseout="jQuery(\'#ui-datepicker-status-'+inst.id+'\').html(\' \');"';},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=='Y'?offset:0);var month=inst.drawMonth+(period=='M'?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+-(period=='D'?offset:0);var date=new Date(year,month,day);var minDate=this._getMinMaxDate(inst,'min',true);var maxDate=this._getMinMaxDate(inst,'max');date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=='M'||period=='Y')-this._notifyChange(inst);},_notifyChange:function(inst){var onChange=this._get(inst,'onChangeMonthYear');if(onChange)-onChange.apply((inst.input?inst.input[0]:null),[new Date(inst.selectedYear,inst.selectedMonth,1),inst]);},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,'numberOfMonths');return(numMonths==null?[1,1]:(typeof numMonths=='number'?[1,numMonths]:numMonths));},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+'Date'),null);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0);}-return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date));},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate();},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay();},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1);if(offset<0)-date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()));return this._isInRange(inst,date);},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay));newMinDate=(newMinDate&&inst.rangeStart<newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,'min');var maxDate=this._getMinMaxDate(inst,'max');return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate));},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,'shortYearCutoff');shortYearCutoff=(typeof shortYearCutoff!='string'?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,'dayNamesShort'),dayNames:this._get(inst,'dayNames'),monthNamesShort:this._get(inst,'monthNamesShort'),monthNames:this._get(inst,'monthNames')};},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear;}-var date=(day?(typeof day=='object'?day:new Date(year,month,day)):new Date(inst.currentYear,inst.currentMonth,inst.currentDay));return this.formatDate(this._get(inst,'dateFormat'),date,this._getFormatConfig(inst));}});function extendRemove(target,props){$.extend(target,props);for(var name in props)-if(props[name]==null||props[name]==undefined)-target[name]=props[name];return target;};function isArray(a){return(a&&(($.browser.safari&&typeof a=='object'&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))));};$.fn.datepicker=function(options){var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=='string'&&(options=='isDisabled'||options=='getDate'))-return $.datepicker['_'+options+'Datepicker'].apply($.datepicker,[this[0]].concat(otherArgs));return this.each(function(){typeof options=='string'?$.datepicker['_'+options+'Datepicker'].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options);});};$.datepicker=new Datepicker();$(document).ready(function(){$(document.body).append($.datepicker.dpDiv).mousedown($.datepicker._checkExternalClick);});})(jQuery);\ No newline at end of filediff --git a/client/javascript/lib/jquery/jquery-1.2.6.js b/client/javascript/lib/jquery/jquery-1.2.6.jsdeleted file mode 100644index 88e661eec80..00000000000--- a/client/javascript/lib/jquery/jquery-1.2.6.js+++ /dev/null@@ -1,3549 +0,0 @@-(function(){-/*- * jQuery 1.2.6 - New Wave Javascript- *- * Copyright (c) 2008 John Resig (jquery.com)- * Dual licensed under the MIT (MIT-LICENSE.txt)- * and GPL (GPL-LICENSE.txt) licenses.- *- * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $- * $Rev: 5685 $- */--// Map over jQuery in case of overwrite-var _jQuery = window.jQuery,-// Map over the $ in case of overwrite- _$ = window.$;--var jQuery = window.jQuery = window.$ = function( selector, context ) {- // The jQuery object is actually just the init constructor 'enhanced'- return new jQuery.fn.init( selector, context );-};--// A simple way to check for HTML strings or ID strings-// (both of which we optimize for)-var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,--// Is it a simple selector- isSimple = /^.[^:#\[\.]*$/,--// Will speed up references to undefined, and allows munging its name.- undefined;--jQuery.fn = jQuery.prototype = {- init: function( selector, context ) {- // Make sure that a selection was provided- selector = selector || document;-- // Handle $(DOMElement)- if ( selector.nodeType ) {- this[0] = selector;- this.length = 1;- return this;- }- // Handle HTML strings- if ( typeof selector == "string" ) {- // Are we dealing with HTML string or an ID?- var match = quickExpr.exec( selector );-- // Verify a match, and that no context was specified for #id- if ( match && (match[1] || !context) ) {-- // HANDLE: $(html) -> $(array)- if ( match[1] )- selector = jQuery.clean( [ match[1] ], context );-- // HANDLE: $("#id")- else {- var elem = document.getElementById( match[3] );-- // Make sure an element was located- if ( elem ){- // Handle the case where IE and Opera return items- // by name instead of ID- if ( elem.id != match[3] )- return jQuery().find( selector );-- // Otherwise, we inject the element directly into the jQuery object- return jQuery( elem );- }- selector = [];- }-- // HANDLE: $(expr, [context])- // (which is just equivalent to: $(content).find(expr)- } else- return jQuery( context ).find( selector );-- // HANDLE: $(function)- // Shortcut for document ready- } else if ( jQuery.isFunction( selector ) )- return jQuery( document )[ jQuery.fn.ready ? "ready" : "load" ]( selector );-- return this.setArray(jQuery.makeArray(selector));- },-- // The current version of jQuery being used- jquery: "1.2.6",-- // The number of elements contained in the matched element set- size: function() {- return this.length;- },-- // The number of elements contained in the matched element set- length: 0,-- // Get the Nth element in the matched element set OR- // Get the whole matched element set as a clean array- get: function( num ) {- return num == undefined ?-- // Return a 'clean' array- jQuery.makeArray( this ) :-- // Return just the object- this[ num ];- },-- // Take an array of elements and push it onto the stack- // (returning the new matched element set)- pushStack: function( elems ) {- // Build a new jQuery matched element set- var ret = jQuery( elems );-- // Add the old object onto the stack (as a reference)- ret.prevObject = this;-- // Return the newly-formed element set- return ret;- },-- // Force the current matched set of elements to become- // the specified array of elements (destroying the stack in the process)- // You should use pushStack() in order to do this, but maintain the stack- setArray: function( elems ) {- // Resetting the length to 0, then using the native Array push- // is a super-fast way to populate an object with array-like properties- this.length = 0;- Array.prototype.push.apply( this, elems );-- return this;- },-- // Execute a callback for every element in the matched set.- // (You can seed the arguments with an array of args, but this is- // only used internally.)- each: function( callback, args ) {- return jQuery.each( this, callback, args );- },-- // Determine the position of an element within- // the matched set of elements- index: function( elem ) {- var ret = -1;-- // Locate the position of the desired element- return jQuery.inArray(- // If it receives a jQuery object, the first element is used- elem && elem.jquery ? elem[0] : elem- , this );- },-- attr: function( name, value, type ) {- var options = name;-- // Look for the case where we're accessing a style value- if ( name.constructor == String )- if ( value === undefined )- return this[0] && jQuery[ type || "attr" ]( this[0], name );-- else {- options = {};- options[ name ] = value;- }-- // Check to see if we're setting style values- return this.each(function(i){- // Set all the styles- for ( name in options )- jQuery.attr(- type ?- this.style :- this,- name, jQuery.prop( this, options[ name ], type, i, name )- );- });- },-- css: function( key, value ) {- // ignore negative width and height values- if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )- value = undefined;- return this.attr( key, value, "curCSS" );- },-- text: function( text ) {- if ( typeof text != "object" && text != null )- return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );-- var ret = "";-- jQuery.each( text || this, function(){- jQuery.each( this.childNodes, function(){- if ( this.nodeType != 8 )- ret += this.nodeType != 1 ?- this.nodeValue :- jQuery.fn.text( [ this ] );- });- });-- return ret;- },-- wrapAll: function( html ) {- if ( this[0] )- // The elements to wrap the target around- jQuery( html, this[0].ownerDocument )- .clone()- .insertBefore( this[0] )- .map(function(){- var elem = this;-- while ( elem.firstChild )- elem = elem.firstChild;-- return elem;- })- .append(this);-- return this;- },-- wrapInner: function( html ) {- return this.each(function(){- jQuery( this ).contents().wrapAll( html );- });- },-- wrap: function( html ) {- return this.each(function(){- jQuery( this ).wrapAll( html );- });- },-- append: function() {- return this.domManip(arguments, true, false, function(elem){- if (this.nodeType == 1)- this.appendChild( elem );- });- },-- prepend: function() {- return this.domManip(arguments, true, true, function(elem){- if (this.nodeType == 1)- this.insertBefore( elem, this.firstChild );- });- },-- before: function() {- return this.domManip(arguments, false, false, function(elem){- this.parentNode.insertBefore( elem, this );- });- },-- after: function() {- return this.domManip(arguments, false, true, function(elem){- this.parentNode.insertBefore( elem, this.nextSibling );- });- },-- end: function() {- return this.prevObject || jQuery( [] );- },-- find: function( selector ) {- var elems = jQuery.map(this, function(elem){- return jQuery.find( selector, elem );- });-- return this.pushStack( /[^+>] [^+>]/.test( selector ) || selector.indexOf("..") > -1 ?- jQuery.unique( elems ) :- elems );- },-- clone: function( events ) {- // Do the clone- var ret = this.map(function(){- if ( jQuery.browser.msie && !jQuery.isXMLDoc(this) ) {- // IE copies events bound via attachEvent when- // using cloneNode. Calling detachEvent on the- // clone will also remove the events from the orignal- // In order to get around this, we use innerHTML.- // Unfortunately, this means some modifications to- // attributes in IE that are actually only stored- // as properties will not be copied (such as the- // the name attribute on an input).- var clone = this.cloneNode(true),- container = document.createElement("div");- container.appendChild(clone);- return jQuery.clean([container.innerHTML])[0];- } else- return this.cloneNode(true);- });-- // Need to set the expando to null on the cloned set if it exists- // removeData doesn't work here, IE removes it from the original as well- // this is primarily for IE but the data expando shouldn't be copied over in any browser- var clone = ret.find("*").andSelf().each(function(){- if ( this[ expando ] != undefined )- this[ expando ] = null;- });-- // Copy the events from the original to the clone- if ( events === true )- this.find("*").andSelf().each(function(i){- if (this.nodeType == 3)- return;- var events = jQuery.data( this, "events" );-- for ( var type in events )- for ( var handler in events[ type ] )- jQuery.event.add( clone[ i ], type, events[ type ][ handler ], events[ type ][ handler ].data );- });-- // Return the cloned set- return ret;- },-- filter: function( selector ) {- return this.pushStack(- jQuery.isFunction( selector ) &&- jQuery.grep(this, function(elem, i){- return selector.call( elem, i );- }) ||-- jQuery.multiFilter( selector, this ) );- },-- not: function( selector ) {- if ( selector.constructor == String )- // test special case where just one selector is passed in- if ( isSimple.test( selector ) )- return this.pushStack( jQuery.multiFilter( selector, this, true ) );- else- selector = jQuery.multiFilter( selector, this );-- var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;- return this.filter(function() {- return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;- });- },-- add: function( selector ) {- return this.pushStack( jQuery.unique( jQuery.merge(- this.get(),- typeof selector == 'string' ?- jQuery( selector ) :- jQuery.makeArray( selector )- )));- },-- is: function( selector ) {- return !!selector && jQuery.multiFilter( selector, this ).length > 0;- },-- hasClass: function( selector ) {- return this.is( "." + selector );- },-- val: function( value ) {- if ( value == undefined ) {-- if ( this.length ) {- var elem = this[0];-- // We need to handle select boxes special- if ( jQuery.nodeName( elem, "select" ) ) {- var index = elem.selectedIndex,- values = [],- options = elem.options,- one = elem.type == "select-one";-- // Nothing was selected- if ( index < 0 )- return null;-- // Loop through all the selected options- for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {- var option = options[ i ];-- if ( option.selected ) {- // Get the specifc value for the option- value = jQuery.browser.msie && !option.attributes.value.specified ? option.text : option.value;-- // We don't need an array for one selects- if ( one )- return value;-- // Multi-Selects return an array- values.push( value );- }- }-- return values;-- // Everything else, we just grab the value- } else- return (this[0].value || "").replace(/\r/g, "");-- }-- return undefined;- }-- if( value.constructor == Number )- value += '';-- return this.each(function(){- if ( this.nodeType != 1 )- return;-- if ( value.constructor == Array && /radio|checkbox/.test( this.type ) )- this.checked = (jQuery.inArray(this.value, value) >= 0 ||- jQuery.inArray(this.name, value) >= 0);-- else if ( jQuery.nodeName( this, "select" ) ) {- var values = jQuery.makeArray(value);-- jQuery( "option", this ).each(function(){- this.selected = (jQuery.inArray( this.value, values ) >= 0 ||- jQuery.inArray( this.text, values ) >= 0);- });-- if ( !values.length )- this.selectedIndex = -1;-- } else- this.value = value;- });- },-- html: function( value ) {- return value == undefined ?- (this[0] ?- this[0].innerHTML :- null) :- this.empty().append( value );- },-- replaceWith: function( value ) {- return this.after( value ).remove();- },-- eq: function( i ) {- return this.slice( i, i + 1 );- },-- slice: function() {- return this.pushStack( Array.prototype.slice.apply( this, arguments ) );- },-- map: function( callback ) {- return this.pushStack( jQuery.map(this, function(elem, i){- return callback.call( elem, i, elem );- }));- },-- andSelf: function() {- return this.add( this.prevObject );- },-- data: function( key, value ){- var parts = key.split(".");- parts[1] = parts[1] ? "." + parts[1] : "";-- if ( value === undefined ) {- var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);-- if ( data === undefined && this.length )- data = jQuery.data( this[0], key );-- return data === undefined && parts[1] ?- this.data( parts[0] ) :- data;- } else- return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){- jQuery.data( this, key, value );- });- },-- removeData: function( key ){- return this.each(function(){- jQuery.removeData( this, key );- });- },-- domManip: function( args, table, reverse, callback ) {- var clone = this.length > 1, elems;-- return this.each(function(){- if ( !elems ) {- elems = jQuery.clean( args, this.ownerDocument );-- if ( reverse )- elems.reverse();- }-- var obj = this;-- if ( table && jQuery.nodeName( this, "table" ) && jQuery.nodeName( elems[0], "tr" ) )- obj = this.getElementsByTagName("tbody")[0] || this.appendChild( this.ownerDocument.createElement("tbody") );-- var scripts = jQuery( [] );-- jQuery.each(elems, function(){- var elem = clone ?- jQuery( this ).clone( true )[0] :- this;-- // execute all scripts after the elements have been injected- if ( jQuery.nodeName( elem, "script" ) )- scripts = scripts.add( elem );- else {- // Remove any inner scripts for later evaluation- if ( elem.nodeType == 1 )- scripts = scripts.add( jQuery( "script", elem ).remove() );-- // Inject the elements into the document- callback.call( obj, elem );- }- });-- scripts.each( evalScript );- });- }-};--// Give the init function the jQuery prototype for later instantiation-jQuery.fn.init.prototype = jQuery.fn;--function evalScript( i, elem ) {- if ( elem.src )- jQuery.ajax({- url: elem.src,- async: false,- dataType: "script"- });-- else- jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );-- if ( elem.parentNode )- elem.parentNode.removeChild( elem );-}--function now(){- return +new Date;-}--jQuery.extend = jQuery.fn.extend = function() {- // copy reference to target object- var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;-- // Handle a deep copy situation- if ( target.constructor == Boolean ) {- deep = target;- target = arguments[1] || {};- // skip the boolean and the target- i = 2;- }-- // Handle case when target is a string or something (possible in deep copy)- if ( typeof target != "object" && typeof target != "function" )- target = {};-- // extend jQuery itself if only one argument is passed- if ( length == i ) {- target = this;- --i;- }-- for ( ; i < length; i++ )- // Only deal with non-null/undefined values- if ( (options = arguments[ i ]) != null )- // Extend the base object- for ( var name in options ) {- var src = target[ name ], copy = options[ name ];-- // Prevent never-ending loop- if ( target === copy )- continue;-- // Recurse if we're merging object values- if ( deep && copy && typeof copy == "object" && !copy.nodeType )- target[ name ] = jQuery.extend( deep,- // Never move original objects, clone them- src || ( copy.length != null ? [ ] : { } )- , copy );-- // Don't bring in undefined values- else if ( copy !== undefined )- target[ name ] = copy;-- }-- // Return the modified object- return target;-};--var expando = "jQuery" + now(), uuid = 0, windowData = {},- // exclude the following css properties to add px- exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,- // cache defaultView- defaultView = document.defaultView || {};--jQuery.extend({- noConflict: function( deep ) {- window.$ = _$;-- if ( deep )- window.jQuery = _jQuery;-- return jQuery;- },-- // See test/unit/core.js for details concerning this function.- isFunction: function( fn ) {- return !!fn && typeof fn != "string" && !fn.nodeName &&- fn.constructor != Array && /^[\s[]?function/.test( fn + "" );- },-- // check if an element is in a (or is an) XML document- isXMLDoc: function( elem ) {- return elem.documentElement && !elem.body ||- elem.tagName && elem.ownerDocument && !elem.ownerDocument.body;- },-- // Evalulates a script in a global context- globalEval: function( data ) {- data = jQuery.trim( data );-- if ( data ) {- // Inspired by code by Andrea Giammarchi- // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html- var head = document.getElementsByTagName("head")[0] || document.documentElement,- script = document.createElement("script");-- script.type = "text/javascript";- if ( jQuery.browser.msie )- script.text = data;- else- script.appendChild( document.createTextNode( data ) );-- // Use insertBefore instead of appendChild to circumvent an IE6 bug.- // This arises when a base node is used (#2709).- head.insertBefore( script, head.firstChild );- head.removeChild( script );- }- },-- nodeName: function( elem, name ) {- return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();- },-- cache: {},-- data: function( elem, name, data ) {- elem = elem == window ?- windowData :- elem;-- var id = elem[ expando ];-- // Compute a unique ID for the element- if ( !id )- id = elem[ expando ] = ++uuid;-- // Only generate the data cache if we're- // trying to access or manipulate it- if ( name && !jQuery.cache[ id ] )- jQuery.cache[ id ] = {};-- // Prevent overriding the named cache with undefined values- if ( data !== undefined )- jQuery.cache[ id ][ name ] = data;-- // Return the named cache data, or the ID for the element- return name ?- jQuery.cache[ id ][ name ] :- id;- },-- removeData: function( elem, name ) {- elem = elem == window ?- windowData :- elem;-- var id = elem[ expando ];-- // If we want to remove a specific section of the element's data- if ( name ) {- if ( jQuery.cache[ id ] ) {- // Remove the section of cache data- delete jQuery.cache[ id ][ name ];-- // If we've removed all the data, remove the element's cache- name = "";-- for ( name in jQuery.cache[ id ] )- break;-- if ( !name )- jQuery.removeData( elem );- }-- // Otherwise, we want to remove all of the element's data- } else {- // Clean up the element expando- try {- delete elem[ expando ];- } catch(e){- // IE has trouble directly removing the expando- // but it's ok with using removeAttribute- if ( elem.removeAttribute )- elem.removeAttribute( expando );- }-- // Completely remove the data cache- delete jQuery.cache[ id ];- }- },-- // args is for internal usage only- each: function( object, callback, args ) {- var name, i = 0, length = object.length;-- if ( args ) {- if ( length == undefined ) {- for ( name in object )- if ( callback.apply( object[ name ], args ) === false )- break;- } else- for ( ; i < length; )- if ( callback.apply( object[ i++ ], args ) === false )- break;-- // A special, fast, case for the most common use of each- } else {- if ( length == undefined ) {- for ( name in object )- if ( callback.call( object[ name ], name, object[ name ] ) === false )- break;- } else- for ( var value = object[0];- i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}- }-- return object;- },-- prop: function( elem, value, type, i, name ) {- // Handle executable functions- if ( jQuery.isFunction( value ) )- value = value.call( elem, i );-- // Handle passing in a number to a CSS property- return value && value.constructor == Number && type == "curCSS" && !exclude.test( name ) ?- value + "px" :- value;- },-- className: {- // internal only, use addClass("class")- add: function( elem, classNames ) {- jQuery.each((classNames || "").split(/\s+/), function(i, className){- if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )- elem.className += (elem.className ? " " : "") + className;- });- },-- // internal only, use removeClass("class")- remove: function( elem, classNames ) {- if (elem.nodeType == 1)- elem.className = classNames != undefined ?- jQuery.grep(elem.className.split(/\s+/), function(className){- return !jQuery.className.has( classNames, className );- }).join(" ") :- "";- },-- // internal only, use hasClass("class")- has: function( elem, className ) {- return jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;- }- },-- // A method for quickly swapping in/out CSS properties to get correct calculations- swap: function( elem, options, callback ) {- var old = {};- // Remember the old values, and insert the new ones- for ( var name in options ) {- old[ name ] = elem.style[ name ];- elem.style[ name ] = options[ name ];- }-- callback.call( elem );-- // Revert the old values- for ( var name in options )- elem.style[ name ] = old[ name ];- },-- css: function( elem, name, force ) {- if ( name == "width" || name == "height" ) {- var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ];-- function getWH() {- val = name == "width" ? elem.offsetWidth : elem.offsetHeight;- var padding = 0, border = 0;- jQuery.each( which, function() {- padding += parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;- border += parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;- });- val -= Math.round(padding + border);- }-- if ( jQuery(elem).is(":visible") )- getWH();- else- jQuery.swap( elem, props, getWH );-- return Math.max(0, val);- }-- return jQuery.curCSS( elem, name, force );- },-- curCSS: function( elem, name, force ) {- var ret, style = elem.style;-- // A helper method for determining if an element's values are broken- function color( elem ) {- if ( !jQuery.browser.safari )- return false;-- // defaultView is cached- var ret = defaultView.getComputedStyle( elem, null );- return !ret || ret.getPropertyValue("color") == "";- }-- // We need to handle opacity special in IE- if ( name == "opacity" && jQuery.browser.msie ) {- ret = jQuery.attr( style, "opacity" );-- return ret == "" ?- "1" :- ret;- }- // Opera sometimes will give the wrong display answer, this fixes it, see #2037- if ( jQuery.browser.opera && name == "display" ) {- var save = style.outline;- style.outline = "0 solid black";- style.outline = save;- }-- // Make sure we're using the right name for getting the float value- if ( name.match( /float/i ) )- name = styleFloat;-- if ( !force && style && style[ name ] )- ret = style[ name ];-- else if ( defaultView.getComputedStyle ) {-- // Only "float" is needed here- if ( name.match( /float/i ) )- name = "float";-- name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();-- var computedStyle = defaultView.getComputedStyle( elem, null );-- if ( computedStyle && !color( elem ) )- ret = computedStyle.getPropertyValue( name );-- // If the element isn't reporting its values properly in Safari- // then some display: none elements are involved- else {- var swap = [], stack = [], a = elem, i = 0;-- // Locate all of the parent display: none elements- for ( ; a && color(a); a = a.parentNode )- stack.unshift(a);-- // Go through and make them visible, but in reverse- // (It would be better if we knew the exact display type that they had)- for ( ; i < stack.length; i++ )- if ( color( stack[ i ] ) ) {- swap[ i ] = stack[ i ].style.display;- stack[ i ].style.display = "block";- }-- // Since we flip the display style, we have to handle that- // one special, otherwise get the value- ret = name == "display" && swap[ stack.length - 1 ] != null ?- "none" :- ( computedStyle && computedStyle.getPropertyValue( name ) ) || "";-- // Finally, revert the display styles back- for ( i = 0; i < swap.length; i++ )- if ( swap[ i ] != null )- stack[ i ].style.display = swap[ i ];- }-- // We should always get a number back from opacity- if ( name == "opacity" && ret == "" )- ret = "1";-- } else if ( elem.currentStyle ) {- var camelCase = name.replace(/\-(\w)/g, function(all, letter){- return letter.toUpperCase();- });-- ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];-- // From the awesome hack by Dean Edwards- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291-- // If we're not dealing with a regular pixel number- // but a number that has a weird ending, we need to convert it to pixels- if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {- // Remember the original values- var left = style.left, rsLeft = elem.runtimeStyle.left;-- // Put in the new values to get a computed value out- elem.runtimeStyle.left = elem.currentStyle.left;- style.left = ret || 0;- ret = style.pixelLeft + "px";-- // Revert the changed values- style.left = left;- elem.runtimeStyle.left = rsLeft;- }- }-- return ret;- },-- clean: function( elems, context ) {- var ret = [];- context = context || document;- // !context.createElement fails in IE with an error but returns typeof 'object'- if (typeof context.createElement == 'undefined')- context = context.ownerDocument || context[0] && context[0].ownerDocument || document;-- jQuery.each(elems, function(i, elem){- if ( !elem )- return;-- if ( elem.constructor == Number )- elem += '';-- // Convert html string into DOM nodes- if ( typeof elem == "string" ) {- // Fix "XHTML"-style tags in all browsers- elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){- return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?- all :- front + "></" + tag + ">";- });-- // Trim whitespace, otherwise indexOf won't work as expected- var tags = jQuery.trim( elem ).toLowerCase(), div = context.createElement("div");-- var wrap =- // option or optgroup- !tags.indexOf("<opt") &&- [ 1, "<select multiple='multiple'>", "</select>" ] ||-- !tags.indexOf("<leg") &&- [ 1, "<fieldset>", "</fieldset>" ] ||-- tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&- [ 1, "<table>", "</table>" ] ||-- !tags.indexOf("<tr") &&- [ 2, "<table><tbody>", "</tbody></table>" ] ||-- // <thead> matched above- (!tags.indexOf("<td") || !tags.indexOf("<th")) &&- [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||-- !tags.indexOf("<col") &&- [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||-- // IE can't serialize <link> and <script> tags normally- jQuery.browser.msie &&- [ 1, "div<div>", "</div>" ] ||-- [ 0, "", "" ];-- // Go to html and back, then peel off extra wrappers- div.innerHTML = wrap[1] + elem + wrap[2];-- // Move to the right depth- while ( wrap[0]-- )- div = div.lastChild;-- // Remove IE's autoinserted <tbody> from table fragments- if ( jQuery.browser.msie ) {-- // String was a <table>, *may* have spurious <tbody>- var tbody = !tags.indexOf("<table") && tags.indexOf("<tbody") < 0 ?- div.firstChild && div.firstChild.childNodes :-- // String was a bare <thead> or <tfoot>- wrap[1] == "<table>" && tags.indexOf("<tbody") < 0 ?- div.childNodes :- [];-- for ( var j = tbody.length - 1; j >= 0 ; --j )- if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length )- tbody[ j ].parentNode.removeChild( tbody[ j ] );-- // IE completely kills leading whitespace when innerHTML is used- if ( /^\s/.test( elem ) )- div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );-- }-- elem = jQuery.makeArray( div.childNodes );- }-- if ( elem.length === 0 && (!jQuery.nodeName( elem, "form" ) && !jQuery.nodeName( elem, "select" )) )- return;-- if ( elem[0] == undefined || jQuery.nodeName( elem, "form" ) || elem.options )- ret.push( elem );-- else- ret = jQuery.merge( ret, elem );-- });-- return ret;- },-- attr: function( elem, name, value ) {- // don't set attributes on text and comment nodes- if (!elem || elem.nodeType == 3 || elem.nodeType == 8)- return undefined;-- var notxml = !jQuery.isXMLDoc( elem ),- // Whether we are setting (or getting)- set = value !== undefined,- msie = jQuery.browser.msie;-- // Try to normalize/fix the name- name = notxml && jQuery.props[ name ] || name;-- // Only do all the following if this is a node (faster for style)- // IE elem.getAttribute passes even for style- if ( elem.tagName ) {-- // These attributes require special treatment- var special = /href|src|style/.test( name );-- // Safari mis-reports the default selected property of a hidden option- // Accessing the parent's selectedIndex property fixes it- if ( name == "selected" && jQuery.browser.safari )- elem.parentNode.selectedIndex;-- // If applicable, access the attribute via the DOM 0 way- if ( name in elem && notxml && !special ) {- if ( set ){- // We can't allow the type property to be changed (since it causes problems in IE)- if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )- throw "type property can't be changed";-- elem[ name ] = value;- }-- // browsers index elements by id/name on forms, give priority to attributes.- if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )- return elem.getAttributeNode( name ).nodeValue;-- return elem[ name ];- }-- if ( msie && notxml && name == "style" )- return jQuery.attr( elem.style, "cssText", value );-- if ( set )- // convert the value to a string (all browsers do this but IE) see #1070- elem.setAttribute( name, "" + value );-- var attr = msie && notxml && special- // Some attributes require a special call on IE- ? elem.getAttribute( name, 2 )- : elem.getAttribute( name );-- // Non-existent attributes return null, we normalize to undefined- return attr === null ? undefined : attr;- }-- // elem is actually elem.style ... set the style-- // IE uses filters for opacity- if ( msie && name == "opacity" ) {- if ( set ) {- // IE has trouble with opacity if it does not have layout- // Force it by setting the zoom level- elem.zoom = 1;-- // Set the alpha filter to set the opacity- elem.filter = (elem.filter || "").replace( /alpha\([^)]*\)/, "" ) +- (parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");- }-- return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?- (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':- "";- }-- name = name.replace(/-([a-z])/ig, function(all, letter){- return letter.toUpperCase();- });-- if ( set )- elem[ name ] = value;-- return elem[ name ];- },-- trim: function( text ) {- return (text || "").replace( /^\s+|\s+$/g, "" );- },-- makeArray: function( array ) {- var ret = [];-- if( array != null ){- var i = array.length;- //the window, strings and functions also have 'length'- if( i == null || array.split || array.setInterval || array.call )- ret[0] = array;- else- while( i )- ret[--i] = array[i];- }-- return ret;- },-- inArray: function( elem, array ) {- for ( var i = 0, length = array.length; i < length; i++ )- // Use === because on IE, window == document- if ( array[ i ] === elem )- return i;-- return -1;- },-- merge: function( first, second ) {- // We have to loop this way because IE & Opera overwrite the length- // expando of getElementsByTagName- var i = 0, elem, pos = first.length;- // Also, we need to make sure that the correct elements are being returned- // (IE returns comment nodes in a '*' query)- if ( jQuery.browser.msie ) {- while ( elem = second[ i++ ] )- if ( elem.nodeType != 8 )- first[ pos++ ] = elem;-- } else- while ( elem = second[ i++ ] )- first[ pos++ ] = elem;-- return first;- },-- unique: function( array ) {- var ret = [], done = {};-- try {-- for ( var i = 0, length = array.length; i < length; i++ ) {- var id = jQuery.data( array[ i ] );-- if ( !done[ id ] ) {- done[ id ] = true;- ret.push( array[ i ] );- }- }-- } catch( e ) {- ret = array;- }-- return ret;- },-- grep: function( elems, callback, inv ) {- var ret = [];-- // Go through the array, only saving the items- // that pass the validator function- for ( var i = 0, length = elems.length; i < length; i++ )- if ( !inv != !callback( elems[ i ], i ) )- ret.push( elems[ i ] );-- return ret;- },-- map: function( elems, callback ) {- var ret = [];-- // Go through the array, translating each of the items to their- // new value (or values).- for ( var i = 0, length = elems.length; i < length; i++ ) {- var value = callback( elems[ i ], i );-- if ( value != null )- ret[ ret.length ] = value;- }-- return ret.concat.apply( [], ret );- }-});--var userAgent = navigator.userAgent.toLowerCase();--// Figure out what browser is being used-jQuery.browser = {- version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1],- safari: /webkit/.test( userAgent ),- opera: /opera/.test( userAgent ),- msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),- mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )-};--var styleFloat = jQuery.browser.msie ?- "styleFloat" :- "cssFloat";--jQuery.extend({- // Check to see if the W3C box model is being used- boxModel: !jQuery.browser.msie || document.compatMode == "CSS1Compat",-- props: {- "for": "htmlFor",- "class": "className",- "float": styleFloat,- cssFloat: styleFloat,- styleFloat: styleFloat,- readonly: "readOnly",- maxlength: "maxLength",- cellspacing: "cellSpacing"- }-});--jQuery.each({- parent: function(elem){return elem.parentNode;},- parents: function(elem){return jQuery.dir(elem,"parentNode");},- next: function(elem){return jQuery.nth(elem,2,"nextSibling");},- prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},- nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},- prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},- siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},- children: function(elem){return jQuery.sibling(elem.firstChild);},- contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}-}, function(name, fn){- jQuery.fn[ name ] = function( selector ) {- var ret = jQuery.map( this, fn );-- if ( selector && typeof selector == "string" )- ret = jQuery.multiFilter( selector, ret );-- return this.pushStack( jQuery.unique( ret ) );- };-});--jQuery.each({- appendTo: "append",- prependTo: "prepend",- insertBefore: "before",- insertAfter: "after",- replaceAll: "replaceWith"-}, function(name, original){- jQuery.fn[ name ] = function() {- var args = arguments;-- return this.each(function(){- for ( var i = 0, length = args.length; i < length; i++ )- jQuery( args[ i ] )[ original ]( this );- });- };-});--jQuery.each({- removeAttr: function( name ) {- jQuery.attr( this, name, "" );- if (this.nodeType == 1)- this.removeAttribute( name );- },-- addClass: function( classNames ) {- jQuery.className.add( this, classNames );- },-- removeClass: function( classNames ) {- jQuery.className.remove( this, classNames );- },-- toggleClass: function( classNames ) {- jQuery.className[ jQuery.className.has( this, classNames ) ? "remove" : "add" ]( this, classNames );- },-- remove: function( selector ) {- if ( !selector || jQuery.filter( selector, [ this ] ).r.length ) {- // Prevent memory leaks- jQuery( "*", this ).add(this).each(function(){- jQuery.event.remove(this);- jQuery.removeData(this);- });- if (this.parentNode)- this.parentNode.removeChild( this );- }- },-- empty: function() {- // Remove element nodes and prevent memory leaks- jQuery( ">*", this ).remove();-- // Remove any remaining nodes- while ( this.firstChild )- this.removeChild( this.firstChild );- }-}, function(name, fn){- jQuery.fn[ name ] = function(){- return this.each( fn, arguments );- };-});--jQuery.each([ "Height", "Width" ], function(i, name){- var type = name.toLowerCase();-- jQuery.fn[ type ] = function( size ) {- // Get window width or height- return this[0] == window ?- // Opera reports document.body.client[Width/Height] properly in both quirks and standards- jQuery.browser.opera && document.body[ "client" + name ] ||-- // Safari reports inner[Width/Height] just fine (Mozilla and Opera include scroll bar widths)- jQuery.browser.safari && window[ "inner" + name ] ||-- // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode- document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] || document.body[ "client" + name ] :-- // Get document width or height- this[0] == document ?- // Either scroll[Width/Height] or offset[Width/Height], whichever is greater- Math.max(- Math.max(document.body["scroll" + name], document.documentElement["scroll" + name]),- Math.max(document.body["offset" + name], document.documentElement["offset" + name])- ) :-- // Get or set width or height on the element- size == undefined ?- // Get width or height on the element- (this.length ? jQuery.css( this[0], type ) : null) :-- // Set the width or height on the element (default to pixels if value is unitless)- this.css( type, size.constructor == String ? size : size + "px" );- };-});--// Helper function used by the dimensions and offset modules-function num(elem, prop) {- return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;-}var chars = jQuery.browser.safari && parseInt(jQuery.browser.version) < 417 ?- "(?:[\\w*_-]|\\\\.)" :- "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",- quickChild = new RegExp("^>\\s*(" + chars + "+)"),- quickID = new RegExp("^(" + chars + "+)(#)(" + chars + "+)"),- quickClass = new RegExp("^([#.]?)(" + chars + "*)");--jQuery.extend({- expr: {- "": function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},- "#": function(a,i,m){return a.getAttribute("id")==m[2];},- ":": {- // Position Checks- lt: function(a,i,m){return i<m[3]-0;},- gt: function(a,i,m){return i>m[3]-0;},- nth: function(a,i,m){return m[3]-0==i;},- eq: function(a,i,m){return m[3]-0==i;},- first: function(a,i){return i==0;},- last: function(a,i,m,r){return i==r.length-1;},- even: function(a,i){return i%2==0;},- odd: function(a,i){return i%2;},-- // Child Checks- "first-child": function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},- "last-child": function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},- "only-child": function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},-- // Parent Checks- parent: function(a){return a.firstChild;},- empty: function(a){return !a.firstChild;},-- // Text Check- contains: function(a,i,m){return (a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},-- // Visibility- visible: function(a){return "hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},- hidden: function(a){return "hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},-- // Form attributes- enabled: function(a){return !a.disabled;},- disabled: function(a){return a.disabled;},- checked: function(a){return a.checked;},- selected: function(a){return a.selected||jQuery.attr(a,"selected");},-- // Form elements- text: function(a){return "text"==a.type;},- radio: function(a){return "radio"==a.type;},- checkbox: function(a){return "checkbox"==a.type;},- file: function(a){return "file"==a.type;},- password: function(a){return "password"==a.type;},- submit: function(a){return "submit"==a.type;},- image: function(a){return "image"==a.type;},- reset: function(a){return "reset"==a.type;},- button: function(a){return "button"==a.type||jQuery.nodeName(a,"button");},- input: function(a){return /input|select|textarea|button/i.test(a.nodeName);},-- // :has()- has: function(a,i,m){return jQuery.find(m[3],a).length;},-- // :header- header: function(a){return /h\d/i.test(a.nodeName);},-- // :animated- animated: function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}- }- },-- // The regular expressions that power the parsing engine- parse: [- // Match: [@value='test'], [@foo]- /^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,-- // Match: :contains('foo')- /^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,-- // Match: :even, :last-child, #id, .class- new RegExp("^([:.#]*)(" + chars + "+)")- ],-- multiFilter: function( expr, elems, not ) {- var old, cur = [];-- while ( expr && expr != old ) {- old = expr;- var f = jQuery.filter( expr, elems, not );- expr = f.t.replace(/^\s*,\s*/, "" );- cur = not ? elems = f.r : jQuery.merge( cur, f.r );- }-- return cur;- },-- find: function( t, context ) {- // Quickly handle non-string expressions- if ( typeof t != "string" )- return [ t ];-- // check to make sure context is a DOM element or a document- if ( context && context.nodeType != 1 && context.nodeType != 9)- return [ ];-- // Set the correct context (if none is provided)- context = context || document;-- // Initialize the search- var ret = [context], done = [], last, nodeName;-- // Continue while a selector expression exists, and while- // we're no longer looping upon ourselves- while ( t && last != t ) {- var r = [];- last = t;-- t = jQuery.trim(t);-- var foundToken = false,-- // An attempt at speeding up child selectors that- // point to a specific element tag- re = quickChild,-- m = re.exec(t);-- if ( m ) {- nodeName = m[1].toUpperCase();-- // Perform our own iteration and filter- for ( var i = 0; ret[i]; i++ )- for ( var c = ret[i].firstChild; c; c = c.nextSibling )- if ( c.nodeType == 1 && (nodeName == "*" || c.nodeName.toUpperCase() == nodeName) )- r.push( c );-- ret = r;- t = t.replace( re, "" );- if ( t.indexOf(" ") == 0 ) continue;- foundToken = true;- } else {- re = /^([>+~])\s*(\w*)/i;-- if ( (m = re.exec(t)) != null ) {- r = [];-- var merge = {};- nodeName = m[2].toUpperCase();- m = m[1];-- for ( var j = 0, rl = ret.length; j < rl; j++ ) {- var n = m == "~" || m == "+" ? ret[j].nextSibling : ret[j].firstChild;- for ( ; n; n = n.nextSibling )- if ( n.nodeType == 1 ) {- var id = jQuery.data(n);-- if ( m == "~" && merge[id] ) break;-- if (!nodeName || n.nodeName.toUpperCase() == nodeName ) {- if ( m == "~" ) merge[id] = true;- r.push( n );- }-- if ( m == "+" ) break;- }- }-- ret = r;-- // And remove the token- t = jQuery.trim( t.replace( re, "" ) );- foundToken = true;- }- }-- // See if there's still an expression, and that we haven't already- // matched a token- if ( t && !foundToken ) {- // Handle multiple expressions- if ( !t.indexOf(",") ) {- // Clean the result set- if ( context == ret[0] ) ret.shift();-- // Merge the result sets- done = jQuery.merge( done, ret );-- // Reset the context- r = ret = [context];-- // Touch up the selector string- t = " " + t.substr(1,t.length);-- } else {- // Optimize for the case nodeName#idName- var re2 = quickID;- var m = re2.exec(t);-- // Re-organize the results, so that they're consistent- if ( m ) {- m = [ 0, m[2], m[3], m[1] ];-- } else {- // Otherwise, do a traditional filter check for- // ID, class, and element selectors- re2 = quickClass;- m = re2.exec(t);- }-- m[2] = m[2].replace(/\\/g, "");-- var elem = ret[ret.length-1];-- // Try to do a global search by ID, where we can- if ( m[1] == "#" && elem && elem.getElementById && !jQuery.isXMLDoc(elem) ) {- // Optimization for HTML document case- var oid = elem.getElementById(m[2]);-- // Do a quick check for the existence of the actual ID attribute- // to avoid selecting by the name attribute in IE- // also check to insure id is a string to avoid selecting an element with the name of 'id' inside a form- if ( (jQuery.browser.msie||jQuery.browser.opera) && oid && typeof oid.id == "string" && oid.id != m[2] )- oid = jQuery('[@id="'+m[2]+'"]', elem)[0];-- // Do a quick check for node name (where applicable) so- // that div#foo searches will be really fast- ret = r = oid && (!m[3] || jQuery.nodeName(oid, m[3])) ? [oid] : [];- } else {- // We need to find all descendant elements- for ( var i = 0; ret[i]; i++ ) {- // Grab the tag name being searched for- var tag = m[1] == "#" && m[3] ? m[3] : m[1] != "" || m[0] == "" ? "*" : m[2];-- // Handle IE7 being really dumb about <object>s- if ( tag == "*" && ret[i].nodeName.toLowerCase() == "object" )- tag = "param";-- r = jQuery.merge( r, ret[i].getElementsByTagName( tag ));- }-- // It's faster to filter by class and be done with it- if ( m[1] == "." )- r = jQuery.classFilter( r, m[2] );-- // Same with ID filtering- if ( m[1] == "#" ) {- var tmp = [];-- // Try to find the element with the ID- for ( var i = 0; r[i]; i++ )- if ( r[i].getAttribute("id") == m[2] ) {- tmp = [ r[i] ];- break;- }-- r = tmp;- }-- ret = r;- }-- t = t.replace( re2, "" );- }-- }-- // If a selector string still exists- if ( t ) {- // Attempt to filter it- var val = jQuery.filter(t,r);- ret = r = val.r;- t = jQuery.trim(val.t);- }- }-- // An error occurred with the selector;- // just return an empty set instead- if ( t )- ret = [];-- // Remove the root context- if ( ret && context == ret[0] )- ret.shift();-- // And combine the results- done = jQuery.merge( done, ret );-- return done;- },-- classFilter: function(r,m,not){- m = " " + m + " ";- var tmp = [];- for ( var i = 0; r[i]; i++ ) {- var pass = (" " + r[i].className + " ").indexOf( m ) >= 0;- if ( !not && pass || not && !pass )- tmp.push( r[i] );- }- return tmp;- },-- filter: function(t,r,not) {- var last;-- // Look for common filter expressions- while ( t && t != last ) {- last = t;-- var p = jQuery.parse, m;-- for ( var i = 0; p[i]; i++ ) {- m = p[i].exec( t );-- if ( m ) {- // Remove what we just matched- t = t.substring( m[0].length );-- m[2] = m[2].replace(/\\/g, "");- break;- }- }-- if ( !m )- break;-- // :not() is a special case that can be optimized by- // keeping it out of the expression list- if ( m[1] == ":" && m[2] == "not" )- // optimize if only one selector found (most common case)- r = isSimple.test( m[3] ) ?- jQuery.filter(m[3], r, true).r :- jQuery( r ).not( m[3] );-- // We can get a big speed boost by filtering by class here- else if ( m[1] == "." )- r = jQuery.classFilter(r, m[2], not);-- else if ( m[1] == "[" ) {- var tmp = [], type = m[3];-- for ( var i = 0, rl = r.length; i < rl; i++ ) {- var a = r[i], z = a[ jQuery.props[m[2]] || m[2] ];-- if ( z == null || /href|src|selected/.test(m[2]) )- z = jQuery.attr(a,m[2]) || '';-- if ( (type == "" && !!z ||- type == "=" && z == m[5] ||- type == "!=" && z != m[5] ||- type == "^=" && z && !z.indexOf(m[5]) ||- type == "$=" && z.substr(z.length - m[5].length) == m[5] ||- (type == "*=" || type == "~=") && z.indexOf(m[5]) >= 0) ^ not )- tmp.push( a );- }-- r = tmp;-- // We can get a speed boost by handling nth-child here- } else if ( m[1] == ":" && m[2] == "nth-child" ) {- var merge = {}, tmp = [],- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'- test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(- m[3] == "even" && "2n" || m[3] == "odd" && "2n+1" ||- !/\D/.test(m[3]) && "0n+" + m[3] || m[3]),- // calculate the numbers (first)n+(last) including if they are negative- first = (test[1] + (test[2] || 1)) - 0, last = test[3] - 0;-- // loop through all the elements left in the jQuery object- for ( var i = 0, rl = r.length; i < rl; i++ ) {- var node = r[i], parentNode = node.parentNode, id = jQuery.data(parentNode);-- if ( !merge[id] ) {- var c = 1;-- for ( var n = parentNode.firstChild; n; n = n.nextSibling )- if ( n.nodeType == 1 )- n.nodeIndex = c++;-- merge[id] = true;- }-- var add = false;-- if ( first == 0 ) {- if ( node.nodeIndex == last )- add = true;- } else if ( (node.nodeIndex - last) % first == 0 && (node.nodeIndex - last) / first >= 0 )- add = true;-- if ( add ^ not )- tmp.push( node );- }-- r = tmp;-- // Otherwise, find the expression to execute- } else {- var fn = jQuery.expr[ m[1] ];- if ( typeof fn == "object" )- fn = fn[ m[2] ];-- if ( typeof fn == "string" )- fn = eval("false||function(a,i){return " + fn + ";}");-- // Execute it against the current filter- r = jQuery.grep( r, function(elem, i){- return fn(elem, i, m, r);- }, not );- }- }-- // Return an array of filtered elements (r)- // and the modified expression string (t)- return { r: r, t: t };- },-- dir: function( elem, dir ){- var matched = [],- cur = elem[dir];- while ( cur && cur != document ) {- if ( cur.nodeType == 1 )- matched.push( cur );- cur = cur[dir];- }- return matched;- },-- nth: function(cur,result,dir,elem){- result = result || 1;- var num = 0;-- for ( ; cur; cur = cur[dir] )- if ( cur.nodeType == 1 && ++num == result )- break;-- return cur;- },-- sibling: function( n, elem ) {- var r = [];-- for ( ; n; n = n.nextSibling ) {- if ( n.nodeType == 1 && n != elem )- r.push( n );- }-- return r;- }-});-/*- * A number of helper functions used for managing events.- * Many of the ideas behind this code orignated from- * Dean Edwards' addEvent library.- */-jQuery.event = {-- // Bind an event to an element- // Original by Dean Edwards- add: function(elem, types, handler, data) {- if ( elem.nodeType == 3 || elem.nodeType == 8 )- return;-- // For whatever reason, IE has trouble passing the window object- // around, causing it to be cloned in the process- if ( jQuery.browser.msie && elem.setInterval )- elem = window;-- // Make sure that the function being executed has a unique ID- if ( !handler.guid )- handler.guid = this.guid++;-- // if data is passed, bind to handler- if( data != undefined ) {- // Create temporary function pointer to original handler- var fn = handler;-- // Create unique handler function, wrapped around original handler- handler = this.proxy( fn, function() {- // Pass arguments and context to original handler- return fn.apply(this, arguments);- });-- // Store data in unique handler- handler.data = data;- }-- // Init the element's event structure- var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),- handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){- // Handle the second event of a trigger and when- // an event is called after a page has unloaded- if ( typeof jQuery != "undefined" && !jQuery.event.triggered )- return jQuery.event.handle.apply(arguments.callee.elem, arguments);- });- // Add elem as a property of the handle function- // This is to prevent a memory leak with non-native- // event in IE.- handle.elem = elem;-- // Handle multiple events separated by a space- // jQuery(...).bind("mouseover mouseout", fn);- jQuery.each(types.split(/\s+/), function(index, type) {- // Namespaced event handlers- var parts = type.split(".");- type = parts[0];- handler.type = parts[1];-- // Get the current list of functions bound to this event- var handlers = events[type];-- // Init the event handler queue- if (!handlers) {- handlers = events[type] = {};-- // Check for a special event handler- // Only use addEventListener/attachEvent if the special- // events handler returns false- if ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem) === false ) {- // Bind the global event handler to the element- if (elem.addEventListener)- elem.addEventListener(type, handle, false);- else if (elem.attachEvent)- elem.attachEvent("on" + type, handle);- }- }-- // Add the function to the element's handler list- handlers[handler.guid] = handler;-- // Keep track of which events have been used, for global triggering- jQuery.event.global[type] = true;- });-- // Nullify elem to prevent memory leaks in IE- elem = null;- },-- guid: 1,- global: {},-- // Detach an event or set of events from an element- remove: function(elem, types, handler) {- // don't do events on text and comment nodes- if ( elem.nodeType == 3 || elem.nodeType == 8 )- return;-- var events = jQuery.data(elem, "events"), ret, index;-- if ( events ) {- // Unbind all events for the element- if ( types == undefined || (typeof types == "string" && types.charAt(0) == ".") )- for ( var type in events )- this.remove( elem, type + (types || "") );- else {- // types is actually an event object here- if ( types.type ) {- handler = types.handler;- types = types.type;- }-- // Handle multiple events seperated by a space- // jQuery(...).unbind("mouseover mouseout", fn);- jQuery.each(types.split(/\s+/), function(index, type){- // Namespaced event handlers- var parts = type.split(".");- type = parts[0];-- if ( events[type] ) {- // remove the given handler for the given type- if ( handler )- delete events[type][handler.guid];-- // remove all handlers for the given type- else- for ( handler in events[type] )- // Handle the removal of namespaced events- if ( !parts[1] || events[type][handler].type == parts[1] )- delete events[type][handler];-- // remove generic event handler if no more handlers exist- for ( ret in events[type] ) break;- if ( !ret ) {- if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem) === false ) {- if (elem.removeEventListener)- elem.removeEventListener(type, jQuery.data(elem, "handle"), false);- else if (elem.detachEvent)- elem.detachEvent("on" + type, jQuery.data(elem, "handle"));- }- ret = null;- delete events[type];- }- }- });- }-- // Remove the expando if it's no longer used- for ( ret in events ) break;- if ( !ret ) {- var handle = jQuery.data( elem, "handle" );- if ( handle ) handle.elem = null;- jQuery.removeData( elem, "events" );- jQuery.removeData( elem, "handle" );- }- }- },-- trigger: function(type, data, elem, donative, extra) {- // Clone the incoming data, if any- data = jQuery.makeArray(data);-- if ( type.indexOf("!") >= 0 ) {- type = type.slice(0, -1);- var exclusive = true;- }-- // Handle a global trigger- if ( !elem ) {- // Only trigger if we've ever bound an event for it- if ( this.global[type] )- jQuery("*").add([window, document]).trigger(type, data);-- // Handle triggering a single element- } else {- // don't do events on text and comment nodes- if ( elem.nodeType == 3 || elem.nodeType == 8 )- return undefined;-- var val, ret, fn = jQuery.isFunction( elem[ type ] || null ),- // Check to see if we need to provide a fake event, or not- event = !data[0] || !data[0].preventDefault;-- // Pass along a fake event- if ( event ) {- data.unshift({- type: type,- target: elem,- preventDefault: function(){},- stopPropagation: function(){},- timeStamp: now()- });- data[0][expando] = true; // no need to fix fake event- }-- // Enforce the right trigger type- data[0].type = type;- if ( exclusive )- data[0].exclusive = true;-- // Trigger the event, it is assumed that "handle" is a function- var handle = jQuery.data(elem, "handle");- if ( handle )- val = handle.apply( elem, data );-- // Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)- if ( (!fn || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )- val = false;-- // Extra functions don't get the custom event object- if ( event )- data.shift();-- // Handle triggering of extra function- if ( extra && jQuery.isFunction( extra ) ) {- // call the extra function and tack the current return value on the end for possible inspection- ret = extra.apply( elem, val == null ? data : data.concat( val ) );- // if anything is returned, give it precedence and have it overwrite the previous value- if (ret !== undefined)- val = ret;- }-- // Trigger the native events (except for clicks on links)- if ( fn && donative !== false && val !== false && !(jQuery.nodeName(elem, 'a') && type == "click") ) {- this.triggered = true;- try {- elem[ type ]();- // prevent IE from throwing an error for some hidden elements- } catch (e) {}- }-- this.triggered = false;- }-- return val;- },-- handle: function(event) {- // returned undefined or false- var val, ret, namespace, all, handlers;-- event = arguments[0] = jQuery.event.fix( event || window.event );-- // Namespaced event handlers- namespace = event.type.split(".");- event.type = namespace[0];- namespace = namespace[1];- // Cache this now, all = true means, any handler- all = !namespace && !event.exclusive;-- handlers = ( jQuery.data(this, "events") || {} )[event.type];-- for ( var j in handlers ) {- var handler = handlers[j];-- // Filter the functions by class- if ( all || handler.type == namespace ) {- // Pass in a reference to the handler function itself- // So that we can later remove it- event.handler = handler;- event.data = handler.data;-- ret = handler.apply( this, arguments );-- if ( val !== false )- val = ret;-- if ( ret === false ) {- event.preventDefault();- event.stopPropagation();- }- }- }-- return val;- },-- fix: function(event) {- if ( event[expando] == true )- return event;-- // store a copy of the original event object- // and "clone" to set read-only properties- var originalEvent = event;- event = { originalEvent: originalEvent };- var props = "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");- for ( var i=props.length; i; i-- )- event[ props[i] ] = originalEvent[ props[i] ];-- // Mark it as fixed- event[expando] = true;-- // add preventDefault and stopPropagation since- // they will not work on the clone- event.preventDefault = function() {- // if preventDefault exists run it on the original event- if (originalEvent.preventDefault)- originalEvent.preventDefault();- // otherwise set the returnValue property of the original event to false (IE)- originalEvent.returnValue = false;- };- event.stopPropagation = function() {- // if stopPropagation exists run it on the original event- if (originalEvent.stopPropagation)- originalEvent.stopPropagation();- // otherwise set the cancelBubble property of the original event to true (IE)- originalEvent.cancelBubble = true;- };-- // Fix timeStamp- event.timeStamp = event.timeStamp || now();-- // Fix target property, if necessary- if ( !event.target )- event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either-- // check if target is a textnode (safari)- if ( event.target.nodeType == 3 )- event.target = event.target.parentNode;-- // Add relatedTarget, if necessary- if ( !event.relatedTarget && event.fromElement )- event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;-- // Calculate pageX/Y if missing and clientX/Y available- if ( event.pageX == null && event.clientX != null ) {- var doc = document.documentElement, body = document.body;- event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);- event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);- }-- // Add which for key events- if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )- event.which = event.charCode || event.keyCode;-- // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)- if ( !event.metaKey && event.ctrlKey )- event.metaKey = event.ctrlKey;-- // Add which for click: 1 == left; 2 == middle; 3 == right- // Note: button is not normalized, so don't use it- if ( !event.which && event.button )- event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));-- return event;- },-- proxy: function( fn, proxy ){- // Set the guid of unique handler to the same of original handler, so it can be removed- proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;- // So proxy can be declared as an argument- return proxy;- },-- special: {- ready: {- setup: function() {- // Make sure the ready event is setup- bindReady();- return;- },-- teardown: function() { return; }- },-- mouseenter: {- setup: function() {- if ( jQuery.browser.msie ) return false;- jQuery(this).bind("mouseover", jQuery.event.special.mouseenter.handler);- return true;- },-- teardown: function() {- if ( jQuery.browser.msie ) return false;- jQuery(this).unbind("mouseover", jQuery.event.special.mouseenter.handler);- return true;- },-- handler: function(event) {- // If we actually just moused on to a sub-element, ignore it- if ( withinElement(event, this) ) return true;- // Execute the right handlers by setting the event type to mouseenter- event.type = "mouseenter";- return jQuery.event.handle.apply(this, arguments);- }- },-- mouseleave: {- setup: function() {- if ( jQuery.browser.msie ) return false;- jQuery(this).bind("mouseout", jQuery.event.special.mouseleave.handler);- return true;- },-- teardown: function() {- if ( jQuery.browser.msie ) return false;- jQuery(this).unbind("mouseout", jQuery.event.special.mouseleave.handler);- return true;- },-- handler: function(event) {- // If we actually just moused on to a sub-element, ignore it- if ( withinElement(event, this) ) return true;- // Execute the right handlers by setting the event type to mouseleave- event.type = "mouseleave";- return jQuery.event.handle.apply(this, arguments);- }- }- }-};--jQuery.fn.extend({- bind: function( type, data, fn ) {- return type == "unload" ? this.one(type, data, fn) : this.each(function(){- jQuery.event.add( this, type, fn || data, fn && data );- });- },-- one: function( type, data, fn ) {- var one = jQuery.event.proxy( fn || data, function(event) {- jQuery(this).unbind(event, one);- return (fn || data).apply( this, arguments );- });- return this.each(function(){- jQuery.event.add( this, type, one, fn && data);- });- },-- unbind: function( type, fn ) {- return this.each(function(){- jQuery.event.remove( this, type, fn );- });- },-- trigger: function( type, data, fn ) {- return this.each(function(){- jQuery.event.trigger( type, data, this, true, fn );- });- },-- triggerHandler: function( type, data, fn ) {- return this[0] && jQuery.event.trigger( type, data, this[0], false, fn );- },-- toggle: function( fn ) {- // Save reference to arguments for access in closure- var args = arguments, i = 1;-- // link all the functions, so any of them can unbind this click handler- while( i < args.length )- jQuery.event.proxy( fn, args[i++] );-- return this.click( jQuery.event.proxy( fn, function(event) {- // Figure out which function to execute- this.lastToggle = ( this.lastToggle || 0 ) % i;-- // Make sure that clicks stop- event.preventDefault();-- // and execute the function- return args[ this.lastToggle++ ].apply( this, arguments ) || false;- }));- },-- hover: function(fnOver, fnOut) {- return this.bind('mouseenter', fnOver).bind('mouseleave', fnOut);- },-- ready: function(fn) {- // Attach the listeners- bindReady();-- // If the DOM is already ready- if ( jQuery.isReady )- // Execute the function immediately- fn.call( document, jQuery );-- // Otherwise, remember the function for later- else- // Add the function to the wait list- jQuery.readyList.push( function() { return fn.call(this, jQuery); } );-- return this;- }-});--jQuery.extend({- isReady: false,- readyList: [],- // Handle when the DOM is ready- ready: function() {- // Make sure that the DOM is not already loaded- if ( !jQuery.isReady ) {- // Remember that the DOM is ready- jQuery.isReady = true;-- // If there are functions bound, to execute- if ( jQuery.readyList ) {- // Execute all of them- jQuery.each( jQuery.readyList, function(){- this.call( document );- });-- // Reset the list of functions- jQuery.readyList = null;- }-- // Trigger any bound ready events- jQuery(document).triggerHandler("ready");- }- }-});--var readyBound = false;--function bindReady(){- if ( readyBound ) return;- readyBound = true;-- // Mozilla, Opera (see further below for it) and webkit nightlies currently support this event- if ( document.addEventListener && !jQuery.browser.opera)- // Use the handy event callback- document.addEventListener( "DOMContentLoaded", jQuery.ready, false );-- // If IE is used and is not in a frame- // Continually check to see if the document is ready- if ( jQuery.browser.msie && window == top ) (function(){- if (jQuery.isReady) return;- try {- // If IE is used, use the trick by Diego Perini- // http://javascript.nwbox.com/IEContentLoaded/- document.documentElement.doScroll("left");- } catch( error ) {- setTimeout( arguments.callee, 0 );- return;- }- // and execute any waiting functions- jQuery.ready();- })();-- if ( jQuery.browser.opera )- document.addEventListener( "DOMContentLoaded", function () {- if (jQuery.isReady) return;- for (var i = 0; i < document.styleSheets.length; i++)- if (document.styleSheets[i].disabled) {- setTimeout( arguments.callee, 0 );- return;- }- // and execute any waiting functions- jQuery.ready();- }, false);-- if ( jQuery.browser.safari ) {- var numStyles;- (function(){- if (jQuery.isReady) return;- if ( document.readyState != "loaded" && document.readyState != "complete" ) {- setTimeout( arguments.callee, 0 );- return;- }- if ( numStyles === undefined )- numStyles = jQuery("style, link[rel=stylesheet]").length;- if ( document.styleSheets.length != numStyles ) {- setTimeout( arguments.callee, 0 );- return;- }- // and execute any waiting functions- jQuery.ready();- })();- }-- // A fallback to window.onload, that will always work- jQuery.event.add( window, "load", jQuery.ready );-}--jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +- "mousedown,mouseup,mousemove,mouseover,mouseout,change,select," +- "submit,keydown,keypress,keyup,error").split(","), function(i, name){-- // Handle event binding- jQuery.fn[name] = function(fn){- return fn ? this.bind(name, fn) : this.trigger(name);- };-});--// Checks if an event happened on an element within another element-// Used in jQuery.event.special.mouseenter and mouseleave handlers-var withinElement = function(event, elem) {- // Check if mouse(over|out) are still within the same parent element- var parent = event.relatedTarget;- // Traverse up the tree- while ( parent && parent != elem ) try { parent = parent.parentNode; } catch(error) { parent = elem; }- // Return true if we actually just moused on to a sub-element- return parent == elem;-};--// Prevent memory leaks in IE-// And prevent errors on refresh with events like mouseover in other browsers-// Window isn't included so as not to unbind existing unload events-jQuery(window).bind("unload", function() {- jQuery("*").add(document).unbind();-});-jQuery.fn.extend({- // Keep a copy of the old load- _load: jQuery.fn.load,-- load: function( url, params, callback ) {- if ( typeof url != 'string' )- return this._load( url );-- var off = url.indexOf(" ");- if ( off >= 0 ) {- var selector = url.slice(off, url.length);- url = url.slice(0, off);- }-- callback = callback || function(){};-- // Default to a GET request- var type = "GET";-- // If the second parameter was provided- if ( params )- // If it's a function- if ( jQuery.isFunction( params ) ) {- // We assume that it's the callback- callback = params;- params = null;-- // Otherwise, build a param string- } else {- params = jQuery.param( params );- type = "POST";- }-- var self = this;-- // Request the remote document- jQuery.ajax({- url: url,- type: type,- dataType: "html",- data: params,- complete: function(res, status){- // If successful, inject the HTML into all the matched elements- if ( status == "success" || status == "notmodified" )- // See if a selector was specified- self.html( selector ?- // Create a dummy div to hold the results- jQuery("<div/>")- // inject the contents of the document in, removing the scripts- // to avoid any 'Permission Denied' errors in IE- .append(res.responseText.replace(/<script(.|\s)*?\/script>/g, ""))-- // Locate the specified elements- .find(selector) :-- // If not, just inject the full result- res.responseText );-- self.each( callback, [res.responseText, status, res] );- }- });- return this;- },-- serialize: function() {- return jQuery.param(this.serializeArray());- },- serializeArray: function() {- return this.map(function(){- return jQuery.nodeName(this, "form") ?- jQuery.makeArray(this.elements) : this;- })- .filter(function(){- return this.name && !this.disabled &&- (this.checked || /select|textarea/i.test(this.nodeName) ||- /text|hidden|password/i.test(this.type));- })- .map(function(i, elem){- var val = jQuery(this).val();- return val == null ? null :- val.constructor == Array ?- jQuery.map( val, function(val, i){- return {name: elem.name, value: val};- }) :- {name: elem.name, value: val};- }).get();- }-});--// Attach a bunch of functions for handling common AJAX events-jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){- jQuery.fn[o] = function(f){- return this.bind(o, f);- };-});--var jsc = now();--jQuery.extend({- get: function( url, data, callback, type ) {- // shift arguments if data argument was ommited- if ( jQuery.isFunction( data ) ) {- callback = data;- data = null;- }-- return jQuery.ajax({- type: "GET",- url: url,- data: data,- success: callback,- dataType: type- });- },-- getScript: function( url, callback ) {- return jQuery.get(url, null, callback, "script");- },-- getJSON: function( url, data, callback ) {- return jQuery.get(url, data, callback, "json");- },-- post: function( url, data, callback, type ) {- if ( jQuery.isFunction( data ) ) {- callback = data;- data = {};- }-- return jQuery.ajax({- type: "POST",- url: url,- data: data,- success: callback,- dataType: type- });- },-- ajaxSetup: function( settings ) {- jQuery.extend( jQuery.ajaxSettings, settings );- },-- ajaxSettings: {- url: location.href,- global: true,- type: "GET",- timeout: 0,- contentType: "application/x-www-form-urlencoded",- processData: true,- async: true,- data: null,- username: null,- password: null,- accepts: {- xml: "application/xml, text/xml",- html: "text/html",- script: "text/javascript, application/javascript",- json: "application/json, text/javascript",- text: "text/plain",- _default: "*/*"- }- },-- // Last-Modified header cache for next request- lastModified: {},-- ajax: function( s ) {- // Extend the settings, but re-extend 's' so that it can be- // checked again later (in the test suite, specifically)- s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));-- var jsonp, jsre = /=\?(&|$)/g, status, data,- type = s.type.toUpperCase();-- // convert data if not already a string- if ( s.data && s.processData && typeof s.data != "string" )- s.data = jQuery.param(s.data);-- // Handle JSONP Parameter Callbacks- if ( s.dataType == "jsonp" ) {- if ( type == "GET" ) {- if ( !s.url.match(jsre) )- s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";- } else if ( !s.data || !s.data.match(jsre) )- s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";- s.dataType = "json";- }-- // Build temporary JSONP function- if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {- jsonp = "jsonp" + jsc++;-- // Replace the =? sequence both in the query string and the data- if ( s.data )- s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");- s.url = s.url.replace(jsre, "=" + jsonp + "$1");-- // We need to make sure- // that a JSONP style response is executed properly- s.dataType = "script";-- // Handle JSONP-style loading- window[ jsonp ] = function(tmp){- data = tmp;- success();- complete();- // Garbage collect- window[ jsonp ] = undefined;- try{ delete window[ jsonp ]; } catch(e){}- if ( head )- head.removeChild( script );- };- }-- if ( s.dataType == "script" && s.cache == null )- s.cache = false;-- if ( s.cache === false && type == "GET" ) {- var ts = now();- // try replacing _= if it is there- var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");- // if nothing was replaced, add timestamp to the end- s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "");- }-- // If data is available, append data to url for get requests- if ( s.data && type == "GET" ) {- s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;-- // IE likes to send both get and post data, prevent this- s.data = null;- }-- // Watch for a new set of requests- if ( s.global && ! jQuery.active++ )- jQuery.event.trigger( "ajaxStart" );-- // Matches an absolute URL, and saves the domain- var remote = /^(?:\w+:)?\/\/([^\/?#]+)/;-- // If we're requesting a remote document- // and trying to load JSON or Script with a GET- if ( s.dataType == "script" && type == "GET"- && remote.test(s.url) && remote.exec(s.url)[1] != location.host ){- var head = document.getElementsByTagName("head")[0];- var script = document.createElement("script");- script.src = s.url;- if (s.scriptCharset)- script.charset = s.scriptCharset;-- // Handle Script loading- if ( !jsonp ) {- var done = false;-- // Attach handlers for all browsers- script.onload = script.onreadystatechange = function(){- if ( !done && (!this.readyState ||- this.readyState == "loaded" || this.readyState == "complete") ) {- done = true;- success();- complete();- head.removeChild( script );- }- };- }-- head.appendChild(script);-- // We handle everything using the script element injection- return undefined;- }-- var requestDone = false;-- // Create the request object; Microsoft failed to properly- // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available- var xhr = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();-- // Open the socket- // Passing null username, generates a login popup on Opera (#2865)- if( s.username )- xhr.open(type, s.url, s.async, s.username, s.password);- else- xhr.open(type, s.url, s.async);-- // Need an extra try/catch for cross domain requests in Firefox 3- try {- // Set the correct header, if data is being sent- if ( s.data )- xhr.setRequestHeader("Content-Type", s.contentType);-- // Set the If-Modified-Since header, if ifModified mode.- if ( s.ifModified )- xhr.setRequestHeader("If-Modified-Since",- jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );-- // Set header so the called script knows that it's an XMLHttpRequest- xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");-- // Set the Accepts header for the server, depending on the dataType- xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?- s.accepts[ s.dataType ] + ", */*" :- s.accepts._default );- } catch(e){}-- // Allow custom headers/mimetypes- if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {- // cleanup active request counter- s.global && jQuery.active--;- // close opended socket- xhr.abort();- return false;- }-- if ( s.global )- jQuery.event.trigger("ajaxSend", [xhr, s]);-- // Wait for a response to come back- var onreadystatechange = function(isTimeout){- // The transfer is complete and the data is available, or the request timed out- if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {- requestDone = true;-- // clear poll interval- if (ival) {- clearInterval(ival);- ival = null;- }-- status = isTimeout == "timeout" && "timeout" ||- !jQuery.httpSuccess( xhr ) && "error" ||- s.ifModified && jQuery.httpNotModified( xhr, s.url ) && "notmodified" ||- "success";-- if ( status == "success" ) {- // Watch for, and catch, XML document parse errors- try {- // process the data (runs the xml through httpData regardless of callback)- data = jQuery.httpData( xhr, s.dataType, s.dataFilter );- } catch(e) {- status = "parsererror";- }- }-- // Make sure that the request was successful or notmodified- if ( status == "success" ) {- // Cache Last-Modified header, if ifModified mode.- var modRes;- try {- modRes = xhr.getResponseHeader("Last-Modified");- } catch(e) {} // swallow exception thrown by FF if header is not available-- if ( s.ifModified && modRes )- jQuery.lastModified[s.url] = modRes;-- // JSONP handles its own success callback- if ( !jsonp )- success();- } else- jQuery.handleError(s, xhr, status);-- // Fire the complete handlers- complete();-- // Stop memory leaks- if ( s.async )- xhr = null;- }- };-- if ( s.async ) {- // don't attach the handler to the request, just poll it instead- var ival = setInterval(onreadystatechange, 13);-- // Timeout checker- if ( s.timeout > 0 )- setTimeout(function(){- // Check to see if the request is still happening- if ( xhr ) {- // Cancel the request- xhr.abort();-- if( !requestDone )- onreadystatechange( "timeout" );- }- }, s.timeout);- }-- // Send the data- try {- xhr.send(s.data);- } catch(e) {- jQuery.handleError(s, xhr, null, e);- }-- // firefox 1.5 doesn't fire statechange for sync requests- if ( !s.async )- onreadystatechange();-- function success(){- // If a local callback was specified, fire it and pass it the data- if ( s.success )- s.success( data, status );-- // Fire the global callback- if ( s.global )- jQuery.event.trigger( "ajaxSuccess", [xhr, s] );- }-- function complete(){- // Process result- if ( s.complete )- s.complete(xhr, status);-- // The request was completed- if ( s.global )- jQuery.event.trigger( "ajaxComplete", [xhr, s] );-- // Handle the global AJAX counter- if ( s.global && ! --jQuery.active )- jQuery.event.trigger( "ajaxStop" );- }-- // return XMLHttpRequest to allow aborting the request etc.- return xhr;- },-- handleError: function( s, xhr, status, e ) {- // If a local callback was specified, fire it- if ( s.error ) s.error( xhr, status, e );-- // Fire the global callback- if ( s.global )- jQuery.event.trigger( "ajaxError", [xhr, s, e] );- },-- // Counter for holding the number of active queries- active: 0,-- // Determines if an XMLHttpRequest was successful or not- httpSuccess: function( xhr ) {- try {- // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450- return !xhr.status && location.protocol == "file:" ||- ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223 ||- jQuery.browser.safari && xhr.status == undefined;- } catch(e){}- return false;- },-- // Determines if an XMLHttpRequest returns NotModified- httpNotModified: function( xhr, url ) {- try {- var xhrRes = xhr.getResponseHeader("Last-Modified");-- // Firefox always returns 200. check Last-Modified date- return xhr.status == 304 || xhrRes == jQuery.lastModified[url] ||- jQuery.browser.safari && xhr.status == undefined;- } catch(e){}- return false;- },-- httpData: function( xhr, type, filter ) {- var ct = xhr.getResponseHeader("content-type"),- xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,- data = xml ? xhr.responseXML : xhr.responseText;-- if ( xml && data.documentElement.tagName == "parsererror" )- throw "parsererror";-- // Allow a pre-filtering function to sanitize the response- if( filter )- data = filter( data, type );-- // If the type is "script", eval it in global context- if ( type == "script" )- jQuery.globalEval( data );-- // Get the JavaScript object, if JSON is used.- if ( type == "json" )- data = eval("(" + data + ")");-- return data;- },-- // Serialize an array of form elements or a set of- // key/values into a query string- param: function( a ) {- var s = [];-- // If an array was passed in, assume that it is an array- // of form elements- if ( a.constructor == Array || a.jquery )- // Serialize the form elements- jQuery.each( a, function(){- s.push( encodeURIComponent(this.name) + "=" + encodeURIComponent( this.value ) );- });-- // Otherwise, assume that it's an object of key/value pairs- else- // Serialize the key/values- for ( var j in a )- // If the value is an array then the key names need to be repeated- if ( a[j] && a[j].constructor == Array )- jQuery.each( a[j], function(){- s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) );- });- else- s.push( encodeURIComponent(j) + "=" + encodeURIComponent( jQuery.isFunction(a[j]) ? a[j]() : a[j] ) );-- // Return the resulting serialization- return s.join("&").replace(/%20/g, "+");- }--});-jQuery.fn.extend({- show: function(speed,callback){- return speed ?- this.animate({- height: "show", width: "show", opacity: "show"- }, speed, callback) :-- this.filter(":hidden").each(function(){- this.style.display = this.oldblock || "";- if ( jQuery.css(this,"display") == "none" ) {- var elem = jQuery("<" + this.tagName + " />").appendTo("body");- this.style.display = elem.css("display");- // handle an edge condition where css is - div { display:none; } or similar- if (this.style.display == "none")- this.style.display = "block";- elem.remove();- }- }).end();- },-- hide: function(speed,callback){- return speed ?- this.animate({- height: "hide", width: "hide", opacity: "hide"- }, speed, callback) :-- this.filter(":visible").each(function(){- this.oldblock = this.oldblock || jQuery.css(this,"display");- this.style.display = "none";- }).end();- },-- // Save the old toggle function- _toggle: jQuery.fn.toggle,-- toggle: function( fn, fn2 ){- return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?- this._toggle.apply( this, arguments ) :- fn ?- this.animate({- height: "toggle", width: "toggle", opacity: "toggle"- }, fn, fn2) :- this.each(function(){- jQuery(this)[ jQuery(this).is(":hidden") ? "show" : "hide" ]();- });- },-- slideDown: function(speed,callback){- return this.animate({height: "show"}, speed, callback);- },-- slideUp: function(speed,callback){- return this.animate({height: "hide"}, speed, callback);- },-- slideToggle: function(speed, callback){- return this.animate({height: "toggle"}, speed, callback);- },-- fadeIn: function(speed, callback){- return this.animate({opacity: "show"}, speed, callback);- },-- fadeOut: function(speed, callback){- return this.animate({opacity: "hide"}, speed, callback);- },-- fadeTo: function(speed,to,callback){- return this.animate({opacity: to}, speed, callback);- },-- animate: function( prop, speed, easing, callback ) {- var optall = jQuery.speed(speed, easing, callback);-- return this[ optall.queue === false ? "each" : "queue" ](function(){- if ( this.nodeType != 1)- return false;-- var opt = jQuery.extend({}, optall), p,- hidden = jQuery(this).is(":hidden"), self = this;-- for ( p in prop ) {- if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )- return opt.complete.call(this);-- if ( p == "height" || p == "width" ) {- // Store display property- opt.display = jQuery.css(this, "display");-- // Make sure that nothing sneaks out- opt.overflow = this.style.overflow;- }- }-- if ( opt.overflow != null )- this.style.overflow = "hidden";-- opt.curAnim = jQuery.extend({}, prop);-- jQuery.each( prop, function(name, val){- var e = new jQuery.fx( self, opt, name );-- if ( /toggle|show|hide/.test(val) )- e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );- else {- var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),- start = e.cur(true) || 0;-- if ( parts ) {- var end = parseFloat(parts[2]),- unit = parts[3] || "px";-- // We need to compute starting value- if ( unit != "px" ) {- self.style[ name ] = (end || 1) + unit;- start = ((end || 1) / e.cur(true)) * start;- self.style[ name ] = start + unit;- }-- // If a +=/-= token was provided, we're doing a relative animation- if ( parts[1] )- end = ((parts[1] == "-=" ? -1 : 1) * end) + start;-- e.custom( start, end, unit );- } else- e.custom( start, val, "" );- }- });-- // For JS strict compliance- return true;- });- },-- queue: function(type, fn){- if ( jQuery.isFunction(type) || ( type && type.constructor == Array )) {- fn = type;- type = "fx";- }-- if ( !type || (typeof type == "string" && !fn) )- return queue( this[0], type );-- return this.each(function(){- if ( fn.constructor == Array )- queue(this, type, fn);- else {- queue(this, type).push( fn );-- if ( queue(this, type).length == 1 )- fn.call(this);- }- });- },-- stop: function(clearQueue, gotoEnd){- var timers = jQuery.timers;-- if (clearQueue)- this.queue([]);-- this.each(function(){- // go in reverse order so anything added to the queue during the loop is ignored- for ( var i = timers.length - 1; i >= 0; i-- )- if ( timers[i].elem == this ) {- if (gotoEnd)- // force the next step to be the last- timers[i](true);- timers.splice(i, 1);- }- });-- // start the next in the queue if the last step wasn't forced- if (!gotoEnd)- this.dequeue();-- return this;- }--});--var queue = function( elem, type, array ) {- if ( elem ){-- type = type || "fx";-- var q = jQuery.data( elem, type + "queue" );-- if ( !q || array )- q = jQuery.data( elem, type + "queue", jQuery.makeArray(array) );-- }- return q;-};--jQuery.fn.dequeue = function(type){- type = type || "fx";-- return this.each(function(){- var q = queue(this, type);-- q.shift();-- if ( q.length )- q[0].call( this );- });-};--jQuery.extend({-- speed: function(speed, easing, fn) {- var opt = speed && speed.constructor == Object ? speed : {- complete: fn || !fn && easing ||- jQuery.isFunction( speed ) && speed,- duration: speed,- easing: fn && easing || easing && easing.constructor != Function && easing- };-- opt.duration = (opt.duration && opt.duration.constructor == Number ?- opt.duration :- jQuery.fx.speeds[opt.duration]) || jQuery.fx.speeds.def;-- // Queueing- opt.old = opt.complete;- opt.complete = function(){- if ( opt.queue !== false )- jQuery(this).dequeue();- if ( jQuery.isFunction( opt.old ) )- opt.old.call( this );- };-- return opt;- },-- easing: {- linear: function( p, n, firstNum, diff ) {- return firstNum + diff * p;- },- swing: function( p, n, firstNum, diff ) {- return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;- }- },-- timers: [],- timerId: null,-- fx: function( elem, options, prop ){- this.options = options;- this.elem = elem;- this.prop = prop;-- if ( !options.orig )- options.orig = {};- }--});--jQuery.fx.prototype = {-- // Simple function for setting a style value- update: function(){- if ( this.options.step )- this.options.step.call( this.elem, this.now, this );-- (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );-- // Set display property to block for height/width animations- if ( this.prop == "height" || this.prop == "width" )- this.elem.style.display = "block";- },-- // Get the current size- cur: function(force){- if ( this.elem[this.prop] != null && this.elem.style[this.prop] == null )- return this.elem[ this.prop ];-- var r = parseFloat(jQuery.css(this.elem, this.prop, force));- return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;- },-- // Start an animation from one number to another- custom: function(from, to, unit){- this.startTime = now();- this.start = from;- this.end = to;- this.unit = unit || this.unit || "px";- this.now = this.start;- this.pos = this.state = 0;- this.update();-- var self = this;- function t(gotoEnd){- return self.step(gotoEnd);- }-- t.elem = this.elem;-- jQuery.timers.push(t);-- if ( jQuery.timerId == null ) {- jQuery.timerId = setInterval(function(){- var timers = jQuery.timers;-- for ( var i = 0; i < timers.length; i++ )- if ( !timers[i]() )- timers.splice(i--, 1);-- if ( !timers.length ) {- clearInterval( jQuery.timerId );- jQuery.timerId = null;- }- }, 13);- }- },-- // Simple 'show' function- show: function(){- // Remember where we started, so that we can go back to it later- this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );- this.options.show = true;-- // Begin the animation- this.custom(0, this.cur());-- // Make sure that we start at a small width/height to avoid any- // flash of content- if ( this.prop == "width" || this.prop == "height" )- this.elem.style[this.prop] = "1px";-- // Start by showing the element- jQuery(this.elem).show();- },-- // Simple 'hide' function- hide: function(){- // Remember where we started, so that we can go back to it later- this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );- this.options.hide = true;-- // Begin the animation- this.custom(this.cur(), 0);- },-- // Each step of an animation- step: function(gotoEnd){- var t = now();-- if ( gotoEnd || t > this.options.duration + this.startTime ) {- this.now = this.end;- this.pos = this.state = 1;- this.update();-- this.options.curAnim[ this.prop ] = true;-- var done = true;- for ( var i in this.options.curAnim )- if ( this.options.curAnim[i] !== true )- done = false;-- if ( done ) {- if ( this.options.display != null ) {- // Reset the overflow- this.elem.style.overflow = this.options.overflow;-- // Reset the display- this.elem.style.display = this.options.display;- if ( jQuery.css(this.elem, "display") == "none" )- this.elem.style.display = "block";- }-- // Hide the element if the "hide" operation was done- if ( this.options.hide )- this.elem.style.display = "none";-- // Reset the properties, if the item has been hidden or shown- if ( this.options.hide || this.options.show )- for ( var p in this.options.curAnim )- jQuery.attr(this.elem.style, p, this.options.orig[p]);- }-- if ( done )- // Execute the complete function- this.options.complete.call( this.elem );-- return false;- } else {- var n = t - this.startTime;- this.state = n / this.options.duration;-- // Perform the easing function, defaults to swing- this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);- this.now = this.start + ((this.end - this.start) * this.pos);-- // Perform the next step of the animation- this.update();- }-- return true;- }--};--jQuery.extend( jQuery.fx, {- speeds:{- slow: 600,- fast: 200,- // Default speed- def: 400- },- step: {- scrollLeft: function(fx){- fx.elem.scrollLeft = fx.now;- },-- scrollTop: function(fx){- fx.elem.scrollTop = fx.now;- },-- opacity: function(fx){- jQuery.attr(fx.elem.style, "opacity", fx.now);- },-- _default: function(fx){- fx.elem.style[ fx.prop ] = fx.now + fx.unit;- }- }-});-// The Offset Method-// Originally By Brandon Aaron, part of the Dimension Plugin-// http://jquery.com/plugins/project/dimensions-jQuery.fn.offset = function() {- var left = 0, top = 0, elem = this[0], results;-- if ( elem ) with ( jQuery.browser ) {- var parent = elem.parentNode,- offsetChild = elem,- offsetParent = elem.offsetParent,- doc = elem.ownerDocument,- safari2 = safari && parseInt(version) < 522 && !/adobeair/i.test(userAgent),- css = jQuery.curCSS,- fixed = css(elem, "position") == "fixed";-- // Use getBoundingClientRect if available- if ( elem.getBoundingClientRect ) {- var box = elem.getBoundingClientRect();-- // Add the document scroll offsets- add(box.left + Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft),- box.top + Math.max(doc.documentElement.scrollTop, doc.body.scrollTop));-- // IE adds the HTML element's border, by default it is medium which is 2px- // IE 6 and 7 quirks mode the border width is overwritable by the following css html { border: 0; }- // IE 7 standards mode, the border is always 2px- // This border/offset is typically represented by the clientLeft and clientTop properties- // However, in IE6 and 7 quirks mode the clientLeft and clientTop properties are not updated when overwriting it via CSS- // Therefore this method will be off by 2px in IE while in quirksmode- add( -doc.documentElement.clientLeft, -doc.documentElement.clientTop );-- // Otherwise loop through the offsetParents and parentNodes- } else {-- // Initial element offsets- add( elem.offsetLeft, elem.offsetTop );-- // Get parent offsets- while ( offsetParent ) {- // Add offsetParent offsets- add( offsetParent.offsetLeft, offsetParent.offsetTop );-- // Mozilla and Safari > 2 does not include the border on offset parents- // However Mozilla adds the border for table or table cells- if ( mozilla && !/^t(able|d|h)$/i.test(offsetParent.tagName) || safari && !safari2 )- border( offsetParent );-- // Add the document scroll offsets if position is fixed on any offsetParent- if ( !fixed && css(offsetParent, "position") == "fixed" )- fixed = true;-- // Set offsetChild to previous offsetParent unless it is the body element- offsetChild = /^body$/i.test(offsetParent.tagName) ? offsetChild : offsetParent;- // Get next offsetParent- offsetParent = offsetParent.offsetParent;- }-- // Get parent scroll offsets- while ( parent && parent.tagName && !/^body|html$/i.test(parent.tagName) ) {- // Remove parent scroll UNLESS that parent is inline or a table to work around Opera inline/table scrollLeft/Top bug- if ( !/^inline|table.*$/i.test(css(parent, "display")) )- // Subtract parent scroll offsets- add( -parent.scrollLeft, -parent.scrollTop );-- // Mozilla does not add the border for a parent that has overflow != visible- if ( mozilla && css(parent, "overflow") != "visible" )- border( parent );-- // Get next parent- parent = parent.parentNode;- }-- // Safari <= 2 doubles body offsets with a fixed position element/offsetParent or absolutely positioned offsetChild- // Mozilla doubles body offsets with a non-absolutely positioned offsetChild- if ( (safari2 && (fixed || css(offsetChild, "position") == "absolute")) ||- (mozilla && css(offsetChild, "position") != "absolute") )- add( -doc.body.offsetLeft, -doc.body.offsetTop );-- // Add the document scroll offsets if position is fixed- if ( fixed )- add(Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft),- Math.max(doc.documentElement.scrollTop, doc.body.scrollTop));- }-- // Return an object with top and left properties- results = { top: top, left: left };- }-- function border(elem) {- add( jQuery.curCSS(elem, "borderLeftWidth", true), jQuery.curCSS(elem, "borderTopWidth", true) );- }-- function add(l, t) {- left += parseInt(l, 10) || 0;- top += parseInt(t, 10) || 0;- }-- return results;-};---jQuery.fn.extend({- position: function() {- var left = 0, top = 0, results;-- if ( this[0] ) {- // Get *real* offsetParent- var offsetParent = this.offsetParent(),-- // Get correct offsets- offset = this.offset(),- parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();-- // Subtract element margins- // note: when an element has margin: auto the offsetLeft and marginLeft- // are the same in Safari causing offset.left to incorrectly be 0- offset.top -= num( this, 'marginTop' );- offset.left -= num( this, 'marginLeft' );-- // Add offsetParent borders- parentOffset.top += num( offsetParent, 'borderTopWidth' );- parentOffset.left += num( offsetParent, 'borderLeftWidth' );-- // Subtract the two offsets- results = {- top: offset.top - parentOffset.top,- left: offset.left - parentOffset.left- };- }-- return results;- },-- offsetParent: function() {- var offsetParent = this[0].offsetParent;- while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )- offsetParent = offsetParent.offsetParent;- return jQuery(offsetParent);- }-});---// Create scrollLeft and scrollTop methods-jQuery.each( ['Left', 'Top'], function(i, name) {- var method = 'scroll' + name;-- jQuery.fn[ method ] = function(val) {- if (!this[0]) return;-- return val != undefined ?-- // Set the scroll offset- this.each(function() {- this == window || this == document ?- window.scrollTo(- !i ? val : jQuery(window).scrollLeft(),- i ? val : jQuery(window).scrollTop()- ) :- this[ method ] = val;- }) :-- // Return the scroll offset- this[0] == window || this[0] == document ?- self[ i ? 'pageYOffset' : 'pageXOffset' ] ||- jQuery.boxModel && document.documentElement[ method ] ||- document.body[ method ] :- this[0][ method ];- };-});-// Create innerHeight, innerWidth, outerHeight and outerWidth methods-jQuery.each([ "Height", "Width" ], function(i, name){-- var tl = i ? "Left" : "Top", // top or left- br = i ? "Right" : "Bottom"; // bottom or right-- // innerHeight and innerWidth- jQuery.fn["inner" + name] = function(){- return this[ name.toLowerCase() ]() +- num(this, "padding" + tl) +- num(this, "padding" + br);- };-- // outerHeight and outerWidth- jQuery.fn["outer" + name] = function(margin) {- return this["inner" + name]() +- num(this, "border" + tl + "Width") +- num(this, "border" + br + "Width") +- (margin ?- num(this, "margin" + tl) + num(this, "margin" + br) : 0);- };--});})();diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/README.txt b/client/javascript/lib/jsdoc/jsdoc-toolkit/README.txtdeleted file mode 100644index a7002605a2d..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/README.txt+++ /dev/null@@ -1,151 +0,0 @@-======================================================================--DESCRIPTION:--** NOTICE ** THIS VERSION OF THE SOFTWARE IS "BETA," MEANING IT IS IS-NOT YET READY FOR USE IN A PRODUCTION ENVIRONEMNT. IT IS MADE-AVAILABLE FOR PREVIEW AND TESTING PURPOSES ONLY.--This is Version 2 of JsDoc Toolkit, an automatic documentation-generation tool for JavaScript. It is written in JavaScript and is run-from a command line (or terminal) using the Java runtime engine.--Using this tool you can automatically turn JavaDoc-like comments in-your JavaScript source code into published output files, such as HTML-or XML.--For more information, to report a bug, or to browse the technical-documentation for this tool please visit the official JsDoc Toolkit-project homepage at http://code.google.com/p/jsdoc-toolkit/--For the most up-to-date documentation on Version 2 of JsDoc Toolkit-see the Verion 2 wiki at http://jsdoctoolkit.org/wiki---======================================================================--REQUIREMENTS:--JsDoc Toolkit is known to work with:-java version "1.6.0_03"-Java(TM) SE Runtime Environment (build 1.6.0_03-b05)-on Windows XP,-and java version "1.5.0_13"-Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)-on Mac OS X 10.4.--Other versions of java may or may not work with JsDoc Toolkit.--======================================================================--USAGE:--Running JsDoc Toolkit requires you to have Java installed on your-computer. For more information see http://www.java.com/getjava/--Before running the JsDoc Toolkit app you should change your current-working directory to the jsdoc-toolkit folder. Then follow the-examples below, or as shown on the project wiki.--On a computer running Windows a valid command line to run JsDoc-Toolkit might look like this:--> java -jar jsrun.jar app\run.js -a -t=templates\jsdoc mycode.js--On Mac OS X or Linux the same command would look like this:--$ java -jar jsrun.jar app/run.js -a -t=templates/jsdoc mycode.js--The above assumes your current working directory contains jsrun.jar,-the "app" and "templates" subdirectories from the standard JsDoc-Toolkit distribution and that the relative path to the code you wish-to document is "mycode.js".--The output documentation files will be saved to a new directory named-"out" (by default) in the current directory, or if you specify a--d=somewhere_else option, to the somewhere_else directory.--For help (usage notes) enter this on the command line:--$ java -jar jsrun.jar app/run.js --help--More information about the various command line options used by JsDoc-Toolkit are available on the project wiki.--======================================================================--TESTING:--To run the suite of unit tests included with JsDoc Toolkit enter this-on the command line:--$ java -jar jsrun.jar app/run.js -T--To see a dump of the internal data structure that JsDoc Toolkit has-built from your source files use this command:--$ java -jar jsrun.jar app/run.js mycode.js -Z---======================================================================--LICENSE:--JSDoc.pm--This project is based on the JSDoc.pm tool, created by Michael-Mathews and Gabriel Reid. More information on JsDoc.pm can-be found on the JSDoc.pm homepage: http://jsdoc.sourceforge.net/--Complete documentation on JsDoc Toolkit can be found on the project-wiki at http://code.google.com/p/jsdoc-toolkit/w/list--Rhino--Rhino (JavaScript in Java) is open source and licensed by Mozilla-under the MPL 1.1 or later/GPL 2.0 or later licenses, the text of-which is available at http://www.mozilla.org/MPL/--You can obtain the source code for Rhino from the Mozilla web site at-http://www.mozilla.org/rhino/download.html--JsDoc Toolkit is a larger work that uses the Rhino JavaScript engine-but is not derived from it in any way. The Rhino library is used-without modification and without any claims whatsoever.--The Rhino Debugger--You can obtain more information about the Rhino Debugger from the-Mozilla web site at http://www.mozilla.org/rhino/debugger.html--JsDoc Toolkit is a larger work that uses the Rhino Debugger but-is not derived from it in any way. The Rhino Debugger is used-without modification and without any claims whatsoever.--JsDoc Toolkit--All code specific to JsDoc Toolkit are free, open source and licensed-for use under the X11/MIT License.--JsDoc Toolkit is Copyright (c)2008 Michael Mathews <[email protected]>--This program is free software; you can redistribute it and/or-modify it under the terms below.--Permission is hereby granted, free of charge, to any person obtaining-a copy of this software and associated documentation files (the-"Software"), to deal in the Software without restriction, including-without limitation the rights to use, copy, modify, merge, publish,-distribute, sublicense, and/or sell copies of the Software, and to-permit persons to whom the Software is furnished to do so, subject to-the following conditions: The above copyright notice and this-permission notice must be included in all copies or substantial-portions of the Software.--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame.jsdeleted file mode 100644index 4c820cec3a3..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame.js+++ /dev/null@@ -1,33 +0,0 @@-IO.include("frame/Opt.js");-IO.include("frame/Chain.js");-IO.include("frame/Link.js");-IO.include("frame/String.js");-IO.include("frame/Hash.js");-IO.include("frame/Namespace.js");-IO.include("frame/Reflection.js");--/** A few helper functions to make life a little easier. */--function defined(o) {- return (o !== undefined);-}--function copy(o) { // todo check for circular refs- if (o == null || typeof(o) != 'object') return o;- var c = new o.constructor();- for(var p in o) c[p] = copy(o[p]);- return c;-}--function isUnique(arr) {- var l = arr.length;- for(var i = 0; i < l; i++ ) {- if (arr.lastIndexOf(arr[i]) > i) return false;- }- return true;-}--/** Returns the given string with all regex meta characters backslashed. */-RegExp.escapeMeta = function(str) {- return str.replace(/([$^\\\/()|?+*\[\]{}.-])/g, "\\$1");-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Chain.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Chain.jsdeleted file mode 100644index 506469d1859..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Chain.js+++ /dev/null@@ -1,102 +0,0 @@-/**@constructor*/-function ChainNode(object, link) {- this.value = object;- this.link = link; // describes this node's relationship to the previous node-}--/**@constructor*/-function Chain(valueLinks) {- this.nodes = [];- this.cursor = -1;-- if (valueLinks && valueLinks.length > 0) {- this.push(valueLinks[0], "//");- for (var i = 1, l = valueLinks.length; i < l; i+=2) {- this.push(valueLinks[i+1], valueLinks[i]);- }- }-}--Chain.prototype.push = function(o, link) {- if (this.nodes.length > 0 && link) this.nodes.push(new ChainNode(o, link));- else this.nodes.push(new ChainNode(o));-}--Chain.prototype.unshift = function(o, link) {- if (this.nodes.length > 0 && link) this.nodes[0].link = link;- this.nodes.unshift(new ChainNode(o));- this.cursor++;-}--Chain.prototype.get = function() {- if (this.cursor < 0 || this.cursor > this.nodes.length-1) return null;- return this.nodes[this.cursor];-}--Chain.prototype.first = function() {- this.cursor = 0;- return this.get();-}--Chain.prototype.last = function() {- this.cursor = this.nodes.length-1;- return this.get();-}--Chain.prototype.next = function() {- this.cursor++;- return this.get();-}--Chain.prototype.prev = function() {- this.cursor--;- return this.get();-}--Chain.prototype.toString = function() {- var string = "";- for (var i = 0, l = this.nodes.length; i < l; i++) {- if (this.nodes[i].link) string += " -("+this.nodes[i].link+")-> ";- string += this.nodes[i].value.toString();- }- return string;-}--Chain.prototype.joinLeft = function() {- var result = "";- for (var i = 0, l = this.cursor; i < l; i++) {- if (result && this.nodes[i].link) result += this.nodes[i].link;- result += this.nodes[i].value.toString();- }- return result;-}---/* USAGE:--var path = "one/two/three.four/five-six";-var pathChain = new Chain(path.split(/([\/.-])/));-print(pathChain);--var lineage = new Chain();-lineage.push("Port");-lineage.push("Les", "son");-lineage.push("Dawn", "daughter");-lineage.unshift("Purdie", "son");--print(lineage);--// walk left-for (var node = lineage.last(); node !== null; node = lineage.prev()) {- print("< "+node.value);-}--// walk right-var node = lineage.first()-while (node !== null) {- print(node.value);- node = lineage.next();- if (node && node.link) print("had a "+node.link+" named");-}--*/\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Dumper.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Dumper.jsdeleted file mode 100644index d8b007b1d9e..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Dumper.js+++ /dev/null@@ -1,144 +0,0 @@-/**- * @class-<pre>-This is a lightly modified version of Kevin Jones' JavaScript-library Data.Dump. To download the original visit:- <a href="http://openjsan.org/doc/k/ke/kevinj/Data/Dump/">http://openjsan.org/doc/k/ke/kevinj/Data/Dump/</a>--AUTHORS--The Data.Dump JavaScript module is written by Kevin Jones-([email protected]), based on Data::Dump by Gisle Aas ([email protected]),-based on Data::Dumper by Gurusamy Sarathy ([email protected]).--COPYRIGHT--Copyright 2007 Kevin Jones. Copyright 1998-2000,2003-2004 Gisle Aas.-Copyright 1996-1998 Gurusamy Sarathy.--This program is free software; you can redistribute it and/or modify-it under the terms of the Perl Artistic License--See http://www.perl.com/perl/misc/Artistic.html-</pre>- * @static- */-Dumper = {- /** @param [...] The objects to dump. */- dump: function () {- if (arguments.length > 1)- return this._dump(arguments);- else if (arguments.length == 1)- return this._dump(arguments[0]);- else- return "()";- },-- _dump: function (obj) {- if (typeof obj == 'undefined') return 'undefined';- var out;- if (obj.serialize) { return obj.serialize(); }- var type = this._typeof(obj);- if (obj.circularReference) obj.circularReference++;- switch (type) {- case 'circular':- out = "{ //circularReference\n}";- break;- case 'object':- var pairs = new Array;-- for (var prop in obj) {- if (prop != "circularReference" && obj.hasOwnProperty(prop)) { //hide inherited properties- pairs.push(prop + ': ' + this._dump(obj[prop]));- }- }-- out = '{' + this._format_list(pairs) + '}';- break;-- case 'string':- for (var prop in Dumper.ESC) {- if (Dumper.ESC.hasOwnProperty(prop)) {- obj = obj.replace(prop, Dumper.ESC[prop]);- }- }-- // Escape UTF-8 Strings- if (obj.match(/^[\x00-\x7f]*$/)) {- out = '"' + obj.replace(/\"/g, "\\\"").replace(/([\n\r]+)/g, "\\$1") + '"';- }- else {- out = "unescape('"+escape(obj)+"')";- }- break;-- case 'array':- var elems = new Array;-- for (var i=0; i<obj.length; i++) {- elems.push( this._dump(obj[i]) );- }-- out = '[' + this._format_list(elems) + ']';- break;-- case 'date':- // firefox returns GMT strings from toUTCString()...- var utc_string = obj.toUTCString().replace(/GMT/,'UTC');- out = 'new Date("' + utc_string + '")';- break;-- case 'element':- // DOM element- out = this._dump_dom(obj);- break;-- default:- out = obj;- }-- out = String(out).replace(/\n/g, '\n ');- out = out.replace(/\n (.*)$/,"\n$1");-- return out;- },-- _format_list: function (list) {- if (!list.length) return '';- var nl = list.toString().length > 60 ? '\n' : ' ';- return nl + list.join(',' + nl) + nl;- },-- _typeof: function (obj) {- if (obj && obj.circularReference && obj.circularReference > 1) return 'circular';- if (Array.prototype.isPrototypeOf(obj)) return 'array';- if (Date.prototype.isPrototypeOf(obj)) return 'date';- if (typeof obj.nodeType != 'undefined') return 'element';- return typeof(obj);- },-- _dump_dom: function (obj) {- return '"' + Dumper.nodeTypes[obj.nodeType] + '"';- }-};--Dumper.ESC = {- "\t": "\\t",- "\n": "\\n",- "\f": "\\f"-};--Dumper.nodeTypes = {- 1: "ELEMENT_NODE",- 2: "ATTRIBUTE_NODE",- 3: "TEXT_NODE",- 4: "CDATA_SECTION_NODE",- 5: "ENTITY_REFERENCE_NODE",- 6: "ENTITY_NODE",- 7: "PROCESSING_INSTRUCTION_NODE",- 8: "COMMENT_NODE",- 9: "DOCUMENT_NODE",- 10: "DOCUMENT_TYPE_NODE",- 11: "DOCUMENT_FRAGMENT_NODE",- 12: "NOTATION_NODE"-};\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Hash.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Hash.jsdeleted file mode 100644index 2d6e5bd0b78..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Hash.js+++ /dev/null@@ -1,47 +0,0 @@-/**@constructor*/-function Hash() {- this.reset();-}--Hash.prototype.reset = function() {- this.elements = {};-}--Hash.prototype.put = function() {- for (var i = 0, l = arguments.length; i < l; i++) {- this.elements[arguments[i]] = arguments[++i];- }-}--Hash.prototype.has = function(key) {- return this.elements.hasOwnProperty(key);-}--Hash.prototype.get = function(key) {- return (this.has(key)) ? this.elements[key] : undefined;-}--Hash.prototype.drop = function(key) {- if (this.has(key)) {- delete this.elements[key];- }-}--Hash.prototype.rename = function(oldKey, newKey) {- if (oldKey != newKey && this.has(oldKey)) {- this.elements[newKey] = this.elements[oldKey];- delete this.elements[oldKey];- }-}--Hash.prototype.keys = function() {- var keys = [];- for (var key in this.elements) if (this.has(key)) keys.push(key);- return keys;-}--Hash.prototype.values = function() {- var values = [];- for (var key in this.elements) if (this.has(key)) values.push(this.get(key));- return values;-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Link.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Link.jsdeleted file mode 100644index aada52e9c2a..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Link.js+++ /dev/null@@ -1,142 +0,0 @@-/** Handle the creation of HTML links to documented symbols.- @constructor-*/-function Link() {- this.alias = "";- this.src = "";- this.file = "";- this.text = "";- this.innerName = "";- this.classLink = false;- this.targetName = "";-- this.target = function(targetName) {- if (defined(targetName)) this.targetName = targetName;- return this;- }- this.inner = function(inner) {- if (defined(inner)) this.innerName = inner;- return this;- }- this.withText = function(text) {- if (defined(text)) this.text = text;- return this;- }- this.toSrc = function(filename) {- if (defined(filename)) this.src = filename;- return this;- }- this.toSymbol = function(alias) {- if (defined(alias)) this.alias = new String(alias);- return this;- }- this.toClass = function(alias) {- this.classLink = true;- return this.toSymbol(alias);- }- this.toFile = function(file) {- if (defined(file)) this.file = file;- return this;- }-- this.toString = function() {- var linkString;- var thisLink = this;-- if (this.alias) {- linkString = this.alias.replace(/(^|[^a-z$0-9_#.:-])([|a-z$0-9_#.:-]+)($|[^a-z$0-9_#.:-])/i,- function(match, prematch, symbolName, postmatch) {- var symbolNames = symbolName.split("|");- var links = [];- for (var i = 0, l = symbolNames.length; i < l; i++) {- thisLink.alias = symbolNames[i];- links.push(thisLink._makeSymbolLink(symbolNames[i]));- }- return prematch+links.join("|")+postmatch;- }- );- }- else if (this.src) {- linkString = thisLink._makeSrcLink(this.src);- }- else if (this.file) {- linkString = thisLink._makeFileLink(this.file);- }-- return linkString;- }-}--/** prefixed for hashes */-Link.hashPrefix = "";--/** Appended to the front of relative link paths. */-Link.base = "";--Link.symbolNameToLinkName = function(symbol) {- var linker = "";- if (symbol.isStatic) linker = ".";- else if (symbol.isInner) linker = "-";-- return Link.hashPrefix+linker+symbol.name;-}--/** Create a link to a snother symbol. */-Link.prototype._makeSymbolLink = function(alias) {- var linkBase = Link.base+publish.conf.symbolsDir;- var linkTo = Link.symbolSet.getSymbol(alias);- var linkPath;- var target = (this.targetName)? " target=\""+this.targetName+"\"" : "";-- // is it an internal link?- if (alias.charAt(0) == "#") var linkPath = alias;-- // if there is no symbol by that name just return the name unaltered- else if (!linkTo) return this.text || alias;-- // it's a symbol in another file- else {-- if (!linkTo.is("CONSTRUCTOR") && !linkTo.isNamespace) { // it's a method or property- linkPath = escape(linkTo.memberOf) || "_global_";- linkPath += publish.conf.ext + "#" + Link.symbolNameToLinkName(linkTo);- }- else {- linkPath = escape(linkTo.alias);- linkPath += publish.conf.ext + (this.classLink? "":"#" + Link.hashPrefix + "constructor");- }- linkPath = linkBase + linkPath- }-- var linkText = this.text || alias;-- var link = {linkPath: linkPath, linkText: linkText};-- if (typeof JSDOC.PluginManager != "undefined") {- JSDOC.PluginManager.run("onSymbolLink", link);- }-- return "<a href=\""+link.linkPath+"\""+target+">"+link.linkText+"</a>";-}--/** Create a link to a source file. */-Link.prototype._makeSrcLink = function(srcFilePath) {- var target = (this.targetName)? " target=\""+this.targetName+"\"" : "";-- // transform filepath into a filename- var srcFile = srcFilePath.replace(/\.\.?[\\\/]/g, "").replace(/[:\\\/]/g, "_");- var outFilePath = Link.base + publish.conf.srcDir + srcFile + publish.conf.ext;-- if (!this.text) this.text = FilePath.fileName(srcFilePath);- return "<a href=\""+outFilePath+"\""+target+">"+this.text+"</a>";-}--/** Create a link to a source file. */-Link.prototype._makeFileLink = function(filePath) {- var target = (this.targetName)? " target=\""+this.targetName+"\"" : "";-- var outFilePath = Link.base + filePath;-- if (!this.text) this.text = filePath;- return "<a href=\""+outFilePath+"\""+target+">"+this.text+"</a>";-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Namespace.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Namespace.jsdeleted file mode 100644index fa1e41d1001..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Namespace.js+++ /dev/null@@ -1,10 +0,0 @@-_global_ = this;--function Namespace(name, f) {- var n = name.split(".");- for (var o = _global_, i = 0, l = n.length; i < l; i++) {- o = o[n[i]] = o[n[i]] || {};- }-- if (f) f();-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Opt.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Opt.jsdeleted file mode 100644index 352f1590301..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Opt.js+++ /dev/null@@ -1,134 +0,0 @@-/** @namespace */-Opt = {- /**- * Get commandline option values.- * @param {Array} args Commandline arguments. Like ["-a=xml", "-b", "--class=new", "--debug"]- * @param {object} optNames Map short names to long names. Like {a:"accept", b:"backtrace", c:"class", d:"debug"}.- * @return {object} Short names and values. Like {a:"xml", b:true, c:"new", d:true}- */- get: function(args, optNames) {- var opt = {"_": []}; // the unnamed option allows multiple values- for (var i = 0; i < args.length; i++) {- var arg = new String(args[i]);- var name;- var value;- if (arg.charAt(0) == "-") {- if (arg.charAt(1) == "-") { // it's a longname like --foo- arg = arg.substring(2);- var m = arg.split("=");- name = m.shift();- value = m.shift();- if (typeof value == "undefined") value = true;-- for (var n in optNames) { // convert it to a shortname- if (name == optNames[n]) {- name = n;- }- }- }- else { // it's a shortname like -f- arg = arg.substring(1);- var m = arg.split("=");- name = m.shift();- value = m.shift();- if (typeof value == "undefined") value = true;-- for (var n in optNames) { // find the matching key- if (name == n || name+'[]' == n) {- name = n;- break;- }- }- }- if (name.match(/(.+)\[\]$/)) { // it's an array type like n[]- name = RegExp.$1;- if (!opt[name]) opt[name] = [];- }-- if (opt[name] && opt[name].push) {- opt[name].push(value);- }- else {- opt[name] = value;- }- }- else { // not associated with any optname- opt._.push(args[i]);- }- }- return opt;- }-}--/*t:- plan(11, "Testing Opt.");-- is(- typeof Opt,- "object",- "Opt is an object."- );-- is(- typeof Opt.get,- "function",- "Opt.get is a function."- );-- var optNames = {a:"accept", b:"backtrace", c:"class", d:"debug", "e[]":"exceptions"};- var t_options = Opt.get(["-a=xml", "-b", "--class=new", "--debug", "-e=one", "-e=two", "foo", "bar"], optNames);-- is(- t_options.a,- "xml",- "an option defined with a short name can be accessed by its short name."- );-- is(- t_options.b,- true,- "an option defined with a short name and no value are true."- );-- is(- t_options.c,- "new",- "an option defined with a long name can be accessed by its short name."- );-- is(- t_options.d,- true,- "an option defined with a long name and no value are true."- );-- is(- typeof t_options.e,- "object",- "an option that can accept multiple values is defined."- );-- is(- t_options.e.length,- 2,- "an option that can accept multiple values can have more than one value."- );-- is(- t_options.e[1],- "two",- "an option that can accept multiple values can be accessed as an array."- );-- is(- typeof t_options._,- "object",- "the property '_' is defined for unnamed options."- );-- is(- t_options._[0],- "foo",- "the property '_' can be accessed as an array."- );- */\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Reflection.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Reflection.jsdeleted file mode 100644index 0968f1c6405..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Reflection.js+++ /dev/null@@ -1,26 +0,0 @@-/**@constructor*/-function Reflection(obj) {- this.obj = obj;-}--Reflection.prototype.getConstructorName = function() {- if (this.obj.constructor.name) return this.obj.constructor.name;- var src = this.obj.constructor.toSource();- var name = src.substring(name.indexOf("function")+8, src.indexOf('(')).replace(/ /g,'');- return name;-}--Reflection.prototype.getMethod = function(name) {- for (var p in this.obj) {- if (p == name && typeof(this.obj[p]) == "function") return this.obj[p];- }- return null;-}--Reflection.prototype.getParameterNames = function() {- var src = this.obj.toSource();- src = src.substring(- src.indexOf("(", 8)+1, src.indexOf(")")- );- return src.split(/, ?/);-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/String.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/String.jsdeleted file mode 100644index c183c27d561..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/String.js+++ /dev/null@@ -1,93 +0,0 @@-/**- @name String- @class Additions to the core string object.-*/--/** @author Steven Levithan, released as public domain. */-String.prototype.trim = function() {- var str = this.replace(/^\s+/, '');- for (var i = str.length - 1; i >= 0; i--) {- if (/\S/.test(str.charAt(i))) {- str = str.substring(0, i + 1);- break;- }- }- return str;-}-/*t:- plan(6, "Testing String.prototype.trim.");-- var s = " a bc ".trim();- is(s, "a bc", "multiple spaces front and back are trimmed.");-- s = "a bc\n\n".trim();- is(s, "a bc", "newlines only in back are trimmed.");-- s = "\ta bc".trim();- is(s, "a bc", "tabs only in front are trimmed.");-- s = "\n \t".trim();- is(s, "", "an all-space string is trimmed to empty.");-- s = "a b\nc".trim();- is(s, "a b\nc", "a string with no spaces in front or back is trimmed to itself.");-- s = "".trim();- is(s, "", "an empty string is trimmed to empty.");--*/--String.prototype.balance = function(open, close) {- var i = 0;- while (this.charAt(i) != open) {- if (i == this.length) return [-1, -1];- i++;- }-- var j = i+1;- var balance = 1;- while (j < this.length) {- if (this.charAt(j) == open) balance++;- if (this.charAt(j) == close) balance--;- if (balance == 0) break;- j++;- if (j == this.length) return [-1, -1];- }-- return [i, j];-}-/*t:- plan(16, "Testing String.prototype.balance.");-- var s = "{abc}".balance("{","}");- is(s[0], 0, "opener in first is found.");- is(s[1], 4, "closer in last is found.");-- s = "ab{c}de".balance("{","}");- is(s[0], 2, "opener in middle is found.");- is(s[1], 4, "closer in middle is found.");-- s = "a{b{c}de}f".balance("{","}");- is(s[0], 1, "nested opener is found.");- is(s[1], 8, "nested closer is found.");-- s = "{}".balance("{","}");- is(s[0], 0, "opener with no content is found.");- is(s[1], 1, "closer with no content is found.");-- s = "".balance("{","}");- is(s[0], -1, "empty string opener is -1.");- is(s[1], -1, "empty string closer is -1.");-- s = "{abc".balance("{","}");- is(s[0], -1, "opener with no closer returns -1.");- is(s[1], -1, "no closer returns -1.");-- s = "abc".balance("{","}");- is(s[0], -1, "no opener or closer returns -1 for opener.");- is(s[1], -1, "no opener or closer returns -1 for closer.");-- s = "a<bc}de".balance("<","}");- is(s[0], 1, "unmatching opener is found.");- is(s[1], 4, "unmatching closer is found.");-*/\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Testrun.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Testrun.jsdeleted file mode 100644index b714f20fa4b..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/frame/Testrun.js+++ /dev/null@@ -1,129 +0,0 @@-/**- * @fileOverview- * @name JsTestrun- * @author Michael Mathews [email protected]- * @url $HeadURL: https://jsdoc-toolkit.googlecode.com/svn/tags/jsdoc_toolkit-2.0.1/jsdoc-toolkit/app/frame/Testrun.js $- * @revision $Id: Testrun.js 418 2008-01-15 21:40:33Z micmath $- * @license <a href="http://en.wikipedia.org/wiki/MIT_License">X11/MIT License</a>- * (See the accompanying README file for full details.)- */--/**- Yet another unit testing tool for JavaScript.- @author Michael Mathews <a href="mailto:[email protected]">[email protected]</a>- @param {object} testCases Properties are testcase names, values are functions to execute as tests.-*/-function testrun(testCases) {- var ran = 0;- for (t in testCases) {- var result = testCases[t]();- ran++;- }-- return testrun.reportOut+"-------------------------------\n"+((testrun.fails>0)? ":( Failed "+testrun.fails+"/" : ":) Passed all ")+testrun.count+" test"+((testrun.count == 1)? "":"s")+".\n";-}---testrun.count = 0;-testrun.current = null;-testrun.passes = 0;-testrun.fails = 0;-testrun.reportOut = "";--/** @private */-testrun.report = function(text) {- testrun.reportOut += text+"\n";-}--/**- Check if test evaluates to true.- @param {string} test To be evaluated.- @param {string} message Optional. To be displayed in the report.- @return {boolean} True if the string test evaluates to true.-*/-ok = function(test, message) {- testrun.count++;-- var result;- try {- result = eval(test);-- if (result) {- testrun.passes++;- testrun.report(" OK "+testrun.count+" - "+((message != null)? message : ""));- }- else {- testrun.fails++;- testrun.report("NOT OK "+testrun.count+" - "+((message != null)? message : ""));- }- }- catch(e) {- testrun.fails++- testrun.report("NOT OK "+testrun.count+" - "+((message != null)? message : ""));-- }-}--/**- Check if test is same as expected.- @param {string} test To be evaluated.- @param {string} expected- @param {string} message Optional. To be displayed in the report.- @return {boolean} True if (test == expected). Note that the comparison is not a strict equality check.-*/-is = function(test, expected, message) {- testrun.count++;-- var result;- try {- result = eval(test);-- if (result == expected) {- testrun.passes++- testrun.report(" OK "+testrun.count+" - "+((message != null)? message : ""));- }- else {- testrun.fails++- testrun.report("NOT OK "+testrun.count+" - "+((message != null)? message : ""));- testrun.report("expected: "+expected);- testrun.report(" got: "+result);- }- }- catch(e) {- testrun.fails++- testrun.report("NOT OK "+testrun.count+" - "+((message != null)? message : ""));- testrun.report("expected: "+expected);- testrun.report(" got: "+result);}-}--/**- Check if test matches pattern.- @param {string} test To be evaluated.- @param {string} pattern Used to create a RegExp.- @param {string} message Optional. To be displayed in the report.- @return {boolean} True if test matches pattern.-*/-like = function(test, pattern, message) {- testrun.count++;-- var result;- try {- result = eval(test);- var rgx = new RegExp(pattern);-- if (rgx.test(result)) {- testrun.passes++- testrun.report(" OK "+testrun.count+" - "+((message != null)? message : ""));- }- else {- testrun.fails++- testrun.report("NOT OK "+testrun.count+" - "+((message != null)? message : ""));- testrun.report(" this: "+result);- testrun.report("is not like: "+pattern);- }- }- catch(e) {- testrun.fails++- testrun.report("NOT OK "+testrun.count+" - "+((message != null)? message : ""));- }-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/FOODOC.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/FOODOC.jsdeleted file mode 100644index b208f55b1ae..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/FOODOC.js+++ /dev/null@@ -1,26 +0,0 @@-/**- This is the main container for the FOODOC handler.- @namespace-*/-FOODOC = {-};--/** The current version string of this application. */-FOODOC.VERSION = "1.0";--FOODOC.handle = function(srcFile, src) {- LOG.inform("Handling file '" + srcFile + "'");-- return [- new JSDOC.Symbol(- "foo",- [],- "VIRTUAL",- new JSDOC.DocComment("/** This is a foo. */")- )- ];-};--FOODOC.publish = function(symbolgroup) {- LOG.inform("Publishing symbolgroup.");-};diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/XMLDOC.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/XMLDOC.jsdeleted file mode 100755index 40f87b3559f..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/XMLDOC.js+++ /dev/null@@ -1,26 +0,0 @@-/**- * This is the main container for the XMLDOC handler.- * @namespace- * @author Brett Fattori ([email protected])- * @version $Revision: 498 $- */-XMLDOC = {--};--/** The current version string of this application. */-XMLDOC.VERSION = "1.0";--/** Include the library necessary to handle XML files */-IO.includeDir("handlers/XMLDOC/");--/**- * @type Symbol[]- */-XMLDOC.handle = function(srcFile, src) {--};--XMLDOC.publish = function(symbolgroup) {--}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/XMLDOC/DomReader.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/XMLDOC/DomReader.jsdeleted file mode 100755index 240563dafdc..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/XMLDOC/DomReader.js+++ /dev/null@@ -1,159 +0,0 @@-LOG.inform("XMLDOC.DomReader loaded");--XMLDOC.DomReader = function(root) {-- this.dom = root;-- /**- * The current node the reader is on- */- this.node = root;-- /**- * Get the current node the reader is on- * @type XMLDOC.Parser.node- */- XMLDOC.DomReader.prototype.getNode = function() {- return this.node;- };-- /**- * Set the node the reader should be positioned on.- * @param node {XMLDOC.Parser.node}- */- XMLDOC.DomReader.prototype.setNode = function(node) {- this.node = node;- };-- /**- * A helper method to make sure the current node will- * never return null, unless null is passed as the root.- * @param step {String} An expression to evaluate - should return a node or null- */- XMLDOC.DomReader.prototype.navigate = function(step) {- var n;- if ((n = step) != null)- {- this.node = n;- return this.node;- }- return null;- };-- /**- * Get the root node of the current node's document.- */- XMLDOC.DomReader.prototype.root = function() {- this.navigate(this.dom);- };-- /**- * Get the parent of the current node.- */- XMLDOC.DomReader.prototype.parent = function() {- return this.navigate(this.node.parentNode());- };-- /**- * Get the first child of the current node.- */- XMLDOC.DomReader.prototype.firstChild = function() {- return this.navigate(this.node.firstChild());- };-- /**- * Get the last child of the current node.- */- XMLDOC.DomReader.prototype.lastChild = function() {- return this.navigate(this.node.lastChild());- };-- /**- * Get the next sibling of the current node.- */- XMLDOC.DomReader.prototype.nextSibling = function() {- return this.navigate(this.node.nextSibling());- };-- /**- * Get the previous sibling of the current node.- */- XMLDOC.DomReader.prototype.prevSibling = function() {- return this.navigate(this.node.prevSibling());- };-- //===============================================================================================- // Support methods-- /**- * Walk the tree starting with the current node, calling the plug-in for- * each node visited. Each time the plug-in is called, the DomReader- * is passed as the only parameter. Use the {@link XMLDOC.DomReader#getNode} method- * to access the current node. <i>This method uses a depth first traversal pattern.</i>- *- * @param srcFile {String} The source file being evaluated- */- XMLDOC.DomReader.prototype.getSymbols = function(srcFile)- {- XMLDOC.DomReader.symbols = [];- XMLDOC.DomReader.currentFile = srcFile;- JSDOC.Symbol.srcFile = (srcFile || "");-- if (defined(JSDOC.PluginManager)) {- JSDOC.PluginManager.run("onDomGetSymbols", this);- }-- return XMLDOC.DomReader.symbols;- };-- /**- * Find the node with the given name using a depth first traversal.- * Does not modify the DomReader's current node.- *- * @param name {String} The name of the node to find- * @return the node that was found, or null if not found- */- XMLDOC.DomReader.prototype.findNode = function(name)- {- var findNode = null;-- // Start at the current node and move into the subtree,- // looking for the node with the given name- function deeper(node, find)- {- var look = null;-- if (node) {- if (node.name == find)- {- return node;- }-- if (node.firstChild())- {- look = deeper(node.firstChild(), find);- }-- if (!look && node.nextSibling())- {- look = deeper(node.nextSibling(), find);- }- }-- return look;- }-- return deeper(this.getNode().firstChild(), name);- };-- /**- * Find the next node with the given name using a depth first traversal.- *- * @param name {String} The name of the node to find- */- XMLDOC.DomReader.prototype.findPreviousNode = function(name)- {- };--};-diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/XMLDOC/XMLDoc.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/XMLDOC/XMLDoc.jsdeleted file mode 100755index e9b3e3ce89e..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/XMLDOC/XMLDoc.js+++ /dev/null@@ -1,16 +0,0 @@-LOG.inform("XMLDOC.symbolize loaded");--/**- * Convert the source file to a set of symbols- */-XMLDOC.symbolize = function(srcFile, src) {-- LOG.inform("Symbolizing file '" + srcFile + "'");-- // XML files already have a defined structure, so we don't need to- // do anything but parse them. The DOM reader can create a symbol- // table from the parsed XML.- var dr = new XMLDOC.DomReader(XMLDOC.Parser.parse(src));- return dr.getSymbols(srcFile);--};diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/XMLDOC/XMLParse.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/XMLDOC/XMLParse.jsdeleted file mode 100755index 78e8f455642..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/handlers/XMLDOC/XMLParse.js+++ /dev/null@@ -1,292 +0,0 @@-LOG.inform("XMLDOC.Parser loaded");--/**- * XML Parser object. Returns an {@link #XMLDOC.Parser.node} which is- * the root element of the parsed document.- * <p/>- * By default, this parser will only handle well formed XML. To- * allow the parser to handle HTML, set the <tt>XMLDOC.Parser.strictMode</tt>- * variable to <tt>false</tt> before calling <tt>XMLDOC.Parser.parse()</tt>.- * <p/>- * <i>Note: If you pass poorly formed XML, it will cause the parser to throw- * an exception.</i>- *- * @author Brett Fattori ([email protected])- * @author $Author: micmath $- * @version $Revision: 497 $- */-XMLDOC.Parser = {};--/**- * Strict mode setting. Setting this to false allows HTML-style source to- * be parsed. Normally, well formed XML has defined end tags, or empty tags- * are properly formed. Default: <tt>true</tt>- * @type Boolean- */-XMLDOC.Parser.strictMode = true;--/**- * A node in an XML Document. Node types are ROOT, ELEMENT, COMMENT, PI, and TEXT.- * @param parent {XMLDOC.Parser.node} The parent node- * @param name {String} The node name- * @param type {String} One of the types- */-XMLDOC.Parser.node = function(parent, name, type)-{- this.name = name;- this.type = type || "ELEMENT";- this.parent = parent;- this.charData = "";- this.attrs = {};- this.nodes = [];- this.cPtr = 0;-- XMLDOC.Parser.node.prototype.getAttributeNames = function() {- var a = [];- for (var o in this.attrs)- {- a.push(o);- }-- return a;- };-- XMLDOC.Parser.node.prototype.getAttribute = function(attr) {- return this.attrs[attr];- };-- XMLDOC.Parser.node.prototype.setAttribute = function(attr, val) {- this.attrs[attr] = val;- };-- XMLDOC.Parser.node.prototype.getChild = function(idx) {- return this.nodes[idx];- };-- XMLDOC.Parser.node.prototype.parentNode = function() {- return this.parent;- };-- XMLDOC.Parser.node.prototype.firstChild = function() {- return this.nodes[0];- };-- XMLDOC.Parser.node.prototype.lastChild = function() {- return this.nodes[this.nodes.length - 1];- };-- XMLDOC.Parser.node.prototype.nextSibling = function() {- var p = this.parent;- if (p && (p.nodes.indexOf(this) + 1 != p.nodes.length))- {- return p.getChild(p.nodes.indexOf(this) + 1);- }- return null;- };-- XMLDOC.Parser.node.prototype.prevSibling = function() {- var p = this.parent;- if (p && (p.nodes.indexOf(this) - 1 >= 0))- {- return p.getChild(p.nodes.indexOf(this) - 1);- }- return null;- };-};--/**- * Parse an XML Document from the specified source. The XML should be- * well formed, unless strict mode is disabled, then the parser will- * handle HTML-style XML documents.- * @param src {String} The source to parse- */-XMLDOC.Parser.parse = function(src)-{- var A = [];-- // Normailize whitespace- A = src.split("\r\n");- src = A.join("\n");- A = src.split("\r");- src = A.join("\n");-- // Remove XML and DOCTYPE specifier- src.replace(/<\?XML .*\?>/i, "");- src.replace(/<!DOCTYPE .*\>/i, "");-- // The document is the root node and cannot be modified or removed- var doc = new XMLDOC.Parser.node(null, "ROOT", "DOCUMENT");-- // Let's break it down- XMLDOC.Parser.eat(doc, src);-- return doc;-};--/**- * The XML fragment processing routine. This method is private and should not be called- * directly.- * @param parentNode {XMLDOC.Parser.node} The node which is the parent of this fragment- * @param src {String} The source within the fragment to process- * @private- */-XMLDOC.Parser.eat = function(parentNode, src)-{- // A simple tag def- var reTag = new RegExp("<(!|)(\\?|--|)((.|\\s)*?)\\2>","g");-- // Special tag types- var reCommentTag = /<!--((.|\s)*?)-->/;- var rePITag = /<\?((.|\s)*?)\?>/;-- // A start tag (with potential empty marker)- var reStartTag = /<(.*?)( +([\w_\-]*)=(\"|')(.*)\4)*(\/)?>/;-- // An empty HTML style tag (not proper XML, but we'll accept it so we can process HTML)- var reHTMLEmptyTag = /<(.*?)( +([\w_\-]*)=(\"|')(.*)\4)*>/;-- // Fully enclosing tag with nested tags- var reEnclosingTag = /<(.*?)( +([\w_\-]*)=(\"|')(.*?)\4)*>((.|\s)*?)<\/\1>/;-- // Breaks down attributes- var reAttributes = new RegExp(" +([\\w_\\-]*)=(\"|')(.*?)\\2","g");-- // Find us a tag- var tag;- while ((tag = reTag.exec(src)) != null)- {- if (tag.index > 0)- {- // The next tag has some text before it- var text = src.substring(0, tag.index).replace(/^[ \t\n]+((.|\n)*?)[ \t\n]+$/, "$1");-- if (text.length > 0 && (text != "\n"))- {- var txtnode = new XMLDOC.Parser.node(parentNode, "", "TEXT");- txtnode.charData = text;-- // Append the new text node- parentNode.nodes.push(txtnode);- }-- // Reset the lastIndex of reTag- reTag.lastIndex -= src.substring(0, tag.index).length;-- // Eat the text- src = src.substring(tag.index);- }-- if (reCommentTag.test(tag[0]))- {- // Is this a comment?- var comment = new XMLDOC.Parser.node(parentNode, "", "COMMENT");- comment.charData = reCommentTag.exec(tag[0])[1];-- // Append the comment- parentNode.nodes.push(comment);-- // Move the lastIndex of reTag- reTag.lastIndex -= tag[0].length;-- // Eat the tag- src = src.replace(reCommentTag, "");- }- else if (rePITag.test(tag[0]))- {- // Is this a processing instruction?- var pi = new XMLDOC.Parser.node(parentNode, "", "PI");- pi.charData = rePITag.exec(tag[0])[1];-- // Append the processing instruction- parentNode.nodes.push(pi);-- // Move the lastIndex of reTag- reTag.lastIndex -= tag[0].length;-- // Eat the tag- src = src.replace(rePITag, "");- }- else if (reStartTag.test(tag[0]))- {- // Break it down- var e = reStartTag.exec(tag[0]);- var elem = new XMLDOC.Parser.node(parentNode, e[1], "ELEMENT");-- // Get attributes from the tag- var a;- while ((a = reAttributes.exec(e[2])) != null )- {- elem.attrs[a[1]] = a[3];- }-- // Is this an empty XML-style tag?- if (e[6] == "/")- {- // Append the empty element- parentNode.nodes.push(elem);-- // Move the lastIndex of reTag (include the start tag length)- reTag.lastIndex -= e[0].length;-- // Eat the tag- src = src.replace(reStartTag, "");- }- else- {- // Check for malformed XML tags- var htmlParsed = false;- var htmlStartTag = reHTMLEmptyTag.exec(src);-- // See if there isn't an end tag within this block- var reHTMLEndTag = new RegExp("</" + htmlStartTag[1] + ">");- var htmlEndTag = reHTMLEndTag.exec(src);-- if (XMLDOC.Parser.strictMode && htmlEndTag == null)- {- // Poorly formed XML fails in strict mode- var err = new Error("Malformed XML passed to XMLDOC.Parser... Error contains malformed 'src'");- err.src = src;- throw err;- }- else if (htmlEndTag == null)- {- // This is an HTML-style empty tag, store the element for it in non-strict mode- parentNode.nodes.push(elem);-- // Eat the tag- src = src.replace(reHTMLEmptyTag, "");- htmlParsed = true;- }-- // If we didn't parse HTML-style, it must be an enclosing tag- if (!htmlParsed)- {- var enc = reEnclosingTag.exec(src);-- // Go deeper into the document- XMLDOC.Parser.eat(elem, enc[6]);-- // Append the new element node- parentNode.nodes.push(elem);-- // Eat the tag- src = src.replace(reEnclosingTag, "");- }- }-- // Reset the lastIndex of reTag- reTag.lastIndex = 0;- }- }-- // No tag was found... append the text if there is any- src = src.replace(/^[ \t\n]+((.|\n)*?)[ \t\n]+$/, "$1");- if (src.length > 0 && (src != "\n"))- {- var txtNode = new XMLDOC.Parser.node(parentNode, "", "TEXT");- txtNode.charData = src;-- // Append the new text node- parentNode.nodes.push(txtNode);- }-};diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC.jsdeleted file mode 100644index 7c9b0611d67..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC.js+++ /dev/null@@ -1,97 +0,0 @@-/**- @overview- @date $Date: 2008-06-08 22:57:25 +0100 (Sun, 08 Jun 2008) $- @version $Revision: 638 $- @location $HeadURL: https://jsdoc-toolkit.googlecode.com/svn/tags/jsdoc_toolkit-2.0.1/jsdoc-toolkit/app/lib/JSDOC.js $- */--/**- This is the main container for the JSDOC application.- @namespace-*/-JSDOC = {-};--/**- @requires Opt- */-if (typeof arguments == "undefined") arguments = [];-JSDOC.opt = Opt.get(- arguments,- {- d: "directory",- c: "conf",- t: "template",- r: "recurse",- x: "ext",- p: "private",- a: "allfunctions",- e: "encoding",- n: "nocode",- o: "out",- s: "suppress",- T: "testmode",- h: "help",- v: "verbose",- "D[]": "define",- "H[]": "handler"- }-);--/** The current version string of this application. */-JSDOC.VERSION = "2.0.1";--/** Print out usage information and quit. */-JSDOC.usage = function() {- print("USAGE: java -jar jsrun.jar app/run.js [OPTIONS] <SRC_DIR> <SRC_FILE> ...");- print("");- print("OPTIONS:");- print(" -a or --allfunctions\n Include all functions, even undocumented ones.\n");- print(" -c or --conf\n Load a configuration file.\n");- print(" -d=<PATH> or --directory=<PATH>\n Output to this directory (defaults to \"out\").\n");- print(" -D=\"myVar:My value\" or --define=\"myVar:My value\"\n Multiple. Define a variable, available in JsDoc as JSDOC.opt.D.myVar\n");- print(" -e=<ENCODING> or --encoding=<ENCODING>\n Use this encoding to read and write files.\n");- print(" -h or --help\n Show this message and exit.\n");- //print(" -H=ext:handler or --handler=ext:handler\n Multiple. Load handlers/handler.js to handle files with .ext names.\n");- print(" -n or --nocode\n Ignore all code, only document comments with @name tags.\n");- print(" -o=<PATH> or --out=<PATH>\n Print log messages to a file (defaults to stdout).\n");- print(" -p or --private\n Include symbols tagged as private, underscored and inner symbols.\n");- print(" -r=<DEPTH> or --recurse=<DEPTH>\n Descend into src directories.\n");- print(" -s or --suppress\n Suppress source code output.\n");- print(" -t=<PATH> or --template=<PATH>\n Required. Use this template to format the output.\n");- print(" -T or --test\n Run all unit tests and exit.\n");- print(" -v or --verbose\n Provide verbose feedback about what is happening.\n");- print(" -x=<EXT>[,EXT]... or --ext=<EXT>[,EXT]...\n Scan source files with the given extension/s (defaults to js).\n");-- quit();-}--/*t:- plan(4, "Testing JSDOC namespace.");-- is(- typeof JSDOC,- "object",- "JSDOC.usage is a function."- );-- is(- typeof JSDOC.VERSION,- "string",- "JSDOC.VERSION is a string."- );-- is(- typeof JSDOC.usage,- "function",- "JSDOC.usage is a function."- );-- is(- typeof JSDOC.opt,- "object",- "JSDOC.opt is a object."- );- */--if (this.IO) IO.includeDir("lib/JSDOC/");diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/DocComment.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/DocComment.jsdeleted file mode 100644index d93ad4ae443..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/DocComment.js+++ /dev/null@@ -1,200 +0,0 @@-if (typeof JSDOC == "undefined") JSDOC = {};--/**- Create a new DocComment. This takes a raw documentation comment,- and wraps it in useful accessors.- @class Represents a documentation comment object.- */-JSDOC.DocComment = function(/**String*/comment) {- this.init();- if (typeof comment != "undefined") {- this.parse(comment);- }-}--JSDOC.DocComment.prototype.init = function() {- this.isUserComment = true;- this.src = "";- this.meta = "";- this.tagTexts = [];- this.tags = [];-}--/**- @requires JSDOC.DocTag- */-JSDOC.DocComment.prototype.parse = function(/**String*/comment) {- if (comment == "") {- comment = "/** @desc */";- this.isUserComment = false;- }-- this.src = JSDOC.DocComment.unwrapComment(comment);-- this.meta = "";- if (this.src.indexOf("#") == 0) {- this.src.match(/#(.+[+-])([\s\S]*)$/);- if (RegExp.$1) this.meta = RegExp.$1;- if (RegExp.$2) this.src = RegExp.$2;- }-- this.fixDesc();-- if (typeof JSDOC.PluginManager != "undefined") {- JSDOC.PluginManager.run("onDocCommentSrc", this);- }-- this.src = JSDOC.DocComment.shared+"\n"+this.src;-- this.tagTexts =- this.src- .split(/(^|[\r\n])\s*@/)- .filter(function($){return $.match(/\S/)});-- /**- The tags found in the comment.- @type JSDOC.DocTag[]- */- this.tags = this.tagTexts.map(function($){return new JSDOC.DocTag($)});-- if (typeof JSDOC.PluginManager != "undefined") {- JSDOC.PluginManager.run("onDocCommentTags", this);- }-}--/*t:- plan(5, "testing JSDOC.DocComment");- requires("../frame/String.js");- requires("../lib/JSDOC/DocTag.js");-- var com = new JSDOC.DocComment("/**@foo some\n* comment here*"+"/");- is(com.tagTexts[0], "foo some\ncomment here", "first tag text is found.");- is(com.tags[0].title, "foo", "the title is found in a comment with one tag.");-- var com = new JSDOC.DocComment("/** @foo first\n* @bar second*"+"/");- is(com.getTag("bar").length, 1, "getTag() returns one tag by that title.");-- JSDOC.DocComment.shared = "@author John Smith";- var com = new JSDOC.DocComment("/**@foo some\n* comment here*"+"/");- is(com.tags[0].title, "author", "shared comment is added.");- is(com.tags[1].title, "foo", "shared comment is added to existing tag.");-*/--/**- If no @desc tag is provided, this function will add it.- */-JSDOC.DocComment.prototype.fixDesc = function() {- if (this.meta && this.meta != "@+") return;- if (/^\s*[^@\s]/.test(this.src)) {- this.src = "@desc "+this.src;- }-}--/*t:- plan(5, "testing JSDOC.DocComment#fixDesc");-- var com = new JSDOC.DocComment();-- com.src = "this is a desc\n@author foo";- com.fixDesc();- is(com.src, "@desc this is a desc\n@author foo", "if no @desc tag is provided one is added.");-- com.src = "x";- com.fixDesc();- is(com.src, "@desc x", "if no @desc tag is provided one is added to a single character.");-- com.src = "\nx";- com.fixDesc();- is(com.src, "@desc \nx", "if no @desc tag is provided one is added to return and character.");-- com.src = " ";- com.fixDesc();- is(com.src, " ", "if no @desc tag is provided one is not added to just whitespace.");-- com.src = "";- com.fixDesc();- is(com.src, "", "if no @desc tag is provided one is not added to empty.");-*/--/**- Remove slash-star comment wrapper from a raw comment string.- @type String- */-JSDOC.DocComment.unwrapComment = function(/**String*/comment) {- if (!comment) return "";- var unwrapped = comment.replace(/(^\/\*\*|\*\/$)/g, "").replace(/^\s*\* ?/gm, "");- return unwrapped;-}--/*t:- plan(5, "testing JSDOC.DocComment.unwrapComment");-- var com = "/**x*"+"/";- var unwrapped = JSDOC.DocComment.unwrapComment(com);- is(unwrapped, "x", "a single character jsdoc is found.");-- com = "/***x*"+"/";- unwrapped = JSDOC.DocComment.unwrapComment(com);- is(unwrapped, "x", "three stars are allowed in the opener.");-- com = "/****x*"+"/";- unwrapped = JSDOC.DocComment.unwrapComment(com);- is(unwrapped, "*x", "fourth star in the opener is kept.");-- com = "/**x\n * y\n*"+"/";- unwrapped = JSDOC.DocComment.unwrapComment(com);- is(unwrapped, "x\ny\n", "leading stars and spaces are trimmed.");-- com = "/**x\n * y\n*"+"/";- unwrapped = JSDOC.DocComment.unwrapComment(com);- is(unwrapped, "x\n y\n", "only first space after leading stars are trimmed.");-*/--/**- Provides a printable version of the comment.- @type String- */-JSDOC.DocComment.prototype.toString = function() {- return this.src;-}--/*t:- plan(1, "testing JSDOC.DocComment#fixDesc");- var com = new JSDOC.DocComment();- com.src = "foo";- is(""+com, "foo", "stringifying a comment returns the unwrapped src.");-*/--/**- Given the title of a tag, returns all tags that have that title.- @type JSDOC.DocTag[]- */-JSDOC.DocComment.prototype.getTag = function(/**String*/tagTitle) {- return this.tags.filter(function($){return $.title == tagTitle});-}--/*t:- plan(1, "testing JSDOC.DocComment#getTag");- requires("../frame/String.js");- requires("../lib/JSDOC/DocTag.js");-- var com = new JSDOC.DocComment("/**@foo some\n* @bar\n* @bar*"+"/");- is(com.getTag("bar").length, 2, "getTag returns expected number of tags.");-*/--/**- Used to store the currently shared tag text.-*/-JSDOC.DocComment.shared = "";--/*t:- plan(2, "testing JSDOC.DocComment.shared");- requires("../frame/String.js");- requires("../lib/JSDOC/DocTag.js");-- JSDOC.DocComment.shared = "@author Michael";-- var com = new JSDOC.DocComment("/**@foo\n* @foo*"+"/");- is(com.getTag("author").length, 1, "getTag returns shared tag.");- is(com.getTag("foo").length, 2, "getTag returns unshared tags too.");-*/\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/DocTag.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/DocTag.jsdeleted file mode 100644index 77ec07cacdb..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/DocTag.js+++ /dev/null@@ -1,294 +0,0 @@-if (typeof JSDOC == "undefined") JSDOC = {};--/**- @constructor- */-JSDOC.DocTag = function(src) {- this.init();- if (typeof src != "undefined") {- this.parse(src);- }-}--/**- Create and initialize the properties of this.- */-JSDOC.DocTag.prototype.init = function() {- this.title = "";- this.type = "";- this.name = "";- this.isOptional = false;- this.defaultValue = "";- this.desc = "";-- return this;-}--/**- Populate the properties of this from the given tag src.- @param {string} src- */-JSDOC.DocTag.prototype.parse = function(src) {- if (typeof src != "string") throw "src must be a string not "+(typeof src);-- try {- src = this.nibbleTitle(src);- if (JSDOC.PluginManager) {- JSDOC.PluginManager.run("onDocTagSynonym", this);- }-- src = this.nibbleType(src);-- // only some tags are allowed to have names.- if (this.title == "param" || this.title == "property" || this.title == "config") { // @config is deprecated- src = this.nibbleName(src);- }- }- catch(e) {- if (LOG) LOG.warn(e);- else throw e;- }- this.desc = src; // whatever is left-- // example tags need to have whitespace preserved- if (this.title != "example") this.desc = this.desc.trim();-- if (JSDOC.PluginManager) {- JSDOC.PluginManager.run("onDocTag", this);- }-}--/**- Automatically called when this is stringified.- */-JSDOC.DocTag.prototype.toString = function() {- return this.desc;-}--/*t:- plan(1, "testing JSDOC.DocTag#toString");-- var tag = new JSDOC.DocTag("param {object} date A valid date.");- is(""+tag, "A valid date.", "stringifying a tag returns the desc.");- */--/**- Find and shift off the title of a tag.- @param {string} src- @return src- */-JSDOC.DocTag.prototype.nibbleTitle = function(src) {- if (typeof src != "string") throw "src must be a string not "+(typeof src);-- var parts = src.match(/^\s*(\S+)(?:\s([\s\S]*))?$/);-- if (parts && parts[1]) this.title = parts[1];- if (parts && parts[2]) src = parts[2];- else src = "";-- return src;-}--/*t:- plan(8, "testing JSDOC.DocTag#nibbleTitle");-- var tag = new JSDOC.DocTag();-- tag.init().nibbleTitle("aTitleGoesHere");- is(tag.title, "aTitleGoesHere", "a title can be found in a single-word string.");-- var src = tag.init().nibbleTitle("aTitleGoesHere and the rest");- is(tag.title, "aTitleGoesHere", "a title can be found in a multi-word string.");- is(src, "and the rest", "the rest is returned when the title is nibbled off.");-- src = tag.init().nibbleTitle("");- is(tag.title, "", "given an empty string the title is empty.");- is(src, "", "the rest is empty when the tag is empty.");-- var src = tag.init().nibbleTitle(" aTitleGoesHere\n a description");- is(tag.title, "aTitleGoesHere", "leading and trailing spaces are not part of the title.");- is(src, " a description", "leading spaces (less one) are part of the description.");-- tag.init().nibbleTitle("a.Title::Goes_Here foo");- is(tag.title, "a.Title::Goes_Here", "titles with punctuation are allowed.");- */--/**- Find and shift off the type of a tag.- @requires frame/String.js- @param {string} src- @return src- */-JSDOC.DocTag.prototype.nibbleType = function(src) {- if (typeof src != "string") throw "src must be a string not "+(typeof src);-- if (src.match(/^\s*\{/)) {- var typeRange = src.balance("{", "}");- if (typeRange[1] == -1) {- throw "Malformed comment tag ignored. Tag type requires an opening { and a closing }: "+src;- }- this.type = src.substring(typeRange[0]+1, typeRange[1]).trim();- this.type = this.type.replace(/\s*,\s*/g, "|"); // multiples can be separated by , or |- src = src.substring(typeRange[1]+1);- }-- return src;-}--/*t:- plan(5, "testing JSDOC.DocTag.parser.nibbleType");- requires("../frame/String.js");-- var tag = new JSDOC.DocTag();-- tag.init().nibbleType("{String[]} aliases");- is(tag.type, "String[]", "type can have non-alpha characters.");-- tag.init().nibbleType("{ aTypeGoesHere } etc etc");- is(tag.type, "aTypeGoesHere", "type is trimmed.");-- tag.init().nibbleType("{ oneType, twoType ,\n threeType } etc etc");- is(tag.type, "oneType|twoType|threeType", "multiple types can be separated by commas.");-- var error;- try { tag.init().nibbleType("{widget foo"); }- catch(e) { error = e; }- is(typeof error, "string", "malformed tag type throws error.");- isnt(error.indexOf("Malformed"), -1, "error message tells tag is malformed.");- */--/**- Find and shift off the name of a tag.- @requires frame/String.js- @param {string} src- @return src- */-JSDOC.DocTag.prototype.nibbleName = function(src) {- if (typeof src != "string") throw "src must be a string not "+(typeof src);-- src = src.trim();-- // is optional?- if (src.charAt(0) == "[") {- var nameRange = src.balance("[", "]");- if (nameRange[1] == -1) {- throw "Malformed comment tag ignored. Tag optional name requires an opening [ and a closing ]: "+src;- }- this.name = src.substring(nameRange[0]+1, nameRange[1]).trim();- this.isOptional = true;-- src = src.substring(nameRange[1]+1);-- // has default value?- var nameAndValue = this.name.split("=");- if (nameAndValue.length) {- this.name = nameAndValue.shift().trim();- this.defaultValue = nameAndValue.join("=");- }- }- else {- var parts = src.match(/^(\S+)(?:\s([\s\S]*))?$/);- if (parts) {- if (parts[1]) this.name = parts[1];- if (parts[2]) src = parts[2].trim();- else src = "";- }- }-- return src;-}--/*t:- requires("../frame/String.js");- plan(9, "testing JSDOC.DocTag.parser.nibbleName");-- var tag = new JSDOC.DocTag();-- tag.init().nibbleName("[foo] This is a description.");- is(tag.isOptional, true, "isOptional syntax is detected.");- is(tag.name, "foo", "optional param name is found.");-- tag.init().nibbleName("[foo] This is a description.");- is(tag.isOptional, true, "isOptional syntax is detected when no type.");- is(tag.name, "foo", "optional param name is found when no type.");-- tag.init().nibbleName("[foo=7] This is a description.");- is(tag.name, "foo", "optional param name is found when default value.");- is(tag.defaultValue, 7, "optional param default value is found when default value.");-- //tag.init().nibbleName("[foo= a value] This is a description.");- //is(tag.defaultValue, " a value", "optional param default value is found when default value has spaces (issue #112).");-- tag.init().nibbleName("[foo=[]] This is a description.");- is(tag.defaultValue, "[]", "optional param default value is found when default value is [] (issue #95).");-- tag.init().nibbleName("[foo=a=b] This is a description.");- is(tag.name, "foo", "optional param name is found when default value is a=b.");- is(tag.defaultValue, "a=b", "optional param default value is found when default value is a=b.")- */--/*t:- plan(32, "Testing JSDOC.DocTag.parser.");- requires("../frame/String.js");-- var tag = new JSDOC.DocTag();-- is(typeof tag, "object", "JSDOC.DocTag.parser with an empty string returns an object.");- is(typeof tag.title, "string", "returned object has a string property 'title'.");- is(typeof tag.type, "string", "returned object has a string property 'type'.");- is(typeof tag.name, "string", "returned object has a string property 'name'.");- is(typeof tag.defaultValue, "string", "returned object has a string property 'defaultValue'.");- is(typeof tag.isOptional, "boolean", "returned object has a boolean property 'isOptional'.");- is(typeof tag.desc, "string", "returned object has a string property 'desc'.");-- tag = new JSDOC.DocTag("param {widget} foo");- is(tag.title, "param", "param title is found.");- is(tag.name, "foo", "param name is found when desc is missing.");- is(tag.desc, "", "param desc is empty when missing.");-- tag = new JSDOC.DocTag("param {object} date A valid date.");- is(tag.name, "date", "param name is found with a type.");- is(tag.type, "object", "param type is found.");- is(tag.desc, "A valid date.", "param desc is found with a type.");-- tag = new JSDOC.DocTag("param aName a description goes\n here.");- is(tag.name, "aName", "param name is found without a type.");- is(tag.desc, "a description goes\n here.", "param desc is found without a type.");-- tag = new JSDOC.DocTag("param {widget}");- is(tag.name, "", "param name is empty when it is not given.");-- tag = new JSDOC.DocTag("param {widget} [foo] This is a description.");- is(tag.name, "foo", "optional param name is found.");-- tag = new JSDOC.DocTag("return {aType} This is a description.");- is(tag.type, "aType", "when return tag has no name, type is found.");- is(tag.desc, "This is a description.", "when return tag has no name, desc is found.");-- tag = new JSDOC.DocTag("author Joe Coder <[email protected]>");- is(tag.title, "author", "author tag has a title.");- is(tag.type, "", "the author tag has no type.");- is(tag.name, "", "the author tag has no name.");- is(tag.desc, "Joe Coder <[email protected]>", "author tag has desc.");-- tag = new JSDOC.DocTag("private \t\n ");- is(tag.title, "private", "private tag has a title.");- is(tag.type, "", "the private tag has no type.");- is(tag.name, "", "the private tag has no name.");- is(tag.desc, "", "private tag has no desc.");-- tag = new JSDOC.DocTag("example\n example(code);\n more();");- is(tag.desc, " example(code);\n more();", "leading whitespace (less one) in examples code is preserved.");-- tag = new JSDOC.DocTag("param theName \n");- is(tag.name, "theName", "name only is found.");-- tag = new JSDOC.DocTag("type theDesc \n");- is(tag.desc, "theDesc", "desc only is found.");-- tag = new JSDOC.DocTag("type {theType} \n");- is(tag.type, "theType", "type only is found.");-- tag = new JSDOC.DocTag("");- is(tag.title, "", "title is empty when tag is empty.");- */\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/JsDoc.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/JsDoc.jsdeleted file mode 100644index 4320aedfdd3..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/JsDoc.js+++ /dev/null@@ -1,162 +0,0 @@-/**- @constructor- @param [opt] Used to override the commandline options. Useful for testing.- @version $Id: JsDoc.js 592 2008-05-09 07:43:33Z micmath $-*/-JSDOC.JsDoc = function(/**object*/ opt) {- if (opt) {- JSDOC.opt = opt;- }-- // the -c option: use a configuration file- if (JSDOC.opt.c) {- eval("JSDOC.conf = " + IO.readFile(JSDOC.opt.c));-- LOG.inform("Using configuration file at '"+JSDOC.opt.c+"'.");-- for (var c in JSDOC.conf) {- if (c !== "D" && !defined(JSDOC.opt[c])) { // commandline overrules config file- JSDOC.opt[c] = JSDOC.conf[c];- }- }-- if (typeof JSDOC.conf["_"] != "undefined") {- JSDOC.opt["_"] = JSDOC.opt["_"].concat(JSDOC.conf["_"]);- }-- LOG.inform("With configuration: ");- for (var o in JSDOC.opt) {- LOG.inform(" "+o+": "+JSDOC.opt[o]);- }- }-- if (JSDOC.opt.h) {- JSDOC.usage();- quit();- }-- // defend against options that are not sane- if (JSDOC.opt._.length == 0) {- LOG.warn("No source files to work on. Nothing to do.");- quit();- }- if (JSDOC.opt.t === true || JSDOC.opt.d === true) {- JSDOC.usage();- }-- if (typeof JSDOC.opt.d == "string") {- if (!JSDOC.opt.d.charAt(JSDOC.opt.d.length-1).match(/[\\\/]/)) {- JSDOC.opt.d = JSDOC.opt.d+"/";- }- LOG.inform("Output directory set to '"+JSDOC.opt.d+"'.");- IO.mkPath(JSDOC.opt.d);- }- if (JSDOC.opt.e) IO.setEncoding(JSDOC.opt.e);-- // the -r option: scan source directories recursively- if (typeof JSDOC.opt.r == "boolean") JSDOC.opt.r = 10;- else if (!isNaN(parseInt(JSDOC.opt.r))) JSDOC.opt.r = parseInt(JSDOC.opt.r);- else JSDOC.opt.r = 1;-- // the -D option: define user variables- var D = {};- if (JSDOC.opt.D) {- for (var i = 0; i < JSDOC.opt.D.length; i++) {- var defineParts = JSDOC.opt.D[i].split(":", 2);- if (defineParts) D[defineParts[0]] = defineParts[1];- }- }- JSDOC.opt.D = D;- // combine any conf file D options with the commandline D options- if (defined(JSDOC.conf)) for (var c in JSDOC.conf.D) {- if (!defined(JSDOC.opt.D[c])) {- JSDOC.opt.D[c] = JSDOC.conf.D[c];- }- }-- // Load additional file handlers- // the -H option: filetype handlers- JSDOC.handlers = {};-/*- if (JSDOC.opt.H) {- for (var i = 0; i < JSDOC.opt.H.length; i++) {- var handlerDef = JSDOC.opt.H[i].split(":");- LOG.inform("Adding '." + handlerDef[0] + "' content handler from handlers/" + handlerDef[1] + ".js");- IO.include("handlers/" + handlerDef[1] + ".js");- if (!eval("typeof "+handlerDef[1])) {- LOG.warn(handlerDef[1] + "is not defined in "+handlerDef[1] + ".js");- }- else {- JSDOC.handlers[handlerDef[0]] = eval(handlerDef[1]);- }- }- }-*/- // Give plugins a chance to initialize- if (defined(JSDOC.PluginManager)) {- JSDOC.PluginManager.run("onInit", this);- }-- JSDOC.opt.srcFiles = this._getSrcFiles();- this._parseSrcFiles();- //var handler = symbols.handler;- this.symbolSet = JSDOC.Parser.symbols;- //this.symbolGroup.handler = handler;-}--/**- Retrieve source file list.- @returns {String[]} The pathnames of the files to be parsed.- */-JSDOC.JsDoc.prototype._getSrcFiles = function() {- this.srcFiles = [];-- var ext = ["js"];- if (JSDOC.opt.x) {- ext = JSDOC.opt.x.split(",").map(function($) {return $.toLowerCase()});- }-- for (var i = 0; i < JSDOC.opt._.length; i++) {- this.srcFiles = this.srcFiles.concat(- IO.ls(JSDOC.opt._[i], JSDOC.opt.r).filter(- function($) {- var thisExt = $.split(".").pop().toLowerCase();- return (ext.indexOf(thisExt) > -1 || thisExt in JSDOC.handlers); // we're only interested in files with certain extensions- }- )- );- }-- return this.srcFiles;-}--JSDOC.JsDoc.prototype._parseSrcFiles = function() {- JSDOC.Parser.init();- for (var i = 0, l = this.srcFiles.length; i < l; i++) {- var srcFile = this.srcFiles[i];-- try {- var src = IO.readFile(srcFile);- }- catch(e) {- LOG.warn("Can't read source file '"+srcFile+"': "+e.message);- }-- // Check to see if there is a handler for this file type-// var ext = FilePath.fileExtension(srcFile);-// if (JSDOC.handlers[ext]) {-// LOG.inform(" Using external handler for '" + ext + "'");-//-// symbols = symbols.concat(JSDOC.handlers[ext].handle(srcFile, src));-// symbols.handler = JSDOC.handlers[ext];-// }-// else {- // The default (JSDOC) handler- var tr = new JSDOC.TokenReader();- var ts = new JSDOC.TokenStream(tr.tokenize(new JSDOC.TextStream(src)));-- JSDOC.Parser.parse(ts, srcFile);-// }- }- JSDOC.Parser.finish();-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/JsPlate.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/JsPlate.jsdeleted file mode 100644index eb5802185a0..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/JsPlate.js+++ /dev/null@@ -1,100 +0,0 @@-/**- @constructor-*/-JSDOC.JsPlate = function(templateFile) {- if (templateFile) this.template = IO.readFile(templateFile);-- this.templateFile = templateFile;- this.code = "";- this.parse();-}--JSDOC.JsPlate.prototype.parse = function() {- this.template = this.template.replace(/\{#[\s\S]+?#\}/gi, "");- this.code = "var output=``"+this.template;-- this.code = this.code.replace(- /<for +each="(.+?)" +in="(.+?)" *>/gi,- function (match, eachName, inName) {- return "``;\rvar $"+eachName+"_keys = keys("+inName+");\rfor(var $"+eachName+"_i = 0; $"+eachName+"_i < $"+eachName+"_keys.length; $"+eachName+"_i++) {\rvar $"+eachName+"_last = ($"+eachName+"_i == $"+eachName+"_keys.length-1);\rvar $"+eachName+"_key = $"+eachName+"_keys[$"+eachName+"_i];\rvar "+eachName+" = "+inName+"[$"+eachName+"_key];\routput+=``";- }- );- this.code = this.code.replace(/<if test="(.+?)">/g, "``;\rif ($1) { output+=``");- this.code = this.code.replace(/<elseif test="(.+?)"\s*\/>/g, "``;}\relse if ($1) { output+=``");- this.code = this.code.replace(/<else\s*\/>/g, "``;}\relse { output+=``");- this.code = this.code.replace(/<\/(if|for)>/g, "``;\r};\routput+=``");- this.code = this.code.replace(- /\{\+\s*([\s\S]+?)\s*\+\}/gi,- function (match, code) {- code = code.replace(/"/g, "``"); // prevent qoute-escaping of inline code- code = code.replace(/(\r?\n)/g, " ");- return "``+ ("+code+") +``";- }- );- this.code = this.code.replace(- /\{!\s*([\s\S]+?)\s*!\}/gi,- function (match, code) {- code = code.replace(/"/g, "``"); // prevent qoute-escaping of inline code- code = code.replace(/(\n)/g, " ");- return "``; "+code+";\routput+=``";- }- );- this.code = this.code+"``;";-- this.code = this.code.replace(/(\r?\n)/g, "\\n");- this.code = this.code.replace(/"/g, "\\\"");- this.code = this.code.replace(/``/g, "\"");-}--JSDOC.JsPlate.prototype.toCode = function() {- return this.code;-}--JSDOC.JsPlate.keys = function(obj) {- var keys = [];- if (obj.constructor.toString().indexOf("Array") > -1) {- for (var i = 0; i < obj.length; i++) {- keys.push(i);- }- }- else {- for (var i in obj) {- keys.push(i);- }- }- return keys;-};--JSDOC.JsPlate.values = function(obj) {- var values = [];- if (obj.constructor.toString().indexOf("Array") > -1) {- for (var i = 0; i < obj.length; i++) {- values.push(obj[i]);- }- }- else {- for (var i in obj) {- values.push(obj[i]);- }- }- return values;-};--JSDOC.JsPlate.prototype.process = function(data) {- var keys = JSDOC.JsPlate.keys;- var values = JSDOC.JsPlate.values;-- try {- eval(this.code);- }- catch (e) {- print(">> There was an error evaluating the compiled code from template: "+this.templateFile);- print(" The error was on line "+e.lineNumber+" "+e.name+": "+e.message);- var lines = this.code.split("\r");- if (e.lineNumber-2 >= 0) print("line "+(e.lineNumber-1)+": "+lines[e.lineNumber-2]);- print("line "+e.lineNumber+": "+lines[e.lineNumber-1]);- print("");- }- /*debug*///print(this.code);- return output;-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Lang.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Lang.jsdeleted file mode 100644index 25d9fd0bcfc..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Lang.js+++ /dev/null@@ -1,144 +0,0 @@-/**- @namespace-*/-JSDOC.Lang = {-}--JSDOC.Lang.isBuiltin = function(name) {- return (JSDOC.Lang.isBuiltin.coreObjects.indexOf(name) > -1);-}-JSDOC.Lang.isBuiltin.coreObjects = ['_global_', 'Array', 'Boolean', 'Date', 'Function', 'Math', 'Number', 'Object', 'RegExp', 'String'];--JSDOC.Lang.whitespace = function(ch) {- return JSDOC.Lang.whitespace.names[ch];-}-JSDOC.Lang.whitespace.names = {- " ": "SPACE",- "\f": "FORMFEED",- "\t": "TAB",- "\u0009": "UNICODE_TAB",- "\u000A": "UNICODE_NBR",- "\u0008": "VERTICAL_TAB"-};--JSDOC.Lang.newline = function(ch) {- return JSDOC.Lang.newline.names[ch];-}-JSDOC.Lang.newline.names = {- "\n": "NEWLINE",- "\r": "RETURN",- "\u000A": "UNICODE_LF",- "\u000D": "UNICODE_CR",- "\u2029": "UNICODE_PS",- "\u2028": "UNICODE_LS"-};--JSDOC.Lang.keyword = function(word) {- return JSDOC.Lang.keyword.names["="+word];-}-JSDOC.Lang.keyword.names = {- "=break": "BREAK",- "=case": "CASE",- "=catch": "CATCH",- "=const": "VAR",- "=continue": "CONTINUE",- "=default": "DEFAULT",- "=delete": "DELETE",- "=do": "DO",- "=else": "ELSE",- "=false": "FALSE",- "=finally": "FINALLY",- "=for": "FOR",- "=function": "FUNCTION",- "=if": "IF",- "=in": "IN",- "=instanceof": "INSTANCEOF",- "=new": "NEW",- "=null": "NULL",- "=return": "RETURN",- "=switch": "SWITCH",- "=this": "THIS",- "=throw": "THROW",- "=true": "TRUE",- "=try": "TRY",- "=typeof": "TYPEOF",- "=void": "VOID",- "=while": "WHILE",- "=with": "WITH",- "=var": "VAR"-};--JSDOC.Lang.punc = function(ch) {- return JSDOC.Lang.punc.names[ch];-}-JSDOC.Lang.punc.names = {- ";": "SEMICOLON",- ",": "COMMA",- "?": "HOOK",- ":": "COLON",- "||": "OR",- "&&": "AND",- "|": "BITWISE_OR",- "^": "BITWISE_XOR",- "&": "BITWISE_AND",- "===": "STRICT_EQ",- "==": "EQ",- "=": "ASSIGN",- "!==": "STRICT_NE",- "!=": "NE",- "<<": "LSH",- "<=": "LE",- "<": "LT",- ">>>": "URSH",- ">>": "RSH",- ">=": "GE",- ">": "GT",- "++": "INCREMENT",- "--": "DECREMENT",- "+": "PLUS",- "-": "MINUS",- "*": "MUL",- "/": "DIV",- "%": "MOD",- "!": "NOT",- "~": "BITWISE_NOT",- ".": "DOT",- "[": "LEFT_BRACKET",- "]": "RIGHT_BRACKET",- "{": "LEFT_CURLY",- "}": "RIGHT_CURLY",- "(": "LEFT_PAREN",- ")": "RIGHT_PAREN"-};--JSDOC.Lang.matching = function(name) {- return JSDOC.Lang.matching.names[name];-}-JSDOC.Lang.matching.names = {- "LEFT_PAREN": "RIGHT_PAREN",- "RIGHT_PAREN": "LEFT_PAREN",- "LEFT_CURLY": "RIGHT_CURLY",- "RIGHT_CURLY": "LEFT_CURLY",- "LEFT_BRACE": "RIGHT_BRACE",- "RIGHT_BRACE": "LEFT_BRACE"-}--JSDOC.Lang.isNumber = function(str) {- return /^(\.[0-9]|[0-9]+\.|[0-9])[0-9]*([eE][+-][0-9]+)?$/i.test(str);-}--JSDOC.Lang.isHexDec = function(str) {- return /^0x[0-9A-F]+$/i.test(str);-}--JSDOC.Lang.isWordChar = function(str) {- return /^[a-zA-Z0-9$_.]+$/.test(str);-}--JSDOC.Lang.isSpace = function(str) {- return (typeof JSDOC.Lang.whitespace(str) != "undefined");-}--JSDOC.Lang.isNewline = function(str) {- return (typeof JSDOC.Lang.newline(str) != "undefined");-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Parser.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Parser.jsdeleted file mode 100644index 3e0b5d24ed2..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Parser.js+++ /dev/null@@ -1,109 +0,0 @@-if (typeof JSDOC == "undefined") JSDOC = {};--/**- @namespace- @requires JSDOC.Walker- @requires JSDOC.Symbol- @requires JSDOC.DocComment-*/-JSDOC.Parser = {- conf: {- ignoreCode: JSDOC.opt.n,- ignoreAnonymous: true, // factory: true- treatUnderscoredAsPrivate: true, // factory: true- explain: false // factory: false- },-- addSymbol: function(symbol) {- // if a symbol alias is documented more than once the last one with the user docs wins- if (JSDOC.Parser.symbols.hasSymbol(symbol.alias)) {- var oldSymbol = JSDOC.Parser.symbols.getSymbol(symbol.alias);-- if (oldSymbol.comment.isUserComment) {- if (symbol.comment.isUserComment) { // old and new are both documented- LOG.warn("The symbol '"+symbol.alias+"' is documented more than once.");- }- else { // old is documented but new isn't- return;- }- }- }-- // we don't document anonymous things- if (JSDOC.Parser.conf.ignoreAnonymous && symbol.name.match(/\$anonymous\b/)) return;-- // uderscored things may be treated as if they were marked private, this cascades- if (JSDOC.Parser.conf.treatUnderscoredAsPrivate && symbol.name.match(/[.#-]_[^.#-]+$/)) {- symbol.isPrivate = true;- }-- // -p flag is required to document private things- if ((symbol.isInner || symbol.isPrivate) && !JSDOC.opt.p) return;-- // ignored things are not documented, this doesn't cascade- if (symbol.isIgnored) return;-- JSDOC.Parser.symbols.addSymbol(symbol);- },-- addBuiltin: function(name) {- var builtin = new JSDOC.Symbol(name, [], "CONSTRUCTOR", new JSDOC.DocComment(""));- builtin.isNamespace = true;- builtin.srcFile = "";- builtin.isPrivate = false;- JSDOC.Parser.addSymbol(builtin);- return builtin;- },-- init: function() {- JSDOC.Parser.symbols = new JSDOC.SymbolSet();- JSDOC.Parser.walker = new JSDOC.Walker();- },-- finish: function() {- JSDOC.Parser.symbols.relate();-- // make a litle report about what was found- if (JSDOC.Parser.conf.explain) {- var symbols = JSDOC.Parser.symbols.toArray();- var srcFile = "";- for (var i = 0, l = symbols.length; i < l; i++) {- var symbol = symbols[i];- if (srcFile != symbol.srcFile) {- srcFile = symbol.srcFile;- print("\n"+srcFile+"\n-------------------");- }- print(i+":\n alias => "+symbol.alias + "\n name => "+symbol.name+ "\n isa => "+symbol.isa + "\n memberOf => " + symbol.memberOf + "\n isStatic => " + symbol.isStatic + ", isInner => " + symbol.isInner);- }- print("-------------------\n");- }- }-}--JSDOC.Parser.parse = function(/**JSDOC.TokenStream*/ts, /**String*/srcFile) {- JSDOC.Symbol.srcFile = (srcFile || "");- JSDOC.DocComment.shared = ""; // shared comments don't cross file boundaries-- if (!JSDOC.Parser.walker) JSDOC.Parser.init();- JSDOC.Parser.walker.walk(ts); // adds to our symbols-- // filter symbols by option- for (p in JSDOC.Parser.symbols._index) {- var symbol = JSDOC.Parser.symbols.getSymbol(p);-- if (!symbol) continue;-- if (symbol.is("FILE") || symbol.is("GLOBAL")) {- continue;- }- else if (!JSDOC.opt.a && !symbol.comment.isUserComment) {- JSDOC.Parser.symbols.deleteSymbol(symbol.alias);- }-- if (/#$/.test(symbol.alias)) { // we don't document prototypes- JSDOC.Parser.symbols.deleteSymbol(symbol.alias);- }- }-- return JSDOC.Parser.symbols.toArray();-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.jsdeleted file mode 100644index 9c911931004..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js+++ /dev/null@@ -1,33 +0,0 @@-/**- @namespace Holds functionality related to running plugins.-*/-JSDOC.PluginManager = {-}--/**- @param name A unique name that identifies that plugin.- @param handlers A collection of named functions. The names correspond to hooks in the core code.-*/-JSDOC.PluginManager.registerPlugin = function(/**String*/name, /**Object*/handlers) {- if (!defined(JSDOC.PluginManager.plugins))- /** The collection of all plugins. Requires a unique name for each.- */- JSDOC.PluginManager.plugins = {};--- JSDOC.PluginManager.plugins[name] = handlers;-}--/**- @param hook The name of the hook that is being caught.- @param target Any object. This will be passed as the only argument to the handler whose- name matches the hook name. Handlers cannot return a value, so must modify the target- object to have an effect.-*/-JSDOC.PluginManager.run = function(/**String*/hook, /**Mixed*/target) {- for (var name in JSDOC.PluginManager.plugins) {- if (defined(JSDOC.PluginManager.plugins[name][hook])) {- JSDOC.PluginManager.plugins[name][hook](target);- }- }-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Symbol.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Symbol.jsdeleted file mode 100644index d201ac407fe..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Symbol.js+++ /dev/null@@ -1,600 +0,0 @@-if (typeof JSDOC == "undefined") JSDOC = {};--/**- Create a new Symbol.- @class Represents a symbol in the source code.- */-JSDOC.Symbol = function() {- this.init();- if (arguments.length) this.populate.apply(this, arguments);-}--JSDOC.Symbol.prototype.init = function() {- this.$args = [];- this.addOn = "";- this.alias = "";- this.augments = [];- this.author = "";- this.classDesc = "";- this.comment = {};- this.defaultValue = undefined;- this.deprecated = "";- this.desc = "";- this.events = [];- this.example = [];- this.exceptions = [];- this.inherits = [];- this.inheritsFrom = [];- this.isa = "OBJECT";- this.isEvent = false;- this.isConstant = false;- this.isIgnored = false;- this.isInner = false;- this.isNamespace = false;- this.isPrivate = false;- this.isStatic = false;- this.memberOf = "";- this.methods = [];- this._name = "";- this._params = [];- this.properties = [];- this.requires = [];- this.returns = [];- this.see = [];- this.since = "";- this.srcFile = {};- this.type = "";- this.version = "";-}--JSDOC.Symbol.prototype.serialize = function() {- var keys = [];- for (var p in this) {- keys.push (p);- }- keys = keys.sort();-- var out = "";- for (var i in keys) {- if (typeof this[keys[i]] == "function") continue;- out += keys[i]+" => "+Dumper.dump(this[keys[i]])+",\n";- }- return "\n{\n" + out + "}\n";-}--JSDOC.Symbol.prototype.clone = function() {- var clone = new JSDOC.Symbol();- clone.populate.apply(clone, this.$args); // repopulate using the original arguments- clone.srcFile = this.srcFile; // not the current srcFile, the one when the original was made- return clone;-}--JSDOC.Symbol.prototype.__defineSetter__("name",- function(n) { n = n.replace(/^_global_[.#-]/, ""); n = n.replace(/\.prototype\.?/g, '#'); this._name = n; }-);-JSDOC.Symbol.prototype.__defineGetter__("name",- function() { return this._name; }-);-JSDOC.Symbol.prototype.__defineSetter__("params",- function(v) {- for (var i = 0, l = v.length; i < l; i++) {- if (v[i].constructor != JSDOC.DocTag) { // may be a generic object parsed from signature, like {type:..., name:...}- this._params[i] = new JSDOC.DocTag("param"+((v[i].type)?" {"+v[i].type+"}":"")+" "+v[i].name);- }- else {- this._params[i] = v[i];- }- }- }-);-JSDOC.Symbol.prototype.__defineGetter__("params",- function() { return this._params; }-);--JSDOC.Symbol.prototype.populate = function(- /** String */ name,- /** Object[] */ params,- /** String */ isa,- /** JSDOC.DocComment */ comment-) {- this.$args = arguments;-- this.name = name;- this.alias = this.name;- this.params = params;- this.isa = (isa == "VIRTUAL")? "OBJECT":isa;- this.comment = comment || new JSDOC.DocComment("");- this.srcFile = JSDOC.Symbol.srcFile;-- if (this.is("FILE") && !this.alias) this.alias = this.srcFile;-- this.setTags();-- if (typeof JSDOC.PluginManager != "undefined") {- JSDOC.PluginManager.run("onSymbol", this);- }-}--JSDOC.Symbol.prototype.setTags = function() {- // @author- var authors = this.comment.getTag("author");- if (authors.length) {- this.author = authors.map(function($){return $.desc;}).join(", ");- }-- /*t:- plan(34, "testing JSDOC.Symbol");-- requires("../lib/JSDOC/DocComment.js");- requires("../frame/String.js");- requires("../lib/JSDOC/DocTag.js");-- var sym = new JSDOC.Symbol("foo", [], "OBJECT", new JSDOC.DocComment("/**@author Joe Smith*"+"/"));- is(sym.author, "Joe Smith", "@author tag, author is found.");- */-- // @desc- var descs = this.comment.getTag("desc");- if (descs.length) {- this.desc = descs.map(function($){return $.desc;}).join("\n"); // multiple descriptions are concatenated into one- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "OBJECT", new JSDOC.DocComment("/**@desc This is a description.*"+"/"));- is(sym.desc, "This is a description.", "@desc tag, description is found.");- */-- // @overview- if (this.is("FILE")) {- if (!this.alias) this.alias = this.srcFile;-- var overviews = this.comment.getTag("overview");- if (overviews.length) {- this.desc = [this.desc].concat(overviews.map(function($){return $.desc;})).join("\n");- }- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "FILE", new JSDOC.DocComment("/**@overview This is an overview.*"+"/"));- is(sym.desc, "\nThis is an overview.", "@overview tag, description is found.");- */-- // @since- var sinces = this.comment.getTag("since");- if (sinces.length) {- this.since = sinces.map(function($){return $.desc;}).join(", ");- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "FILE", new JSDOC.DocComment("/**@since 1.01*"+"/"));- is(sym.since, "1.01", "@since tag, description is found.");- */-- // @constant- if (this.comment.getTag("constant").length) {- this.isConstant = true;- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "FILE", new JSDOC.DocComment("/**@constant*"+"/"));- is(sym.isConstant, true, "@constant tag, isConstant set.");- */-- // @version- var versions = this.comment.getTag("version");- if (versions.length) {- this.version = versions.map(function($){return $.desc;}).join(", ");- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "FILE", new JSDOC.DocComment("/**@version 2.0x*"+"/"));- is(sym.version, "2.0x", "@version tag, version is found.");- */-- // @deprecated- var deprecateds = this.comment.getTag("deprecated");- if (deprecateds.length) {- this.deprecated = deprecateds.map(function($){return $.desc;}).join("\n");- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "FILE", new JSDOC.DocComment("/**@deprecated Use other method.*"+"/"));- is(sym.deprecated, "Use other method.", "@deprecated tag, desc is found.");- */-- // @example- var examples = this.comment.getTag("example");- if (examples.length) {- this.example = examples.map(- // trim trailing whitespace- function($) {- $.desc = $.desc.replace(/\s+$/, "");- return $;- }- );- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "FILE", new JSDOC.DocComment("/**@example This\n is an example. \n*"+"/"));- isnt(typeof sym.example[0], "undefined", "@example tag, creates sym.example array.");- is(sym.example[0], "This\n is an example.", "@example tag, desc is found.");- */-- // @see- var sees = this.comment.getTag("see");- if (sees.length) {- var thisSee = this.see;- sees.map(function($){thisSee.push($.desc);});- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "FILE", new JSDOC.DocComment("/**@see The other thing.*"+"/"));- is(sym.see, "The other thing.", "@see tag, desc is found.");- */-- // @class- var classes = this.comment.getTag("class");- if (classes.length) {- this.isa = "CONSTRUCTOR";- this.classDesc = classes[0].desc; // desc can't apply to the constructor as there is none.- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "OBJECT", new JSDOC.DocComment("/**@class This describes the class.*"+"/"));- is(sym.isa, "CONSTRUCTOR", "@class tag, makes symbol a constructor.");- is(sym.classDesc, "This describes the class.", "@class tag, class description is found.");- */-- // @namespace- var namespaces = this.comment.getTag("namespace");- if (namespaces.length) {- this.classDesc = namespaces[0].desc+"\n"+this.desc; // desc can't apply to the constructor as there is none.- this.isNamespace = true;- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "OBJECT", new JSDOC.DocComment("/**@namespace This describes the namespace.*"+"/"));- is(sym.classDesc, "This describes the namespace.\n", "@namespace tag, class description is found.");- */-- // @param- var params = this.comment.getTag("param");- if (params.length) {- // user-defined params overwrite those with same name defined by the parser- var thisParams = this.params;-- if (thisParams.length == 0) { // none exist yet, so just bung all these user-defined params straight in- this.params = params;- }- else { // need to overlay these user-defined params on to existing parser-defined params- for (var i = 0, l = params.length; i < l; i++) {- if (thisParams[i]) {- if (params[i].type) thisParams[i].type = params[i].type;- thisParams[i].name = params[i].name;- thisParams[i].desc = params[i].desc;- thisParams[i].isOptional = params[i].isOptional;- thisParams[i].defaultValue = params[i].defaultValue;- }- else thisParams[i] = params[i];- }- }- }-- /*t:- var sym = new JSDOC.Symbol("foo", [{type: "array", name: "pages"}], "FUNCTION", new JSDOC.DocComment("/**Description.*"+"/"));- is(sym.params.length, 1, "parser defined param is found.");-- sym = new JSDOC.Symbol("foo", [], "FUNCTION", new JSDOC.DocComment("/**Description.\n@param {array} pages*"+"/"));- is(sym.params.length, 1, "user defined param is found.");- is(sym.params[0].type, "array", "user defined param type is found.");- is(sym.params[0].name, "pages", "user defined param name is found.");-- sym = new JSDOC.Symbol("foo", [{type: "array", name: "pages"}], "FUNCTION", new JSDOC.DocComment("/**Description.\n@param {string} uid*"+"/"));- is(sym.params.length, 1, "user defined param overwrites parser defined param.");- is(sym.params[0].type, "string", "user defined param type overwrites parser defined param type.");- is(sym.params[0].name, "uid", "user defined param name overwrites parser defined param name.");-- sym = new JSDOC.Symbol("foo", [{type: "array", name: "pages"}, {type: "number", name: "count"}], "FUNCTION", new JSDOC.DocComment("/**Description.\n@param {string} uid*"+"/"));- is(sym.params.length, 2, "user defined params overlay parser defined params.");- is(sym.params[1].type, "number", "user defined param type overlays parser defined param type.");- is(sym.params[1].name, "count", "user defined param name overlays parser defined param name.");-- sym = new JSDOC.Symbol("foo", [], "FUNCTION", new JSDOC.DocComment("/**Description.\n@param {array} pages The pages description.*"+"/"));- is(sym.params.length, 1, "user defined param with description is found.");- is(sym.params[0].desc, "The pages description.", "user defined param description is found.");- */-- // @constructor- if (this.comment.getTag("constructor").length) {- this.isa = "CONSTRUCTOR";- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "OBJECT", new JSDOC.DocComment("/**@constructor*"+"/"));- is(sym.isa, "CONSTRUCTOR", "@constructor tag, makes symbol a constructor.");- */-- // @static- if (this.comment.getTag("static").length) {- this.isStatic = true;- if (this.isa == "CONSTRUCTOR") {- this.isNamespace = true;- }- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "OBJECT", new JSDOC.DocComment("/**@static\n@constructor*"+"/"));- is(sym.isStatic, true, "@static tag, makes isStatic true.");- is(sym.isNamespace, true, "@static and @constructor tag, makes isNamespace true.");- */-- // @inner- if (this.comment.getTag("inner").length) {- this.isInner = true;- this.isStatic = false;- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "OBJECT", new JSDOC.DocComment("/**@inner*"+"/"));- is(sym.isStatic, false, "@inner tag, makes isStatic false.");- is(sym.isInner, true, "@inner makes isInner true.");- */-- // @field- if (this.comment.getTag("field").length) {- this.isa = "OBJECT";- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "FUNCTION", new JSDOC.DocComment("/**@field*"+"/"));- is(sym.isa, "OBJECT", "@field tag, makes symbol an object.");- */-- // @function- if (this.comment.getTag("function").length) {- this.isa = "FUNCTION";- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "OBJECT", new JSDOC.DocComment("/**@function*"+"/"));- is(sym.isa, "FUNCTION", "@function tag, makes symbol a function.");- */-- // @event- var events = this.comment.getTag("event");- if (events.length) {- this.isa = "FUNCTION";- this.isEvent = true;- }-- /*t:- var sym = new JSDOC.Symbol("foo", [], "OBJECT", new JSDOC.DocComment("/**@event*"+"/"));- is(sym.isa, "FUNCTION", "@event tag, makes symbol a function.");- is(sym.isEvent, true, "@event makes isEvent true.");- */-- // @name- var names = this.comment.getTag("name");- if (names.length) {- this.name = names[0].desc;- }-- /*t:- // todo- */-- // @property- var properties = this.comment.getTag("property");- if (properties.length) {- thisProperties = this.properties;- for (var i = 0; i < properties.length; i++) {- var property = new JSDOC.Symbol(this.alias+"#"+properties[i].name, [], "OBJECT", new JSDOC.DocComment("/**"+properties[i].desc+"\n@name "+properties[i].name+"\n@memberOf "+this.alias+"#*/"));- // TODO: shouldn't the following happen in the addProperty method of Symbol?- property.name = properties[i].name;- property.memberOf = this.alias;- if (properties[i].type) property.type = properties[i].type;- if (properties[i].defaultValue) property.defaultValue = properties[i].defaultValue;- this.addProperty(property);- JSDOC.Parser.addSymbol(property);- }- }-- /*t:- // todo- */-- // @return- var returns = this.comment.getTag("return");- if (returns.length) { // there can be many return tags in a single doclet- this.returns = returns;- this.type = returns.map(function($){return $.type}).join(", ");- }-- /*t:- // todo- */-- // @exception- this.exceptions = this.comment.getTag("throws");-- /*t:- // todo- */-- // @requires- var requires = this.comment.getTag("requires");- if (requires.length) {- this.requires = requires.map(function($){return $.desc});- }-- /*t:- // todo- */-- // @type- var types = this.comment.getTag("type");- if (types.length) {- this.type = types[0].desc; //multiple type tags are ignored- }-- /*t:- // todo- */-- // @private- if (this.comment.getTag("private").length || this.isInner) {- this.isPrivate = true;- }-- // @ignore- if (this.comment.getTag("ignore").length) {- this.isIgnored = true;- }-- /*t:- // todo- */-- // @inherits ... as ...- var inherits = this.comment.getTag("inherits");- if (inherits.length) {- for (var i = 0; i < inherits.length; i++) {- if (/^\s*([a-z$0-9_.#-]+)(?:\s+as\s+([a-z$0-9_.#]+))?/i.test(inherits[i].desc)) {- var inAlias = RegExp.$1;- var inAs = RegExp.$2 || inAlias;-- if (inAlias) inAlias = inAlias.replace(/\.prototype\.?/g, "#");-- if (inAs) {- inAs = inAs.replace(/\.prototype\.?/g, "#");- inAs = inAs.replace(/^this\.?/, "#");- }-- if (inAs.indexOf(inAlias) != 0) { //not a full namepath- var joiner = ".";- if (this.alias.charAt(this.alias.length-1) == "#" || inAs.charAt(0) == "#") {- joiner = "";- }- inAs = this.alias + joiner + inAs;- }- }- this.inherits.push({alias: inAlias, as: inAs});- }- }-- /*t:- // todo- */-- // @augments- this.augments = this.comment.getTag("augments");-- // @default- var defaults = this.comment.getTag("default");- if (defaults.length) {- if (this.is("OBJECT")) {- this.defaultValue = defaults[0].desc;- }- }-- /*t:- // todo- */-- // @memberOf- var memberOfs = this.comment.getTag("memberOf");- if (memberOfs.length) {- this.memberOf = memberOfs[0].desc;- this.memberOf = this.memberOf.replace(/\.prototype\.?/g, "#");- }-- /*t:- // todo- */-- // @public- if (this.comment.getTag("public").length) {- this.isPrivate = false;- }-- /*t:- // todo- */-}--JSDOC.Symbol.prototype.is = function(what) {- return this.isa === what;-}--JSDOC.Symbol.prototype.isBuiltin = function() {- return JSDOC.Lang.isBuiltin(this.alias);-}--JSDOC.Symbol.prototype.setType = function(/**String*/comment, /**Boolean*/overwrite) {- if (!overwrite && this.type) return;- var typeComment = JSDOC.DocComment.unwrapComment(comment);- this.type = typeComment;-}--JSDOC.Symbol.prototype.inherit = function(symbol) {- if (!this.hasMember(symbol.name) && !symbol.isInner) {- if (symbol.is("FUNCTION"))- this.methods.push(symbol);- else if (symbol.is("OBJECT"))- this.properties.push(symbol);- }-}--JSDOC.Symbol.prototype.hasMember = function(name) {- return (this.hasMethod(name) || this.hasProperty(name));-}--JSDOC.Symbol.prototype.addMember = function(symbol) {- if (symbol.is("FUNCTION")) { this.addMethod(symbol); }- else if (symbol.is("OBJECT")) { this.addProperty(symbol); }-}--JSDOC.Symbol.prototype.hasMethod = function(name) {- var thisMethods = this.methods;- for (var i = 0, l = thisMethods.length; i < l; i++) {- if (thisMethods[i].name == name) return true;- if (thisMethods[i].alias == name) return true;- }- return false;-}--JSDOC.Symbol.prototype.addMethod = function(symbol) {- var methodAlias = symbol.alias;- var thisMethods = this.methods;- for (var i = 0, l = thisMethods.length; i < l; i++) {- if (thisMethods[i].alias == methodAlias) {- thisMethods[i] = symbol; // overwriting previous method- return;- }- }- thisMethods.push(symbol); // new method with this alias-}--JSDOC.Symbol.prototype.hasProperty = function(name) {- var thisProperties = this.properties;- for (var i = 0, l = thisProperties.length; i < l; i++) {- if (thisProperties[i].name == name) return true;- if (thisProperties[i].alias == name) return true;- }- return false;-}--JSDOC.Symbol.prototype.addProperty = function(symbol) {- var propertyAlias = symbol.alias;- var thisProperties = this.properties;- for (var i = 0, l = thisProperties.length; i < l; i++) {- if (thisProperties[i].alias == propertyAlias) {- thisProperties[i] = symbol; // overwriting previous property- return;- }- }-- thisProperties.push(symbol); // new property with this alias-}--JSDOC.Symbol.srcFile = ""; //running reference to the current file being parseddiff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/SymbolSet.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/SymbolSet.jsdeleted file mode 100644index 43aa63bf9a3..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/SymbolSet.js+++ /dev/null@@ -1,220 +0,0 @@-if (typeof JSDOC == "undefined") JSDOC = {};--/** @constructor */-JSDOC.SymbolSet = function() {- this.init();-}--JSDOC.SymbolSet.prototype.init = function() {- this._index = {};-}--JSDOC.SymbolSet.prototype.keys = function() {- var found = [];- for (var p in this._index) {- found.push(p);- }- return found;-}--JSDOC.SymbolSet.prototype.hasSymbol = function(alias) {- return this._index.hasOwnProperty(alias);-}--JSDOC.SymbolSet.prototype.addSymbol = function(symbol) {- if (this.hasSymbol(symbol.alias)) {- LOG.warn("Overwriting symbol documentation for: "+symbol.alias + ".");- }- this._index[symbol.alias] = symbol;-}--JSDOC.SymbolSet.prototype.getSymbol = function(alias) {- if (this.hasSymbol(alias)) return this._index[alias];-}--JSDOC.SymbolSet.prototype.getSymbolByName = function(name) {- for (var p in this._index) {- var symbol = this.getSymbol(p);- if (symbol.name == name) return symbol;- }-}--JSDOC.SymbolSet.prototype.toArray = function() {- var found = [];- for (var p in this._index) {- found.push(this._index[p]);- }- return found;-}--JSDOC.SymbolSet.prototype.deleteSymbol = function(alias) {- if (!this.hasSymbol(alias)) return;- delete this._index[alias];-}--JSDOC.SymbolSet.prototype.renameSymbol = function(oldName, newName) {- // todo: should check if oldname or newname already exist- this._index[newName] = this._index[oldName];- this.deleteSymbol(oldName);- this._index[newName].alias = newName;- return newName;-}--JSDOC.SymbolSet.prototype.relate = function() {- this.resolveBorrows();- this.resolveMemberOf();- this.resolveAugments();-}--JSDOC.SymbolSet.prototype.resolveBorrows = function() {- for (p in this._index) {- var symbol = this._index[p];- if (symbol.is("FILE") || symbol.is("GLOBAL")) continue;-- var borrows = symbol.inherits;- for (var i = 0; i < borrows.length; i++) {- var borrowed = this.getSymbol(borrows[i].alias);- if (!borrowed) {- LOG.warn("Can't borrow undocumented "+borrows[i].alias+".");- continue;- }-- var borrowAsName = borrows[i].as;- var borrowAsAlias = borrowAsName;- if (!borrowAsName) {- LOG.warn("Malformed @borrow, 'as' is required.");- continue;- }-- if (borrowAsName.length > symbol.alias.length && borrowAsName.indexOf(symbol.alias) == 0) {- borrowAsName = borrowAsName.replace(borrowed.alias, "")- }- else {- var joiner = "";- if (borrowAsName.charAt(0) != "#") joiner = ".";- borrowAsAlias = borrowed.alias + joiner + borrowAsName;- }-- borrowAsName = borrowAsName.replace(/^[#.]/, "");-- if (this.hasSymbol(borrowAsAlias)) continue;-- var clone = borrowed.clone();- clone.name = borrowAsName;- clone.alias = borrowAsAlias;- this.addSymbol(clone);- }- }-}--JSDOC.SymbolSet.prototype.resolveMemberOf = function() {- for (var p in this._index) {- var symbol = this.getSymbol(p);-- if (symbol.is("FILE") || symbol.is("GLOBAL")) continue;-- // the memberOf value was provided in the @memberOf tag- else if (symbol.memberOf) {- var parts = symbol.alias.match(new RegExp("^("+symbol.memberOf+"[.#-])(.+)$"));-- // like foo.bar is a memberOf foo- if (parts) {- symbol.memberOf = parts[1];- symbol.name = parts[2];- }- // like bar is a memberOf foo- else {- var joiner = symbol.memberOf.charAt(symbol.memberOf.length-1);- if (!/[.#-]/.test(joiner)) symbol.memberOf += ".";-- this.renameSymbol(p, symbol.memberOf + symbol.name);- }- }- // the memberOf must be calculated- else {- var parts = symbol.alias.match(/^(.*[.#-])([^.#-]+)$/);- if (parts) {- symbol.memberOf = parts[1];- symbol.name = parts[2];- }- }-- // set isStatic, isInner- if (symbol.memberOf) {- switch (symbol.memberOf.charAt(symbol.memberOf.length-1)) {- case '#' :- symbol.isStatic = false;- symbol.isInner = false;- break;- case '.' :- symbol.isStatic = true;- symbol.isInner = false;- break;- case '-' :- symbol.isStatic = false;- symbol.isInner = true;- break;- }- }-- // unowned methods and fields belong to the global object- if (!symbol.is("CONSTRUCTOR") && !symbol.isNamespace && symbol.memberOf == "") {- symbol.memberOf = "_global_";- }-- // clean up- if (symbol.memberOf.match(/[.#-]$/)) {- symbol.memberOf = symbol.memberOf.substr(0, symbol.memberOf.length-1);- }-- // add to parent's methods or properties list- if (symbol.memberOf) {- var container = this.getSymbol(symbol.memberOf);- if (!container) {- if (JSDOC.Lang.isBuiltin(symbol.memberOf)) container = JSDOC.Parser.addBuiltin(symbol.memberOf);- else {- LOG.warn("Can't document "+symbol.name +" as a member of undocumented symbol "+symbol.memberOf+".");- }- }-- if (container) container.addMember(symbol);- }- }-}--JSDOC.SymbolSet.prototype.resolveAugments = function() {- for (var p in this._index) {- var symbol = this.getSymbol(p);-- if (symbol.alias == "_global_" || symbol.is("FILE")) continue;- JSDOC.SymbolSet.prototype.walk.apply(this, [symbol]);- }-}--JSDOC.SymbolSet.prototype.walk = function(symbol) {- var augments = symbol.augments;- for(var i = 0; i < augments.length; i++) {- var contributer = this.getSymbol(augments[i]);- if (contributer) {- if (contributer.augments.length) {- JSDOC.SymbolSet.prototype.walk.apply(this, [contributer]);- }-- symbol.inheritsFrom.push(contributer.alias);- if (!isUnique(symbol.inheritsFrom)) {- //LOG.warn("Can't resolve augments: Circular reference: "+symbol.alias+" inherits from "+contributer.alias+" more than once.");- }- else {- var cmethods = contributer.methods;- var cproperties = contributer.properties;-- for (var ci = 0, cl = cmethods.length; ci < cl; ci++)- symbol.inherit(cmethods[ci]);- for (var ci = 0, cl = cproperties.length; ci < cl; ci++)- symbol.inherit(cproperties[ci]);- }- }- else LOG.warn("Can't augment contributer: "+augments[i]+", not found.");- }-}-diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/TextStream.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/TextStream.jsdeleted file mode 100644index ccc48a87deb..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/TextStream.js+++ /dev/null@@ -1,41 +0,0 @@--/**- @constructor-*/-JSDOC.TextStream = function(text) {- if (typeof(text) == "undefined") text = "";- text = ""+text;- this.text = text;- this.cursor = 0;-}--JSDOC.TextStream.prototype.look = function(n) {- if (typeof n == "undefined") n = 0;-- if (this.cursor+n < 0 || this.cursor+n >= this.text.length) {- var result = new String("");- result.eof = true;- return result;- }- return this.text.charAt(this.cursor+n);-}--JSDOC.TextStream.prototype.next = function(n) {- if (typeof n == "undefined") n = 1;- if (n < 1) return null;-- var pulled = "";- for (var i = 0; i < n; i++) {- if (this.cursor+i < this.text.length) {- pulled += this.text.charAt(this.cursor+i);- }- else {- var result = new String("");- result.eof = true;- return result;- }- }-- this.cursor += n;- return pulled;-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Token.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Token.jsdeleted file mode 100644index fb7f9d94986..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Token.js+++ /dev/null@@ -1,18 +0,0 @@-if (typeof JSDOC == "undefined") JSDOC = {};--/**- @constructor-*/-JSDOC.Token = function(data, type, name) {- this.data = data;- this.type = type;- this.name = name;-}--JSDOC.Token.prototype.toString = function() {- return "<"+this.type+" name=\""+this.name+"\">"+this.data+"</"+this.type+">";-}--JSDOC.Token.prototype.is = function(what) {- return this.name === what || this.type === what;-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/TokenReader.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/TokenReader.jsdeleted file mode 100644index 89a6832ebab..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/TokenReader.js+++ /dev/null@@ -1,323 +0,0 @@-if (typeof JSDOC == "undefined") JSDOC = {};--/**- @class Search a {@link JSDOC.TextStream} for language tokens.-*/-JSDOC.TokenReader = function() {- this.keepDocs = true;- this.keepWhite = false;- this.keepComments = false;-}--/**- @type {JSDOC.Token[]}- */-JSDOC.TokenReader.prototype.tokenize = function(/**JSDOC.TextStream*/stream) {- var tokens = [];- /**@ignore*/ tokens.last = function() { return tokens[tokens.length-1]; }-- while (!stream.look().eof) {- if (this.read_mlcomment(stream, tokens)) continue;- if (this.read_slcomment(stream, tokens)) continue;- if (this.read_dbquote(stream, tokens)) continue;- if (this.read_snquote(stream, tokens)) continue;- if (this.read_regx(stream, tokens)) continue;- if (this.read_numb(stream, tokens)) continue;- if (this.read_punc(stream, tokens)) continue;- if (this.read_space(stream, tokens)) continue;- if (this.read_newline(stream, tokens)) continue;- if (this.read_word(stream, tokens)) continue;-- // if execution reaches here then an error has happened- tokens.push(new JSDOC.Token(stream.next(), "TOKN", "UNKNOWN_TOKEN"));- }- return tokens;-}--/**- @returns {Boolean} Was the token found?- */-JSDOC.TokenReader.prototype.read_word = function(/**JSDOC.TokenStream*/stream, tokens) {- var found = "";- while (!stream.look().eof && JSDOC.Lang.isWordChar(stream.look())) {- found += stream.next();- }-- if (found === "") {- return false;- }- else {- var name;- if ((name = JSDOC.Lang.keyword(found))) tokens.push(new JSDOC.Token(found, "KEYW", name));- else tokens.push(new JSDOC.Token(found, "NAME", "NAME"));- return true;- }-}--/**- @returns {Boolean} Was the token found?- */-JSDOC.TokenReader.prototype.read_punc = function(/**JSDOC.TokenStream*/stream, tokens) {- var found = "";- var name;- while (!stream.look().eof && JSDOC.Lang.punc(found+stream.look())) {- found += stream.next();- }-- if (found === "") {- return false;- }- else {- tokens.push(new JSDOC.Token(found, "PUNC", JSDOC.Lang.punc(found)));- return true;- }-}--/**- @returns {Boolean} Was the token found?- */-JSDOC.TokenReader.prototype.read_space = function(/**JSDOC.TokenStream*/stream, tokens) {- var found = "";-- while (!stream.look().eof && JSDOC.Lang.isSpace(stream.look())) {- found += stream.next();- }-- if (found === "") {- return false;- }- else {- if (this.collapseWhite) found = " ";- if (this.keepWhite) tokens.push(new JSDOC.Token(found, "WHIT", "SPACE"));- return true;- }-}--/**- @returns {Boolean} Was the token found?- */-JSDOC.TokenReader.prototype.read_newline = function(/**JSDOC.TokenStream*/stream, tokens) {- var found = "";-- while (!stream.look().eof && JSDOC.Lang.isNewline(stream.look())) {- found += stream.next();- }-- if (found === "") {- return false;- }- else {- if (this.collapseWhite) found = "\n";- if (this.keepWhite) tokens.push(new JSDOC.Token(found, "WHIT", "NEWLINE"));- return true;- }-}--/**- @returns {Boolean} Was the token found?- */-JSDOC.TokenReader.prototype.read_mlcomment = function(/**JSDOC.TokenStream*/stream, tokens) {- if (stream.look() == "/" && stream.look(1) == "*") {- var found = stream.next(2);-- while (!stream.look().eof && !(stream.look(-1) == "/" && stream.look(-2) == "*")) {- found += stream.next();- }-- // to start doclet we allow /** or /*** but not /**/ or /****- if (/^\/\*\*([^\/]|\*[^*])/.test(found) && this.keepDocs) tokens.push(new JSDOC.Token(found, "COMM", "JSDOC"));- else if (this.keepComments) tokens.push(new JSDOC.Token(found, "COMM", "MULTI_LINE_COMM"));- return true;- }- return false;-}--/**- @returns {Boolean} Was the token found?- */-JSDOC.TokenReader.prototype.read_slcomment = function(/**JSDOC.TokenStream*/stream, tokens) {- var found;- if (- (stream.look() == "/" && stream.look(1) == "/" && (found=stream.next(2)))- ||- (stream.look() == "<" && stream.look(1) == "!" && stream.look(2) == "-" && stream.look(3) == "-" && (found=stream.next(4)))- ) {-- while (!stream.look().eof && !JSDOC.Lang.isNewline(stream.look())) {- found += stream.next();- }-- if (this.keepComments) {- tokens.push(new JSDOC.Token(found, "COMM", "SINGLE_LINE_COMM"));- }- return true;- }- return false;-}--/**- @returns {Boolean} Was the token found?- */-JSDOC.TokenReader.prototype.read_dbquote = function(/**JSDOC.TokenStream*/stream, tokens) {- if (stream.look() == "\"") {- // find terminator- var string = stream.next();-- while (!stream.look().eof) {- if (stream.look() == "\\") {- if (JSDOC.Lang.isNewline(stream.look(1))) {- do {- stream.next();- } while (!stream.look().eof && JSDOC.Lang.isNewline(stream.look()));- string += "\\\n";- }- else {- string += stream.next(2);- }- }- else if (stream.look() == "\"") {- string += stream.next();- tokens.push(new JSDOC.Token(string, "STRN", "DOUBLE_QUOTE"));- return true;- }- else {- string += stream.next();- }- }- }- return false; // error! unterminated string-}--/**- @returns {Boolean} Was the token found?- */-JSDOC.TokenReader.prototype.read_snquote = function(/**JSDOC.TokenStream*/stream, tokens) {- if (stream.look() == "'") {- // find terminator- var string = stream.next();-- while (!stream.look().eof) {- if (stream.look() == "\\") { // escape sequence- string += stream.next(2);- }- else if (stream.look() == "'") {- string += stream.next();- tokens.push(new JSDOC.Token(string, "STRN", "SINGLE_QUOTE"));- return true;- }- else {- string += stream.next();- }- }- }- return false; // error! unterminated string-}--/**- @returns {Boolean} Was the token found?- */-JSDOC.TokenReader.prototype.read_numb = function(/**JSDOC.TokenStream*/stream, tokens) {- if (stream.look() === "0" && stream.look(1) == "x") {- return this.read_hex(stream, tokens);- }-- var found = "";-- while (!stream.look().eof && JSDOC.Lang.isNumber(found+stream.look())){- found += stream.next();- }-- if (found === "") {- return false;- }- else {- if (/^0[0-7]/.test(found)) tokens.push(new JSDOC.Token(found, "NUMB", "OCTAL"));- else tokens.push(new JSDOC.Token(found, "NUMB", "DECIMAL"));- return true;- }-}-/*t:- requires("../lib/JSDOC/TextStream.js");- requires("../lib/JSDOC/Token.js");- requires("../lib/JSDOC/Lang.js");-- plan(3, "testing JSDOC.TokenReader.prototype.read_numb");-- //// setup- var src = "function foo(num){while (num+8.0 >= 0x20 && num < 0777){}}";- var tr = new JSDOC.TokenReader();- var tokens = tr.tokenize(new JSDOC.TextStream(src));-- var hexToken, octToken, decToken;- for (var i = 0; i < tokens.length; i++) {- if (tokens[i].name == "HEX_DEC") hexToken = tokens[i];- if (tokens[i].name == "OCTAL") octToken = tokens[i];- if (tokens[i].name == "DECIMAL") decToken = tokens[i];- }- ////-- is(decToken.data, "8.0", "decimal number is found in source.");- is(hexToken.data, "0x20", "hexdec number is found in source (issue #99).");- is(octToken.data, "0777", "octal number is found in source.");-*/--/**- @returns {Boolean} Was the token found?- */-JSDOC.TokenReader.prototype.read_hex = function(/**JSDOC.TokenStream*/stream, tokens) {- var found = stream.next(2);-- while (!stream.look().eof) {- if (JSDOC.Lang.isHexDec(found) && !JSDOC.Lang.isHexDec(found+stream.look())) { // done- tokens.push(new JSDOC.Token(found, "NUMB", "HEX_DEC"));- return true;- }- else {- found += stream.next();- }- }- return false;-}--/**- @returns {Boolean} Was the token found?- */-JSDOC.TokenReader.prototype.read_regx = function(/**JSDOC.TokenStream*/stream, tokens) {- if (- stream.look() == "/"- &&- (- !tokens.last()- ||- (- !tokens.last().is("NUMB")- && !tokens.last().is("NAME")- && !tokens.last().is("RIGHT_PAREN")- && !tokens.last().is("RIGHT_BRACKET")- )- )- ) {- var regex = stream.next();-- while (!stream.look().eof) {- if (stream.look() == "\\") { // escape sequence- regex += stream.next(2);- }- else if (stream.look() == "/") {- regex += stream.next();-- while (/[gmi]/.test(stream.look())) {- regex += stream.next();- }-- tokens.push(new JSDOC.Token(regex, "REGX", "REGX"));- return true;- }- else {- regex += stream.next();- }- }- // error: unterminated regex- }- return false;-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/TokenStream.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/TokenStream.jsdeleted file mode 100644index e7f74b1d260..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/TokenStream.js+++ /dev/null@@ -1,133 +0,0 @@-if (typeof JSDOC == "undefined") JSDOC = {};--/**- @constructor-*/-JSDOC.TokenStream = function(tokens) {- this.tokens = (tokens || []);- this.rewind();-}--/**- @constructor- @private-*/-function VoidToken(/**String*/type) {- this.toString = function() {return "<VOID type=\""+type+"\">"};- this.is = function(){return false;}-}--JSDOC.TokenStream.prototype.rewind = function() {- this.cursor = -1;-}--/**- @type JSDOC.Token-*/-JSDOC.TokenStream.prototype.look = function(/**Number*/n, /**Boolean*/considerWhitespace) {- if (typeof n == "undefined") n = 0;-- if (considerWhitespace == true) {- if (this.cursor+n < 0 || this.cursor+n > this.tokens.length) return {};- return this.tokens[this.cursor+n];- }- else {- var count = 0;- var i = this.cursor;-- while (true) {- if (i < 0) return new JSDOC.Token("", "VOID", "START_OF_STREAM");- else if (i > this.tokens.length) return new JSDOC.Token("", "VOID", "END_OF_STREAM");-- if (i != this.cursor && (this.tokens[i] === undefined || this.tokens[i].is("SPACE") || this.tokens[i].is("NEWLINE"))) {- if (n < 0) i--; else i++;- continue;- }-- if (count == Math.abs(n)) {- return this.tokens[i];- }- count++;- (n < 0)? i-- : i++;- }-- return new JSDOC.Token("", "VOID", "STREAM_ERROR"); // because null isn't an object and caller always expects an object- }-}--/**- @type JSDOC.Token|JSDOC.Token[]-*/-JSDOC.TokenStream.prototype.next = function(/**Number*/howMany) {- if (typeof howMany == "undefined") howMany = 1;- if (howMany < 1) return null;- var got = [];-- for (var i = 1; i <= howMany; i++) {- if (this.cursor+i >= this.tokens.length) {- return null;- }- got.push(this.tokens[this.cursor+i]);- }- this.cursor += howMany;-- if (howMany == 1) {- return got[0];- }- else return got;-}--/**- @type JSDOC.Token[]-*/-JSDOC.TokenStream.prototype.balance = function(/**String*/start, /**String*/stop) {- if (!stop) stop = JSDOC.Lang.matching(start);-- var depth = 0;- var got = [];- var started = false;-- while ((token = this.look())) {- if (token.is(start)) {- depth++;- started = true;- }-- if (started) {- got.push(token);- }-- if (token.is(stop)) {- depth--;- if (depth == 0) return got;- }- if (!this.next()) break;- }-}--JSDOC.TokenStream.prototype.getMatchingToken = function(/**String*/start, /**String*/stop) {- var depth = 0;- var cursor = this.cursor;-- if (!start) {- start = JSDOC.Lang.matching(stop);- depth = 1;- }- if (!stop) stop = JSDOC.Lang.matching(start);-- while ((token = this.tokens[cursor])) {- if (token.is(start)) {- depth++;- }-- if (token.is(stop) && cursor) {- depth--;- if (depth == 0) return this.tokens[cursor];- }- cursor++;- }-}--JSDOC.TokenStream.prototype.insertAhead = function(/**JSDOC.Token*/token) {- this.tokens.splice(this.cursor+1, 0, token);-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Util.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Util.jsdeleted file mode 100644index 6d7edb3680d..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Util.js+++ /dev/null@@ -1,32 +0,0 @@-/**- * @namespace- * @deprecated Use {@link FilePath} instead.- */-JSDOC.Util = {-}--/**- * @deprecated Use {@link FilePath.fileName} instead.- */-JSDOC.Util.fileName = function(path) {- LOG.warn("JSDOC.Util.fileName is deprecated. Use FilePath.fileName instead.");- var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0);- return path.substring(nameStart);-}--/**- * @deprecated Use {@link FilePath.fileExtension} instead.- */-JSDOC.Util.fileExtension = function(filename) {- LOG.warn("JSDOC.Util.fileExtension is deprecated. Use FilePath.fileExtension instead.");- return filename.split(".").pop().toLowerCase();-};--/**- * @deprecated Use {@link FilePath.dir} instead.- */-JSDOC.Util.dir = function(path) {- LOG.warn("JSDOC.Util.dir is deprecated. Use FilePath.dir instead.");- var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0);- return path.substring(0, nameStart-1);-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Walker.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Walker.jsdeleted file mode 100644index cb63987b9f6..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/lib/JSDOC/Walker.js+++ /dev/null@@ -1,416 +0,0 @@-if (typeof JSDOC == "undefined") JSDOC = {};--/** @constructor */-JSDOC.Walker = function(/**JSDOC.TokenStream*/ts) {- this.init();- if (typeof ts != "undefined") {- this.walk(ts);- }-}--JSDOC.Walker.prototype.init = function() {- this.ts = null;-- var globalSymbol = new JSDOC.Symbol("_global_", [], "GLOBAL", new JSDOC.DocComment(""));- globalSymbol.isNamespace = true;- globalSymbol.srcFile = "";- globalSymbol.isPrivate = false;- JSDOC.Parser.addSymbol(globalSymbol);- this.lastDoc = null;- this.token = null;-- /**- The chain of symbols under which we are currently nested.- @type Array- */- this.namescope = [globalSymbol];- this.namescope.last = function(n){ if (!n) n = 0; return this[this.length-(1+n)] || "" };-}--JSDOC.Walker.prototype.walk = function(/**JSDOC.TokenStream*/ts) {- this.ts = ts;- while (this.token = this.ts.look()) {- if (this.token.popNamescope) {-- var symbol = this.namescope.pop();- if (symbol.is("FUNCTION")) {- if (this.ts.look(1).is("LEFT_PAREN") && symbol.comment.getTag("function").length == 0) {- symbol.isa = "OBJECT";- }- }- }- this.step();- if (!this.ts.next()) break;- }-}--JSDOC.Walker.prototype.step = function() {- if (this.token.is("JSDOC")) { // it's a doc comment-- var doc = new JSDOC.DocComment(this.token.data);-- if (doc.getTag("lends").length > 0) { // it's a new namescope- var lends = doc.getTag("lends")[0];-- var name = lends.desc- if (!name) throw "@lends tag requires a value.";-- var symbol = new JSDOC.Symbol(name, [], "OBJECT", doc);-- this.namescope.push(symbol);-- var matching = this.ts.getMatchingToken("LEFT_CURLY");- if (matching) matching.popNamescope = name;- else LOG.warn("Mismatched } character. Can't parse code.");-- this.lastDoc = null;- return true;- }- else if (doc.getTag("name").length > 0 && doc.getTag("overview").length == 0) { // it's a virtual symbol- var virtualName = doc.getTag("name")[0].desc;- if (!virtualName) throw "@name tag requires a value.";-- var symbol = new JSDOC.Symbol(virtualName, [], "VIRTUAL", doc);-- JSDOC.Parser.addSymbol(symbol);-- this.lastDoc = null;- return true;- }- else if (doc.meta) { // it's a meta doclet- if (doc.meta == "@+") JSDOC.DocComment.shared = doc.src;- else if (doc.meta == "@-") JSDOC.DocComment.shared = "";- else if (doc.meta == "nocode+") JSDOC.Parser.conf.ignoreCode = true;- else if (doc.meta == "nocode-") JSDOC.Parser.conf.ignoreCode = JSDOC.opt.n;- else throw "Unrecognized meta comment: "+doc.meta;-- this.lastDoc = null;- return true;- }- else if (doc.getTag("overview").length > 0) { // it's a file overview- symbol = new JSDOC.Symbol("", [], "FILE", doc);-- JSDOC.Parser.addSymbol(symbol);-- this.lastDoc = null;- return true;- }- else {- this.lastDoc = doc;- return false;- }- }- else if (!JSDOC.Parser.conf.ignoreCode) { // it's code- if (this.token.is("NAME")) {- var symbol;- var name = this.token.data;- var doc = null; if (this.lastDoc) doc = this.lastDoc;- var params = [];-- // it's inside an anonymous object- if (this.ts.look(1).is("COLON") && this.ts.look(-1).is("LEFT_CURLY") && !(this.ts.look(-2).is("JSDOC") || this.namescope.last().comment.getTag("lends").length || this.ts.look(-2).is("ASSIGN") || this.ts.look(-2).is("COLON"))) {- name = "$anonymous";- name = this.namescope.last().alias+"-"+name-- params = [];-- symbol = new JSDOC.Symbol(name, params, "OBJECT", doc);-- JSDOC.Parser.addSymbol(symbol);-- this.namescope.push(symbol);-- var matching = this.ts.getMatchingToken(null, "RIGHT_CURLY");- if (matching) matching.popNamescope = name;- else LOG.warn("Mismatched } character. Can't parse code.");- }- // function foo() {}- else if (this.ts.look(-1).is("FUNCTION") && this.ts.look(1).is("LEFT_PAREN")) {- var isInner;-- if (this.lastDoc) doc = this.lastDoc;- name = this.namescope.last().alias+"-"+name;- if (!this.namescope.last().is("GLOBAL")) isInner = true;-- params = JSDOC.Walker.onParamList(this.ts.balance("LEFT_PAREN"));-- symbol = new JSDOC.Symbol(name, params, "FUNCTION", doc);- if (isInner) symbol.isInner = true;--- JSDOC.Parser.addSymbol(symbol);-- this.namescope.push(symbol);-- var matching = this.ts.getMatchingToken("LEFT_CURLY");- if (matching) matching.popNamescope = name;- else LOG.warn("Mismatched } character. Can't parse code.");- }- // foo = function() {}- else if (this.ts.look(1).is("ASSIGN") && this.ts.look(2).is("FUNCTION")) {- var isInner;- if (this.ts.look(-1).is("VAR") || this.isInner) {- name = this.namescope.last().alias+"-"+name- if (!this.namescope.last().is("GLOBAL")) isInner = true;- }- else if (name.indexOf("this.") == 0) {- name = this.resolveThis(name);- }-- if (this.lastDoc) doc = this.lastDoc;- params = JSDOC.Walker.onParamList(this.ts.balance("LEFT_PAREN"));-- symbol = new JSDOC.Symbol(name, params, "FUNCTION", doc);- if (isInner) symbol.isInner = true;-- JSDOC.Parser.addSymbol(symbol);-- this.namescope.push(symbol);-- var matching = this.ts.getMatchingToken("LEFT_CURLY");- if (matching) matching.popNamescope = name;- else LOG.warn("Mismatched } character. Can't parse code.");- }- // foo = new function() {}- else if (this.ts.look(1).is("ASSIGN") && this.ts.look(2).is("NEW") && this.ts.look(3).is("FUNCTION")) {- var isInner;- if (this.ts.look(-1).is("VAR") || this.isInner) {- name = this.namescope.last().alias+"-"+name- if (!this.namescope.last().is("GLOBAL")) isInner = true;- }- else if (name.indexOf("this.") == 0) {- name = this.resolveThis(name);- }-- if (this.lastDoc) doc = this.lastDoc;- params = JSDOC.Walker.onParamList(this.ts.balance("LEFT_PAREN"));-- symbol = new JSDOC.Symbol(name, params, "OBJECT", doc);- if (isInner) symbol.isInner = true;--- JSDOC.Parser.addSymbol(symbol);-- symbol.scopeType = "INSTANCE";- this.namescope.push(symbol);-- var matching = this.ts.getMatchingToken("LEFT_CURLY");- if (matching) matching.popNamescope = name;- else LOG.warn("Mismatched } character. Can't parse code.");- }- // foo: function() {}- else if (this.ts.look(1).is("COLON") && this.ts.look(2).is("FUNCTION")) {- name = (this.namescope.last().alias+"."+name).replace("#.", "#");-- if (this.lastDoc) doc = this.lastDoc;- params = JSDOC.Walker.onParamList(this.ts.balance("LEFT_PAREN"));-- if (doc && doc.getTag("constructs").length) {- name = name.replace(/\.prototype(\.|$)/, "#");-- if (name.indexOf("#") > -1) name = name.match(/(^[^#]+)/)[0];- else name = this.namescope.last().alias;-- symbol = new JSDOC.Symbol(name, params, "CONSTRUCTOR", doc);- }- else {- symbol = new JSDOC.Symbol(name, params, "FUNCTION", doc);- }--- JSDOC.Parser.addSymbol(symbol);-- this.namescope.push(symbol);-- var matching = this.ts.getMatchingToken("LEFT_CURLY");- if (matching) matching.popNamescope = name;- else LOG.warn("Mismatched } character. Can't parse code.");- }- // foo = {}- else if (this.ts.look(1).is("ASSIGN") && this.ts.look(2).is("LEFT_CURLY")) {- var isInner;- if (this.ts.look(-1).is("VAR") || this.isInner) {- name = this.namescope.last().alias+"-"+name- if (!this.namescope.last().is("GLOBAL")) isInner = true;- }- else if (name.indexOf("this.") == 0) {- name = this.resolveThis(name);- }-- if (this.lastDoc) doc = this.lastDoc;-- symbol = new JSDOC.Symbol(name, params, "OBJECT", doc);- if (isInner) symbol.isInner = true;--- if (doc) JSDOC.Parser.addSymbol(symbol);-- this.namescope.push(symbol);-- var matching = this.ts.getMatchingToken("LEFT_CURLY");- if (matching) matching.popNamescope = name;- else LOG.warn("Mismatched } character. Can't parse code.");- }- // foo = x- else if (this.ts.look(1).is("ASSIGN")) {-- var isInner;- if (this.ts.look(-1).is("VAR") || this.isInner) {- name = this.namescope.last().alias+"-"+name- if (!this.namescope.last().is("GLOBAL")) isInner = true;- }- else if (name.indexOf("this.") == 0) {- name = this.resolveThis(name);- }-- if (this.lastDoc) doc = this.lastDoc;-- symbol = new JSDOC.Symbol(name, params, "OBJECT", doc);- if (isInner) symbol.isInner = true;--- if (doc) JSDOC.Parser.addSymbol(symbol);- }- // foo: {}- else if (this.ts.look(1).is("COLON") && this.ts.look(2).is("LEFT_CURLY")) {- name = (this.namescope.last().alias+"."+name).replace("#.", "#");-- if (this.lastDoc) doc = this.lastDoc;-- symbol = new JSDOC.Symbol(name, params, "OBJECT", doc);--- if (doc) JSDOC.Parser.addSymbol(symbol);-- this.namescope.push(symbol);-- var matching = this.ts.getMatchingToken("LEFT_CURLY");- if (matching) matching.popNamescope = name;- else LOG.warn("Mismatched } character. Can't parse code.");- }- // foo: x- else if (this.ts.look(1).is("COLON")) {- name = (this.namescope.last().alias+"."+name).replace("#.", "#");;-- if (this.lastDoc) doc = this.lastDoc;-- symbol = new JSDOC.Symbol(name, params, "OBJECT", doc);--- if (doc) JSDOC.Parser.addSymbol(symbol);- }- // foo(...)- else if (this.ts.look(1).is("LEFT_PAREN")) {- var functionCall = {name: name};- if (!this.ts.look(2).is("RIGHT_PAREN")) functionCall.arg1 = this.ts.look(2).data;-- if (typeof JSDOC.PluginManager != "undefined") {- JSDOC.PluginManager.run("onFunctionCall", functionCall);- if (functionCall.doc) {- this.ts.insertAhead(new JSDOC.Token(functionCall.doc, "COMM", "JSDOC"));- }- }- }- this.lastDoc = null;- }- else if (this.token.is("FUNCTION")) { // it's an anonymous function- if (- (!this.ts.look(-1).is("COLON") || !this.ts.look(-1).is("ASSIGN"))- && !this.ts.look(1).is("NAME")- ) {- if (this.lastDoc) doc = this.lastDoc;-- name = "$anonymous";- name = this.namescope.last().alias+"-"+name-- params = JSDOC.Walker.onParamList(this.ts.balance("LEFT_PAREN"));-- symbol = new JSDOC.Symbol(name, params, "FUNCTION", doc);--- JSDOC.Parser.addSymbol(symbol);-- this.namescope.push(symbol);-- var matching = this.ts.getMatchingToken("LEFT_CURLY");- if (matching) matching.popNamescope = name;- else LOG.warn("Mismatched } character. Can't parse code.");- }- }- }- return true;-}--/**- Resolves what "this." means when it appears in a name.- @param name The name that starts with "this.".- @returns The name with "this." resolved.- */-JSDOC.Walker.prototype.resolveThis = function(name) {- name.match(/^this\.(.+)$/)- var nameFragment = RegExp.$1;- if (!nameFragment) return name;-- var symbol = this.namescope.last();- var scopeType = symbol.scopeType || symbol.isa;-- // if we are in a constructor function, `this` means the instance- if (scopeType == "CONSTRUCTOR") {- name = symbol.alias+"#"+nameFragment;- }-- // if we are in an anonymous constructor function, `this` means the instance- else if (scopeType == "INSTANCE") {- name = symbol.alias+"."+nameFragment;- }-- // if we are in a function, `this` means the container (possibly the global)- else if (scopeType == "FUNCTION") {- // in a method of a prototype, so `this` means the constructor- if (symbol.alias.match(/(^.*)[#.-][^#.-]+/)) {- var parentName = RegExp.$1;- var parent = JSDOC.Parser.symbols.getSymbol(parentName);-- if (!parent) {- if (JSDOC.Lang.isBuiltin(parentName)) parent = JSDOC.Parser.addBuiltin(parentName);- else {- if (symbol.alias.indexOf("$anonymous") < 0) // these will be ignored eventually- LOG.warn("Can't document "+symbol.alias+" without first documenting "+parentName+".");- }- }- if (parent) name = parentName+(parent.is("CONSTRUCTOR")?"#":".")+nameFragment;- }- else {- parent = this.namescope.last(1);- name = parent.alias+(parent.is("CONSTRUCTOR")?"#":".")+nameFragment;- }- }- // otherwise it means the global- else {- name = nameFragment;- }-- return name;-}--JSDOC.Walker.onParamList = function(/**Array*/paramTokens) {- if (!paramTokens) {- LOG.warn("Malformed parameter list. Can't parse code.");- return [];- }- var params = [];- for (var i = 0, l = paramTokens.length; i < l; i++) {- if (paramTokens[i].is("JSDOC")) {- var paramType = paramTokens[i].data.replace(/(^\/\*\* *| *\*\/$)/g, "");-- if (paramTokens[i+1] && paramTokens[i+1].is("NAME")) {- i++;- params.push({type: paramType, name: paramTokens[i].data});- }- }- else if (paramTokens[i].is("NAME")) {- params.push({name: paramTokens[i].data});- }- }- return params;-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/main.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/main.jsdeleted file mode 100644index e5c382abae3..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/main.js+++ /dev/null@@ -1,74 +0,0 @@-/**- * @version $Id: main.js 570 2008-04-07 23:54:50Z micmath $- */--function main() {- IO.include("lib/JSDOC.js");- IO.includeDir("plugins/");-- if (JSDOC.opt.v) LOG.verbose = true;- if (JSDOC.opt.o) LOG.out = IO.open(JSDOC.opt.o);-- if (JSDOC.opt.T) {- LOG.inform("JsDoc Toolkit running in test mode at "+new Date()+".");- IO.include("frame/Testrun.js");- IO.include("test.js");- }- else {- LOG.inform("JsDoc Toolkit main() running at "+new Date()+".");- LOG.inform("With options: ");- for (var o in JSDOC.opt) {- LOG.inform(" "+o+": "+JSDOC.opt[o]);- }-- var jsdoc = new JSDOC.JsDoc();-- if (JSDOC.opt.Z) { // secret debugging option- LOG.warn("So you want to see the data structure, eh? This might hang if you have circular refs...");- IO.include("frame/Dumper.js");- var symbols = jsdoc.symbolSet.toArray();- for (var i = 0, l = symbols.length; i < l; i++) {- var symbol = symbols[i];- print("// symbol: " + symbol.alias);- print(symbol.serialize());- }- }- else {- var template = JSDOC.opt.t || System.getProperty("jsdoc.template.dir");-- var handler = jsdoc.symbolSet.handler;- if (handler && handler.publish) {- handler.publish(jsdoc.symbolSet);- }- else {- if (typeof template != "undefined") {- try {- load(template+"/publish.js");- if (!publish) {- LOG.warn("No publish() function is defined in that template so nothing to do.");- }- else {- publish(jsdoc.symbolSet);- }- }- catch(e) {- LOG.warn("Sorry, that doesn't seem to be a valid template: "+template+"/publish.js : "+e);- }- }- else {- LOG.warn("No template or handlers given. Might as well read the usage notes.");- JSDOC.usage();- }- }- }- }-- if (LOG.warnings.length) {- print(LOG.warnings.length+" warning"+(LOG.warnings.length != 1? "s":"")+".");- }-- if (LOG.out) {- LOG.out.flush();- LOG.out.close();- }-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/commentSrcJson.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/commentSrcJson.jsdeleted file mode 100644index fb02048d31a..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/commentSrcJson.js+++ /dev/null@@ -1,19 +0,0 @@-JSDOC.PluginManager.registerPlugin(- "JSDOC.commentSrcJson",- {- onDocCommentSrc: function(commentSrc) {- var json;- if (/^\s*@json\b/.test(commentSrc)) {- commentSrc = commentSrc.replace("@json", "");- eval("json = "+commentSrc);- var tagged = "";- for (var i in json) {- var tag = json[i];- // todo handle cases where tag is an object- tagged += "@"+i+" "+tag+"\n";- }- return tagged;- }- }- }-);\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/frameworkPrototype.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/frameworkPrototype.jsdeleted file mode 100644index 9c417518bd1..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/frameworkPrototype.js+++ /dev/null@@ -1,16 +0,0 @@-JSDOC.PluginManager.registerPlugin(- "JSDOC.frameworkPrototype",- {- onPrototypeClassCreate: function(classCreator) {- var desc = "";- if (classCreator.comment) {- desc = classCreator.comment;- }- var insert = desc+"/** @name "+classCreator.name+"\n@constructor\n@scope "+classCreator.name+".prototype */"-- insert = insert.replace(/\*\/\/\*\*/g, "\n");- /*DEBUG*///print("insert is "+insert);- classCreator.addComment.data = insert;- }- }-);diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/functionCall.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/functionCall.jsdeleted file mode 100644index 6f87705eeec..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/functionCall.js+++ /dev/null@@ -1,10 +0,0 @@-JSDOC.PluginManager.registerPlugin(- "JSDOC.functionCall",- {- onFunctionCall: function(functionCall) {- if (functionCall.name == "dojo.define" && functionCall.arg1) {- functionCall.doc = "/** @lends "+eval(functionCall.arg1)+".prototype */";- }- }- }-);\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/publishSrcHilite.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/publishSrcHilite.jsdeleted file mode 100644index 65514f2c9ac..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/publishSrcHilite.js+++ /dev/null@@ -1,62 +0,0 @@-JSDOC.PluginManager.registerPlugin(- "JSDOC.publishSrcHilite",- {- onPublishSrc: function(src) {- if (src.path in JsHilite.cache) {- return; // already generated src code- }- else JsHilite.cache[src.path] = true;-- try {- var sourceCode = IO.readFile(src.path);- }- catch(e) {- print(e.message);- quit();- }-- var hiliter = new JsHilite(sourceCode, src.charset);- src.hilited = hiliter.hilite();- }- }-);--function JsHilite(src, charset) {-- var tr = new JSDOC.TokenReader();-- tr.keepComments = true;- tr.keepDocs = true;- tr.keepWhite = true;-- this.tokens = tr.tokenize(new JSDOC.TextStream(src));-- // TODO is redefining toString() the best way?- JSDOC.Token.prototype.toString = function() {- return "<span class=\""+this.type+"\">"+this.data.replace(/</g, "<")+"</span>";- }-- if (!charset) charset = "utf-8";-- this.header = '<html><head><meta http-equiv="content-type" content="text/html; charset='+charset+'"> '+- "<style>\n\- .KEYW {color: #933;}\n\- .COMM {color: #bbb; font-style: italic;}\n\- .NUMB {color: #393;}\n\- .STRN {color: #393;}\n\- .REGX {color: #339;}\n\- .line {border-right: 1px dotted #666; color: #666; font-style: normal;}\n\- </style></head><body><pre>";- this.footer = "</pre></body></html>";- this.showLinenumbers = true;-}--JsHilite.cache = {};--JsHilite.prototype.hilite = function() {- var hilited = this.tokens.join("");- var line = 1;- if (this.showLinenumbers) hilited = hilited.replace(/(^|\n)/g, function(m){return m+"<span class='line'>"+((line<10)? " ":"")+((line<100)? " ":"")+(line++)+"</span> "});-- return this.header+hilited+this.footer;-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/symbolLink.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/symbolLink.jsdeleted file mode 100644index 615a2813a25..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/symbolLink.js+++ /dev/null@@ -1,9 +0,0 @@-JSDOC.PluginManager.registerPlugin(- "JSDOC.symbolLink",- {- onSymbolLink: function(link) {- // modify link.linkPath- // or link.linkText here- }- }-);\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/tagParamConfig.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/tagParamConfig.jsdeleted file mode 100644index 3ea8a1be2a7..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/tagParamConfig.js+++ /dev/null@@ -1,31 +0,0 @@-JSDOC.PluginManager.registerPlugin(- "JSDOC.tagParamConfig",- {- onDocCommentTags: function(comment) {- var currentParam = null;- var tags = comment.tags;- for (var i = 0, l = tags.length; i < l; i++) {-- if (tags[i].title == "param") {- if (tags[i].name.indexOf(".") == -1) {- currentParam = i;- }- }- else if (tags[i].title == "config") {- tags[i].title = "param";- if (currentParam == null) {- tags[i].name = "arguments"+"."+tags[i].name;- }- else if (tags[i].name.indexOf(tags[currentParam].name+".") != 0) {- tags[i].name = tags[currentParam].name+"."+tags[i].name;- }- currentParam != null- //tags[currentParam].properties.push(tags[i]);- }- else {- currentParam = null;- }- }- }- }-);diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/tagSynonyms.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/tagSynonyms.jsdeleted file mode 100644index 49a874f19a9..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/plugins/tagSynonyms.js+++ /dev/null@@ -1,43 +0,0 @@-JSDOC.PluginManager.registerPlugin(- "JSDOC.tagSynonyms",- {- onDocCommentSrc: function(comment) {- comment.src = comment.src.replace(/@methodOf\b/i, "@function\n@memberOf");- comment.src = comment.src.replace(/@fieldOf\b/i, "@field\n@memberOf");- },-- onDocCommentTags: function(comment) {- for (var i = 0, l = comment.tags.length; i < l; i++) {- var title = comment.tags[i].title.toLowerCase();- var syn;- if ((syn = JSDOC.tagSynonyms.synonyms["="+title])) {- comment.tags[i].title = syn;- }- }- }- }-);--new Namespace(- "JSDOC.tagSynonyms",- function() {- JSDOC.tagSynonyms.synonyms = {- "=member": "memberOf",- "=memberof": "memberOf",- "=description": "desc",- "=exception": "throws",- "=argument": "param",- "=returns": "return",- "=classdescription": "class",- "=fileoverview": "overview",- "=extends": "augments",- "=base": "augments",- "=projectdescription": "overview",- "=classdescription": "class",- "=link": "see",- "=borrows": "inherits",- "=scope": "lends",- "=construct": "constructor"- }- }-);\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/run.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/run.jsdeleted file mode 100644index 40cacb6452e..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/run.js+++ /dev/null@@ -1,346 +0,0 @@-/**- * @fileOverview- * A bootstrap script that creates some basic required objects- * for loading other scripts.- * @author Michael Mathews, [email protected]- * @version $Id: run.js 554 2008-04-01 00:12:25Z micmath $- */--/**- * @namespace Keep track of any messages from the running script.- */-LOG = {- warn: function(msg, e) {- if (e) msg = e.fileName+", line "+e.lineNumber+": "+msg;-- msg = ">> WARNING: "+msg;- LOG.warnings.push(msg);- if (LOG.out) LOG.out.write(msg+"\n");- else print(msg);- },-- inform: function(msg) {- msg = " > "+msg;- if (LOG.out) LOG.out.write(msg+"\n");- else if (typeof LOG.verbose != "undefined" && LOG.verbose) print(msg);- }-};-LOG.warnings = [];-LOG.verbose = false-LOG.out = undefined;--/**- * @class Manipulate a filepath.- */-function FilePath(absPath, separator) {- this.slash = separator || "/";- this.root = this.slash;- this.path = [];- this.file = "";-- var parts = absPath.split(/[\\\/]/);- if (parts) {- if (parts.length) this.root = parts.shift() + this.slash;- if (parts.length) this.file = parts.pop()- if (parts.length) this.path = parts;- }-- this.path = this.resolvePath();-}--/** Collapse any dot-dot or dot items in a filepath. */-FilePath.prototype.resolvePath = function() {- var resolvedPath = [];- for (var i = 0; i < this.path.length; i++) {- if (this.path[i] == "..") resolvedPath.pop();- else if (this.path[i] != ".") resolvedPath.push(this.path[i]);- }- return resolvedPath;-}--/** Trim off the filename. */-FilePath.prototype.toDir = function() {- if (this.file) this.file = "";- return this;-}--/** Go up a directory. */-FilePath.prototype.upDir = function() {- this.toDir();- if (this.path.length) this.path.pop();- return this;-}--FilePath.prototype.toString = function() {- return this.root- + this.path.join(this.slash)- + ((this.path.length > 0)? this.slash : "")- + this.file;-}--/**- * Turn a path into just the name of the file.- */-FilePath.fileName = function(path) {- var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0);- return path.substring(nameStart);-}--/**- * Get the extension of a filename- */-FilePath.fileExtension = function(filename) {- return filename.split(".").pop().toLowerCase();-};--/**- * Turn a path into just the directory part.- */-FilePath.dir = function(path) {- var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0);- return path.substring(0, nameStart-1);-}---importClass(java.lang.System);--/**- * @namespace A collection of information about your system.- */-SYS = {- /**- * Information about your operating system: arch, name, version.- * @type string- */- os: [- new String(System.getProperty("os.arch")),- new String(System.getProperty("os.name")),- new String(System.getProperty("os.version"))- ].join(", "),-- /**- * Which way does your slash lean.- * @type string- */- slash: System.getProperty("file.separator")||"/",-- /**- * The path to the working directory where you ran java.- * @type string- */- userDir: new String(System.getProperty("user.dir")),-- /**- * Where is Java's home folder.- * @type string- */- javaHome: new String(System.getProperty("java.home")),-- /**- * The absolute path to the directory containing this script.- * @type string- */- pwd: undefined-};--// jsrun appends an argument, with the path to here.-if (arguments[arguments.length-1].match(/^-j=(.+)/)) {- if (RegExp.$1.charAt(0) == SYS.slash || RegExp.$1.charAt(1) == ":") { // absolute path to here- SYS.pwd = new FilePath(RegExp.$1).toDir().toString();- }- else { // relative path to here- SYS.pwd = new FilePath(SYS.userDir + SYS.slash + RegExp.$1).toDir().toString();- }- arguments.pop();-}-else {- print("The run.js script requires you use jsrun.jar.");- quit();-}--// shortcut-var File = Packages.java.io.File;--/**- * @namespace A collection of functions that deal with reading a writing to disk.- */-IO = {-- /**- * Create a new file in the given directory, with the given name and contents.- */- saveFile: function(/**string*/ outDir, /**string*/ fileName, /**string*/ content) {- var out = new Packages.java.io.PrintWriter(- new Packages.java.io.OutputStreamWriter(- new Packages.java.io.FileOutputStream(outDir+SYS.slash+fileName),- IO.encoding- )- );- out.write(content);- out.flush();- out.close();- },-- /**- * @type string- */- readFile: function(/**string*/ path) {- if (!IO.exists(path)) {- throw "File doesn't exist there: "+path;- }- return readFile(path, IO.encoding);- },-- /**- * @param inFile- * @param outDir- * @param [fileName=The original filename]- */- copyFile: function(/**string*/ inFile, /**string*/ outDir, /**string*/ fileName) {- if (fileName == null) fileName = FilePath.fileName(inFile);-- var inFile = new File(inFile);- var outFile = new File(outDir+SYS.slash+fileName);-- var bis = new Packages.java.io.BufferedInputStream(new Packages.java.io.FileInputStream(inFile), 4096);- var bos = new Packages.java.io.BufferedOutputStream(new Packages.java.io.FileOutputStream(outFile), 4096);- var theChar;- while ((theChar = bis.read()) != -1) {- bos.write(theChar);- }- bos.close();- bis.close();- },-- /**- * Creates a series of nested directories.- */- mkPath: function(/**Array*/ path) {- if (path.constructor != Array) path = path.split(/[\\\/]/);- var make = "";- for (var i = 0, l = path.length; i < l; i++) {- make += path[i] + SYS.slash;- if (! IO.exists(make)) {- IO.makeDir(make);- }- }- },-- /**- * Creates a directory at the given path.- */- makeDir: function(/**string*/ path) {- (new File(path)).mkdir();- },-- /**- * @type string[]- * @param dir The starting directory to look in.- * @param [recurse=1] How many levels deep to scan.- * @returns An array of all the paths to files in the given dir.- */- ls: function(/**string*/ dir, /**number*/ recurse, _allFiles, _path) {- if (_path === undefined) { // initially- var _allFiles = [];- var _path = [dir];- }- if (_path.length == 0) return _allFiles;- if (recurse === undefined) recurse = 1;-- dir = new File(dir);- if (!dir.directory) return [String(dir)];- var files = dir.list();-- for (var f = 0; f < files.length; f++) {- var file = String(files[f]);- if (file.match(/^\.[^\.\/\\]/)) continue; // skip dot files-- if ((new File(_path.join(SYS.slash)+SYS.slash+file)).list()) { // it's a directory- _path.push(file);- if (_path.length-1 < recurse) IO.ls(_path.join(SYS.slash), recurse, _allFiles, _path);- _path.pop();- }- else {- _allFiles.push((_path.join(SYS.slash)+SYS.slash+file).replace(SYS.slash+SYS.slash, SYS.slash));- }- }-- return _allFiles;- },-- /**- * @type boolean- */- exists: function(/**string*/ path) {- file = new File(path);-- if (file.isDirectory()){- return true;- }- if (!file.exists()){- return false;- }- if (!file.canRead()){- return false;- }- return true;- },-- /**- *- */- open: function(/**string*/ path, /**string*/ append) {- var append = true;- var outFile = new File(path);- var out = new Packages.java.io.PrintWriter(- new Packages.java.io.OutputStreamWriter(- new Packages.java.io.FileOutputStream(outFile, append),- IO.encoding- )- );- return out;- },-- /**- * Sets {@link IO.encoding}.- * Encoding is used when reading and writing text to files,- * and in the meta tags of HTML output.- */- setEncoding: function(/**string*/ encoding) {- if (/ISO-8859-([0-9]+)/i.test(encoding)) {- IO.encoding = "ISO8859_"+RegExp.$1;- }- else {- IO.encoding = encoding;- }- },-- /**- * @default "utf-8"- * @private- */- encoding: "utf-8",-- /**- * Load the given script.- */- include: function(relativePath) {- load(SYS.pwd+relativePath);- },-- /**- * Loads all scripts from the given directory path.- */- includeDir: function(path) {- if (!path) return;-- for (var lib = IO.ls(SYS.pwd+path), i = 0; i < lib.length; i++)- load(lib[i]);- }-}--// now run the application-IO.include("frame.js");-IO.include("main.js");--main();diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/t/TestDoc.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/t/TestDoc.jsdeleted file mode 100644index c0768b71c63..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/t/TestDoc.js+++ /dev/null@@ -1,144 +0,0 @@-var TestDoc = {- fails: 0,- plans: 0,- passes: 0,- results: []-};--TestDoc.record = function(result) {- TestDoc.results.push(result);- if (typeof result.verdict == "boolean") {- if (result.verdict === false) TestDoc.fails++;- if (result.verdict === true) TestDoc.passes++;- }-}--TestDoc.prove = function(filePath) {- if (typeof document != "undefined" && typeof document.write != "undefined") {- if (TestDoc.console) print = function(s) { TestDoc.console.appendChild(document.createTextNode(s+"\n")); }- else print = function(s) { document.write(s+"<br />"); }- }- TestDoc.run(TestDoc.readFile(filePath));-}--TestDoc.run = function(src) {- try { eval(src); } catch(e) { print("# ERROR! "+e); }-- var chunks = src.split(/\/\*t:/);-- var run = function(chunk) {- // local shortcuts- var is = TestDoc.assertEquals;- var isnt = TestDoc.assertNotEquals;- var plan = TestDoc.plan;- var requires = TestDoc.requires;-- try { eval(chunk); } catch(e) { print("# ERROR! "+e); }- }- for (var start = -1, end = 0; (start = src.indexOf("/*t:", end)) > end; start = end) {- run(- src.substring(- start+4,- (end = src.indexOf("*/", start))- )- );- }-}--TestDoc.Result = function(verdict, message) {- this.verdict = verdict;- this.message = message;-}--TestDoc.Result.prototype.toString = function() {- if (typeof this.verdict == "boolean") {- return (this.verdict? "ok" : "not ok") + " " + (++TestDoc.report.counter) + " - " + this.message;- }-- return "# " + this.message;-}--TestDoc.requires = function(file) {- if (!TestDoc.requires.loaded[file]) {- load(file);- TestDoc.requires.loaded[file] = true;- }-}-TestDoc.requires.loaded = {};--TestDoc.report = function() {- TestDoc.report.counter = 0;- print("1.."+TestDoc.plans);- for (var i = 0; i < TestDoc.results.length; i++) {- print(TestDoc.results[i]);- }- print("----------------------------------------");- if (TestDoc.fails == 0 && TestDoc.passes == TestDoc.plans) {- print("All tests successful.");- }- else {- print("Failed " + TestDoc.fails + "/" + TestDoc.plans + " tests, "+((TestDoc.plans == 0)? 0 : Math.round(TestDoc.passes/(TestDoc.passes+TestDoc.fails)*10000)/100)+"% okay. Planned to run "+TestDoc.plans+", did run "+(TestDoc.passes+TestDoc.fails)+".")- }-}--TestDoc.plan = function(n, message) {- TestDoc.plans += n;- TestDoc.record(new TestDoc.Result(null, message+" ("+n+" tests)"));-}--TestDoc.assertEquals = function(a, b, message) {- var result = (a == b);- if (!result) message += "\n#\n# " + a + " does not equal " + b + "\n#";- TestDoc.record(new TestDoc.Result(result, message));-}--TestDoc.assertNotEquals = function(a, b, message) {- var result = (a != b);- if (!result) message += "\n#\n# " + a + " equals " + b + "\n#";- TestDoc.record(new TestDoc.Result(result, message));-}--TestDoc.readFile = (function(){- // rhino- if (typeof readFile == "function") {- return function(url) {- var text = readFile(url);- return text || "";- }- }-- // a web browser- else {- return function(url) {- var httpRequest;-- if (window.XMLHttpRequest) { // Mozilla, Safari, etc- httpRequest = new XMLHttpRequest();- }- else if (window.ActiveXObject) { // IE- try {- httpRequest = new ActiveXObject("Msxml2.XMLHTTP");- }- catch (e) {- try {- httpRequest = new ActiveXObject("Microsoft.XMLHTTP");- }- catch (e) {- }- }- }-- if (!httpRequest) { throw "Cannot create HTTP Request."; }-- httpRequest.open('GET', url, false);- httpRequest.send('');- if (httpRequest.readyState == 4) {- if (httpRequest.status >= 400) {- throw "The HTTP Request returned an error code: "+httpRequest.status;- }- }-- return httpRequest.responseText || "";- }- }-})();diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/t/runner.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/t/runner.jsdeleted file mode 100644index 3f9fb4c9630..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/t/runner.js+++ /dev/null@@ -1,13 +0,0 @@-// try: java -jar ../../jsrun.jar runner.js--load("TestDoc.js");--TestDoc.prove("../frame/Opt.js");-TestDoc.prove("../lib/JSDOC.js");-TestDoc.prove("../frame/String.js");-TestDoc.prove("../lib/JSDOC/DocTag.js");-TestDoc.prove("../lib/JSDOC/DocComment.js");-TestDoc.prove("../lib/JSDOC/TokenReader.js");-TestDoc.prove("../lib/JSDOC/Symbol.js");--TestDoc.report();diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test.jsdeleted file mode 100644index 4a9cac84e60..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test.js+++ /dev/null@@ -1,304 +0,0 @@-load("app/frame/Dumper.js");-function symbolize(opt) {- symbols = null;- jsdoc = new JSDOC.JsDoc(opt);- symbols = jsdoc.symbolSet;-}---var testCases = [- function() {- symbolize({a:true, p:true, _: [SYS.pwd+"test/overview.js"]});- //print(Dumper.dump(symbols));- is('symbols.getSymbolByName("My Cool Library").name', 'My Cool Library', 'File overview can be found by alias.');- }- ,- function() {- symbolize({_: [SYS.pwd+"test/name.js"]});-- is('symbols.getSymbol("Response").name', "Response", 'Virtual class name is found.');- is('symbols.getSymbol("Response#text").alias', "Response#text", 'Virtual method name is found.');- is('symbols.getSymbol("Response#text").memberOf', "Response", 'Virtual method parent name is found.');- }- ,- function() {- symbolize({a:true, p:true, _: [SYS.pwd+"test/prototype.js"]});-- is('symbols.getSymbol("Article").name', "Article", 'Function set to constructor prototype with inner constructor name is found.');- is('symbols.getSymbol("Article").hasMethod("init")', true, 'The initializer method name of prototype function is correct.');- is('symbols.getSymbol("Article").hasMember("counter")', true, 'A static property set in the prototype definition is found.');- is('symbols.getSymbol("Article").hasMember("title")', true, 'An instance property set in the prototype is found.');- is('symbols.getSymbol("Article#title").isStatic', false, 'An instance property has isStatic set to false.');- is('symbols.getSymbol("Article.counter").name', "counter", 'A static property set in the initializer has the name set correctly.');- is('symbols.getSymbol("Article.counter").memberOf', "Article", 'A static property set in the initializer has the memberOf set correctly.');- is('symbols.getSymbol("Article.counter").isStatic', true, 'A static property set in the initializer has isStatic set to true.');- }- ,- function() {- symbolize({a:true, _: [SYS.pwd+"test/prototype_oblit.js"]});-- is('symbols.getSymbol("Article").name', "Article", 'Oblit set to constructor prototype name is found.');- is('typeof symbols.getSymbol("Article.prototype")', "undefined", 'The prototype oblit is not a symbol.');- is('symbols.getSymbol("Article#getTitle").name', "getTitle", 'The nonstatic method name of prototype oblit is correct.');- is('symbols.getSymbol("Article#getTitle").alias', "Article#getTitle", 'The alias of non-static method of prototype oblit is correct.');- is('symbols.getSymbol("Article#getTitle").isStatic', false, 'The isStatic of a nonstatic method of prototype oblit is correct.');- is('symbols.getSymbol("Article.getTitle").name', "getTitle", 'The static method name of prototype oblit is correct.');- is('symbols.getSymbol("Article.getTitle").isStatic', true, 'The isStatic of a static method of prototype oblit is correct.');- is('symbols.getSymbol("Article#getTitle").isa', "FUNCTION", 'The isa of non-static method of prototype oblit is correct.');- is('symbols.getSymbol("Article.getTitle").alias', "Article.getTitle", 'The alias of a static method of prototype oblit is correct.');- is('symbols.getSymbol("Article.getTitle").isa', "FUNCTION", 'The isa of static method of prototype oblit is correct.');- }- ,- function() {- symbolize({a:true, p:true, _: [SYS.pwd+"test/prototype_oblit_constructor.js"]});-- is('symbols.getSymbol("Article").name', "Article", 'Oblit set to constructor prototype with inner constructor name is found.');- is('symbols.getSymbol("Article#init").name', "init", 'The initializer method name of prototype oblit is correct.');- is('symbols.getSymbol("Article").hasMember("pages")', true, 'Property set by initializer method "this" is on the outer constructor.');- is('symbols.getSymbol("Article#Title").name', "Title", 'Name of the inner constructor name is found.');- is('symbols.getSymbol("Article#Title").memberOf', "Article", 'The memberOf of the inner constructor name is found.');- is('symbols.getSymbol("Article#Title").isa', "CONSTRUCTOR", 'The isa of the inner constructor name is constructor.');- is('symbols.getSymbol("Article#Title").hasMember("title")', true, 'A property set on the inner constructor "this" is on the inner constructor.');- }- ,- function() {- symbolize({a:true, p:true, _: [SYS.pwd+"test/inner.js"]});-- is('symbols.getSymbol("Outer").name', "Outer", 'Outer constructor prototype name is found.');- is('symbols.getSymbol("Outer").methods.length', 1, 'Inner function doesnt appear as a method of the outer.');- is('symbols.getSymbol("Outer").hasMethod("open")', true, 'Outer constructors methods arent affected by inner function.');- is('symbols.getSymbol("Outer-Inner").alias', "Outer-Inner", 'Alias of inner function is found.');- is('symbols.getSymbol("Outer-Inner").isa', "CONSTRUCTOR", 'isa of inner function constructor is found.');- is('symbols.getSymbol("Outer-Inner").memberOf', "Outer", 'The memberOf of inner function is found.');- is('symbols.getSymbol("Outer-Inner").name', "Inner", 'The name of inner function is found.');- is('symbols.getSymbol("Outer-Inner#name").name', "name", 'A member of the inner function constructor, attached to "this" is found on inner.');- is('symbols.getSymbol("Outer-Inner#name").memberOf', "Outer-Inner", 'The memberOf of an inner function member is found.');- }- ,- function() {- symbolize({a:true, _: [SYS.pwd+"test/prototype_nested.js"]});-- is('symbols.getSymbol("Word").name', "Word", 'Base constructor name is found.');- is('symbols.getSymbol("Word").hasMethod("reverse")', true, 'Base constructor method is found.');- is('symbols.getSymbol("Word").methods.length', 1, 'Base constructor has only one method.');- is('symbols.getSymbol("Word").memberOf', "", 'Base constructor memberOf is empty.');- is('symbols.getSymbol("Word#reverse").name', "reverse", 'Member of constructor prototype name is found.');- is('symbols.getSymbol("Word#reverse").memberOf', "Word", 'Member of constructor prototype memberOf is found.');- is('symbols.getSymbol("Word#reverse.utf8").name', "utf8", 'Member of constructor prototype method name is found.');- is('symbols.getSymbol("Word#reverse.utf8").memberOf', "Word#reverse", 'Static nested member memberOf is found.');- }- ,- function() {- symbolize({a:true, _: [SYS.pwd+"test/namespace_nested.js"]});-- is('symbols.getSymbol("ns1").name', "ns1", 'Base namespace name is found.');- is('symbols.getSymbol("ns1").memberOf', "", 'Base namespace memberOf is empty (its a constructor).');- is('symbols.getSymbol("ns1.ns2").name', "ns2", 'Nested namespace name is found.');- is('symbols.getSymbol("ns1.ns2").alias', "ns1.ns2", 'Nested namespace alias is found.');- is('symbols.getSymbol("ns1.ns2").memberOf', "ns1", 'Nested namespace memberOf is found.');- is('symbols.getSymbol("ns1.ns2.Function1").name', "Function1", 'Method of nested namespace name is found.');- is('symbols.getSymbol("ns1.ns2.Function1").memberOf', "ns1.ns2", 'Constructor of nested namespace memberOf is found.');- }- ,- function() {- symbolize({a:true, p:true, _: [SYS.pwd+"test/functions_nested.js"]});-- is('symbols.getSymbol("Zop").name', "Zop", 'Any constructor name is found.');- is('symbols.getSymbol("Zop").isa', "CONSTRUCTOR", 'It isa constructor.');- is('symbols.getSymbol("Zop").hasMethod("zap")', true, 'Its method name, set later, is in methods array.');- is('symbols.getSymbol("Foo").name', "Foo", 'The containing constructor name is found.');- is('symbols.getSymbol("Foo").hasMethod("methodOne")', true, 'Its method name is found.');- is('symbols.getSymbol("Foo").hasMethod("methodTwo")', true, 'Its second method name is found.');- is('symbols.getSymbol("Foo#methodOne").alias', "Foo#methodOne", 'A methods alias is found.');- is('symbols.getSymbol("Foo#methodOne").isStatic', false, 'A methods is not static.');- is('symbols.getSymbol("Bar").name', "Bar", 'A global function declared inside another function is found.');- is('symbols.getSymbol("Bar").isa', "FUNCTION", 'It isa function.');- is('symbols.getSymbol("Bar").memberOf', "_global_", 'It is global.');- is('symbols.getSymbol("Foo-inner").name', "inner", 'An inner functions name is found.');- is('symbols.getSymbol("Foo-inner").memberOf', "Foo", 'It is member of the outer function.');- is('symbols.getSymbol("Foo-inner").isInner', true, 'It is an inner function.');- }- ,- function() {- symbolize({a:true, _: [SYS.pwd+"test/memberof_constructor.js"]});-- is('symbols.getSymbol("Circle#Tangent").name', "Tangent", 'Constructor set on prototype using @member has correct name.');- is('symbols.getSymbol("Circle#Tangent").memberOf', "Circle", 'Constructor set on prototype using @member has correct memberOf.');- is('symbols.getSymbol("Circle#Tangent").alias', "Circle#Tangent", 'Constructor set on prototype using @member has correct alias.');- is('symbols.getSymbol("Circle#Tangent").isa', "CONSTRUCTOR", 'Constructor set on prototype using @member has correct isa.');- is('symbols.getSymbol("Circle#Tangent").isStatic', false, 'Constructor set on prototype using @member is not static.');- is('symbols.getSymbol("Circle#Tangent#getDiameter").name', "getDiameter", 'Method set on prototype using @member has correct name.');- is('symbols.getSymbol("Circle#Tangent#getDiameter").memberOf', "Circle#Tangent", 'Method set on prototype using @member has correct memberOf.');- is('symbols.getSymbol("Circle#Tangent#getDiameter").alias', "Circle#Tangent#getDiameter", 'Method set on prototype using @member has correct alias.');- is('symbols.getSymbol("Circle#Tangent#getDiameter").isa', "FUNCTION", 'Method set on prototype using @member has correct isa.');- is('symbols.getSymbol("Circle#Tangent#getDiameter").isStatic', false, 'Method set on prototype using @member is not static.');- }- ,- function() {- symbolize({a:true, p: true, _: [SYS.pwd+"test/memberof.js"]});-- is('symbols.getSymbol("pack.install").alias', "pack.install", 'Using @memberOf sets alias, when parent name is in memberOf tag.');- is('symbols.getSymbol("pack.install.overwrite").name', "install.overwrite", 'Using @memberOf sets name, even if the name is dotted.');- is('symbols.getSymbol("pack.install.overwrite").memberOf', "pack", 'Using @memberOf sets memberOf.');- is('symbols.getSymbol("pack.install.overwrite").isStatic', true, 'Using @memberOf with value not ending in octothorp sets isStatic to true.');- }- ,- function() {- symbolize({a:true, p:true, _: [SYS.pwd+"test/borrows.js"]});-- is('symbols.getSymbol("Layout").name', "Layout", 'Constructor can be found.');- is('symbols.getSymbol("Layout").hasMethod("init")', true, 'Constructor method name can be found.');- is('symbols.getSymbol("Layout").hasMember("orientation")', true, 'Constructor property name can be found.');-- is('symbols.getSymbol("Page").hasMethod("reset")', true, 'Second constructor method name can be found.');- is('symbols.getSymbol("Page").hasMember("orientation")', true, 'Second constructor borrowed property name can be found in properties.');- is('symbols.getSymbol("Page#orientation").memberOf', "Page", 'Second constructor borrowed property memberOf can be found.');- is('symbols.getSymbol("Page").hasMethod("myGetInnerElements")', true, 'Can borrow an inner function, add it as a static function.');-- is('symbols.getSymbol("ThreeColumnPage#init").alias', "ThreeColumnPage#init", 'Third constructor method can be found even though method with same name is borrowed.');- is('symbols.getSymbol("ThreeColumnPage#reset").alias', "ThreeColumnPage#reset", 'Borrowed method can be found.');- is('symbols.getSymbol("ThreeColumnPage#orientation").alias', "ThreeColumnPage#orientation", 'Twice borrowed method can be found.');-- }- ,- function() {- symbolize({a:true, p:true, _: [SYS.pwd+"test/borrows2.js"]});-- is('symbols.getSymbol("Foo").hasMethod("my_zop")', true, 'Borrowed method can be found.');- is('symbols.getSymbol("Bar").hasMethod("my_zip")', true, 'Second borrowed method can be found.');- }- ,- function() {- symbolize({a:true, p:true, _: [SYS.pwd+"test/constructs.js"]});-- is('symbols.getSymbol("Person").hasMethod("say")', true, 'The constructs tag creates a class that lends can add a method to.');- }- ,- function() {- symbolize({a: true, _: [SYS.pwd+"test/augments.js", SYS.pwd+"test/augments2.js"]});-- is('symbols.getSymbol("Page").augments[0]', "Layout", 'An augmented class can be found.');- is('symbols.getSymbol("Page#reset").alias', "Page#reset", 'Method of augmenter can be found.');- is('symbols.getSymbol("Page").hasMethod("Layout#init")', true, 'Method from augmented can be found.');- is('symbols.getSymbol("Page").hasMember("Layout#orientation")', true, 'Property from augmented can be found.');- is('symbols.getSymbol("Page").methods.length', 3, 'Methods of augmented class are included in methods array.');-- is('symbols.getSymbol("ThreeColumnPage").augments[0]', "Page", 'The extends tag is a synonym for augments.');- is('symbols.getSymbol("ThreeColumnPage").hasMethod("ThreeColumnPage#init")', true, 'Local method overrides augmented method of same name.');- is('symbols.getSymbol("ThreeColumnPage").methods.length', 3, 'Local method count is right.');-- is('symbols.getSymbol("NewsletterPage").augments[0]', "ThreeColumnPage", 'Can augment across file boundaries.');- is('symbols.getSymbol("NewsletterPage").augments.length', 2, 'Multiple augments are supported.');- is('symbols.getSymbol("NewsletterPage").inherits[0].alias', "Junkmail#annoy", 'Inherited method with augments.');- is('symbols.getSymbol("NewsletterPage").methods.length', 6, 'Methods of augmented class are included in methods array across files.');- is('symbols.getSymbol("NewsletterPage").properties.length', 1, 'Properties of augmented class are included in properties array across files.');- }- ,- function() {- symbolize({a:true, _: [SYS.pwd+"test/static_this.js"]});-- is('symbols.getSymbol("box.holder").name', "holder", 'Static namespace name can be found.');- is('symbols.getSymbol("box.holder.foo").name', "foo", 'Static namespace method name can be found.');- is('symbols.getSymbol("box.holder").isStatic', true, 'Static namespace method is static.');-- is('symbols.getSymbol("box.holder.counter").name', "counter", 'Instance namespace property name set on "this" can be found.');- is('symbols.getSymbol("box.holder.counter").alias', "box.holder.counter", 'Instance namespace property alias set on "this" can be found.');- is('symbols.getSymbol("box.holder.counter").memberOf', "box.holder", 'Static namespace property memberOf set on "this" can be found.');- }- ,- function() {- symbolize({a:true, p: true, _: [SYS.pwd+"test/lend.js"]});-- is('symbols.getSymbol("Person").name', "Person", 'Class defined in lend comment is found.');- is('symbols.getSymbol("Person").hasMethod("initialize")', true, 'Lent instance method name can be found.');- is('symbols.getSymbol("Person").hasMethod("say")', true, 'Second instance method can be found.');- is('symbols.getSymbol("Person#sing").isStatic', false, 'Instance method is known to be not static.');-- is('symbols.getSymbol("Person.getCount").name', "getCount", 'Static method name from second lend comment can be found.');- is('symbols.getSymbol("Person.getCount").isStatic', true, 'Static method from second lend comment is known to be static.');-- is('LOG.warnings.filter(function($){if($.indexOf("notok") > -1) return $}).length', 1, 'A warning is emitted when lending to an undocumented parent.');- }- ,- function() {- symbolize({a:true, _: [SYS.pwd+"test/param_inline.js"]});-- is('symbols.getSymbol("Layout").params[0].type', "int", 'Inline param name is set.');- is('symbols.getSymbol("Layout").params[0].desc', "The number of columns.", 'Inline param desc is set from comment.');- is('symbols.getSymbol("Layout#getElement").params[0].name', "id", 'User defined param documentation takes precedence over parser defined.');- is('symbols.getSymbol("Layout#getElement").params[0].isOptional', true, 'Default for param is to not be optional.');- is('symbols.getSymbol("Layout#getElement").params[1].isOptional', false, 'Can mark a param as being optional.');- is('symbols.getSymbol("Layout#getElement").params[1].type', "number|string", 'Type of inline param doc can have multiple values.');- is('symbols.getSymbol("Layout#Canvas").params[0].type', "", 'Type can be not defined for some params.');- is('symbols.getSymbol("Layout#Canvas").params[2].type', "int", 'Type can be defined inline for only some params.');- is('symbols.getSymbol("Layout#rotate").params.length', 0, 'Docomments inside function sig is ignored without a param.');- is('symbols.getSymbol("Layout#init").params[2].type', "zoppler", 'Doc comment type overrides inline type for param with same name.');- }- ,- function() {- symbolize({a: true, _: [SYS.pwd+"test/shared.js", SYS.pwd+"test/shared2.js"]});-- is('symbols.getSymbol("Array#some").name', 'some', 'The name of a symbol in a shared section is found.');- is('symbols.getSymbol("Array#some").alias', 'Array#some', 'The alias of a symbol in a shared section is found.');- is('symbols.getSymbol("Array#some").desc', "Extension to builtin array.", 'A description can be shared.');- is('symbols.getSymbol("Array#filter").desc', "Extension to builtin array.\nChange every element of an array.", 'A shared description is appended.');- is('symbols.getSymbol("Queue").desc', "A first in, first out data structure.", 'A description is not shared when outside a shared section.');- is('symbols.getSymbol("Queue.rewind").alias', "Queue.rewind", 'Second shared tag can be started.');- is('symbols.getSymbol("startOver").alias', "startOver", 'Shared tag doesnt cross over files.');- }- ,- function() {- symbolize({a: true, _: [SYS.pwd+"test/config.js"]});- is('symbols.getSymbol("Contact").params[0].name', 'person', 'The name of a param is found.');- is('symbols.getSymbol("Contact").params[1].name', 'person.name', 'The name of a param set with a dot name is found.');- is('symbols.getSymbol("Contact").params[2].name', 'person.age', 'The name of a param set with a dot name is found.');- is('symbols.getSymbol("Contact").params[4].name', 'connection', 'The name of a param after config is found.');-- is('symbols.getSymbol("Family").params[0].name', 'persons', 'Another name of a param is found.');- is('symbols.getSymbol("Family").params[1].name', 'persons.Father', 'The name of a param+config is found.');- is('symbols.getSymbol("Family").params[2].name', 'persons.Mother', 'The name of a second param+config is found.');- is('symbols.getSymbol("Family").params[3].name', 'persons.Children', 'The name of a third param+config is found.');-- }- ,- function() {- symbolize({a:true, p:true, _: [SYS.pwd+"test/ignore.js"]});- is('LOG.warnings.filter(function($){if($.indexOf("undocumented symbol Ignored") > -1) return $}).length', 1, 'A warning is emitted when documenting members of an ignored parent.');-- }- ,- function() {- symbolize({a:true, p:true, _: [SYS.pwd+"test/functions_anon.js"]});- is('symbols.getSymbol("a.b").alias', 'a.b', 'In anonymous constructor this is found to be the container object.');- is('symbols.getSymbol("a.f").alias', 'a.f', 'In anonymous constructor this can have a method.');- is('symbols.getSymbol("a.c").alias', 'a.c', 'In anonymous constructor method this is found to be the container object.');- is('symbols.getSymbol("g").alias', 'g', 'In anonymous function executed inline this is the global.');- is('symbols.getSymbol("bar2.p").alias', 'bar2.p', 'In named constructor executed inline this is the container object.');- is('symbols.getSymbol("module.pub").alias', 'module.pub', 'In parenthesized anonymous function executed inline function scoped variables arent documented.');-- }- ,- function() {- symbolize({a:true, p:true, _: [SYS.pwd+"test/oblit_anon.js"]});- is('symbols.getSymbol("opt").name', 'opt', 'Anonymous object properties are assigned to $anonymous.');- is('symbols.getSymbol("opt.conf.keep").alias', 'opt.conf.keep', 'Anonymous object properties are assigned to $anonymous.');- is('symbols.getSymbol("opt.conf.base").alias', 'opt.conf.base', 'Anonymous object properties are assigned to $anonymous.');-- }- ,- function() {- symbolize({a:true, p:true, _: [SYS.pwd+"test/params_optional.js"]});- is('symbols.getSymbol("Document").params.length', 3, 'Correct number of params are found when optional param syntax is used.');- is('symbols.getSymbol("Document").params[1].name', "id", 'Name of optional param is found.');- is('symbols.getSymbol("Document").params[1].isOptional', true, 'Optional param is marked isOptional.');- is('symbols.getSymbol("Document").params[2].name', "title", 'Name of optional param with default value is found.');- is('symbols.getSymbol("Document").params[2].isOptional', true, 'Optional param with default value is marked isOptional.');- is('symbols.getSymbol("Document").params[2].defaultValue', " This is untitled.", 'Optional param default value is found.');--- }-];---//// run and print results-print(testrun(testCases));diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/addon.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/addon.jsdeleted file mode 100644index 88862053309..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/addon.js+++ /dev/null@@ -1,24 +0,0 @@-String.prototype.reverse = function() {-}--String.prototype.reverse.utf8 = function() {-}--Function.count = function() {-}--/** @memberOf Function */-Function.count.reset = function() {-}--/** @memberOf Function */-count.getValue = function() {-}--/** @memberOf Function.prototype */-getSig = function() {-}--/** @memberOf Function.prototype */-Function.prototype.getProps = function() {-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/anon_inner.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/anon_inner.jsdeleted file mode 100644index 227eeee55e2..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/anon_inner.js+++ /dev/null@@ -1,14 +0,0 @@-/**- * @name bar- * @namespace- */--new function() {- /**- * @name bar-foo- * @function- * @param {number} x- */- function foo(x) {- }-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/augments.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/augments.jsdeleted file mode 100644index 12e706ebc7b..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/augments.js+++ /dev/null@@ -1,31 +0,0 @@-/**-@constructor-*/-function Layout(p) {- this.init = function(p) {- }-- this.getId = function() {- }-- /** @type Page */- this.orientation = "landscape";-}--/**-@constructor-@augments Layout-*/-function Page() {- this.reset = function(b) {- }-}--/**-@extends Page-@constructor-*/-function ThreeColumnPage() {- this.init = function(resetCode) {- }-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/augments2.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/augments2.jsdeleted file mode 100644index e8388f0f885..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/augments2.js+++ /dev/null@@ -1,26 +0,0 @@-/**-@constructor-*/-function LibraryItem() {- this.reserve = function() {- }-}--/**-@constructor-*/-function Junkmail() {- this.annoy = function() {- }-}--/**-@inherits Junkmail.prototype.annoy as pester-@augments ThreeColumnPage-@augments LibraryItem-@constructor-*/-function NewsletterPage() {- this.getHeadline = function() {- }-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/borrows.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/borrows.jsdeleted file mode 100644index 878add0d6ca..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/borrows.js+++ /dev/null@@ -1,41 +0,0 @@-/**-@constructor-*/-function Layout(p) {- /** initilize 1 */- this.init = function(p) {- }-- /** get the id */- this.getId = function() {- }-- /** @type string */- this.orientation = "landscape";-- function getInnerElements(elementSecretId){- }-}--/**-@constructor-@borrows Layout#orientation as #orientation-@borrows Layout-getInnerElements as myGetInnerElements-*/-function Page() {- /** reset the page */- this.reset = function(b) {- }-}--/**-@constructor-@borrows Layout.prototype.orientation as this.orientation-@borrows Layout.prototype.init as #init-@inherits Page.prototype.reset as #reset-*/-function ThreeColumnPage() {- /** initilize 2 */- this.init = function(p) {- }-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/borrows2.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/borrows2.jsdeleted file mode 100644index c0d5ea21f45..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/borrows2.js+++ /dev/null@@ -1,23 +0,0 @@-// testing circular borrows--/**- @class- @borrows Bar#zop as this.my_zop-*/-function Foo() {- /** this is a zip. */- this.zip = function() {}-- this.my_zop = new Bar().zop;-}--/**- @class- @borrows Foo#zip as this.my_zip-*/-function Bar() {- /** this is a zop. */- this.zop = function() {}-- this.my_zip = new Foo().zip;-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/config.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/config.jsdeleted file mode 100644index 0748a210a21..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/config.js+++ /dev/null@@ -1,22 +0,0 @@-/**- * @constructor- * @param person The person.- * @param {string} person.name The person's name.- * @config {integer} age The person's age.- * @config [id=1] Optional id number to use.- * @param connection- */-function Contact(person, connection) {--}--/**- * @constructor- * @param persons- * @config {string} Father The paternal person.- * @config {string} Mother The maternal person.- * @config {string[]} Children And the rest.- */-function Family(/**Object*/persons) {--}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/constructs.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/constructs.jsdeleted file mode 100644index cca5dbd38e8..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/constructs.js+++ /dev/null@@ -1,18 +0,0 @@-var Person = makeClass(- /**- @scope Person- */- {- /**- This is just another way to define a constructor.- @constructs- @param {string} name The name of the person.- */- initialize: function(name) {- this.name = name;- },- say: function(message) {- return this.name + " says: " + message;- }- }-);\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/encoding.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/encoding.jsdeleted file mode 100644index ba64219319c..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/encoding.js+++ /dev/null@@ -1,10 +0,0 @@--/**- * @Constructor- * @desc 配置文件- * @class 什么也不返回- */-function Test(conf) {- // do something;-}-diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/encoding_other.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/encoding_other.jsdeleted file mode 100644index b144da4cf0f..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/encoding_other.js+++ /dev/null@@ -1,12 +0,0 @@--/**- * @Constructor- * @desc ����- * @class ����������������� �����������- */-function Test(conf) {- // do something;-}--// run with commanline option -e=iso-8859-5-diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/functions_anon.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/functions_anon.jsdeleted file mode 100644index e9dd6c1bee0..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/functions_anon.js+++ /dev/null@@ -1,39 +0,0 @@-/** an anonymous constructor executed inline */-a = new function() {- /** a.b*/- this.b = 1;- /** a.f */- this.f = function() {- /** a.c */- this.c = 2;- }-}---/**- named function executed inline-*/-bar1 = function Zoola1() {- /** property of global */- this.g = 1;-}();--/**- named constructor executed inline-*/-bar2 = new function Zoola2() {- /** property of bar */- this.p = 1;-};--/** module pattern */-module = (function () {- /** won't appear in documentation */- var priv = 1;-- /** @scope module */- return {- /** will appear as a property of module */- pub: 1- }-})();diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/functions_nested.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/functions_nested.jsdeleted file mode 100644index f044fafeea8..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/functions_nested.js+++ /dev/null@@ -1,33 +0,0 @@-/** @constructor */-function Zop() {-}--/**- @class-*/-Foo = function(id) {- // this is a bit twisted, but if you call Foo() you will then- // modify Foo(). This is kinda, sorta non-insane, because you- // would have to call Foo() 100% of the time to use Foo's methods- Foo.prototype.methodOne = function(bar) {- alert(bar);- };-- // same again- Foo.prototype.methodTwo = function(bar2) {- alert(bar2);- };-- // and these are only executed if the enclosing function is actually called- // and who knows if that will ever happen?- Bar = function(pez) {- alert(pez);- };- Zop.prototype.zap = function(p){- alert(p);- };-- // but this is only visible inside Foo- function inner() {- }-};diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/global.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/global.jsdeleted file mode 100644index 5ea489496bb..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/global.js+++ /dev/null@@ -1,13 +0,0 @@-/** ecks */-var x = [1, 2, 4];--var y = {- foo: function(){- }-}--bar = function() {-}--function zop() {-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/globals.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/globals.jsdeleted file mode 100644index 3f83fb1f95f..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/globals.js+++ /dev/null@@ -1,25 +0,0 @@-function example(/**Circle*/a, b) {- /** a global defined in function */- var number = a;-- var hideNumber = function(){- }-- setNumber = function(){- }- alert('You have chosen: ' + b);-}--function initPage() {- var supported = document.createElement && document.getElementsByTagName;- if (!supported) return;- // start of DOM script- var x = document.getElementById('writeroot');- // etc.-}--/** an example var */-var document = new Document(x, y);--var getNumber = function(){-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/ignore.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/ignore.jsdeleted file mode 100644index d3fac9ed5ab..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/ignore.js+++ /dev/null@@ -1,10 +0,0 @@-/**- * A test constructor.- * @constructor- * @ignore- */-function Ignored() {- /** a method */- this.bar = function() {- }-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/inner.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/inner.jsdeleted file mode 100644index 37cfa9dc26e..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/inner.js+++ /dev/null@@ -1,16 +0,0 @@-/**- * @constructor- */-function Outer() {- /**- * @constructor- */- function Inner(name) {- /** The name of this. */- this.name = name;- }-- this.open = function(name) {- return (new Inner(name));- }-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/jsdoc_test.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/jsdoc_test.jsdeleted file mode 100644index ee969e0a362..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/jsdoc_test.js+++ /dev/null@@ -1,477 +0,0 @@-/**- * @fileoverview This file is to be used for testing the JSDoc parser- * It is not intended to be an example of good JavaScript OO-programming,- * nor is it intended to fulfill any specific purpose apart from- * demonstrating the functionality of the- * <a href='http://sourceforge.net/projects/jsdoc'>JSDoc</a> parser- *- * @author Gabriel Reid [email protected]- * @version 0.1- */---/**- * Construct a new Shape object.- * @class This is the basic Shape class.- * It can be considered an abstract class, even though no such thing- * really existing in JavaScript- * @constructor- * @throws MemoryException if there is no more memory- * @throws GeneralShapeException rarely (if ever)- * @return {Shape|Coordinate} A new shape.- */-function Shape(){-- /**- * This is an example of a function that is not given as a property- * of a prototype, but instead it is assigned within a constructor.- * For inner functions like this to be picked up by the parser, the- * function that acts as a constructor <b>must</b> be denoted with- * the <b>@constructor</b> tag in its comment.- * @type String- */- this.getClassName = function(){- return "Shape";- }-- /**- * This is an inner method, just used here as an example- * @since version 0.5- * @author Sue Smart- */- function addReference(){- // Do nothing...- }--}--/**- * Create a new Hexagon instance.- * @extends Shape- * @class Hexagon is a class that is a <i>logical</i> sublcass of- * {@link Shape} (thanks to the <code>@extends</code> tag), but in- * reality it is completely unrelated to Shape.- * @param {int} sideLength The length of one side for the new Hexagon- * @example- * var h = new Hexagon(2);- * @example- * if (hasHex) {- * hex = new Hexagon(5);- * color = hex.getColor();- * }- */-function Hexagon(sideLength) {-}---/**- * This is an unattached (static) function that adds two integers together.- * @param {int} One The first number to add- * @param {int} Two The second number to add- * @author Gabriel Reid- * @deprecated So you shouldn't use it anymore!- */-function Add(One, Two){- return One + Two;-}---/**- * The color of this shape- * @type Color- */-Shape.prototype.color = null;--/**- * The border of this shape.- * @field- * @type int- */-Shape.prototype.border = function(){return border;};--/*- * These are all the instance method implementations for Shape- */--/**- * Get the coordinates of this shape. It is assumed that we're always talking- * about shapes in a 2D location here.- * @requires The {@link Shape} class- * @returns A Coordinate object representing the location of this Shape- * @type Coordinate[]- */-Shape.prototype.getCoords = function(){- return this.coords;-}--/**- * Get the color of this shape.- * @see #setColor- * @see The <a href="http://example.com">Color</a> library.- * @link Shape- * @type Color- */-Shape.prototype.getColor = function(){- return this.color;-}--/**- * Set the coordinates for this Shape- * @param {Coordinate} coordinates The coordinates to set for this Shape- */-Shape.prototype.setCoords = function(coordinates){- this.coords = coordinates;-}--/**- * Set the color for this Shape- * @param {Color} color The color to set for this Shape- * @param other There is no other param, but it can still be documented if- * optional parameters are used- * @throws NonExistantColorException (no, not really!)- * @see #getColor- */-Shape.prototype.setColor = function(color){- this.color = color;-}--/**- * Clone this shape- * @returns A copy of this shape- * @type Shape- * @author Gabriel Reid- */-Shape.prototype.clone = function(){- return new Shape();-}--/**- * Create a new Rectangle instance.- * @class A basic rectangle class, inherits from Shape.- * This class could be considered a concrete implementation class- * @constructor- * @param {int} width The optional width for this Rectangle- * @param {int} height Thie optional height for this Rectangle- * @author Gabriel Reid- * @see Shape is the base class for this- * @augments Shape- * @hilited- */-function Rectangle(width, // This is the width- height // This is the height- ){- if (width){- this.width = width;- if (height){- this.height = height;- }- }-}---/* Inherit from Shape */-Rectangle.prototype = new Shape();--/**- * Value to represent the width of the Rectangle.- * <br>Text in <b>bold</b> and <i>italic</i> and a- * link to <a href="http://sf.net">SourceForge</a>- * @private- * @type int- */-Rectangle.prototype.width = 0;--/**- * Value to represent the height of the Rectangle- * @private- * @type int- */-Rectangle.prototype.height = 0;--/**- * Get the type of this object.- * @type String- */-Rectangle.prototype.getClassName= function(){- return "Rectangle";-}--/**- * Get the value of the width for the Rectangle- * @type int- * @see Rectangle#setWidth- */-Rectangle.prototype.getWidth = function(){- return this.width;-}--/**- * Get the value of the height for the Rectangle.- * Another getter is the {@link Shape#getColor} method in the- * {@link Shape} base class.- * @return The height of this Rectangle- * @type int- * @see Rectangle#setHeight- */-Rectangle.prototype.getHeight = function(){- return this.height;-}--/**- * Set the width value for this Rectangle.- * @param {int} width The width value to be set- * @see #setWidth- */-Rectangle.prototype.setWidth = function(width){- this.width = width;-}--/**- * Set the height value for this Rectangle.- * @param {int} height The height value to be set- * @see #getHeight- */-Rectangle.prototype.setHeight = function(height){- this.height = height;-}--/**- * Get the value for the total area of this Rectangle- * @return total area of this Rectangle- * @type int- */-Rectangle.prototype.getArea = function(){- return width * height;-}---/**- * Create a new Square instance.- * @class A Square is a subclass of {@link Rectangle}- * @param {int} width The optional width for this Rectangle- * @param {int} height The optional height for this Rectangle- * @augments Rectangle- */-function Square(width, height){- if (width){- this.width = width;- if (height){- this.height = height;- }- }--}--/* Square is a subclass of Rectangle */-Square.prototype = new Rectangle();--/**- * Set the width value for this Shape.- * @param {int} width The width value to be set- * @see #getWidth- */-Square.prototype.setWidth = function(width){- this.width = this.height = width;-}--/**- * Set the height value for this Shape- * Sets the {@link Rectangle#height} attribute in the Rectangle.- * @param {int} height The height value to be set- */-Square.prototype.setHeight = function(height){- this.height = this.width = height;-}---/**- * Create a new Circle instance based on a radius.- * @class Circle class is another subclass of Shape- * @extends Shape- * @param {int} radius The optional radius of this {@link Circle }- * @mixin Square.prototype.setWidth as this.setDiameter- */-function Circle(radius){- if (radius) {- /** The radius of the this Circle. */- this.radius = radius;- }-}--/* Circle inherits from {@link Shape} */-Circle.prototype = new Shape();--/**- * The radius value for this Circle- * @private- * @type int- */-Circle.prototype.radius = 0;--/**- * A very simple class (static) field that is also a constant- * @final- * @type float- */-Circle.PI = 3.14;--/**- * Get the radius value for this Circle- * @type int- * @see #setRadius- */-Circle.prototype.getRadius = function(){- return this.radius;-}--/**- * Set the radius value for this Circle- * @param {int} radius The {@link Circle#radius} value to set- * @see #getRadius- */-Circle.prototype.setRadius = function(radius){- this.radius = radius;-}--/**- * An example of a class (static) method that acts as a factory for Circle- * objects. Given a radius value, this method creates a new Circle.- * @param {int} radius The radius value to use for the new Circle.- * @type Circle- */-Circle.createCircle = function(radius){- return new Circle(radius);-}---/**- * Create a new Coordinate instance based on x and y grid data.- * @class Coordinate is a class that can encapsulate location information.- * @param {int} [x=0] The optional x portion of the Coordinate- * @param {int} [y=0] The optinal y portion of the Coordinate- */-function Coordinate(x, y){- if (x){- this.x = x;- if (y){- this.y = y;- }- }-}--/**- * The x portion of the Coordinate- * @type int- * @see #getX- * @see #setX- */-Coordinate.prototype.x = 0;--/**- * The y portion of the Coordinate- * @type int- * @see #getY- * @see #setY- */-Coordinate.prototype.y = 0;--/**- * Gets the x portion of the Coordinate.- * @type int- * @see #setX- */-Coordinate.prototype.getX = function(){- return this.x;-}--/**- * Get the y portion of the Coordinate.- * @type int- * @see #setY- */-Coordinate.prototype.getY = function(){- return this.y;-}--/**- * Sets the x portion of the Coordinate.- * @param {int} x The x value to set- * @see #getX- */-Coordinate.prototype.setX = function(x){- this.x = x;-}--/**- * Sets the y portion of the Coordinate.- * @param {int} y The y value to set- * @see #getY- */-Coordinate.prototype.setY = function(y){- this.y = y;-}--/**- * @class This class exists to demonstrate the assignment of a class prototype- * as an anonymous block.- */-function ShapeFactory(){-}--ShapeFactory.prototype = {- /**- * Creates a new {@link Shape} instance.- * @return A new {@link Shape}- * @type Shape- */- createShape: function(){- return new Shape();- }-}--/**- * An example of a singleton class- * @param ... Arguments represent {@link coordinate}s in the shape.- * @constructor- */-MySingletonShapeFactory = function(){-- /**- * Get the next {@link Shape}- * @type Shape- * @return A new {@link Shape}- */- this.getShape = function(){- return null;- }--}---/**- * Create a new Foo instance.- * @class This is the Foo class. It exists to demonstrate 'nested' classes.- * @constructor- * @see Foo.Bar- */-function Foo(){}--/**- * Creates a new instance of Bar.- * @class This class exists to demonstrate 'nested' classes.- * @constructor- * @see Foo.Bar- */-function Bar(){}--/**- * Nested class- * @constructor- */-Foo.Bar = function(){- /** The x. */ this.x = 2;-}--Foo.Bar.prototype = new Bar();-/** The y. */-Foo.Bar.prototype.y = '3';diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/lend.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/lend.jsdeleted file mode 100644index 92b15d5adff..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/lend.js+++ /dev/null@@ -1,33 +0,0 @@- /** @class */-var Person = Class.create(- /**- @lends Person.prototype- */- {- initialize: function(name) {- this.name = name;- },- say: function(message) {- return this.name + ': ' + message;- }- }- );--/** @lends Person.prototype */-{- /** like say but more musical */- sing: function(song) {- }-}--/** @lends Person */-{- getCount: function() {- }-}--/** @lends Unknown.prototype */-{- notok: function() {- }-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/memberof.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/memberof.jsdeleted file mode 100644index 22a966529bf..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/memberof.js+++ /dev/null@@ -1,20 +0,0 @@-/** @constructor */-pack = function() {- this.init = function(){}- function config(){}-}-- pack.build = function(task) {};--/** @memberOf pack */-pack.install = function() {}--/** @memberOf pack */-pack.install.overwrite = function() {}--/** @memberOf pack */-clean = function() {}---/** @memberOf pack-config */-install = function() {};diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/memberof_constructor.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/memberof_constructor.jsdeleted file mode 100644index c4db8e4f2f3..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/memberof_constructor.js+++ /dev/null@@ -1,15 +0,0 @@-/** @constructor */-function Circle(){}--/**- @constructor- @memberOf Circle.prototype- */-Tangent = function(){};--/**- @member Circle.prototype.Tangent.prototype-*/-getDiameter = function(){};--diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/name.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/name.jsdeleted file mode 100644index e88a51a7101..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/name.js+++ /dev/null@@ -1,19 +0,0 @@-/**- @name Response- @class-*/--Response.prototype = {- /**- @name Response#text- @function- @description- Gets the body of the response as plain text- @returns {String}- Response as text- */-- text: function() {- return this.nativeResponse.responseText;- }-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/namespace_nested.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/namespace_nested.jsdeleted file mode 100644index 46cafa2fa4c..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/namespace_nested.js+++ /dev/null@@ -1,23 +0,0 @@-/**- @namespace This is the first namespace.-*/-ns1 = {};--/**- This is the second namespace.- @namespace-*/-ns1.ns2 = {};--/**- This part of ns1.ns2- @constructor-*/-ns1.ns2.Function1 = function() {-};--ns1.staticFunction = function() {-};--/** A static field in a namespace. */-ns1.ns2.staticField = 1;diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/nocode.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/nocode.jsdeleted file mode 100644index 1cf99bc982e..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/nocode.js+++ /dev/null@@ -1,13 +0,0 @@-/**#nocode+*/- /**- @name star- @function- */- function blahblah() {-- }-/**#nocode-*/--function yaddayadda() {--}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/oblit_anon.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/oblit_anon.jsdeleted file mode 100644index 8d9e9413e93..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/oblit_anon.js+++ /dev/null@@ -1,20 +0,0 @@-/** the options */-opt = Opt.get(- arguments,- {- d: "directory",- c: "conf",- "D[]": "define"- }-);--/** configuration */-opt.conf = {- /** keep */- keep: true,- /** base */- base: getBase(this, {p: properties})-}---diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/overview.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/overview.jsdeleted file mode 100644index 1dfc09b1fc1..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/overview.js+++ /dev/null@@ -1,20 +0,0 @@-/**- * @overview This "library" contains a- * lot of classes and functions.- * @example- <pre>- var x (x < 1);- alert("This 'is' \"code\"");- </pre>- * @name My Cool Library- * @author Joe Smith [email protected]- * @version 0.1- */--/**- * Gets the current foo- * @param {String} fooId The unique identifier for the foo.- * @return {Object} Returns the current foo.- */-function getFoo(fooID){-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/param_inline.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/param_inline.jsdeleted file mode 100644index 09845b28315..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/param_inline.js+++ /dev/null@@ -1,37 +0,0 @@-/**- @constructor- @param columns The number of columns.-*/-function Layout(/**int*/columns){- /**- @param [id] The id of the element.- @param elName The name of the element.- */- this.getElement = function(- /** string */ elName,- /** number|string */ id- ) {- };-- /**- @constructor- */- this.Canvas = function(top, left, /**int*/width, height) {- /** Is it initiated yet? */- this.initiated = true;- }-- this.rotate = function(/**nothing*/) {- }-- /**- @param x- @param y- @param {zoppler} z*/- this.init = function(x, y, /**abbler*/z) {- /** The xyz. */- this.xyz = x+y+z;- this.getXyz = function() {- }- }-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/params_optional.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/params_optional.jsdeleted file mode 100644index 18bf59829cb..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/params_optional.js+++ /dev/null@@ -1,8 +0,0 @@--/**- * @param {Page[]} pages- * @param {number} [id] Specifies the id, if applicable.- * @param {String} [title = This is untitled.] Specifies the title.- */-function Document(pages, id, title){-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/prototype.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/prototype.jsdeleted file mode 100644index 114700837fc..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/prototype.js+++ /dev/null@@ -1,17 +0,0 @@-/** @constructor */-function Article() {-}--Article.prototype.init = function(title) {- /** the instance title */- this.title = title;-- /** the static counter */- Article.counter = 1;-}--a = new Article();-a.Init("my title");--print(a.title);-print(Article.counter);\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/prototype_nested.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/prototype_nested.jsdeleted file mode 100644index e8ca1ced2ca..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/prototype_nested.js+++ /dev/null@@ -1,9 +0,0 @@-/** @constructor */-function Word() {-}--Word.prototype.reverse = function() {-}--Word.prototype.reverse.utf8 = function() {-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/prototype_oblit.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/prototype_oblit.jsdeleted file mode 100644index 6cfc39caf70..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/prototype_oblit.js+++ /dev/null@@ -1,13 +0,0 @@-/** @constructor */-function Article() {-}--Article.prototype = {- /** instance get title */- getTitle: function(){- }-}--/** static get title */-Article.getTitle = function(){-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/prototype_oblit_constructor.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/prototype_oblit_constructor.jsdeleted file mode 100644index 92482486442..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/prototype_oblit_constructor.js+++ /dev/null@@ -1,24 +0,0 @@-/** @constructor */-function Article() {-}--Article.prototype = {- /** @constructor */- Title: function(title) {- /** the value of the Title instance */- this.title = title;- },-- init: function(pages) {- /** the value of the pages of the Article instance */- this.pages = pages;- }-}--f = new Article();-f.init("one two three");--t = new f.Title("my title");--print(f.pages);-print(t.title);\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/public.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/public.jsdeleted file mode 100644index 35d34f6f005..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/public.js+++ /dev/null@@ -1,10 +0,0 @@-/**@constructor*/-function Foo() {- /**- @public- @static- @field- */- var bar = function(x) {- }-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/shared.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/shared.jsdeleted file mode 100644index e1c277a6fcb..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/shared.js+++ /dev/null@@ -1,42 +0,0 @@--/**- * Builtin object.- * @class- * @name Array- */--/**#@+- * Extension to builtin array.- * @memberOf Array- * @method- */--/**- * @returns Boolen if some array members...- */-Array.prototype.some = function(){};--/**- * Change every element of an array.- * @returns Filtered array copy.- */-Array.prototype.filter = function(){};--/**#@-*/---/**- * A first in, first out data structure.- * @constructor- */-Queue = function(){};--/**#@+- * Extension to Queue.- * @memberOf Queue- */--rewind = function(){-}--// should close automatically here.\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/shared2.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/shared2.jsdeleted file mode 100644index 3f7736a777a..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/shared2.js+++ /dev/null@@ -1,2 +0,0 @@-startOver = function(){-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/shortcuts.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/shortcuts.jsdeleted file mode 100644index f738f1e1cdd..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/shortcuts.js+++ /dev/null@@ -1,22 +0,0 @@-// /**#=+-// * {-// * 'D': 'Date.prototype',-// * '$N': 'Number'-// * }-// */-// var D = Date.prototype,-// $N = Number;-//-// D.locale = function(){-// };-//-// /**-// @return {string} The cardinal number string.-// */-// $N.nth = function(n){-// };-//-// LOAD.file = function(){-// }-//-// /**#=-*/\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/static_this.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/static_this.jsdeleted file mode 100644index 9407b20f3d0..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/static_this.js+++ /dev/null@@ -1,13 +0,0 @@-/** the parent */-var box = {};--/** @namespace */-box.holder = {}--box.holder.foo = function() {- /** the counter */- this.counter = 1;-}--box.holder.foo();-print(box.holder.counter);diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/synonyms.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/synonyms.jsdeleted file mode 100644index 4dbad07db5a..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/synonyms.js+++ /dev/null@@ -1,23 +0,0 @@-/**- @class- @inherits Bar#zop as #my_zop-*/-function Foo() {- /** this is a zip. */- this.zip = function() {}-- /** from Bar */- this.my_zop = new Bar().zop;-}--/**- @class- @borrows Foo#zip as this.my_zip-*/-function Bar() {- /** this is a zop. */- this.zop = function() {}-- /** from Foo */- this.my_zip = new Foo().zip;-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/tosource.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/tosource.jsdeleted file mode 100644index 706d47652b8..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/tosource.js+++ /dev/null@@ -1,23 +0,0 @@-/**- * @param {Object} object- * @return {string}- */-function valueOf(object) {}--/**- * @param {Object} object- * @return {string}- */-function toString(object) {}--/**- * @param {Object} object- * @return {string}- */-function toSource(object) {}--/**- * @param {Object} object- * @return {string}- */-function constructor(object) {}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/variable_redefine.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/variable_redefine.jsdeleted file mode 100644index 2c07da09a94..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/app/test/variable_redefine.js+++ /dev/null@@ -1,14 +0,0 @@-/** @constructor */-function Foo() {- var bar = 1;- bar = 2; // redefining a private-- this.baz = 1;- baz = 2; // global-- /** a private */- var blap = {- /** in here */- tada: 1- }-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/changes.txt b/client/javascript/lib/jsdoc/jsdoc-toolkit/changes.txtdeleted file mode 100644index 7c969a06662..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/changes.txt+++ /dev/null@@ -1,47 +0,0 @@-== 2.0.1 ==-- * Fixed bug that prevented @fileOverview tag from being recognized.- * Added support for @fieldOf as a synonym for @field plus @memberOf.- * Added support for @name tag in a @fileOverview comment to control the displayed name of the file.- * Added support for multiple @example tags. ( issue #152 )- * Modified style sheet of jsdoc template to make more readable. ( issue #151 )- * Fixed bug that prevented @since documentation from displaying correctly when it appeared in a class. ( issue #150 )- * Fixed bug that caused inhertited properties to sometimes not resolve correctly. ( issue #144 )- * Modified so that trailing whitespace in @example is always trimmed. ( issue #153 )- * Added support for elseif to JsPlate. (hat tip to fredck)- * Added support for @location urls in the @overview comment to the jsdoc template.--== Changes From Versions 1.4.0 to 2.0.0 ==-- * Upgraded included version of Rhino from 1.6 to 1.7R1.- * Removed circular references in parsed documentation objects.- * Improved inheritance handling, now properties and events can be inherited same as methods.- * Improved handling of cross-file relationships, now having two related objects in separate files is not a problem.- * Improved ability to recognize membership of previously defined objects.- * Added ability to redefine parsing behavior with plugins.- * @methodOf is a synonym for @function and @memberOf.- * Added @default to document default values of members that are objects.- * Added ability to parse and refer to inner functions.- * Fixed bug that appeared when calling a method to set properties of the instance referred to by "this".- * Added ability to automatically create links to other symbols.- * New "jsdoc" template now produces fully W3C valid XHTML.- * Inline parameter type hint comments are now documented.- * Fixed error: Locally scoped variables (declared with var) no longer appear as global.- * It is now possible to run JsDoc Toolkit from any directory.- * Added support for inline {@link ...} tags.- * Added support for the -H command-line option to allow for custom content handlers.- * Tag names @inherits and @scope changed to @borrows and @lends.- ? Combining @constructor in a doclet with @lends now supported.- * Multiple @lend tags now supported.- * Added support for the @constructs tag, used inside a @lends block.- * Added support for the @constant tag.- * Fixed bug that prevented the use of [] as a default value.- * Added support for the @field tag.- * Added support for the @public tag (applied to inner functions).- * @namespace tag can now be applied to functions, not just object literals.- * Added support for the -s command line option to suppress source code output.- * Added new unit test framework.- * Underscored symbols are now treated as if they have a @private tag by default.- * Improved support for anonymous constructors.- * Added support for the nocode meta tag.-\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/conf/sample.conf b/client/javascript/lib/jsdoc/jsdoc-toolkit/conf/sample.confdeleted file mode 100644index ad0f08e658e..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/conf/sample.conf+++ /dev/null@@ -1,31 +0,0 @@-/*- This is an example of one way you could set up a configuration file to more- conveniently define some commandline options. You might like to do this if- you frequently reuse the same options. Note that you don't need to define- every option in this file, you can combine a configuration file with- additional options on the commandline if your wish.-- You would include this configuration file by running JsDoc Toolkit like so:- java -jar jsrun.jar app/run.js -c=conf/sample.conf--*/--{- // source files to use- _: ['app/test/jsdoc_test.js'],-- // document all functions, even uncommented ones- a: true,-- // including those marked @private- p: true,-- // some extra variables I want to include- D: {generatedBy: "Michael Mathews", copyright: "2008"},-- // use this directory as the output directory- d: "docs",-- // use this template- t: "templates/jsdoc"-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/java/build.xml b/client/javascript/lib/jsdoc/jsdoc-toolkit/java/build.xmldeleted file mode 100644index bb845ce3a0e..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/java/build.xml+++ /dev/null@@ -1,36 +0,0 @@-<project>- <target name="clean">- <delete dir="build"/>- </target>-- <target name="compile">- <mkdir dir="build/classes"/>- <javac- srcdir="src" destdir="build/classes"- classpath="./classes/js.jar"- />- </target>-- <target name="jar">- <mkdir dir="build/jar"/>- <jar destfile="build/jar/jsrun.jar" basedir="build/classes">- <manifest>- <attribute name="Main-Class" value="JsRun"/>- <attribute name="Class-Path" value="./java/classes/js.jar"/>- </manifest>- </jar>- </target>-- <target name="debugjar">- <mkdir dir="build/jar"/>- <jar destfile="build/jar/jsdebug.jar" basedir="build/classes">- <manifest>- <attribute name="Main-Class" value="JsDebugRun"/>- <attribute name="Class-Path" value="./java/classes/js.jar"/>- </manifest>- </jar>- </target>-- <target name="clean-build" depends="clean,compile,jar"/>- <target name="clean-debug" depends="clean,compile,debugjar"/>-</project>\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/java/build_1.4.xml b/client/javascript/lib/jsdoc/jsdoc-toolkit/java/build_1.4.xmldeleted file mode 100644index ab408a4c44a..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/java/build_1.4.xml+++ /dev/null@@ -1,36 +0,0 @@-<project default="clean-build"><!-- use this build script if you are stuck with ant version 1.4 -->- <target name="clean">- <delete dir="build"/>- </target>-- <target name="compile">- <mkdir dir="build/classes"/>- <javac- srcdir="src" destdir="build/classes"- classpath="./classes/js.jar"- />- </target>-- <target name="jar">- <mkdir dir="build/jar"/>- <jar jarfile="build/jar/jsrun.jar" basedir="build/classes">- <manifest>- <attribute name="Main-Class" value="JsRun"/>- <attribute name="Class-Path" value="./java/classes/js.jar"/>- </manifest>- </jar>- </target>-- <target name="debugjar">- <mkdir dir="build/jar"/>- <jar jarfile="build/jar/jsdebug.jar" basedir="build/classes">- <manifest>- <attribute name="Main-Class" value="JsDebugRun"/>- <attribute name="Class-Path" value="./java/classes/js.jar"/>- </manifest>- </jar>- </target>-- <target name="clean-build" depends="clean,compile,jar"/>- <target name="clean-debug" depends="clean,compile,debugjar"/>-</project>diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/java/classes/js.jar b/client/javascript/lib/jsdoc/jsdoc-toolkit/java/classes/js.jardeleted file mode 100644index 832ac74a593..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/java/classes/js.jar+++ /dev/null@@ -1,2 +0,0 @@-AnyObjectId[0352cb180c120868ddbc31b4f8e7319d2f26ea62] was removed in git history.-Apache SVN contains full history.\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/java/src/JsDebugRun.java b/client/javascript/lib/jsdoc/jsdoc-toolkit/java/src/JsDebugRun.javadeleted file mode 100755index 319a5c67bc9..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/java/src/JsDebugRun.java+++ /dev/null@@ -1,21 +0,0 @@-/**- * A trivial bootstrap class that simply adds the path to the- * .js file as an argument to the Rhino call. This little hack- * allows the code in the .js file to have access to it's own- * path via the Rhino arguments object. This is necessary to- * allow the .js code to find resource files in a location- * relative to itself.- *- * USAGE: java -jar jsdebug.jar path/to/file.js- */-public class JsDebugRun {- public static void main(String[] args) {- String[] jsargs = {"-j="+args[0]};-- String[] allArgs = new String[jsargs.length + args.length];- System.arraycopy(args, 0, allArgs, 0, args.length);- System.arraycopy(jsargs, 0, allArgs, args.length ,jsargs.length);-- org.mozilla.javascript.tools.debugger.Main.main(allArgs);- }-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/java/src/JsRun.java b/client/javascript/lib/jsdoc/jsdoc-toolkit/java/src/JsRun.javadeleted file mode 100644index 25f519a95e5..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/java/src/JsRun.java+++ /dev/null@@ -1,21 +0,0 @@-/**- * A trivial bootstrap class that simply adds the path to the- * .js file as an argument to the Rhino call. This little hack- * allows the code in the .js file to have access to it's own- * path via the Rhino arguments object. This is necessary to- * allow the .js code to find resource files in a location- * relative to itself.- *- * USAGE: java -jar jsrun.jar path/to/file.js- */-public class JsRun {- public static void main(String[] args) {- String[] jsargs = {"-j="+args[0]};-- String[] allArgs = new String[jsargs.length + args.length];- System.arraycopy(args, 0, allArgs, 0, args.length);- System.arraycopy(jsargs, 0, allArgs, args.length ,jsargs.length);-- org.mozilla.javascript.tools.shell.Main.main(allArgs);- }-}diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/jsdebug.jar b/client/javascript/lib/jsdoc/jsdoc-toolkit/jsdebug.jardeleted file mode 100644index eb533d4847a..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/jsdebug.jar+++ /dev/null@@ -1,2 +0,0 @@-AnyObjectId[a0ac7daa6bfa2633f1e2d27696b8afa8577e986b] was removed in git history.-Apache SVN contains full history.\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/jsrun.jar b/client/javascript/lib/jsdoc/jsdoc-toolkit/jsrun.jardeleted file mode 100755index 65c07fc53f9..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/jsrun.jar+++ /dev/null@@ -1,2 +0,0 @@-AnyObjectId[49c03f4c6f71d4e24f3897794d40585ffc7c20fe] was removed in git history.-Apache SVN contains full history.\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/allclasses.tmpl b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/allclasses.tmpldeleted file mode 100644index 32f43582f85..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/allclasses.tmpl+++ /dev/null@@ -1,17 +0,0 @@-<div align="center">{+new Link().toFile("index.html").withText("Class Index")+}-| {+new Link().toFile("files.html").withText("File Index")+}</div>-<hr />-<h2>Classes</h2>-<ul class="classList">- <for each="thisClass" in="data">- <li>{!- if (thisClass.alias == "_global_") {- output += "<i>"+new Link().toClass(thisClass.alias)+"</i>";- }- else {- output += new Link().toClass(thisClass.alias);- }- !}</li>- </for>-</ul>-<hr />\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/allfiles.tmpl b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/allfiles.tmpldeleted file mode 100644index 37e9915a852..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/allfiles.tmpl+++ /dev/null@@ -1,56 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">- <head>- <meta http-equiv="content-type" content="text/html; charset={+IO.encoding+}"" />- {! Link.base = ""; /* all generated links will be relative to this */ !}- <title>JsDoc Reference - File Index</title>- <meta name="generator" content="JsDoc Toolkit" />-- <style type="text/css">- {+include("static/default.css")+}- </style>- </head>-- <body>- {+include("static/header.html")+}-- <div id="index">- {+publish.classesIndex+}- </div>-- <div id="content">- <h1 class="classTitle">File Index</h1>-- <for each="item" in="data">- <div>- <h2>{+new Link().toSrc(item.alias).withText(item.name)+}</h2>- <if test="item.desc">{+resolveLinks(summarize(item.desc))+}</if>- <dl>- <if test="item.author">- <dt class="heading">Author:</dt>- <dd>{+item.author+}</dd>- </if>- <if test="item.version">- <dt class="heading">Version:</dt>- <dd>{+item.version+}</dd>- </if>- {! var locations = item.comment.getTag('location').map(function($){return $.toString().replace(/(^\$ ?| ?\$$)/g, '').replace(/^HeadURL: https:/g, 'http:');}) !}- <if test="locations.length">- <dt class="heading">Location:</dt>- <for each="location" in="locations">- <dd><a href="{+location+}">{+location+}</a></dd>- </for>- </if>- </dl>- </div>- <hr />- </for>-- </div>- <div class="fineprint" style="clear:both">- <if test="JSDOC.opt.D.copyright">©{+JSDOC.opt.D.copyright+}<br /></if>- Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blankt">JsDoc Toolkit</a> {+JSDOC.VERSION+} on {+new Date()+}- </div>- </body>-</html>\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/class.tmpl b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/class.tmpldeleted file mode 100644index 64e0ccd2e52..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/class.tmpl+++ /dev/null@@ -1,487 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">- <head>- <meta http-equiv="content-type" content="text/html; charset={+IO.encoding+}" />- <meta name="generator" content="JsDoc Toolkit" />- {! Link.base = "../"; /* all generated links will be relative to this */ !}- <title>JsDoc Reference - {+data.alias+}</title>-- <style type="text/css">- {+include("static/default.css")+}- </style>- </head>-- <body>-<!-- ============================== header ================================= -->- <!-- begin static/header.html -->- {+include("static/header.html")+}- <!-- end static/header.html -->--<!-- ============================== classes index ============================ -->- <div id="index">- <!-- begin publish.classesIndex -->- {+publish.classesIndex+}- <!-- end publish.classesIndex -->- </div>-- <div id="content">-<!-- ============================== class title ============================ -->- <h1 class="classTitle">- {!- var classType = "";-- if (data.isBuiltin()) {- classType += "Built-In ";- }-- if (data.isNamespace) {- if (data.is('FUNCTION')) {- classType += "Function ";- }- classType += "Namespace ";- }- else {- classType += "Class ";- }- !}- {+classType+}{+data.alias+}- </h1>--<!-- ============================== class summary ========================== -->- <p class="description">- <if test="data.augments.length"><br />Extends- {+- data.augments- .sort()- .map(- function($) { return new Link().toSymbol($); }- )- .join(", ")- +}.<br />- </if>-- {+resolveLinks(data.classDesc)+}-- <if test="!data.isBuiltin()">{# isn't defined in any file #}- <br /><i>Defined in: </i> {+new Link().toSrc(data.srcFile)+}.- </if>- </p>--<!-- ============================== constructor summary ==================== -->- <if test="!data.isBuiltin() && (data.isNamespace || data.is('CONSTRUCTOR'))">- <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class {+data.alias+}.">- <caption>{+classType+}Summary</caption>- <thead>- <tr>- <th scope="col">Constructor Attributes</th>- <th scope="col">Constructor Name and Description</th>- </tr>- </thead>- <tbody>- <tr>- <td class="attributes">{!- if (data.isPrivate) output += "<private> ";- if (data.isInner) output += "<inner> ";- !} </td>- <td class="nameDescription" {!if (data.comment.getTag("hilited").length){output += 'style="color: red"'}!}>- <div class="fixedFont">- <b>{+ new Link().toSymbol(data.alias).inner('constructor')+}</b><if test="classType != 'Namespace '">{+ makeSignature(data.params) +}</if>- </div>- <div class="description">{+resolveLinks(summarize(data.desc))+}</div>- </td>- </tr>- </tbody>- </table>- </if>--<!-- ============================== properties summary ===================== -->- <if test="data.properties.length">- {! var ownProperties = data.properties.filter(function($){return $.memberOf == data.alias && !$.isNamespace}).sort(makeSortby("name")); !}- <if test="ownProperties.length">- <table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class {+data.alias+}.">- <caption>Field Summary</caption>- <thead>- <tr>- <th scope="col">Field Attributes</th>- <th scope="col">Field Name and Description</th>- </tr>- </thead>- <tbody>- <for each="member" in="ownProperties">- <tr>- <td class="attributes">{!- if (member.isPrivate) output += "<private> ";- if (member.isInner) output += "<inner> ";- if (member.isStatic) output += "<static> ";- if (member.isConstant) output += "<constant> ";- !} </td>- <td class="nameDescription">- <div class="fixedFont">- <if test="member.isStatic && member.memberOf != '_global_'">{+member.memberOf+}.</if><b>{+new Link().toSymbol(member.alias).withText(member.name)+}</b>- </div>- <div class="description">{+resolveLinks(summarize(member.desc))+}</div>- </td>- </tr>- </for>- </tbody>- </table>- </if>-- <if test="data.inheritsFrom.length">- <dl class="inheritsList">- {!- var borrowedMembers = data.properties.filter(function($) {return $.memberOf != data.alias});-- var contributers = [];- borrowedMembers.map(function($) {if (contributers.indexOf($.memberOf) < 0) contributers.push($.memberOf)});- for (var i = 0, l = contributers.length; i < l; i++) {- output +=- "<dt>Fields borrowed from class "+new Link().toSymbol(contributers[i])+": </dt>"- +- "<dd>" +- borrowedMembers- .filter(- function($) { return $.memberOf == contributers[i] }- )- .sort(makeSortby("name"))- .map(- function($) { return new Link().toSymbol($.alias).withText($.name) }- )- .join(", ")- +- "</dd>";- }- !}- </dl>- </if>- </if>--<!-- ============================== methods summary ======================== -->- <if test="data.methods.length">- {! var ownMethods = data.methods.filter(function($){return $.memberOf == data.alias && !$.isNamespace}).sort(makeSortby("name")); !}- <if test="ownMethods.length">- <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class {+data.alias+}.">- <caption>Method Summary</caption>- <thead>- <tr>- <th scope="col">Method Attributes</th>- <th scope="col">Method Name and Description</th>- </tr>- </thead>- <tbody>- <for each="member" in="ownMethods">- <tr>- <td class="attributes">{!- if (member.isPrivate) output += "<private> ";- if (member.isInner) output += "<inner> ";- if (member.isStatic) output += "<static> ";- !} </td>- <td class="nameDescription">- <div class="fixedFont"><if test="member.isStatic && member.memberOf != '_global_'">{+member.memberOf+}.</if><b>{+new Link().toSymbol(member.alias).withText(member.name)+}</b>{+makeSignature(member.params)+}- </div>- <div class="description">{+resolveLinks(summarize(member.desc))+}</div>- </td>- </tr>- </for>- </tbody>- </table>- </if>-- <if test="data.inheritsFrom.length">- <dl class="inheritsList">- {!- var borrowedMembers = data.methods.filter(function($) {return $.memberOf != data.alias});- var contributers = [];- borrowedMembers.map(function($) {if (contributers.indexOf($.memberOf) < 0) contributers.push($.memberOf)});- for (var i = 0, l = contributers.length; i < l; i++) {- output +=- "<dt>Methods borrowed from class "+new Link().toSymbol(contributers[i])+": </dt>"- +- "<dd>" +- borrowedMembers- .filter(- function($) { return $.memberOf == contributers[i] }- )- .sort(makeSortby("name"))- .map(- function($) { return new Link().toSymbol($.alias).withText($.name) }- )- .join(", ")- +- "</dd>";- }-- !}- </dl>- </if>- </if>--<!-- ============================== constructor details ==================== -->- <if test="!data.isBuiltin() && (data.isNamespace || data.is('CONSTRUCTOR'))">- <div class="details"><a name="constructor"> </a>- <div class="sectionTitle">- {+classType+}Detail- </div>-- <div class="fixedFont">{!- if (data.isPrivate) output += "<private> ";- if (data.isInner) output += "<inner> ";- !}- <b>{+ data.alias +}</b><if test="classType != 'Namespace '">{+ makeSignature(data.params) +}</if>- </div>-- <div class="description">- {+resolveLinks(data.desc)+}- <if test="data.author"><br /><i>Author: </i>{+data.author+}.</if>- </div>-- <if test="data.example.length">- <for each="example" in="data.example">- <pre class="code">{+example+}</pre>- </for>- </if>--- <if test="data.params.length">- <dl class="detailList">- <dt class="heading">Parameters:</dt>- <for each="item" in="data.params">- <dt>- {+((item.type)?""+("<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type)+"}</span> ")) : "")+} <b>{+item.name+}</b>- <if test="item.isOptional"><i>Optional<if test="item.defaultValue">, Default: {+item.defaultValue+}</if></i></if>- </dt>- <dd>{+resolveLinks(item.desc)+}</dd>- </for>- </dl>- </if>- <if test="data.deprecated">- <dl class="detailList">- <dt class="heading">Deprecated:</dt>- <dt>- {+resolveLinks(data.deprecated)+}- </dt>- </dl>- </if>- <if test="data.since">- <dl class="detailList">- <dt class="heading">Since:</dt>- <dd>{+ data.since +}</dd>- </dl>- </if>- <if test="data.exceptions.length">- <dl class="detailList">- <dt class="heading">Throws:</dt>- <for each="item" in="data.exceptions">- <dt>- {+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+} <b>{+item.name+}</b>- </dt>- <dd>{+resolveLinks(item.desc)+}</dd>- </for>- </dl>- </if>- <if test="data.returns.length">- <dl class="detailList">- <dt class="heading">Returns:</dt>- <for each="item" in="data.returns">- <dd>{+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+}{+resolveLinks(item.desc)+}</dd>- </for>- </dl>- </if>- <if test="data.requires.length">- <dl class="detailList">- <dt class="heading">Requires:</dt>- <for each="item" in="data.requires">- <dd>{+ resolveLinks(item) +}</dd>- </for>- </dl>- </if>- <if test="data.see.length">- <dl class="detailList">- <dt class="heading">See:</dt>- <for each="item" in="data.see">- <dd>{+ new Link().toSymbol(item) +}</dd>- </for>- </dl>- </if>-- </div>- </if>--<!-- ============================== field details ========================== -->- <if test="defined(ownProperties) && ownProperties.length">- <div class="sectionTitle">- Field Detail- </div>- <for each="member" in="ownProperties">- <a name="{+Link.symbolNameToLinkName(member)+}"> </a>- <div class="fixedFont">{!- if (member.isPrivate) output += "<private> ";- if (member.isInner) output += "<inner> ";- if (member.isStatic) output += "<static> ";- if (member.isConstant) output += "<constant> ";- !}-- <if test="member.type"><span class="light">{{+new Link().toSymbol(member.type)+}}</span></if>- <if test="member.isStatic && member.memberOf != '_global_'"><span class="light">{+member.memberOf+}.</span></if><b>{+member.name+}</b>-- </div>- <div class="description">- {+resolveLinks(member.desc)+}- <if test="member.srcFile != data.srcFile">- <br />- <i>Defined in: </i> {+new Link().toSrc(member.srcFile)+}.- </if>- <if test="member.author"><br /><i>Author: </i>{+member.author+}.</if>- </div>-- <if test="member.example.length">- <for each="example" in="member.example">- <pre class="code">{+example+}</pre>- </for>- </if>-- <if test="member.deprecated">- <dl class="detailList">- <dt class="heading">Deprecated:</dt>- <dt>- {+ member.deprecated +}- </dt>- </dl>- </if>- <if test="member.since">- <dl class="detailList">- <dt class="heading">Since:</dt>- <dd>{+ member.since +}</dd>- </dl>- </if>- <if test="member.see.length">- <dl class="detailList">- <dt class="heading">See:</dt>- <for each="item" in="member.see">- <dd>{+ new Link().toSymbol(item) +}</dd>- </for>- </dl>- </if>- <if test="member.defaultValue">- <dl class="detailList">- <dt class="heading">Default Value:</dt>- <dd>- {+resolveLinks(member.defaultValue)+}- </dd>- </dl>- </if>-- <if test="!$member_last"><hr /></if>- </for>- </if>--<!-- ============================== method details ========================= -->- <if test="defined(ownMethods) && ownMethods.length">- <div class="sectionTitle">- Method Detail- </div>- <for each="member" in="ownMethods">- <a name="{+Link.symbolNameToLinkName(member)+}"> </a>- <div class="fixedFont">{!- if (member.isPrivate) output += "<private> ";- if (member.isInner) output += "<inner> ";- if (member.isStatic) output += "<static> ";- !}-- <if test="member.type"><span class="light">{{+new Link().toSymbol(member.type)+}}</span></if>- <if test="member.isStatic && member.memberOf != '_global_'"><span class="light">{+member.memberOf+}.</span></if><b>{+member.name+}</b>{+makeSignature(member.params)+}-- </div>- <div class="description">- {+resolveLinks(member.desc)+}- <if test="member.srcFile != data.srcFile">- <br />- <i>Defined in: </i> {+new Link().toSrc(member.srcFile)+}.- </if>- <if test="member.author"><br /><i>Author: </i>{+member.author+}.</if>- </div>-- <if test="member.example.length">- <for each="example" in="member.example">- <pre class="code">{+example+}</pre>- </for>- </if>-- <if test="member.params.length">- <dl class="detailList">- <dt class="heading">Parameters:</dt>- <for each="item" in="member.params">- <dt>- {+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+}<b>{+item.name+}</b>- <if test="item.isOptional"><i>Optional<if test="item.defaultValue">, Default: {+item.defaultValue+}</if></i></if>- </dt>- <dd>{+resolveLinks(item.desc)+}</dd>- </for>- </dl>- </if>- <if test="member.deprecated">- <dl class="detailList">- <dt class="heading">Deprecated:</dt>- <dt>- {+member.deprecated+}- </dt>- </dl>- </if>- <if test="member.since">- <dl class="detailList">- <dt class="heading">Since:</dt>- <dd>{+ member.since +}</dd>- </dl>- </dl>- </if>- <if test="member.exceptions.length">- <dl class="detailList">- <dt class="heading">Throws:</dt>- <for each="item" in="member.exceptions">- <dt>- {+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+} <b>{+item.name+}</b>- </dt>- <dd>{+resolveLinks(item.desc)+}</dd>- </for>- </dl>- </if>- <if test="member.returns.length">- <dl class="detailList">- <dt class="heading">Returns:</dt>- <for each="item" in="member.returns">- <dd>{+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+}{+resolveLinks(item.desc)+}</dd>- </for>- </dl>- </if>- <if test="member.requires.length">- <dl class="detailList">- <dt class="heading">Requires:</dt>- <for each="item" in="member.requires">- <dd>{+ resolveLinks(item) +}</dd>- </for>- </dl>- </if>- <if test="member.see.length">- <dl class="detailList">- <dt class="heading">See:</dt>- <for each="item" in="member.see">- <dd>{+ new Link().toSymbol(item) +}</dd>- </for>- </dl>- </if>-- <if test="!$member_last"><hr /></if>- </for>- </if>-- <hr />- </div>--<!-- ============================== footer ================================= -->- <div class="fineprint" style="clear:both">- <if test="JSDOC.opt.D.copyright">©{+JSDOC.opt.D.copyright+}<br /></if>- Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> {+JSDOC.VERSION+} on {+new Date()+}- </div>- </body>-</html>diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/index.tmpl b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/index.tmpldeleted file mode 100644index 61b93cf1c6b..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/index.tmpl+++ /dev/null@@ -1,39 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">- <head>- <meta http-equiv="content-type" content="text/html; charset={+IO.encoding+}"" />-- <title>JsDoc Reference - Index</title>- <meta name="generator" content="JsDoc Toolkit" />-- <style type="text/css">- {+include("static/default.css")+}- </style>- </head>-- <body>- {+include("static/header.html")+}-- <div id="index">- {+publish.classesIndex+}- </div>-- <div id="content">- <h1 class="classTitle">Class Index</h1>-- <for each="thisClass" in="data">- <div>- <h2>{+(new Link().toSymbol(thisClass.alias))+}</h2>- {+resolveLinks(summarize(thisClass.classDesc))+}- </div>- <hr />- </for>-- </div>- <div class="fineprint" style="clear:both">- <if test="JSDOC.opt.D.copyright">©{+JSDOC.opt.D.copyright+}<br /></if>- Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blankt">JsDoc Toolkit</a> {+JSDOC.VERSION+} on {+new Date()+}- </div>- </body>-</html>\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/publish.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/publish.jsdeleted file mode 100644index 9e43692c566..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/publish.js+++ /dev/null@@ -1,166 +0,0 @@-function publish(symbolSet) {- publish.conf = { // trailing slash expected for dirs- ext: ".html",- outDir: JSDOC.opt.d || SYS.pwd+"../out/jsdoc/",- templatesDir: SYS.pwd+"../templates/jsdoc/",- symbolsDir: "symbols/",- srcDir: "symbols/src/"- };--- if (JSDOC.opt.s && defined(Link) && Link.prototype._makeSrcLink) {- Link.prototype._makeSrcLink = function(srcFilePath) {- return "<"+srcFilePath+">";- }- }-- IO.mkPath((publish.conf.outDir+"symbols/src").split("/"));-- // used to check the details of things being linked to- Link.symbolSet = symbolSet;-- try {- var classTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"class.tmpl");- var classesTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"allclasses.tmpl");- }- catch(e) {- print(e.message);- quit();- }-- // filters- function hasNoParent($) {return ($.memberOf == "")}- function isaFile($) {return ($.is("FILE"))}- function isaClass($) {return ($.is("CONSTRUCTOR") || $.isNamespace)}-- var symbols = symbolSet.toArray();-- var files = JSDOC.opt.srcFiles;- for (var i = 0, l = files.length; i < l; i++) {- var file = files[i];- var srcDir = publish.conf.outDir + "symbols/src/";- makeSrcFile(file, srcDir);- }-- var classes = symbols.filter(isaClass).sort(makeSortby("alias"));-- Link.base = "../";- publish.classesIndex = classesTemplate.process(classes); // kept in memory-- for (var i = 0, l = classes.length; i < l; i++) {- var symbol = classes[i];- var output = "";- output = classTemplate.process(symbol);-- IO.saveFile(publish.conf.outDir+"symbols/", symbol.alias+publish.conf.ext, output);- }-- // regenrate the index with different relative links- Link.base = "";- publish.classesIndex = classesTemplate.process(classes);-- try {- var classesindexTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"index.tmpl");- }- catch(e) { print(e.message); quit(); }-- var classesIndex = classesindexTemplate.process(classes);- IO.saveFile(publish.conf.outDir, "index"+publish.conf.ext, classesIndex);- classesindexTemplate = classesIndex = classes = null;-- try {- var fileindexTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"allfiles.tmpl");- }- catch(e) { print(e.message); quit(); }-- var documentedFiles = symbols.filter(isaFile);- var allFiles = [];-- for (var i = 0; i < files.length; i++) {- allFiles.push(new JSDOC.Symbol(files[i], [], "FILE", new JSDOC.DocComment("/** */")));- }-- for (var i = 0; i < documentedFiles.length; i++) {- var offset = files.indexOf(documentedFiles[i].alias);- allFiles[offset] = documentedFiles[i];- }-- allFiles = allFiles.sort(makeSortby("name"));-- var filesIndex = fileindexTemplate.process(allFiles);- IO.saveFile(publish.conf.outDir, "files"+publish.conf.ext, filesIndex);- fileindexTemplate = filesIndex = files = null;-}---/** Just the first sentence. */-function summarize(desc) {- if (typeof desc != "undefined")- return desc.match(/([\w\W]+?\.)[^a-z0-9]/i)? RegExp.$1 : desc;-}--/** make a symbol sorter by some attribute */-function makeSortby(attribute) {- return function(a, b) {- if (a[attribute] != undefined && b[attribute] != undefined) {- a = a[attribute].toLowerCase();- b = b[attribute].toLowerCase();- if (a < b) return -1;- if (a > b) return 1;- return 0;- }- }-}--function include(path) {- var path = publish.conf.templatesDir+path;- return IO.readFile(path);-}--function makeSrcFile(path, srcDir, name) {- if (JSDOC.opt.s) return;-- if (!name) {- name = path.replace(/\.\.?[\\\/]/g, "").replace(/[\\\/]/g, "_");- name = name.replace(/\:/g, "_");- }-- var src = {path: path, name:name, charset: IO.encoding, hilited: ""};-- if (defined(JSDOC.PluginManager)) {- JSDOC.PluginManager.run("onPublishSrc", src);- }-- if (src.hilited) {- IO.saveFile(srcDir, name+publish.conf.ext, src.hilited);- }-}--function makeSignature(params) {- if (!params) return "()";- var signature = "("- +- params.filter(- function($) {- return $.name.indexOf(".") == -1; // don't show config params in signature- }- ).map(- function($) {- return $.name;- }- ).join(", ")- +- ")";- return signature;-}--/** Find symbol {@link ...} strings in text and turn into html links */-function resolveLinks(str, from) {- str = str.replace(/\{@link ([^} ]+) ?\}/gi,- function(match, symbolName) {- return new Link().toSymbol(symbolName);- }- );-- return str;-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/static/default.css b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/static/default.cssdeleted file mode 100644index 97e021ef630..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/static/default.css+++ /dev/null@@ -1,162 +0,0 @@-/* default.css */-body-{- font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;- width: 800px;-}--.header-{- clear: both;- background-color: #ccc;- padding: 8px;-}--h1-{- font-size: 150%;- font-weight: bold;- padding: 0;- margin: 1em 0 0 .3em;-}--hr-{- border: none 0;- border-top: 1px solid #7F8FB1;- height: 1px;-}--pre.code-{- display: block;- padding: 8px;- border: 1px dashed #ccc;-}--#index-{- margin-top: 24px;- float: left;- width: 160px;- position: absolute;- left: 8px;- background-color: #F3F3F3;- padding: 8px;-}--#content-{- margin-left: 190px;- width: 600px;-}--.classList-{- list-style-type: none;- padding: 0;- margin: 0 0 0 8px;- font-family: arial, sans-serif;- font-size: 1em;- overflow: auto;-}--.classList li-{- padding: 0;- margin: 0 0 8px 0;-}--.summaryTable { width: 100%; }--h1.classTitle-{- font-size:170%;- line-height:130%;-}--h2 { font-size: 110%; }-caption, div.sectionTitle-{- background-color: #7F8FB1;- color: #fff;- font-size:130%;- text-align: left;- padding: 2px 6px 2px 6px;- border: 1px #7F8FB1 solid;-}--div.sectionTitle { margin-bottom: 8px; }-.summaryTable thead { display: none; }--.summaryTable td-{- vertical-align: top;- padding: 4px;- border-bottom: 1px #7F8FB1 solid;- border-right: 1px #7F8FB1 solid;-}--/*col#summaryAttributes {}*/-.summaryTable td.attributes-{- border-left: 1px #7F8FB1 solid;- width: 140px;- text-align: right;-}--td.attributes, .fixedFont-{- line-height: 15px;- color: #002EBE;- font-family: "Courier New",Courier,monospace;- font-size: 13px;-}--.summaryTable td.nameDescription-{- text-align: left;- font-size: 13px;- line-height: 15px;-}--.summaryTable td.nameDescription, .description-{- line-height: 15px;- padding: 4px;- padding-left: 4px;-}--.summaryTable { margin-bottom: 8px; }--ul.inheritsList-{- list-style: square;- margin-left: 20px;- padding-left: 0;-}--.detailList {- margin-left: 20px;- line-height: 15px;-}-.detailList dt { margin-left: 20px; }--.detailList .heading-{- font-weight: bold;- padding-bottom: 6px;- margin-left: 0;-}--.light, td.attributes, .light a:link, .light a:visited-{- color: #777;- font-style: italic;-}--.fineprint-{- text-align: right;- font-size: 10px;-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/static/header.html b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/static/header.htmldeleted file mode 100644index 353b735a4ca..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/static/header.html+++ /dev/null@@ -1,2 +0,0 @@-<div id="header">-</div>\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/static/index.html b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/static/index.htmldeleted file mode 100644index 661f6f67d18..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/static/index.html+++ /dev/null@@ -1,19 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">-<head>- <meta http-equiv="content-type" content="text/html; charset=utf-8" />- <title>Generated Javascript Documentation</title>-</head>-<frameset cols="20%,80%">- <frame src="allclasses-frame.html" name="packageFrame" />- <frame src="splash.html" name="classFrame" />- <noframes>- <body>- <p>- This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.- </p>- </body>- </noframes>-</frameset>-</html>\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/symbol.tmpl b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/symbol.tmpldeleted file mode 100644index f8f4bd1f6f2..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/jsdoc/symbol.tmpl+++ /dev/null@@ -1,35 +0,0 @@-<symbol alias="{+data.alias+}">- <name>{+data.name+}</name>- <memberOf>{+data.memberOf+}</memberOf>- <isStatic>{+data.isStatic+}</isStatic>- <isa>{+data.isa+}</isa>- <desc>{+data.desc+}</desc>- <classDesc>{+data.classDesc+}</classDesc>-- <methods><for each="method" in="data.methods">- <method>- <name>{+method.name+}</name>- <memberOf>{+method.memberOf+}</memberOf>- <isStatic>{+method.isStatic+}</isStatic>- <desc>{+method.desc+}</desc>- <params><for each="param" in="method.params">- <param>- <type>{+param.type+}</type>- <name>{+param.name+}</name>- <desc>{+param.desc+}</desc>- <defaultValue>{+param.defaultValue+}</defaultValue>- </param></for>- </params>- </method></for>- </methods>-- <properties><for each="property" in="data.properties">- <property>- <name>{+property.name+}</name>- <memberOf>{+property.memberOf+}</memberOf>- <isStatic>{+property.isStatic+}</isStatic>- <desc>{+property.desc+}</desc>- <type>{+property.type+}</type>- </property></for>- </properties>-</symbol>diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/allclasses.tmpl b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/allclasses.tmpldeleted file mode 100644index 32f43582f85..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/allclasses.tmpl+++ /dev/null@@ -1,17 +0,0 @@-<div align="center">{+new Link().toFile("index.html").withText("Class Index")+}-| {+new Link().toFile("files.html").withText("File Index")+}</div>-<hr />-<h2>Classes</h2>-<ul class="classList">- <for each="thisClass" in="data">- <li>{!- if (thisClass.alias == "_global_") {- output += "<i>"+new Link().toClass(thisClass.alias)+"</i>";- }- else {- output += new Link().toClass(thisClass.alias);- }- !}</li>- </for>-</ul>-<hr />\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/allfiles.tmpl b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/allfiles.tmpldeleted file mode 100644index 37e9915a852..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/allfiles.tmpl+++ /dev/null@@ -1,56 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">- <head>- <meta http-equiv="content-type" content="text/html; charset={+IO.encoding+}"" />- {! Link.base = ""; /* all generated links will be relative to this */ !}- <title>JsDoc Reference - File Index</title>- <meta name="generator" content="JsDoc Toolkit" />-- <style type="text/css">- {+include("static/default.css")+}- </style>- </head>-- <body>- {+include("static/header.html")+}-- <div id="index">- {+publish.classesIndex+}- </div>-- <div id="content">- <h1 class="classTitle">File Index</h1>-- <for each="item" in="data">- <div>- <h2>{+new Link().toSrc(item.alias).withText(item.name)+}</h2>- <if test="item.desc">{+resolveLinks(summarize(item.desc))+}</if>- <dl>- <if test="item.author">- <dt class="heading">Author:</dt>- <dd>{+item.author+}</dd>- </if>- <if test="item.version">- <dt class="heading">Version:</dt>- <dd>{+item.version+}</dd>- </if>- {! var locations = item.comment.getTag('location').map(function($){return $.toString().replace(/(^\$ ?| ?\$$)/g, '').replace(/^HeadURL: https:/g, 'http:');}) !}- <if test="locations.length">- <dt class="heading">Location:</dt>- <for each="location" in="locations">- <dd><a href="{+location+}">{+location+}</a></dd>- </for>- </if>- </dl>- </div>- <hr />- </for>-- </div>- <div class="fineprint" style="clear:both">- <if test="JSDOC.opt.D.copyright">©{+JSDOC.opt.D.copyright+}<br /></if>- Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blankt">JsDoc Toolkit</a> {+JSDOC.VERSION+} on {+new Date()+}- </div>- </body>-</html>\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/class.tmpl b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/class.tmpldeleted file mode 100644index 64e0ccd2e52..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/class.tmpl+++ /dev/null@@ -1,487 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">- <head>- <meta http-equiv="content-type" content="text/html; charset={+IO.encoding+}" />- <meta name="generator" content="JsDoc Toolkit" />- {! Link.base = "../"; /* all generated links will be relative to this */ !}- <title>JsDoc Reference - {+data.alias+}</title>-- <style type="text/css">- {+include("static/default.css")+}- </style>- </head>-- <body>-<!-- ============================== header ================================= -->- <!-- begin static/header.html -->- {+include("static/header.html")+}- <!-- end static/header.html -->--<!-- ============================== classes index ============================ -->- <div id="index">- <!-- begin publish.classesIndex -->- {+publish.classesIndex+}- <!-- end publish.classesIndex -->- </div>-- <div id="content">-<!-- ============================== class title ============================ -->- <h1 class="classTitle">- {!- var classType = "";-- if (data.isBuiltin()) {- classType += "Built-In ";- }-- if (data.isNamespace) {- if (data.is('FUNCTION')) {- classType += "Function ";- }- classType += "Namespace ";- }- else {- classType += "Class ";- }- !}- {+classType+}{+data.alias+}- </h1>--<!-- ============================== class summary ========================== -->- <p class="description">- <if test="data.augments.length"><br />Extends- {+- data.augments- .sort()- .map(- function($) { return new Link().toSymbol($); }- )- .join(", ")- +}.<br />- </if>-- {+resolveLinks(data.classDesc)+}-- <if test="!data.isBuiltin()">{# isn't defined in any file #}- <br /><i>Defined in: </i> {+new Link().toSrc(data.srcFile)+}.- </if>- </p>--<!-- ============================== constructor summary ==================== -->- <if test="!data.isBuiltin() && (data.isNamespace || data.is('CONSTRUCTOR'))">- <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class {+data.alias+}.">- <caption>{+classType+}Summary</caption>- <thead>- <tr>- <th scope="col">Constructor Attributes</th>- <th scope="col">Constructor Name and Description</th>- </tr>- </thead>- <tbody>- <tr>- <td class="attributes">{!- if (data.isPrivate) output += "<private> ";- if (data.isInner) output += "<inner> ";- !} </td>- <td class="nameDescription" {!if (data.comment.getTag("hilited").length){output += 'style="color: red"'}!}>- <div class="fixedFont">- <b>{+ new Link().toSymbol(data.alias).inner('constructor')+}</b><if test="classType != 'Namespace '">{+ makeSignature(data.params) +}</if>- </div>- <div class="description">{+resolveLinks(summarize(data.desc))+}</div>- </td>- </tr>- </tbody>- </table>- </if>--<!-- ============================== properties summary ===================== -->- <if test="data.properties.length">- {! var ownProperties = data.properties.filter(function($){return $.memberOf == data.alias && !$.isNamespace}).sort(makeSortby("name")); !}- <if test="ownProperties.length">- <table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class {+data.alias+}.">- <caption>Field Summary</caption>- <thead>- <tr>- <th scope="col">Field Attributes</th>- <th scope="col">Field Name and Description</th>- </tr>- </thead>- <tbody>- <for each="member" in="ownProperties">- <tr>- <td class="attributes">{!- if (member.isPrivate) output += "<private> ";- if (member.isInner) output += "<inner> ";- if (member.isStatic) output += "<static> ";- if (member.isConstant) output += "<constant> ";- !} </td>- <td class="nameDescription">- <div class="fixedFont">- <if test="member.isStatic && member.memberOf != '_global_'">{+member.memberOf+}.</if><b>{+new Link().toSymbol(member.alias).withText(member.name)+}</b>- </div>- <div class="description">{+resolveLinks(summarize(member.desc))+}</div>- </td>- </tr>- </for>- </tbody>- </table>- </if>-- <if test="data.inheritsFrom.length">- <dl class="inheritsList">- {!- var borrowedMembers = data.properties.filter(function($) {return $.memberOf != data.alias});-- var contributers = [];- borrowedMembers.map(function($) {if (contributers.indexOf($.memberOf) < 0) contributers.push($.memberOf)});- for (var i = 0, l = contributers.length; i < l; i++) {- output +=- "<dt>Fields borrowed from class "+new Link().toSymbol(contributers[i])+": </dt>"- +- "<dd>" +- borrowedMembers- .filter(- function($) { return $.memberOf == contributers[i] }- )- .sort(makeSortby("name"))- .map(- function($) { return new Link().toSymbol($.alias).withText($.name) }- )- .join(", ")- +- "</dd>";- }- !}- </dl>- </if>- </if>--<!-- ============================== methods summary ======================== -->- <if test="data.methods.length">- {! var ownMethods = data.methods.filter(function($){return $.memberOf == data.alias && !$.isNamespace}).sort(makeSortby("name")); !}- <if test="ownMethods.length">- <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class {+data.alias+}.">- <caption>Method Summary</caption>- <thead>- <tr>- <th scope="col">Method Attributes</th>- <th scope="col">Method Name and Description</th>- </tr>- </thead>- <tbody>- <for each="member" in="ownMethods">- <tr>- <td class="attributes">{!- if (member.isPrivate) output += "<private> ";- if (member.isInner) output += "<inner> ";- if (member.isStatic) output += "<static> ";- !} </td>- <td class="nameDescription">- <div class="fixedFont"><if test="member.isStatic && member.memberOf != '_global_'">{+member.memberOf+}.</if><b>{+new Link().toSymbol(member.alias).withText(member.name)+}</b>{+makeSignature(member.params)+}- </div>- <div class="description">{+resolveLinks(summarize(member.desc))+}</div>- </td>- </tr>- </for>- </tbody>- </table>- </if>-- <if test="data.inheritsFrom.length">- <dl class="inheritsList">- {!- var borrowedMembers = data.methods.filter(function($) {return $.memberOf != data.alias});- var contributers = [];- borrowedMembers.map(function($) {if (contributers.indexOf($.memberOf) < 0) contributers.push($.memberOf)});- for (var i = 0, l = contributers.length; i < l; i++) {- output +=- "<dt>Methods borrowed from class "+new Link().toSymbol(contributers[i])+": </dt>"- +- "<dd>" +- borrowedMembers- .filter(- function($) { return $.memberOf == contributers[i] }- )- .sort(makeSortby("name"))- .map(- function($) { return new Link().toSymbol($.alias).withText($.name) }- )- .join(", ")- +- "</dd>";- }-- !}- </dl>- </if>- </if>--<!-- ============================== constructor details ==================== -->- <if test="!data.isBuiltin() && (data.isNamespace || data.is('CONSTRUCTOR'))">- <div class="details"><a name="constructor"> </a>- <div class="sectionTitle">- {+classType+}Detail- </div>-- <div class="fixedFont">{!- if (data.isPrivate) output += "<private> ";- if (data.isInner) output += "<inner> ";- !}- <b>{+ data.alias +}</b><if test="classType != 'Namespace '">{+ makeSignature(data.params) +}</if>- </div>-- <div class="description">- {+resolveLinks(data.desc)+}- <if test="data.author"><br /><i>Author: </i>{+data.author+}.</if>- </div>-- <if test="data.example.length">- <for each="example" in="data.example">- <pre class="code">{+example+}</pre>- </for>- </if>--- <if test="data.params.length">- <dl class="detailList">- <dt class="heading">Parameters:</dt>- <for each="item" in="data.params">- <dt>- {+((item.type)?""+("<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type)+"}</span> ")) : "")+} <b>{+item.name+}</b>- <if test="item.isOptional"><i>Optional<if test="item.defaultValue">, Default: {+item.defaultValue+}</if></i></if>- </dt>- <dd>{+resolveLinks(item.desc)+}</dd>- </for>- </dl>- </if>- <if test="data.deprecated">- <dl class="detailList">- <dt class="heading">Deprecated:</dt>- <dt>- {+resolveLinks(data.deprecated)+}- </dt>- </dl>- </if>- <if test="data.since">- <dl class="detailList">- <dt class="heading">Since:</dt>- <dd>{+ data.since +}</dd>- </dl>- </if>- <if test="data.exceptions.length">- <dl class="detailList">- <dt class="heading">Throws:</dt>- <for each="item" in="data.exceptions">- <dt>- {+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+} <b>{+item.name+}</b>- </dt>- <dd>{+resolveLinks(item.desc)+}</dd>- </for>- </dl>- </if>- <if test="data.returns.length">- <dl class="detailList">- <dt class="heading">Returns:</dt>- <for each="item" in="data.returns">- <dd>{+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+}{+resolveLinks(item.desc)+}</dd>- </for>- </dl>- </if>- <if test="data.requires.length">- <dl class="detailList">- <dt class="heading">Requires:</dt>- <for each="item" in="data.requires">- <dd>{+ resolveLinks(item) +}</dd>- </for>- </dl>- </if>- <if test="data.see.length">- <dl class="detailList">- <dt class="heading">See:</dt>- <for each="item" in="data.see">- <dd>{+ new Link().toSymbol(item) +}</dd>- </for>- </dl>- </if>-- </div>- </if>--<!-- ============================== field details ========================== -->- <if test="defined(ownProperties) && ownProperties.length">- <div class="sectionTitle">- Field Detail- </div>- <for each="member" in="ownProperties">- <a name="{+Link.symbolNameToLinkName(member)+}"> </a>- <div class="fixedFont">{!- if (member.isPrivate) output += "<private> ";- if (member.isInner) output += "<inner> ";- if (member.isStatic) output += "<static> ";- if (member.isConstant) output += "<constant> ";- !}-- <if test="member.type"><span class="light">{{+new Link().toSymbol(member.type)+}}</span></if>- <if test="member.isStatic && member.memberOf != '_global_'"><span class="light">{+member.memberOf+}.</span></if><b>{+member.name+}</b>-- </div>- <div class="description">- {+resolveLinks(member.desc)+}- <if test="member.srcFile != data.srcFile">- <br />- <i>Defined in: </i> {+new Link().toSrc(member.srcFile)+}.- </if>- <if test="member.author"><br /><i>Author: </i>{+member.author+}.</if>- </div>-- <if test="member.example.length">- <for each="example" in="member.example">- <pre class="code">{+example+}</pre>- </for>- </if>-- <if test="member.deprecated">- <dl class="detailList">- <dt class="heading">Deprecated:</dt>- <dt>- {+ member.deprecated +}- </dt>- </dl>- </if>- <if test="member.since">- <dl class="detailList">- <dt class="heading">Since:</dt>- <dd>{+ member.since +}</dd>- </dl>- </if>- <if test="member.see.length">- <dl class="detailList">- <dt class="heading">See:</dt>- <for each="item" in="member.see">- <dd>{+ new Link().toSymbol(item) +}</dd>- </for>- </dl>- </if>- <if test="member.defaultValue">- <dl class="detailList">- <dt class="heading">Default Value:</dt>- <dd>- {+resolveLinks(member.defaultValue)+}- </dd>- </dl>- </if>-- <if test="!$member_last"><hr /></if>- </for>- </if>--<!-- ============================== method details ========================= -->- <if test="defined(ownMethods) && ownMethods.length">- <div class="sectionTitle">- Method Detail- </div>- <for each="member" in="ownMethods">- <a name="{+Link.symbolNameToLinkName(member)+}"> </a>- <div class="fixedFont">{!- if (member.isPrivate) output += "<private> ";- if (member.isInner) output += "<inner> ";- if (member.isStatic) output += "<static> ";- !}-- <if test="member.type"><span class="light">{{+new Link().toSymbol(member.type)+}}</span></if>- <if test="member.isStatic && member.memberOf != '_global_'"><span class="light">{+member.memberOf+}.</span></if><b>{+member.name+}</b>{+makeSignature(member.params)+}-- </div>- <div class="description">- {+resolveLinks(member.desc)+}- <if test="member.srcFile != data.srcFile">- <br />- <i>Defined in: </i> {+new Link().toSrc(member.srcFile)+}.- </if>- <if test="member.author"><br /><i>Author: </i>{+member.author+}.</if>- </div>-- <if test="member.example.length">- <for each="example" in="member.example">- <pre class="code">{+example+}</pre>- </for>- </if>-- <if test="member.params.length">- <dl class="detailList">- <dt class="heading">Parameters:</dt>- <for each="item" in="member.params">- <dt>- {+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+}<b>{+item.name+}</b>- <if test="item.isOptional"><i>Optional<if test="item.defaultValue">, Default: {+item.defaultValue+}</if></i></if>- </dt>- <dd>{+resolveLinks(item.desc)+}</dd>- </for>- </dl>- </if>- <if test="member.deprecated">- <dl class="detailList">- <dt class="heading">Deprecated:</dt>- <dt>- {+member.deprecated+}- </dt>- </dl>- </if>- <if test="member.since">- <dl class="detailList">- <dt class="heading">Since:</dt>- <dd>{+ member.since +}</dd>- </dl>- </dl>- </if>- <if test="member.exceptions.length">- <dl class="detailList">- <dt class="heading">Throws:</dt>- <for each="item" in="member.exceptions">- <dt>- {+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+} <b>{+item.name+}</b>- </dt>- <dd>{+resolveLinks(item.desc)+}</dd>- </for>- </dl>- </if>- <if test="member.returns.length">- <dl class="detailList">- <dt class="heading">Returns:</dt>- <for each="item" in="member.returns">- <dd>{+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+}{+resolveLinks(item.desc)+}</dd>- </for>- </dl>- </if>- <if test="member.requires.length">- <dl class="detailList">- <dt class="heading">Requires:</dt>- <for each="item" in="member.requires">- <dd>{+ resolveLinks(item) +}</dd>- </for>- </dl>- </if>- <if test="member.see.length">- <dl class="detailList">- <dt class="heading">See:</dt>- <for each="item" in="member.see">- <dd>{+ new Link().toSymbol(item) +}</dd>- </for>- </dl>- </if>-- <if test="!$member_last"><hr /></if>- </for>- </if>-- <hr />- </div>--<!-- ============================== footer ================================= -->- <div class="fineprint" style="clear:both">- <if test="JSDOC.opt.D.copyright">©{+JSDOC.opt.D.copyright+}<br /></if>- Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> {+JSDOC.VERSION+} on {+new Date()+}- </div>- </body>-</html>diff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/index.tmpl b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/index.tmpldeleted file mode 100644index 61b93cf1c6b..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/index.tmpl+++ /dev/null@@ -1,39 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">- <head>- <meta http-equiv="content-type" content="text/html; charset={+IO.encoding+}"" />-- <title>JsDoc Reference - Index</title>- <meta name="generator" content="JsDoc Toolkit" />-- <style type="text/css">- {+include("static/default.css")+}- </style>- </head>-- <body>- {+include("static/header.html")+}-- <div id="index">- {+publish.classesIndex+}- </div>-- <div id="content">- <h1 class="classTitle">Class Index</h1>-- <for each="thisClass" in="data">- <div>- <h2>{+(new Link().toSymbol(thisClass.alias))+}</h2>- {+resolveLinks(summarize(thisClass.classDesc))+}- </div>- <hr />- </for>-- </div>- <div class="fineprint" style="clear:both">- <if test="JSDOC.opt.D.copyright">©{+JSDOC.opt.D.copyright+}<br /></if>- Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blankt">JsDoc Toolkit</a> {+JSDOC.VERSION+} on {+new Date()+}- </div>- </body>-</html>\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/publish.js b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/publish.jsdeleted file mode 100644index 9e43692c566..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/publish.js+++ /dev/null@@ -1,166 +0,0 @@-function publish(symbolSet) {- publish.conf = { // trailing slash expected for dirs- ext: ".html",- outDir: JSDOC.opt.d || SYS.pwd+"../out/jsdoc/",- templatesDir: SYS.pwd+"../templates/jsdoc/",- symbolsDir: "symbols/",- srcDir: "symbols/src/"- };--- if (JSDOC.opt.s && defined(Link) && Link.prototype._makeSrcLink) {- Link.prototype._makeSrcLink = function(srcFilePath) {- return "<"+srcFilePath+">";- }- }-- IO.mkPath((publish.conf.outDir+"symbols/src").split("/"));-- // used to check the details of things being linked to- Link.symbolSet = symbolSet;-- try {- var classTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"class.tmpl");- var classesTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"allclasses.tmpl");- }- catch(e) {- print(e.message);- quit();- }-- // filters- function hasNoParent($) {return ($.memberOf == "")}- function isaFile($) {return ($.is("FILE"))}- function isaClass($) {return ($.is("CONSTRUCTOR") || $.isNamespace)}-- var symbols = symbolSet.toArray();-- var files = JSDOC.opt.srcFiles;- for (var i = 0, l = files.length; i < l; i++) {- var file = files[i];- var srcDir = publish.conf.outDir + "symbols/src/";- makeSrcFile(file, srcDir);- }-- var classes = symbols.filter(isaClass).sort(makeSortby("alias"));-- Link.base = "../";- publish.classesIndex = classesTemplate.process(classes); // kept in memory-- for (var i = 0, l = classes.length; i < l; i++) {- var symbol = classes[i];- var output = "";- output = classTemplate.process(symbol);-- IO.saveFile(publish.conf.outDir+"symbols/", symbol.alias+publish.conf.ext, output);- }-- // regenrate the index with different relative links- Link.base = "";- publish.classesIndex = classesTemplate.process(classes);-- try {- var classesindexTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"index.tmpl");- }- catch(e) { print(e.message); quit(); }-- var classesIndex = classesindexTemplate.process(classes);- IO.saveFile(publish.conf.outDir, "index"+publish.conf.ext, classesIndex);- classesindexTemplate = classesIndex = classes = null;-- try {- var fileindexTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"allfiles.tmpl");- }- catch(e) { print(e.message); quit(); }-- var documentedFiles = symbols.filter(isaFile);- var allFiles = [];-- for (var i = 0; i < files.length; i++) {- allFiles.push(new JSDOC.Symbol(files[i], [], "FILE", new JSDOC.DocComment("/** */")));- }-- for (var i = 0; i < documentedFiles.length; i++) {- var offset = files.indexOf(documentedFiles[i].alias);- allFiles[offset] = documentedFiles[i];- }-- allFiles = allFiles.sort(makeSortby("name"));-- var filesIndex = fileindexTemplate.process(allFiles);- IO.saveFile(publish.conf.outDir, "files"+publish.conf.ext, filesIndex);- fileindexTemplate = filesIndex = files = null;-}---/** Just the first sentence. */-function summarize(desc) {- if (typeof desc != "undefined")- return desc.match(/([\w\W]+?\.)[^a-z0-9]/i)? RegExp.$1 : desc;-}--/** make a symbol sorter by some attribute */-function makeSortby(attribute) {- return function(a, b) {- if (a[attribute] != undefined && b[attribute] != undefined) {- a = a[attribute].toLowerCase();- b = b[attribute].toLowerCase();- if (a < b) return -1;- if (a > b) return 1;- return 0;- }- }-}--function include(path) {- var path = publish.conf.templatesDir+path;- return IO.readFile(path);-}--function makeSrcFile(path, srcDir, name) {- if (JSDOC.opt.s) return;-- if (!name) {- name = path.replace(/\.\.?[\\\/]/g, "").replace(/[\\\/]/g, "_");- name = name.replace(/\:/g, "_");- }-- var src = {path: path, name:name, charset: IO.encoding, hilited: ""};-- if (defined(JSDOC.PluginManager)) {- JSDOC.PluginManager.run("onPublishSrc", src);- }-- if (src.hilited) {- IO.saveFile(srcDir, name+publish.conf.ext, src.hilited);- }-}--function makeSignature(params) {- if (!params) return "()";- var signature = "("- +- params.filter(- function($) {- return $.name.indexOf(".") == -1; // don't show config params in signature- }- ).map(- function($) {- return $.name;- }- ).join(", ")- +- ")";- return signature;-}--/** Find symbol {@link ...} strings in text and turn into html links */-function resolveLinks(str, from) {- str = str.replace(/\{@link ([^} ]+) ?\}/gi,- function(match, symbolName) {- return new Link().toSymbol(symbolName);- }- );-- return str;-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/static/default.css b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/static/default.cssdeleted file mode 100644index 97e021ef630..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/static/default.css+++ /dev/null@@ -1,162 +0,0 @@-/* default.css */-body-{- font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;- width: 800px;-}--.header-{- clear: both;- background-color: #ccc;- padding: 8px;-}--h1-{- font-size: 150%;- font-weight: bold;- padding: 0;- margin: 1em 0 0 .3em;-}--hr-{- border: none 0;- border-top: 1px solid #7F8FB1;- height: 1px;-}--pre.code-{- display: block;- padding: 8px;- border: 1px dashed #ccc;-}--#index-{- margin-top: 24px;- float: left;- width: 160px;- position: absolute;- left: 8px;- background-color: #F3F3F3;- padding: 8px;-}--#content-{- margin-left: 190px;- width: 600px;-}--.classList-{- list-style-type: none;- padding: 0;- margin: 0 0 0 8px;- font-family: arial, sans-serif;- font-size: 1em;- overflow: auto;-}--.classList li-{- padding: 0;- margin: 0 0 8px 0;-}--.summaryTable { width: 100%; }--h1.classTitle-{- font-size:170%;- line-height:130%;-}--h2 { font-size: 110%; }-caption, div.sectionTitle-{- background-color: #7F8FB1;- color: #fff;- font-size:130%;- text-align: left;- padding: 2px 6px 2px 6px;- border: 1px #7F8FB1 solid;-}--div.sectionTitle { margin-bottom: 8px; }-.summaryTable thead { display: none; }--.summaryTable td-{- vertical-align: top;- padding: 4px;- border-bottom: 1px #7F8FB1 solid;- border-right: 1px #7F8FB1 solid;-}--/*col#summaryAttributes {}*/-.summaryTable td.attributes-{- border-left: 1px #7F8FB1 solid;- width: 140px;- text-align: right;-}--td.attributes, .fixedFont-{- line-height: 15px;- color: #002EBE;- font-family: "Courier New",Courier,monospace;- font-size: 13px;-}--.summaryTable td.nameDescription-{- text-align: left;- font-size: 13px;- line-height: 15px;-}--.summaryTable td.nameDescription, .description-{- line-height: 15px;- padding: 4px;- padding-left: 4px;-}--.summaryTable { margin-bottom: 8px; }--ul.inheritsList-{- list-style: square;- margin-left: 20px;- padding-left: 0;-}--.detailList {- margin-left: 20px;- line-height: 15px;-}-.detailList dt { margin-left: 20px; }--.detailList .heading-{- font-weight: bold;- padding-bottom: 6px;- margin-left: 0;-}--.light, td.attributes, .light a:link, .light a:visited-{- color: #777;- font-style: italic;-}--.fineprint-{- text-align: right;- font-size: 10px;-}\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/static/header.html b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/static/header.htmldeleted file mode 100644index 353b735a4ca..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/static/header.html+++ /dev/null@@ -1,2 +0,0 @@-<div id="header">-</div>\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/static/index.html b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/static/index.htmldeleted file mode 100644index 661f6f67d18..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/static/index.html+++ /dev/null@@ -1,19 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">-<head>- <meta http-equiv="content-type" content="text/html; charset=utf-8" />- <title>Generated Javascript Documentation</title>-</head>-<frameset cols="20%,80%">- <frame src="allclasses-frame.html" name="packageFrame" />- <frame src="splash.html" name="classFrame" />- <noframes>- <body>- <p>- This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.- </p>- </body>- </noframes>-</frameset>-</html>\ No newline at end of filediff --git a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/symbol.tmpl b/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/symbol.tmpldeleted file mode 100644index f8f4bd1f6f2..00000000000--- a/client/javascript/lib/jsdoc/jsdoc-toolkit/templates/solrjs/symbol.tmpl+++ /dev/null@@ -1,35 +0,0 @@-<symbol alias="{+data.alias+}">- <name>{+data.name+}</name>- <memberOf>{+data.memberOf+}</memberOf>- <isStatic>{+data.isStatic+}</isStatic>- <isa>{+data.isa+}</isa>- <desc>{+data.desc+}</desc>- <classDesc>{+data.classDesc+}</classDesc>-- <methods><for each="method" in="data.methods">- <method>- <name>{+method.name+}</name>- <memberOf>{+method.memberOf+}</memberOf>- <isStatic>{+method.isStatic+}</isStatic>- <desc>{+method.desc+}</desc>- <params><for each="param" in="method.params">- <param>- <type>{+param.type+}</type>- <name>{+param.name+}</name>- <desc>{+param.desc+}</desc>- <defaultValue>{+param.defaultValue+}</defaultValue>- </param></for>- </params>- </method></for>- </methods>-- <properties><for each="property" in="data.properties">- <property>- <name>{+property.name+}</name>- <memberOf>{+property.memberOf+}</memberOf>- <isStatic>{+property.isStatic+}</isStatic>- <desc>{+property.desc+}</desc>- <type>{+property.type+}</type>- </property></for>- </properties>-</symbol>diff --git a/client/javascript/src/clientside/AutocompleteWidget.js b/client/javascript/src/clientside/AutocompleteWidget.jsdeleted file mode 100755index 3e78d34d599..00000000000--- a/client/javascript/src/clientside/AutocompleteWidget.js+++ /dev/null@@ -1,91 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * <p> Autocomplete input field that suggests facet values. It can show facet values of multiple- * fields (specified by "fieldNames"), as well as perform a fulltext query ("fulltextFieldName")- * in case no suggested value is selected. </p>- *- * It uses the autocomplete box found at http://docs.jquery.com/UI/Autocomplete/autocomplete.- *- * @class AutocompleteWidget- * @augments jQuery.solrjs.AbstractClientSideWidget- */-jQuery.solrjs.AutocompleteWidget = jQuery.solrjs.createClass ("AbstractClientSideWidget", /** @lends jQuery.solrjs.AutocompleteWidget.prototype */{-- /**- * A list of facet fields.- * @field- * @public- */- fieldNames : [] ,-- /**- * The field to search in if when no suggestion is selected.- * @field- * @public- */- fulltextFieldName : "",-- getSolrUrl : function(start) {- var ret = "&facet=true&facet.limit=-1";- for (var j = 0; j < this.fieldNames.length; j++) {- ret += "&facet.field=" + this.fieldNames[j];- }- return ret;-- },-- handleResult : function(data) {-- // create new input field- jQuery(this.target).empty();- var input = jQuery('<input/>').attr("id", this.id + "_input").appendTo(this.target);-- // create autocomplete list- var list = [];- for (var j = 0; j < this.fieldNames.length; j++) {- var field = this.fieldNames[j];- var values = data.facet_counts.facet_fields[field];- for (var i = 0; i < values.length; i = i + 2) {- var label = values[i] + " (" + values[i+1] + ") - " + field;- var value = values[i];- list.push({text:label, value:value, field:field});- }- }-- // add selection listeners for suggests and fulltext search.- var me = this;- me.selectionMade = false;- input.autocomplete(list, {- formatItem: function(item) {- return item.text;- }- }).result(function(event, item) {- var items = [new jQuery.solrjs.QueryItem({field: item.field , value:item.value})];- solrjsManager.selectItems(me.id, items);- me.selectionMade = true;- });- jQuery("#" + this.id + "_input").html("test").bind("keydown", function(event) {- if (me.selectionMade == false && event.keyCode==13) {- var items = [new jQuery.solrjs.QueryItem({field: me.fulltextFieldName , value:"\"" + event.target.value + "\""})];- solrjsManager.selectItems(me.id, items);- }- });- }--});\ No newline at end of filediff --git a/client/javascript/src/clientside/CalendarWidget.js b/client/javascript/src/clientside/CalendarWidget.jsdeleted file mode 100755index 1a4aec815bd..00000000000--- a/client/javascript/src/clientside/CalendarWidget.js+++ /dev/null@@ -1,105 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * A calendar facet field. it uses solr's date facet capabilities, and displays- * the document count of one day using the DHTML calendar from www.dynarch.com/projects/calendar- *- * @class CalendarWidget- * @augments jQuery.solrjs.AbstractClientSideWidget- */-jQuery.solrjs.CalendarWidget = jQuery.solrjs.createClass ("AbstractClientSideWidget", {-- /**- * Start date, used to restrict the calendar ui as well- * as the solr date facets.- *- * @field- * @public- */- startDate : null,-- /**- * Start date, used to restrict the calendar ui as well- * as the solr date facets.- *- * @field- * @public- */- endDate : null,-- /**- * Current date facet array.- *- * @field- * @private- */- dates : null,-- getSolrUrl : function(start) {- return "&facet=true&facet.mincount=1&facet.date=date&facet.date.start=1987-01-01T00:00:00.000Z/DAY&facet.date.end=1987-11-31T00:00:00.000Z/DAY%2B1DAY&facet.date.gap=%2B1DAY";- },-- handleResult : function(data) {-- var me = this;- me.dates = [];- jQuery.each(data.facet_counts.facet_dates.date, function(key, value) {- var date = new Date(key.slice(0, 4), parseInt(key.slice(6, 8)) - 1, key.slice(8, 10));- me.dates[date] = value;- });-- jQuery(this.target).empty();-- var parent = document.getElementById("calendar");-- // construct a calendar giving only the "selected" handler.- var cal = new Calendar(0, null, function (cal, date) {- if (cal.dateClicked) {- var dateString = "[" + date + "T00:00:00Z TO " + date + "T23:59:59Z]";- var items = [new jQuery.solrjs.QueryItem({field: me.fieldName , value:date, toSolrQuery: function() { return "date:" + dateString }})];- solrjsManager.selectItems(me.id, items);- }- });- cal.dateClicked = false;- cal.weekNumbers = false;- cal.setDateFormat("%Y-%m-%d");- cal.setTtDateFormat("solrjs");-- cal.setDateStatusHandler(function(date) {- if (me.dates[date] != null && me.dates[date] > 0) {- return "solrjs solrjs_value_" + me.dates[date];- }- return true;- });-- cal.create(parent);- cal.show();- cal.setDate(new Date(1987, 2, 1));-- // override print method to display document count- var oldPrint = Date.prototype.print;- Date.prototype.print = function(string) {- if (string.indexOf("solrjs") == -1) {- return oldPrint.call(this, string);- }- return me.dates[this] + " documents found!";- }- }--});-diff --git a/client/javascript/src/clientside/CountryCodeWidget.js b/client/javascript/src/clientside/CountryCodeWidget.jsdeleted file mode 100755index e4f870df960..00000000000--- a/client/javascript/src/clientside/CountryCodeWidget.js+++ /dev/null@@ -1,125 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * Takes a solr field that stores an ISO-3166 country code. It creates facet values and- * displays them in a selection dropdown as well as on a google chart map item.- *- * @class CountryCodeWidget- * @augments jQuery.solrjs.AbstractClientSideWidget- */-jQuery.solrjs.CountryCodeWidget = jQuery.solrjs.createClass ("AbstractClientSideWidget", {-- /**- * The width of the map images.- *- * @field- * @public- */- width : 350,-- /**- * The height of the map images.- *- * @field- * @public- */- height : 180,-- /**- * The field name of the iso country code field.- *- * @field- * @public- */- fieldName : "",-- getSolrUrl : function(start) {- return "&facet=true&facet.mincount=1&facet.limit=-1&facet.field=" + this.fieldName;- },-- handleResult : function(data) {- jQuery(this.target).empty();-- // get facet counts- var values = data.facet_counts.facet_fields[this.fieldName];- var maxCount = 0;- var objectedItems = [];- for (var i = 0; i < values.length; i = i + 2) {- var c = parseInt(values[i+1]);- if (c > maxCount) {- maxCount = c;- }- objectedItems.push({label:values[i], count:values[i+1]});- }-- // create a select for regions- var container = jQuery("<div/>").attr("id", "solrjs_" + this.id).appendTo(this.target);- var select = jQuery("<select/>").appendTo(container);- var me = this;- select.change(function () {- jQuery("#solrjs_" + me.id + " img").each(function (i,item) {- jQuery(item).css("display", "none");- });- jQuery("#solrjs_" + me.id + this[this.selectedIndex].value).css("display", "block");- });- jQuery("<option/>").html("view the World ").attr("value", "world").appendTo(select);- jQuery("<option/>").html("view Africa").attr("value", "africa").appendTo(select);- jQuery("<option/>").html("view Asia").attr("value", "asia").appendTo(select);- jQuery("<option/>").html("view Europe").attr("value", "europe").appendTo(select);- jQuery("<option/>").html("view the Middle East").attr("value", "middle_east").appendTo(select);- jQuery("<option/>").html("view South America").attr("value", "south_america").appendTo(select);- jQuery("<option/>").html("view North America").attr("value", "usa").appendTo(select);-- // create a select for facet values- var codes = "";- var mapvalues = "t:";- var countrySelect = jQuery("<select/>").appendTo(container);- countrySelect.change(function () {- var items = [new jQuery.solrjs.QueryItem({field: me.fieldName , value:this[this.selectedIndex].value})];- solrjsManager.selectItems(me.id, items);- });- jQuery("<option/>").html("--select--").attr("value", "-1").appendTo(countrySelect);;-- // create map data- for (var i = 0; i < objectedItems.length; i++) {- if (objectedItems[i].label.length != 2) {- continue;- }- codes += objectedItems[i].label;- var currentValue = objectedItems[i].count;- var percent = (objectedItems[i].count / maxCount);- var tagvalue = parseInt(percent * 100);- mapvalues += tagvalue + ".0";- if (i < objectedItems.length - 1) {- mapvalues += ",";- }- jQuery("<option/>").html(objectedItems[i].label + " (" + currentValue + ")").attr("value", objectedItems[i].label).appendTo(countrySelect);- }-- // show maps- jQuery("<img/>").attr("id", "solrjs_" + this.id + "africa").css("display", "none").attr("src","http://chart.apis.google.com/chart?chco=f5f5f5,edf0d4,6c9642,365e24,13390a&chd=" + mapvalues + "&chf=bg,s,eaf7fe&chtm=africa&chld="+ codes +"&chs="+this.width+"x"+this.height+"&cht=t").appendTo(container);- jQuery("<img/>").attr("id", "solrjs_" + this.id + "asia").css("display", "none").attr("src","http://chart.apis.google.com/chart?chco=f5f5f5,edf0d4,6c9642,365e24,13390a&chd=" + mapvalues + "&chf=bg,s,eaf7fe&chtm=asia&chld="+ codes +"&chs="+this.width+"x"+this.height+"&cht=t").appendTo(container);- jQuery("<img/>").attr("id", "solrjs_" + this.id + "europe").css("display", "none").attr("src","http://chart.apis.google.com/chart?chco=f5f5f5,edf0d4,6c9642,365e24,13390a&chd=" + mapvalues + "&chf=bg,s,eaf7fe&chtm=europe&chld="+ codes +"&chs="+this.width+"x"+this.height+"&cht=t").appendTo(container);- jQuery("<img/>").attr("id", "solrjs_" + this.id + "middle_east").css("display", "none").attr("src","http://chart.apis.google.com/chart?chco=f5f5f5,edf0d4,6c9642,365e24,13390a&chd=" + mapvalues + "&chf=bg,s,eaf7fe&chtm=middle_east&chld="+ codes +"&chs="+this.width+"x"+this.height+"&cht=t").appendTo(container);- jQuery("<img/>").attr("id", "solrjs_" + this.id + "south_america").css("display", "none").attr("src","http://chart.apis.google.com/chart?chco=f5f5f5,edf0d4,6c9642,365e24,13390a&chd=" + mapvalues + "&chf=bg,s,eaf7fe&chtm=south_america&chld="+ codes +"&chs="+this.width+"x"+this.height+"&cht=t").appendTo(container);- jQuery("<img/>").attr("id", "solrjs_" + this.id + "usa").css("display", "none").attr("src","http://chart.apis.google.com/chart?chco=f5f5f5,edf0d4,6c9642,365e24,13390a&chd=" + mapvalues + "&chf=bg,s,eaf7fe&chtm=usa&chld="+ codes +"&chs="+this.width+"x"+this.height+"&cht=t").appendTo(container);- jQuery("<img/>").attr("id", "solrjs_" + this.id + "world").css("display", "block").attr("src","http://chart.apis.google.com/chart?chco=f5f5f5,edf0d4,6c9642,365e24,13390a&chd=" + mapvalues + "&chf=bg,s,eaf7fe&chtm=world&chld="+ codes +"&chs="+this.width+"x"+this.height+"&cht=t").appendTo(container);--- }-});\ No newline at end of filediff --git a/client/javascript/src/clientside/ExtensibleResultWidget.js b/client/javascript/src/clientside/ExtensibleResultWidget.jsdeleted file mode 100644index 180da1eb106..00000000000--- a/client/javascript/src/clientside/ExtensibleResultWidget.js+++ /dev/null@@ -1,42 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * A simple base class for result widgets (list of documents, including paging).- * Implementations should override the renderResult(docs, pageSize, offset, numFound)- * funtion to render the result.- *- * @class ExtensibleResultWidget- * @augments jQuery.solrjs.AbstractClientSideWidget- */-jQuery.solrjs.ExtensibleResultWidget = jQuery.solrjs.createClass ("AbstractClientSideWidget", {-- isResult : true,-- getSolrUrl : function(start) {- return ""; // no special params need- },-- handleResult : function(data) {- jQuery(this.target).empty();- this.renderResult(data.response.docs, parseInt(data.responseHeader.params.rows), data.responseHeader.params.start, data.response.numFound);- },-- renderResult : function(docs, pageSize, offset, numFound) {- throw "Abstract method renderDataItem";- }-});\ No newline at end of filediff --git a/client/javascript/src/clientside/FacetWidget.js b/client/javascript/src/clientside/FacetWidget.jsdeleted file mode 100644index 2f6f6a62562..00000000000--- a/client/javascript/src/clientside/FacetWidget.js+++ /dev/null@@ -1,53 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * A simple facet widget that shows the facet values as list. It remembers the selection- * and shows a "value(x)" label after selection.- *- * @class ExtensibleResultWidget- * @augments jQuery.solrjs.AbstractClientSideWidget- */-jQuery.solrjs.FacetWidget = jQuery.solrjs.createClass ("AbstractClientSideWidget", {-- saveSelection : true,-- getSolrUrl : function(start) {- return "&facet=true&facet.field=" + this.fieldName;- },-- handleResult : function(data) {- var values = data.facet_counts.facet_fields[this.fieldName];- jQuery(this.target).html("");-- for (var i = 0; i < values.length; i = i + 2) {- var items = "[new jQuery.solrjs.QueryItem({field:'" + this.fieldName + "',value:'" + values[i] + "'})]";- var label = values[i] + "(" + values[i+1] + ")";- jQuery('<a/>').html(label).attr("href","javascript:solrjsManager.selectItems('" + this.id + "'," + items + ")").appendTo(this.target);- jQuery('<br/>').appendTo(this.target);- }- },-- handleSelect : function(data) {- jQuery(this.target).html(this.selectedItems[0].value);- jQuery('<a/>').html("(x)").attr("href","javascript:solrjsManager.deselectItems('" + this.id + "')").appendTo(this.target);- },-- handleDeselect : function(data) {- // do nothing- }-});\ No newline at end of filediff --git a/client/javascript/src/clientside/TagcloudWidget.js b/client/javascript/src/clientside/TagcloudWidget.jsdeleted file mode 100755index 09f93c2118d..00000000000--- a/client/javascript/src/clientside/TagcloudWidget.js+++ /dev/null@@ -1,82 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * A facet widget that renders the values as a tagcloud.- *- * @class TagcloudWidget- * @augments jQuery.solrjs.AbstractClientSideWidget- */-jQuery.solrjs.TagcloudWidget = jQuery.solrjs.createClass ("AbstractClientSideWidget", {-- /**- * Maximum count of items in the tagcloud.- *- * @field- * @public- */- size : 20,-- /**- * The facet field name.- *- * @field- * @public- */- fieldName : "",-- getSolrUrl : function(start) {- return "&facet=true&facet.mincount=1&facet.field=" + this.fieldName + "&facet.limit=" + this.size;- },-- handleResult : function(data) {- var values = data.facet_counts.facet_fields[this.fieldName];- jQuery(this.target).empty();-- if (values.length == 0) {- jQuery("<div/>").html("no items found in current selection").appendTo(this.target);- }-- var maxCount = 0;- var objectedItems = [];- for (var i = 0; i < values.length; i = i + 2) {- var c = parseInt(values[i+1]);- if (c > maxCount) {- maxCount = c;- }- objectedItems.push({label:values[i], count:values[i+1]});- }-- objectedItems.sort(function(a,b) {- if (a.label < b.label) {- return -1;- }- return 1;- });-- for (var i = 0; i < objectedItems.length; i++) {- var label = objectedItems[i].label;- var items = "[new jQuery.solrjs.QueryItem({field:'" + this.fieldName + "',value:'" + label + "'})]";- var percent = (objectedItems[i].count / maxCount);- var tagvalue = parseInt(percent * 10);- jQuery("<a/>").html(label).addClass("solrjs_tagcloud_item").addClass("solrjs_tagcloud_size_" + tagvalue).attr("href","javascript:solrjsManager.selectItems('" + this.id + "'," + items + ")").appendTo(this.target);- }-- jQuery("<div/>").addClass("solrjs_tagcloud_clearer").appendTo(this.target);-- }-});\ No newline at end of filediff --git a/client/javascript/src/core/AbstractClientSideWidget.js b/client/javascript/src/core/AbstractClientSideWidget.jsdeleted file mode 100644index 01a92ca425b..00000000000--- a/client/javascript/src/core/AbstractClientSideWidget.js+++ /dev/null@@ -1,55 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * Baseclass for client side widgets.- *- * <p> The json response writer is used, the widget gets the result object passed- * to the handleResult() method- * </p>- *- * @param properties A map of fields to set. Refer to the list of non-private fields.- * @class AbstractClientSideWidget- * @augments jQuery.solrjs.AbstractWidget- */-jQuery.solrjs.AbstractClientSideWidget = jQuery.solrjs.createClass ("AbstractWidget", /** @lends jQuery.solrjs.AbstractClientSideWidget.prototype */ {-- /**- * Adds the JSON specific request parameters to the url and creates a JSON call- * using a dynamic script tag.- * @param url The solr query request- */- executeHttpRequest : function(url) {- url += "&wt=json&json.wrf=?&jsoncallback=?";- var me = this;- jQuery.getJSON(url,- function(data){- me.handleResult(data);- }- );- },-- /**- * An abstract hook for child implementations. It is a callback that- * is execute after the solr response data arrived.- * @param data The solr response inside a javascript object.- */- handleResult : function(data) {- throw "Abstract method handleResult";- }--});diff --git a/client/javascript/src/core/AbstractSelectionView.js b/client/javascript/src/core/AbstractSelectionView.jsdeleted file mode 100755index 766d185fdcb..00000000000--- a/client/javascript/src/core/AbstractSelectionView.js+++ /dev/null@@ -1,47 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * Displays the current selection. Use the displaySelection method.- *- * @param properties A map of fields to set. Refer to the list of non-private fields.- * @class AbstractSelectionView- */-jQuery.solrjs.AbstractSelectionView = jQuery.solrjs.createClass (null, /** @lends jQuery.solrjs.AbstractSelectionView.prototype */ {-- /**- * A unique identifier of this widget.- *- * @field- * @public- */- id : "",-- /**- * A css classname representing the "target div" inside the html page.- * All ui changes will be performed inside this empty div.- *- * @field- * @private- */- target : "",-- displaySelection : function(selectedItems) {- throw "Abstract method displaySelection";- }--});diff --git a/client/javascript/src/core/AbstractServerSideWidget.js b/client/javascript/src/core/AbstractServerSideWidget.jsdeleted file mode 100644index f31725c93af..00000000000--- a/client/javascript/src/core/AbstractServerSideWidget.js+++ /dev/null@@ -1,62 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * Baseclass for server side widgets.- *- * <p> The velocity response writer is used, the widget only specifies the- * template name in the getTemplateName() method. </p>- *- * @param properties A map of fields to set. Refer to the list of non-private fields.- * @class AbstractServerSideWidget- * @augments jQuery.solrjs.AbstractWidget- */-jQuery.solrjs.AbstractServerSideWidget = jQuery.solrjs.createClass ("AbstractWidget", /** @lends jQuery.solrjs.AbstractServerSideWidget.prototype */ {-- /**- * Adds the velocity specific request parameters to the url and creates a JSON call- * using a dynamic script tag. The html response from the velocity template gets wrapped inside a- * javascript object to make cross site requests possible.- *- * @param url The solr query request- */- executeHttpRequest : function(url) {- url += "&wt=velocity&v.response=QueryResponse&v.json=?&jsoncallback=?&v.contentType=text/json&v.template=" + this.getTemplateName();- url += "&solrjs.widgetid=" + this.id;- var me = this;- jQuery.getJSON(url,- function(data){- me.handleResult(data.result);- }- );- },-- getTemplateName : function() {- throw("Abstract method");- },-- /**- * The default behaviour is that the result of the template is simply "copied" to the target div.- *- * @param result The result of the velocity template wrapped inside a javascript object.- */- handleResult : function(result) {- jQuery(this.target).html(result);- },--});-diff --git a/client/javascript/src/core/AbstractWidget.js b/client/javascript/src/core/AbstractWidget.jsdeleted file mode 100644index ed444de4f15..00000000000--- a/client/javascript/src/core/AbstractWidget.js+++ /dev/null@@ -1,191 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * Baseclass for all widgets.- *- * <p> Handles selection and request of items (called by the manager) and provides- * abstract hooks for child classes to display the data. </p>- *- * @param properties A map of fields to set. Refer to the list of non-private fields.- * @class AbstractWidget- */-jQuery.solrjs.AbstractWidget = jQuery.solrjs.createClass (null, /** @lends jQuery.solrjs.AbstractWidget.prototype */ {-- /**- * A unique identifier of this widget.- *- * @field- * @public- */- id : "",-- /**- * The number of documents this widgets requests.- * Normally only useful for result widgets.- *- * @field- * @default 0- * @public- */- rows : 0,-- /**- * A private flag that displays the selection status of a widget.- * Selected widgets normally don't need to update their data when- * the selection changes.- *- * @field- * @private- */- selected : false,-- /**- * A css classname representing the "target div" inside the html page.- * All ui changes will be performed inside this empty div.- *- * @field- * @private- */- target : "",-- /**- * A flag for result widgets. These widgets also get updated on page changes,- *- * @field- * @private- */- isResult : false,-- /**- * A flag that indicates whether the loading icon should be displayed.- *- * @field- * @private- */- showLoadingDiv : false,-- /**- * A flag that indicates whether the widget should save the current selection. If set to false,- * a widget may be selected more than once.- *- * @field- * @private- */- saveSelection : false,-- /**- * Generates the solr request url for this widget and delegates the actual request- * to the implementation. This method is only called by the manager.- *- * @param query The current solr query- * @start The offset.- * @param resultsOnly Indicates that only the page changed and only result widgets should repaint).- */- doRequest : function(query, start, resultsOnly) {- if (resultsOnly && !this.isResult) {- return;- }- if (this.saveSelection && this.selected) {- return;- }- var solrRequestUrl = "";- solrRequestUrl += this.manager.solrUrl;- solrRequestUrl += "?";- solrRequestUrl += "&rows=" + this.rows;- solrRequestUrl += "&start=" + start;- solrRequestUrl += "&q=" + query;- solrRequestUrl += this.getSolrUrl(start);-- // show loading gif- if (this.showLoadingDiv) {- jQuery(this.target).html(this.manager.getLoadingDiv());- }-- // let the implementation execute the call- this.executeHttpRequest(solrRequestUrl);-- },-- /**- * Marks this widget as selected and store selected items.- * This method is only called by the manager.- *- * @param items The list of newly selected items.- */- select: function(items) {- if (this.saveSelection) {- this.selected = true;- this.selectedItems = items;- }- this.handleSelect();- },-- /**- * Marks this widget as unselected and clears the selected items.- * This method is only called by the manager.- */- deselect: function() {- if (this.saveSelection) {- this.selected = false;- }- this.handleDeselect();- },--- // Methods to be overridden by widgets:-- /**- * An abstract hook for child implementations. This method should- * execute the http request.- * @param the complete solr request url.- * @abstract- */- executeHttpRequest : function(url) {- throw "Abstract method executeHttpRequest";- },-- /**- * An abstract hook for child implementations. It should add widget specific- * request parameters like facet=true..- * @param start The offset.- */- getSolrUrl : function(start) {- // to be overridden- return "";- },-- /**- * An abstract hook for child implementations. Called after a widget is selected.- * Child implementations should take care of changing the ui.- */- handleSelect : function() {- // do nothing. Implementations may place some handler code here.- },-- /**- * An abstract hook for child implementations. Called after a widget is deselected.- * Child implementations should take care of changing the ui.- */- handleDeselect : function() {- // do nothing Implementations may place some handler code here.- },-- afterAdditionToManager : function() {- // do nothing by default. Implementations may place some init code here.- }-});diff --git a/client/javascript/src/core/Core.js b/client/javascript/src/core/Core.jsdeleted file mode 100644index ba2ee8b5dec..00000000000--- a/client/javascript/src/core/Core.js+++ /dev/null@@ -1,62 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * @namespace A unique namespace inside jQuery.- */-jQuery.solrjs = function() {};---/**- * A static "constructor" method that creates widget classes.- *- * <p> It uses manual jquery inheritance inspired by- * http://groups.google.com/group/jquery-dev/msg/12d01b62c2f30671' </p>- *- * @param baseClass The name of the parent class. Set null to create a top level class.- * @param subClass The fields and methods of the new class.- * @returns A constructor method that represents the new class.- *- * @example- * jQuery.solrjs.MyClass = jQuery.solrjs.createClass ("MyBaseClass", {- * property1: "value",- * function1: function() { alert("Hello World") }- * });- *- *- */-jQuery.solrjs.createClass = function(baseClassName, subClass) {-- // create new class, adding the constructor- var newClass = jQuery.extend(true, subClass , {-- constructor : function(options) {- // if a baseclass is specified, inherit methods and props, and store it in _super_- if (baseClassName != null) {- jQuery.extend(true, this, new jQuery.solrjs[baseClassName](options) );- }- // add new methods and props for this class- jQuery.extend(true, this , subClass);- // add constructor arguments- jQuery.extend(true, this, options);- }- });-- // make new class accessible- return newClass.constructor;--};diff --git a/client/javascript/src/core/Manager.js b/client/javascript/src/core/Manager.jsdeleted file mode 100644index 17e95405cae..00000000000--- a/client/javascript/src/core/Manager.js+++ /dev/null@@ -1,212 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * The "Manager" acts as a container for all widgets.- *- * <p> It stores solr configuration and selection and delegates calls to the widgets.- * All public calls should be performed on the manager object. </p>- * <p> There has to be exactly one instance called "solrjsManager" present </p>- *- *- * @example- * var solrjsManager;- * $sj(document).ready(function(){- * solrjsManager = new $sj.solrjs.Manager(- * { solrUrl:"http://localhost:8983/solr/select",- * resourcesBase: "../../src/resources" });- * });- *- * @param properties A map of fields to set. Refer to the list of non-private fields.- * @class Manager- */-jQuery.solrjs.Manager = jQuery.solrjs.createClass (null, /** @lends jQuery.solrjs.Manager.prototype */ {-- /**- * The absolute url to the solr instance- * @field- * @default http://localhost:8983/solr/select/- * @public- */- solrUrl : "http://localhost:8983/solr/select/",-- /**- * A path (absolute or relative) to the base directory of solrjs resources (css, imgs,..)- * @field- * @public- */- resourcesBase : "",-- /**- * A constant representing "all documents"- * @field- * @private- */- QUERY_ALL : "*:*",-- /**- * A collection of all registered widgets. For internal use only.- * @field- * @private- */- widgets : [],-- /**- * A collection of the currently selected QueryItems. For internal use only.- * @field- * @private- */- queryItems : [],-- /**- * A collection of the attached selection views.- * @field- * @private- */- selectionViews : [],-- /**- * Adds a widget to this manager.- * @param {jQuery.solrjs.AbstractWidget} widget An instance of AbstractWidget.- */- addWidget : function(widget) {- widget.manager = this;- this.widgets[widget.id] = widget;- widget.afterAdditionToManager();- },-- /**- * Adds a selection view to this manager.- * @param {jQuery.solrjs.AbstractSelectionView} widget An instance of AbstractSelectionView.- */- addSelectionView : function(view) {- view.manager = this;- this.selectionViews[view.id] = view;- },-- /**- * Adds the given items to the current selection.- * @param widgetId The widgetId of where these items were selected.- * @param items A list of newly selected items.- */- selectItems: function(widgetId, items){- this.widgets[widgetId].select(items);- var querySizeBefore = this.queryItems.length;- for (var i = 0; i < items.length; ++i) {- if (!this.containsItem(items[i])) {- this.queryItems.push(items[i]);- }- }- if (querySizeBefore < this.queryItems.length) {- this.doRequest(0);- }- },-- /**- * Removes the given items from the current selection.- * @param widgetId The widgetId of where these items were deselected.- */- deselectItems: function(widgetId){- var widget = this.widgets[widgetId];- for (var i = 0; i < widget.selectedItems.length; i++) {- for (var j = 0; j < this.queryItems.length; j++) {- if (this.queryItems[j].toSolrQuery() == widget.selectedItems[i].toSolrQuery()) {- this.queryItems.splice(j, 1);- }- }- }- widget.deselect();- this.doRequest(0);- },-- /**- * Removes the given item from the current selection, regardless of widgets.- * @param widgetId The widgetId of where these items were deselected.- */- deselectItem: function(solrQuery){- for (var j = 0; j < this.queryItems.length; j++) {- var s = this.queryItems[j].toSolrQuery();- if (s == solrQuery) {- this.queryItems.splice(j, 1);- }- }- this.doRequest(0);- },-- /**- * Checks if the given item is available in the current selection.- * @param {jQuery.solrjs.QueryItem} item The item to check.- */- containsItem: function(item){- for (var i = 0; i < this.queryItems.length; ++i) {- if (this.queryItems[i].toSolrQuery() == item.toSolrQuery()) {- return true;- }- }- return false;- },-- /**- * Creates a query out of the current selection and calls all bound widgets to- * request their data from the server.- * @param start The solr start offset parameter (mostly for result widgets).- * @param resultsOnly Indicates that only the page changed and only result widgets should repaint).- */- doRequest : function(start, resultsOnly) {- var query = "";-- if (this.queryItems.length == 0) {- query = this.QUERY_ALL;- } else {- for (var i = 0; i < this.queryItems.length; ++i) {- query += this.queryItems[i].toSolrQuery();- if (i < this.queryItems.length -1) {- query += " AND ";- }- }- }-- for (var id in this.widgets) {- this.widgets[id].doRequest(query, start, resultsOnly);- }-- for (var id in this.selectionViews) {- this.selectionViews[id].displaySelection(this.queryItems);- }- },-- /**- * Sets the current selection to *:* and requests all docs.- */- doRequestAll: function() {- this.queryItems=[];- this.doRequest(0);- },-- clearSelection: function() {- this.queryItems=[];- },-- /**- * Helper method that returns an ajax-loading.gif inside a div.- */- getLoadingDiv : function() {- var div = jQuery("<div/>");- jQuery("<img/>").attr("src", this.resourcesBase + "/img/ajax-loader.gif" ).appendTo(div);- return div;- }-});diff --git a/client/javascript/src/core/QueryItem.js b/client/javascript/src/core/QueryItem.jsdeleted file mode 100644index ddd3dede7a2..00000000000--- a/client/javascript/src/core/QueryItem.js+++ /dev/null@@ -1,57 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * Represents a query item (search term). It consists of a fieldName and a value. .- *- * @param properties A map of fields to set. Refer to the list of non-private fields.- * @class QueryItem- */-jQuery.solrjs.QueryItem = jQuery.solrjs.createClass (null, /** @lends jQuery.solrjs.QueryItem.prototype */ {-- /**- * the field name.- * @field- * @public- */- field : "",-- /**- * The value- * @field- * @public- */- value : "",-- /**- * creates a lucene query syntax, eg pet:"Cats"- */- toSolrQuery: function() {- return "(" + this.field + ":\"" + this.value + "\")";- },-- /**- * Uses fieldName and value to compare items.- */- equals: function(obj1, obj2) {- if (obj1.field == obj2.field && obj1.value == obj2.value) {- return true;- }- return false;- }--});diff --git a/client/javascript/src/css/solrjs.css b/client/javascript/src/css/solrjs.cssdeleted file mode 100644index 9d6251781b3..00000000000--- a/client/javascript/src/css/solrjs.css+++ /dev/null@@ -1,65 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--a.solrjs_tagcloud_item {-display:block;-float:left;-margin-right:4px-}--div.solrjs_tagcloud_clearer {-clear:both;-}--a.solrjs_tagcloud_size_0 {-font-size:80%;-}-a.solrjs_tagcloud_size_1 {-font-size:90%;-}-a.solrjs_tagcloud_size_2 {-font-size:100%;-}Rst-a.solrjs_tagcloud_size_3 {-font-size:110%;-}-a.solrjs_tagcloud_size_4 {-font-size:120%;-}-a.solrjs_tagcloud_size_5 {-font-size:130%;-}-a.solrjs_tagcloud_size_6 {-font-size:140%;-}-a.solrjs_tagcloud_size_7 {-font-size:150%-}-a.solrjs_tagcloud_size_8 {-font-size:160%;-}-a.solrjs_tagcloud_size_9 {-font-size:170%;-}-a.solrjs_tagcloud_size_10 {-font-size:180%;-}--td.solrjs {-font-weight:bold;-}-diff --git a/client/javascript/src/resources/img/ajax-loader.gif b/client/javascript/src/resources/img/ajax-loader.gifdeleted file mode 100644index 1560b646cff..00000000000Binary files a/client/javascript/src/resources/img/ajax-loader.gif and /dev/null differdiff --git a/client/javascript/src/serverside/FacetServerSideWidget.js b/client/javascript/src/serverside/FacetServerSideWidget.jsdeleted file mode 100755index e26dd393769..00000000000--- a/client/javascript/src/serverside/FacetServerSideWidget.js+++ /dev/null@@ -1,44 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * Simple server side facet widget. Uses template "facets".- * @class FacetServerSideWidget- * @augments jQuery.solrjs.AbstractServerSideWidget- */-jQuery.solrjs.FacetServerSideWidget = jQuery.solrjs.createClass ("AbstractServerSideWidget", /** @lends jQuery.solrjs.FacetServerSideWidget.prototype */ {-- saveSelection : true,-- getSolrUrl : function(start) {- return "&facet=true&facet.field=" + this.fieldName;- },-- getTemplateName : function() {- return "facets";- },-- handleSelect : function(data) {- jQuery(this.target).html(this.selectedItems[0].value);- jQuery('<a/>').html("(x)").attr("href","javascript:solrjsManager.deselectItems('" + this.id + "')").appendTo(this.target);- },-- handleDeselect : function(data) {- // do nothing, just refresh the view- }--});\ No newline at end of filediff --git a/client/javascript/src/serverside/SimpleServerSideWidget.js b/client/javascript/src/serverside/SimpleServerSideWidget.jsdeleted file mode 100644index efcf6d6ed78..00000000000--- a/client/javascript/src/serverside/SimpleServerSideWidget.js+++ /dev/null@@ -1,37 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * Simple server side widget, only gets a template.- *- * @class SimpleServerSideWidget- * @augments jQuery.solrjs.AbstractServerSideWidget- */-jQuery.solrjs.SimpleServerSideWidget = jQuery.solrjs.createClass ("AbstractServerSideWidget", /** @lends jQuery.solrjs.SimpleServerSideWidget.prototype */{-- /**- * The name of the velocity template (without ".vm") to use.- * @field- * @public- */- templateName : "",-- getTemplateName : function() {- return this.templateName;- }--});\ No newline at end of filediff --git a/client/javascript/src/templates/facets.vm b/client/javascript/src/templates/facets.vmdeleted file mode 100755index bdf7f414a53..00000000000--- a/client/javascript/src/templates/facets.vm+++ /dev/null@@ -1,25 +0,0 @@-##-## Licensed to the Apache Software Foundation (ASF) under one or more-## contributor license agreements. See the NOTICE file distributed with-## this work for additional information regarding copyright ownership.-## The ASF licenses this file to You under the Apache License, Version 2.0-## (the "License"); you may not use this file except in compliance with-## the License. You may obtain a copy of the License at-##-## http://www.apache.org/licenses/LICENSE-2.0-##-## Unless required by applicable law or agreed to in writing, software-## distributed under the License is distributed on an "AS IS" BASIS,-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-## See the License for the specific language governing permissions and-## limitations under the License.-##--#foreach($item in $response.getFacetFields())- <div>- #foreach($count in $item.getValues())- <a href="javascript:solrjsManager.selectItems('$request.getParams().get('solrjs.widgetid')',[new jQuery.solrjs.QueryItem({field:'$count.getFacetField().getName()',value:'$count.getName()'})])"> $count.getName()($count.getCount()) </a><br/>- #end- </div>-#end-diff --git a/client/javascript/src/templates/result.vm b/client/javascript/src/templates/result.vmdeleted file mode 100644index 1d4fc15bcdc..00000000000--- a/client/javascript/src/templates/result.vm+++ /dev/null@@ -1,31 +0,0 @@-##-## Licensed to the Apache Software Foundation (ASF) under one or more-## contributor license agreements. See the NOTICE file distributed with-## this work for additional information regarding copyright ownership.-## The ASF licenses this file to You under the Apache License, Version 2.0-## (the "License"); you may not use this file except in compliance with-## the License. You may obtain a copy of the License at-##-## http://www.apache.org/licenses/LICENSE-2.0-##-## Unless required by applicable law or agreed to in writing, software-## distributed under the License is distributed on an "AS IS" BASIS,-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-## See the License for the specific language governing permissions and-## lim--#foreach($item in $response.getResults())- <div>- <h3> $item.getFieldValue("title"); </h3>- #if($item.getFieldValue("topics"))- <p>- <i> $item.getFieldValue("topics");</i>- </p>- #end- <p>- $item.getFieldValue("text");- </p>- </div>- <hr/>-#end-