Changeset 6093


Ignore:
Timestamp:
03/11/15 08:18:24 (9 years ago)
Author:
emanuel.dima@uni-tuebingen.de
Message:
  1. beta-28: disabling sampa for now
Location:
SRUAggregator/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • SRUAggregator/trunk/pom.xml

    r6092 r6093  
    88        <groupId>eu.clarin.sru.fcs</groupId>
    99        <artifactId>Aggregator2</artifactId>
    10         <version>2.0.0-beta-27</version>
     10        <version>2.0.0-beta-28</version>
    1111        <name>FCS Aggregator</name>
    1212
  • SRUAggregator/trunk/src/main/java/eu/clarin/sru/fcs/aggregator/app/Aggregator.java

    r6092 r6093  
    8888 * TODO: add the modes described above (except live)
    8989 *
     90 * TODO: update comments everywhere
     91 *
     92 * TODO: add some basic docs
     93 *
    9094 * TODO: Export search results to personal workspace using oauth
    9195 *
  • SRUAggregator/trunk/src/main/java/eu/clarin/sru/fcs/aggregator/scan/ScanCrawlTask.java

    r6049 r6093  
    6262                        if (additionalCQLEndpoints != null && !additionalCQLEndpoints.isEmpty()) {
    6363                                institutions.add(0,
    64                                                 new Institution("ZZZ", null) {
     64                                                new Institution("Unknown Institution", null) {
    6565                                                        {
    6666                                                                for (URL u : additionalCQLEndpoints) {
  • SRUAggregator/trunk/src/main/resources/assets/js/main.js

    r6092 r6093  
    33"use strict";
    44
    5 var VERSION = "VERSION 2.0.0-beta-27";
     5var VERSION = "VERSION 2.0.0-beta-28";
    66var URLROOT = "/Aggregator-testing";
    77
  • SRUAggregator/trunk/src/main/resources/assets/js/main.jsx

    r6092 r6093  
    33"use strict";
    44
    5 var VERSION = "VERSION 2.0.0-beta-27";
     5var VERSION = "VERSION 2.0.0-beta-28";
    66var URLROOT = "/Aggregator-testing";
    77
  • SRUAggregator/trunk/src/main/resources/assets/js/search.js

    r6092 r6093  
    2424var layers = [
    2525        {
     26                id: "text",
     27                name: "Text Resources",
     28                searchPlaceholder: "Elephant",
     29                searchLabel: "Search text",
     30                searchLabelBkColor: "#fed",
     31                className: '',
     32        },
     33        {
    2634                id: "sampa",
    2735                name: "Phonetic Transcriptions",
     
    2937                searchLabel: "SAMPA query",
    3038                searchLabelBkColor: "#eef",
    31         },
    32         {
    33                 id: "text",
    34                 name: "Text Resources",
    35                 searchPlaceholder: "Elephant",
    36                 searchLabel: "Search text",
    37                 searchLabelBkColor: "#fed",
     39                disabled: true,
    3840        },
    3941];
    4042var layerMap = {
    41         sampa: layers[0],
    42         text: layers[1],
     43        text: layers[0],
     44        sampa: layers[1],
    4345};
    4446
     
    466468                                                                        React.createElement("ul", {ref: "layerDropdownMenu", className: "dropdown-menu"},
    467469                                                                                        layers.map(function(l) {
    468                                                                                                 return React.createElement("li", {key: l.id}, " ", React.createElement("a", {tabIndex: "-1", href: "#",
    469                                                                                                         onClick: this.setLayer.bind(this, l.id)}, " ", l.name, " "));
     470                                                                                                var cls = l.disabled ? 'disabled':'';
     471                                                                                                var handler = function() { if (!l.disabled) this.setLayer(l.id); };
     472                                                                                                return React.createElement("li", {key: l.id, className: cls}, " ", React.createElement("a", {tabIndex: "-1", href: "#",
     473                                                                                                        onClick: handler}, " ", l.name, " "));
    470474                                                                                        }.bind(this))
    471475                                                                               
  • SRUAggregator/trunk/src/main/resources/assets/js/search.jsx

    r6092 r6093  
    2424var layers = [
    2525        {
     26                id: "text",
     27                name: "Text Resources",
     28                searchPlaceholder: "Elephant",
     29                searchLabel: "Search text",
     30                searchLabelBkColor: "#fed",
     31                className: '',
     32        },
     33        {
    2634                id: "sampa",
    2735                name: "Phonetic Transcriptions",
     
    2937                searchLabel: "SAMPA query",
    3038                searchLabelBkColor: "#eef",
    31         },
    32         {
    33                 id: "text",
    34                 name: "Text Resources",
    35                 searchPlaceholder: "Elephant",
    36                 searchLabel: "Search text",
    37                 searchLabelBkColor: "#fed",
     39                disabled: true,
    3840        },
    3941];
    4042var layerMap = {
    41         sampa: layers[0],
    42         text: layers[1],
     43        text: layers[0],
     44        sampa: layers[1],
    4345};
    4446
     
    466468                                                                        <ul ref="layerDropdownMenu" className="dropdown-menu">
    467469                                                                                {       layers.map(function(l) {
    468                                                                                                 return <li key={l.id}> <a tabIndex="-1" href="#"
    469                                                                                                         onClick={this.setLayer.bind(this, l.id)}> {l.name} </a></li>;
     470                                                                                                var cls = l.disabled ? 'disabled':'';
     471                                                                                                var handler = function() { if (!l.disabled) this.setLayer(l.id); };
     472                                                                                                return <li key={l.id} className={cls}> <a tabIndex="-1" href="#"
     473                                                                                                        onClick={handler}> {l.name} </a></li>;
    470474                                                                                        }.bind(this))
    471475                                                                                }
Note: See TracChangeset for help on using the changeset viewer.