Changeset 7035 for SRUAggregator


Ignore:
Timestamp:
07/07/16 11:32:54 (8 years ago)
Author:
Leif-Jöran
Message:

Do not display 'Display as ADV' if queryType=cql.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SRUAggregator/trunk/src/main/resources/assets/js/search.jsx

    r7034 r7035  
    684684                                                                  searchedLanguage={this.state.language}
    685685                                                                  weblichtLanguages={this.state.weblichtLanguages}
    686                                                                   languageMap={this.state.languageMap} />
     686                                                                  languageMap={this.state.languageMap}
     687                                                                  queryType={this.state.queryType} />
    687688                                </Modal>
    688689
     
    692693                                                         getDownloadLink={this.getDownloadLink}
    693694                                                         getToWeblichtLink={this.getToWeblichtLink}
    694                                                          searchedLanguage={this.state.language}/>
     695                                                         searchedLanguage={this.state.language}
     696                                                         queryType={this.state.queryType}/>
    695697                                </div>
    696698                        </div>
     
    989991                getDownloadLink: PT.func.isRequired,
    990992                getToWeblichtLink: PT.func.isRequired,
     993                queryType: PT.string.isrequired,
    991994        },
    992995        mixins: [ResultMixin],
     
    10671070                                                                <div>
    10681071                                                                        {this.renderDisplayKWIC()}
    1069                                                                         {this.renderDisplayADV()}
     1072                                                                    {this.props.queryType !== "fcs" ? "" : this.renderDisplayADV()}
    10701073                                                                        <div className="inline"> {this.renderDownloadLinks(corpusHit.corpus.id)} </div>
    10711074                                                                        <div className="inline"> {this.renderToWeblichtLinks(corpus.id, forceLanguage, wlerror)} </div>
     
    10941097                getDownloadLink: PT.func.isRequired,
    10951098                getToWeblichtLink: PT.func.isRequired,
     1099                queryType: PT.string.isRequired,
    10961100        },
    10971101        mixins: [ResultMixin],
     
    11631167                                                                        <div>
    11641168                                                                                {this.renderDisplayKWIC()}
    1165                                                                                 {this.renderDisplayADV()}
     1169                                                                            {this.props.queryType !== "fcs" ? "" : this.renderDisplayADV()}
    11661170                                                                                { collhits.inProgress === 0 ?
    11671171                                                                                        <div className="inline"> {this.renderDownloadLinks()} </div>
Note: See TracChangeset for help on using the changeset viewer.