- Timestamp:
- 02/25/15 14:54:04 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUAggregator/trunk/src/main/resources/assets/js/search.jsx
r6049 r6057 270 270 }, 271 271 272 getToWeblichtLink: function(format) { 273 return 'rest/search/'+this.state.searchId+'/toWeblicht?format='+format; 274 }, 275 272 276 setLanguageAndFilter: function(languageObj, languageFilter) { 273 277 this.state.corpora.setVisibility(this.state.searchLayerId, … … 427 431 results={this.filterResults()} 428 432 getDownloadLink={this.getDownloadLink} 433 getToWeblichtLink={this.getToWeblichtLink} 429 434 searchedLanguage={this.state.language}/> 430 435 </div> … … 527 532 searchedLanguage: PT.array.isRequired, 528 533 getDownloadLink: PT.func.isRequired, 534 getToWeblichtLink: PT.func.isRequired, 529 535 }, 530 536 … … 537 543 toggleKwic: function() { 538 544 this.setState({displayKwic:!this.state.displayKwic}); 545 }, 546 547 zoom: function(e) { 548 e.stopPropagation(); 539 549 }, 540 550 … … 603 613 604 614 renderDiagnostic: function(d) { 605 return <div className="alert alert-warning" >615 return <div className="alert alert-warning" key={d.uri}> 606 616 <div>Diagnostic: {d.message}</div> 607 617 </div>; … … 654 664 return false; 655 665 } 656 return <Panel key={corpusHit.corpus. title}666 return <Panel key={corpusHit.corpus.id} 657 667 title={this.renderPanelTitle(corpusHit.corpus)} 658 668 info={this.renderPanelInfo(corpusHit.corpus)}> … … 709 719 }, 710 720 721 renderToWeblichtLinks: function() { 722 return ( 723 <div className="dropdown"> 724 <button className="btn btn-default" aria-expanded="false" data-toggle="dropdown" > 725 <span className="glyphicon glyphicon-download-alt" aria-hidden="true"/> 726 {" "} Use Weblicht {" "} 727 <span className="caret"/> 728 </button> 729 <ul className="dropdown-menu"> 730 <li> <a href={this.props.getToWeblichtLink("text")}> 731 {" "} As Plain Text file</a></li> 732 </ul> 733 </div> 734 ); 735 }, 736 711 737 renderToolbox: function(hits) { 712 738 if (hits <= 0) { … … 716 742 <div className="toolbox float-left inline"> 717 743 {this.renderDownloadLinks()} 744 </div> 745 <div className="toolbox float-left inline"> 746 {this.renderToWeblichtLinks()} 718 747 </div> 719 748 <div className="float-right inline" style={{marginTop:15}}>
Note: See TracChangeset
for help on using the changeset viewer.