Ignore:
Timestamp:
01/16/11 15:17:34 (13 years ago)
Author:
vronk
Message:

reduced logging messages,
changes to CQL-handling in js and XCQL2Xpath-mapping;
reworked docs, introduced example queries

Location:
MDService2/trunk/MDService2/WebContent
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/WebContent/index.jsp

    r1071 r1076  
    3636                                        <% if ( request.getRemoteUser() == null) {  %>
    3737                                        <a href="workspace.jsp" >    login</a>
    38                                         <a href="static/MDBrowser_explained_5_resize.png" > docs</a>
     38                                        <a href="docs/htmlpage/info" > docs</a>
    3939                                       
    4040                                        <% } else {  %>
  • MDService2/trunk/MDService2/WebContent/scripts/mdservice_helpers.js

    r1075 r1076  
    88        $(elems).children('.header').addClass('ui-widget-header ui-state-default ui-corner-top');
    99        $(elems).children('.content').addClass('ui-widget-content ui-corner-bottom');
    10         $(elems).children('.header').click(function() {
     10/*      $(elems).children('.header').click(function() {
    1111                $(this).next().toggle('fast');
    1212                return false;
    1313        }).next().hide();
    14        
    15        
     14        */
     15        $(elems).children('.header').append('<span class="cmd cmd-collapse cmd_down" > </span>');
     16        $(elems).find('.cmd-collapse').click(function(event) {
     17                        $(this).closest('.header').next().toggle('fast');
     18                        $(this).toggleClass('cmd_down cmd_up');
     19                        return false;
     20                });
    1621       
    1722        $(elems).each(function(i) {
    1823                if ($(this).hasClass('init-show'))  {           
    1924                        $(this).children('.content').show();
     25                        $(this).find('.cmd-collapse').toggleClass('cmd_down cmd_up');           
    2026                }
    2127                if ($(this).parent().hasClass('cmds-ui-closable'))  {           
  • MDService2/trunk/MDService2/WebContent/scripts/mdservice_model.js

    r1071 r1076  
    108108};
    109109
     110/** special handling for special characters: double escaping (escape the %-sign)
     111 * to survive the %-encoding through the request (and parsing) down to the transformation in XCQL2XPath.xsl
     112 * it's: whitespace, and single and double-quotes (unified to double quotes %22)
     113*/ 
     114
    110115Query.prototype.query_uri = function () {
    111116        var params = "?";
     
    114119        }
    115120        if (this.squery != null) {
    116                 params = params + "squery=" + escape(this.squery).replace("%20","%2520") + "&";
     121                escaped_sq =escape(this.squery).replace(/%20/g,"%2520").replace(/\%2[27]/g,"%2522") ;
     122                escaped_sq = escaped_sq.replace(/%7C/g,"%257C").replace(/\+/g,"%2B");
     123                params = params + "squery=" + escaped_sq + "&";
    117124        }
    118125        params = params + "collection=" + this.getcollectiontext("index") + "&columns=" + this.getcolumnstext() + "&startItem=" + this.startItem + "&maximumItems=" + this.maximumItems + "&repository=" + this.repository;
  • MDService2/trunk/MDService2/WebContent/static/info.xml

    r1064 r1076  
    11<info xml:lang="en" >
     2        <div id="title">Information</div>
    23        <div id="welcome">
    34       
     
    89                <li>browse the collections</li>
    910                <li>try one of the sample queries</li>
    10                 <li>provide complex boolean-searches  by profiles</li>
     11                <li>perform complex boolean-searches</li>
    1112                <li>search by profiles</li>
    1213                <li>search by data categories</li>
     
    2223        <p>Overview of current data set:
    2324        <ul>
    24                 <li>by Collections</li>
    25                 <li>by Profiles</li>
     25                <li>by <a href="/MDService2/collections/htmlpage" >Collections</a></li>
     26                <li>by <a href="/MDService2/terms/htmlpage/?q=all" >Profiles</a></li>
    2627        </ul>
    27         </p>
    28        
     28        </p>   
     29        </div>
     30        <div>
     31                <span class="title">Overview</span>
     32                <p>Overview and explanation of usage of individual elements of the user-interface</p>           
     33                <a href="/MDService2/static/MDBrowser_explained_5_resize2000.png" >
     34                        <img src="/MDService2/static/MDBrowser_explained_5_resize800.png" title="MDBrowser explained2" /></a>   
    2935        </div>
    3036        <div id="serverqs-info">
     
    3642                <span class="title">Personalized workspace - commons</span>
    3743                <p>when logged in, you can store your queries and bookmarks here.</p>
    38                 <p>All anonymous user share the default workspace.</p>
     44                <p>All anonymous users share the default workspace.</p>
    3945        </div>
    4046        <div id="collections-info">
     47                <span class="title">Collections</span>
    4148                <p>Overview of collections=datasets available in the repository</p>
    4249        </div>
    4350        <div id="terms-info">
     51                <span class="title">Terms</span>
    4452                <p>Terms combines information from MDRepository, ComponentRegistry, Datacategory Registries (isocat, dublincore) and Relationregistry to allow to search by profiles or data categories, or even perform semantic search</p>
    45                 <p>You can search in he fields of individual profiles used by the MDrecords in the repository, or search over multiple profiles via datacategories</p>
     53                <p>You can search in the fields of individual profiles instantiated as the MDrecords in the repository, or search over multiple profiles via datacategories.</p>
    4654        </div> 
    4755        <div id="compreg-info">
    48                 <p>Overview of  </p>
     56                <span class="title" >Component Registry</span>
     57                <p>Overview of all profiles and components defined in the Component Registry</p>
    4958        </div>
    5059        <div id="query-input-info">
    51 
     60                <span class="title" >Query Input</span>
     61                <p>Form for entering the query. Either a simple or complex query</p>
     62                <p>Both parts can be used in parallel: i.e. you can specify some terms for full-text search
     63                and further refine them with.
     64                The two parts are combined with boolean AND (the matching records have to satisfy both parts of the query.)
     65                See <a href="queries" >example queries</a> for an overview of possible query types.
     66                </p>
    5267                <div id="input-simplequery-info">
    53                                         <p>simple full-text search: individual terms, multiple terms, phrases(not yet)</p>
     68                        <p>simple full-text search: individual terms, multiple terms, phrases</p>
     69                </div>
     70                <div d="searchclauselist-info">
     71                        <p>complex queries according to SRU/CQL-standard</p>
     72                        <p>Basic <em>search clause</em> consists of: <code>index relation term</code>, e.g. <code>dc.title any system</code>.
     73                        You can combine this search clauses with boolean operators (AND, OR), to more complex queries</p>
    5474                </div>
    5575        </div> 
     
    5878       
    5979        <div id="commands" >
     80        <span class="title">Commands</span>
     81        <p>List of commands available in the user-interface, explanation of their function:</p>
    6082        <dt id="cmd_add">Add new item</dt>
    6183        <dt id="cmd_add_and">Add an additional condition (AND)</dt>
  • MDService2/trunk/MDService2/WebContent/style/cmds-ui.css

    r1071 r1076  
    124124.columns-selected { }
    125125
     126/* documentation */
     127.title, h1, h2, h3 { color: #014172;}
     128h1 {font-size: 1.6em;}
     129h2 {font-size: 1.4em;}
     130h3 {font-size: 1.2em;}   
     131.title {font-size: 1.2 em; font-weight: bold; margin: 1em 0 0 0.2em;}
     132dt { padding: 1em 0 0.2em 1.5em; font-weight: bold;}
     133dd { padding-left: 2.5em; display:block;}
     134.info p { margin: 0.2em 0; }
     135
    126136/* ************* */
    127137/* tooltip */
     
    133143 background:#A6C9E2;
    134144 color:#000;
    135  }
    136 
     145}
    137146
    138147/* command icons */
Note: See TracChangeset for help on using the changeset viewer.