Changeset 6144 for SRUAggregator


Ignore:
Timestamp:
04/14/15 22:18:50 (9 years ago)
Author:
emanuel.dima@uni-tuebingen.de
Message:
  1. beta-35: help text fix; trimmed trailing whitespaces; first version of clarinservices grid
Location:
SRUAggregator/trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • SRUAggregator/trunk/pom.xml

    r6134 r6144  
    88        <groupId>eu.clarin.sru.fcs</groupId>
    99        <artifactId>aggregator</artifactId>
    10         <version>2.0.0-beta-34</version>
     10        <version>2.0.0-beta-35</version>
    1111        <name>FCS Aggregator</name>
    1212
     
    2828                        <url>http://oss.sonatype.org/content/repositories/snapshots</url>
    2929                </repository>
    30         </repositories> 
     30        </repositories>
    3131
    3232        <dependencies>
     
    102102                        </exclusions>
    103103                </dependency>
    104                
     104
    105105                <dependency>
    106106                        <groupId>org.apache.poi</groupId>
  • SRUAggregator/trunk/src/main/resources/assets/index.html

    r6129 r6144  
    1414                <script src="http://cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-shim.js"></script>
    1515                <script src="http://cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-sham.js"></script>
    16         <![endif]-->   
     16        <![endif]-->
    1717
    1818        <style>
     
    5757        <script src="js/main.js"></script>
    5858
     59        <link href="clarinservices/clarinservices.css" rel="stylesheet">
     60        <script src="clarinservices/clarinservices.js"></script>
     61
    5962        <!-- Piwik -->
    6063        <script type="text/javascript">
  • SRUAggregator/trunk/src/main/resources/assets/js/main.js

    r6132 r6144  
    33"use strict";
    44
    5 var VERSION = window.MyAggregator.VERSION = "VERSION 2.0.0-beta-34";
    6 var URLROOT = window.MyAggregator.URLROOT =
    7         window.location.pathname.substring(0, window.location.pathname.indexOf("/",2)) ||
     5var VERSION = window.MyAggregator.VERSION = "VERSION 2.0.0-beta-35";
     6
     7var URLROOT = window.MyAggregator.URLROOT =
     8        window.location.pathname.substring(0, window.location.pathname.indexOf("/",2)) ||
    89        "/Aggregator";
    910
     
    4950                }, 10000);
    5051        },
    51        
     52
    5253        ajax: function(ajaxObject) {
    5354                var that = this;
     
    9293        },
    9394
    94         getPageFns: function() { 
     95        getPageFns: function() {
    9596                return {
    9697                        '': this.renderAggregator,
     
    139140                                ),
    140141                                React.createElement("ul", {id: "CLARIN_header_right", className: "nav navbar-nav navbar-right"},
    141                                 this.renderLogin()
     142                                        React.createElement("li", null,
     143                                                React.createElement("div", {id: "clarinservices", style: {padding:10}})
     144                                        ),
     145                                        this.renderLogin()
    142146                                )
    143147                        )
     
    156160                                        )
    157161                                ),
    158                        
     162
    159163                                React.createElement("div", {className: "navbar navbar-default navbar-static-top", role: "navigation"},
    160164                                        React.createElement("div", {className: "container"},
     
    203207                        stats: {},
    204208                        activeTab: 0,
    205                         // searchStats: {}, 
    206                         // lastScanStats: {}, 
     209                        // searchStats: {},
     210                        // lastScanStats: {},
    207211                };
    208212        },
     
    237241        renderCollections: function(colls) {
    238242                return  React.createElement("div", {style: {marginLeft:40}},
    239                                          colls.length === 0 ? 
     243                                         colls.length === 0 ?
    240244                                                React.createElement("div", {style: {color:"#a94442"}}, "NO collections found")
    241                                                 : 
     245                                                :
    242246                                                React.createElement("div", null,
    243247                                                        colls.length, " root collection(s):",
     
    255259                                        React.createElement("div", {className: classes},
    256260                                                React.createElement("div", null,
    257                                                          d.counter <= 1 ? false : 
     261                                                         d.counter <= 1 ? false :
    258262                                                                React.createElement("div", {className: "inline", style: {margin:"5px 5px 5px 5px"}},
    259263                                                                        React.createElement("span", {className: "badge", style: {backgroundColor:'#ae7241'}}, "x ", d.counter)
     
    264268                                                React.createElement("div", null, "Context: ", React.createElement("a", {href: d.context}, d.context))
    265269                                        )
    266                                 ); 
     270                                );
    267271        },
    268272
     
    272276                                        React.createElement("div", {className: "inline alert alert-danger", role: "alert"},
    273277                                                React.createElement("div", null,
    274                                                          e.counter <= 1 ? false : 
     278                                                         e.counter <= 1 ? false :
    275279                                                                React.createElement("div", {className: "inline", style: {margin:"5px 5px 5px 5px"}},
    276280                                                                        React.createElement("span", {className: "badge", style: {backgroundColor:'#c94442'}}, "x ", e.counter, " ")
     
    282286                                                 xc.cause ? React.createElement("div", null, "Caused by: ", xc.cause) : false
    283287                                        )
    284                                 ); 
     288                                );
    285289        },
    286290
     
    292296                                        React.createElement("ul", {className: "list-inline list-unstyled", style: {marginBottom:0}},
    293297                                                React.createElement("li", null,
    294                                                          stat.version == "LEGACY" ? 
    295                                                                 React.createElement("span", {style: {color:'#a94442'}}, "legacy ", React.createElement("i", {className: "glyphicon glyphicon-thumbs-down"}), " ") 
     298                                                         stat.version == "LEGACY" ?
     299                                                                React.createElement("span", {style: {color:'#a94442'}}, "legacy ", React.createElement("i", {className: "glyphicon glyphicon-thumbs-down"}), " ")
    296300                                                                : React.createElement("span", {style: {color:'#3c763d'}}, React.createElement("i", {className: "glyphicon glyphicon-thumbs-up"}), " "),
    297301                                                       
     
    300304                                        ),
    301305                                        React.createElement("div", {style: {marginLeft:40}},
    302                                          isScan ? 
     306                                         isScan ?
    303307                                                React.createElement("div", null, "Max concurrent scan requests:", " ", " ", stat.maxConcurrentRequests, " ") :
    304308                                                React.createElement("div", null, "Max concurrent search requests:", " ", " ", stat.maxConcurrentRequests, " ")
     
    307311                                        React.createElement("div", {style: {marginLeft:40}},
    308312                                                React.createElement("span", null, stat.numberOfRequests), " request(s)," + ' ' +
    309                                                 "average:", this.renderWaitTimeSecs(stat.avgExecutionTime), "," + ' ' + 
     313                                                "average:", this.renderWaitTimeSecs(stat.avgExecutionTime), "," + ' ' +
    310314                                                "max: ", this.renderWaitTimeSecs(stat.maxExecutionTime)
    311315                                        ),
    312316                                         isScan ? this.renderCollections(stat.rootCollections) : false,
    313                                                 (errors && errors.length) ? 
     317                                                (errors && errors.length) ?
    314318                                                React.createElement("div", {className: "inline", style: {marginLeft:40}},
    315319                                                         errors.map(this.renderError)
    316320                                                ) : false,
    317321                                       
    318                                                 (diagnostics && diagnostics.length) ? 
     322                                                (diagnostics && diagnostics.length) ?
    319323                                                React.createElement("div", {className: "inline", style: {marginLeft:40}},
    320324                                                         diagnostics.map(this.renderDiagnostic)
     
    381385var HelpPage = React.createClass({displayName: 'HelpPage',
    382386        openHelpDesk: function() {
    383                 window.open('http://support.clarin-d.de/mail/form.php?queue=Aggregator&lang=en', 
     387                window.open('http://support.clarin-d.de/mail/form.php?queue=Aggregator&lang=en',
    384388                        '_blank', 'height=560,width=370');
    385389        },
     
    391395                                        React.createElement("h1", null, "Help"),
    392396                                        React.createElement("h3", null, "Performing search in FCS corpora"),
    393                                         React.createElement("p", null, "To perform simple keyword search in all CLARIN-D Federated Content Search centers" + ' ' +
    394                                         "and their corpora, go to the search field at the top of the page," + ' ' + 
     397                                        React.createElement("p", null, "To perform simple keyword search in all CLARIN-D Federated Content Search centres" + ' ' +
     398                                        "and their corpora, go to the search field at the top of the page," + ' ' +
    395399                                        "enter your query, and click 'search' button or press the 'Enter' key."),
    396                                        
    397                                         React.createElement("p", null, "When the search starts, the page will start filling in with the corpora responses." + ' ' + 
     400
     401                                        React.createElement("p", null, "When the search starts, the page will start filling in with the corpora responses." + ' ' +
    398402                                        "After the entire search process has ended you have the option to download the results" + ' ' +
    399403                                        "in various formats."
     
    407411
    408412                                        React.createElement("h3", null, "Adjusting search criteria"),
    409                                         React.createElement("p", null, "The FCS Aggregator makes possible to select specific corpora based on their name" + ' ' + 
     413                                        React.createElement("p", null, "The FCS Aggregator makes possible to select specific corpora based on their name" + ' ' +
    410414                                        "or language and to specify the number of search results (hits) per corpus per page." + ' ' +
    411                                         "The user interface controls that allows to change these options are located" + ' ' + 
    412                                         "right below the search fiels on the main page. The current options are" + ' ' + 
    413                                         "to filter resources based on their language, to select specific resources, and" + ' ' + 
     415                                        "The user interface controls that allows to change these options are located" + ' ' +
     416                                        "right below the search fiels on the main page. The current options are" + ' ' +
     417                                        "to filter resources based on their language, to select specific resources, and" + ' ' +
    414418                                        "to set the maximum number of hits."),
    415419
    416420
    417421                                        React.createElement("h3", null, "More help"),
    418                                         React.createElement("p", null, "More detailed information on using FCS Aggregator is available" + ' ' +
    419                                         "at the Aggegator wiki page. If you still cannot find an answer to your question," + ' ' +
     422                                        React.createElement("p", null, "More detailed information on using FCS Aggregator is available at the",
     423                                        React.createElement("a", {href: "http://weblicht.sfs.uni-tuebingen.de/weblichtwiki/index.php/FCS_Aggregator"},
     424                                                "Aggregator wiki page"
     425                                        ), "." + ' ' +
     426                                        "If you still cannot find an answer to your question," + ' ' +
    420427                                        "or if want to send a feedback, you can write to Clarin-D helpdesk: "),
    421428                                        React.createElement("button", {type: "button", className: "btn btn-default btn-lg", onClick: this.openHelpDesk},
    422429                                                React.createElement("span", {className: "glyphicon glyphicon-question-sign", 'aria-hidden': "true"}),
    423430                                                " HelpDesk"
    424                                         )                                       
     431                                        )
    425432                                )
    426433                        )
  • SRUAggregator/trunk/src/main/resources/assets/js/main.jsx

    r6133 r6144  
    33"use strict";
    44
    5 var VERSION = window.MyAggregator.VERSION = "VERSION 2.0.0-beta-34";
    6 var URLROOT = window.MyAggregator.URLROOT =
    7         window.location.pathname.substring(0, window.location.pathname.indexOf("/",2)) ||
     5var VERSION = window.MyAggregator.VERSION = "VERSION 2.0.0-beta-35";
     6
     7var URLROOT = window.MyAggregator.URLROOT =
     8        window.location.pathname.substring(0, window.location.pathname.indexOf("/",2)) ||
    89        "/Aggregator";
    910
     
    4950                }, 10000);
    5051        },
    51        
     52
    5253        ajax: function(ajaxObject) {
    5354                var that = this;
     
    9293        },
    9394
    94         getPageFns: function() { 
     95        getPageFns: function() {
    9596                return {
    9697                        '': this.renderAggregator,
     
    139140                                </ul>
    140141                                <ul id="CLARIN_header_right" className="nav navbar-nav navbar-right">
    141                                 {this.renderLogin()}
     142                                        <li>
     143                                                <div id="clarinservices" style={{padding:10}}/>
     144                                        </li>
     145                                        {this.renderLogin()}
    142146                                </ul>
    143147                        </div>
     
    156160                                        </div>
    157161                                </div>
    158                        
     162
    159163                                <div className="navbar navbar-default navbar-static-top" role="navigation">
    160164                                        <div className="container">
     
    203207                        stats: {},
    204208                        activeTab: 0,
    205                         // searchStats: {}, 
    206                         // lastScanStats: {}, 
     209                        // searchStats: {},
     210                        // lastScanStats: {},
    207211                };
    208212        },
     
    237241        renderCollections: function(colls) {
    238242                return  <div style={{marginLeft:40}}>
    239                                         { colls.length === 0 ? 
     243                                        { colls.length === 0 ?
    240244                                                <div style={{color:"#a94442"}}>NO collections found</div>
    241                                                 : 
     245                                                :
    242246                                                <div>
    243247                                                        {colls.length} root collection(s):
     
    253257                var classes = "inline alert alert-warning " + (d.diagnostic.uri === 'LEGACY' ? "legacy" : "");
    254258                return  <div key={d.diagnostic.uri}>
    255                                         <div className={classes} > 
     259                                        <div className={classes} >
    256260                                                <div>
    257                                                         { d.counter <= 1 ? false : 
     261                                                        { d.counter <= 1 ? false :
    258262                                                                <div className="inline" style={{margin:"5px 5px 5px 5px"}}>
    259263                                                                        <span className="badge" style={{backgroundColor:'#ae7241'}}>x {d.counter}</span>
     
    264268                                                <div>Context: <a href={d.context}>{d.context}</a></div>
    265269                                        </div>
    266                                 </div>; 
     270                                </div>;
    267271        },
    268272
     
    272276                                        <div className="inline alert alert-danger" role="alert">
    273277                                                <div>
    274                                                         { e.counter <= 1 ? false : 
     278                                                        { e.counter <= 1 ? false :
    275279                                                                <div className="inline" style={{margin:"5px 5px 5px 5px"}}>
    276280                                                                        <span className="badge" style={{backgroundColor:'#c94442'}}>x {e.counter} </span>
     
    282286                                                { xc.cause ? <div>Caused by: {xc.cause}</div> : false}
    283287                                        </div>
    284                                 </div>; 
     288                                </div>;
    285289        },
    286290
     
    292296                                        <ul className='list-inline list-unstyled' style={{marginBottom:0}}>
    293297                                                <li>
    294                                                         { stat.version == "LEGACY" ? 
    295                                                                 <span style={{color:'#a94442'}}>legacy <i className="glyphicon glyphicon-thumbs-down"></i> </span> 
    296                                                                 : <span style={{color:'#3c763d'}}><i className="glyphicon glyphicon-thumbs-up"></i> </span> 
     298                                                        { stat.version == "LEGACY" ?
     299                                                                <span style={{color:'#a94442'}}>legacy <i className="glyphicon glyphicon-thumbs-down"></i> </span>
     300                                                                : <span style={{color:'#3c763d'}}><i className="glyphicon glyphicon-thumbs-up"></i> </span>
    297301                                                        }
    298302                                                        { " "+endpoint[0] }
     
    300304                                        </ul>
    301305                                        <div style={{marginLeft:40}}>
    302                                         { isScan ? 
     306                                        { isScan ?
    303307                                                <div>Max concurrent scan requests:{" "} {stat.maxConcurrentRequests} </div> :
    304308                                                <div>Max concurrent search requests:{" "} {stat.maxConcurrentRequests} </div>
     
    307311                                        <div style={{marginLeft:40}}>
    308312                                                <span>{stat.numberOfRequests}</span> request(s),
    309                                                 average:{this.renderWaitTimeSecs(stat.avgExecutionTime)}, 
     313                                                average:{this.renderWaitTimeSecs(stat.avgExecutionTime)},
    310314                                                max: {this.renderWaitTimeSecs(stat.maxExecutionTime)}
    311315                                        </div>
    312316                                        { isScan ? this.renderCollections(stat.rootCollections) : false }
    313                                         {       (errors && errors.length) ? 
     317                                        {       (errors && errors.length) ?
    314318                                                <div className='inline' style={{marginLeft:40}}>
    315319                                                        { errors.map(this.renderError) }
    316320                                                </div> : false
    317321                                        }
    318                                         {       (diagnostics && diagnostics.length) ? 
     322                                        {       (diagnostics && diagnostics.length) ?
    319323                                                <div className='inline' style={{marginLeft:40}}>
    320324                                                        { diagnostics.map(this.renderDiagnostic) }
     
    381385var HelpPage = React.createClass({
    382386        openHelpDesk: function() {
    383                 window.open('http://support.clarin-d.de/mail/form.php?queue=Aggregator&lang=en', 
     387                window.open('http://support.clarin-d.de/mail/form.php?queue=Aggregator&lang=en',
    384388                        '_blank', 'height=560,width=370');
    385389        },
     
    391395                                        <h1>Help</h1>
    392396                                        <h3>Performing search in FCS corpora</h3>
    393                                         <p>To perform simple keyword search in all CLARIN-D Federated Content Search centres 
    394                                         and their corpora, go to the search field at the top of the page, 
     397                                        <p>To perform simple keyword search in all CLARIN-D Federated Content Search centres
     398                                        and their corpora, go to the search field at the top of the page,
    395399                                        enter your query, and click 'search' button or press the 'Enter' key.</p>
    396                                        
    397                                         <p>When the search starts, the page will start filling in with the corpora responses. 
     400
     401                                        <p>When the search starts, the page will start filling in with the corpora responses.
    398402                                        After the entire search process has ended you have the option to download the results
    399403                                        in various formats.
     
    407411
    408412                                        <h3>Adjusting search criteria</h3>
    409                                         <p>The FCS Aggregator makes possible to select specific corpora based on their name 
     413                                        <p>The FCS Aggregator makes possible to select specific corpora based on their name
    410414                                        or language and to specify the number of search results (hits) per corpus per page.
    411                                         The user interface controls that allows to change these options are located 
    412                                         right below the search fiels on the main page. The current options are 
    413                                         to filter resources based on their language, to select specific resources, and 
     415                                        The user interface controls that allows to change these options are located
     416                                        right below the search fiels on the main page. The current options are
     417                                        to filter resources based on their language, to select specific resources, and
    414418                                        to set the maximum number of hits.</p>
    415419
    416420
    417421                                        <h3>More help</h3>
    418                                         <p>More detailed information on using FCS Aggregator is available
    419                                         at the Aggegator wiki page. If you still cannot find an answer to your question,
     422                                        <p>More detailed information on using FCS Aggregator is available at the
     423                                        <a href="http://weblicht.sfs.uni-tuebingen.de/weblichtwiki/index.php/FCS_Aggregator">
     424                                                Aggregator wiki page
     425                                        </a>.
     426                                        If you still cannot find an answer to your question,
    420427                                        or if want to send a feedback, you can write to Clarin-D helpdesk: </p>
    421428                                        <button type="button" className="btn btn-default btn-lg" onClick={this.openHelpDesk} >
    422429                                                <span className="glyphicon glyphicon-question-sign" aria-hidden="true"></span>
    423430                                                &nbsp;HelpDesk
    424                                         </button>                                       
     431                                        </button>
    425432                                </div>
    426433                        </div>
     
    490497                                                <h3>Statistics</h3>
    491498                                                <button type="button" className="btn btn-default btn-lg" onClick={function() {main.toStatistics(true);}} >
    492                                                         <span className="glyphicon glyphicon-cog" aria-hidden="true"> </span> 
     499                                                        <span className="glyphicon glyphicon-cog" aria-hidden="true"> </span>
    493500                                                        View server log
    494501                                                </button>
     
    513520                        <div className="container">
    514521                                <div id="CLARIN_footer_left">
    515                                                 <a title="about" href="about" onClick={this.toAbout}> 
     522                                                <a title="about" href="about" onClick={this.toAbout}>
    516523                                                <span className="glyphicon glyphicon-info-sign"></span>
    517524                                                <span>{VERSION}</span>
Note: See TracChangeset for help on using the changeset viewer.