@@ -38,76 +38,75 @@ class ContextLine extends React.Component {
3838
3939 return (
4040 < ContextLineTemplate >
41- { params . showAuthor && (
42- < Author
43- bioLabel = { localization . bio_link }
44- livingDates = { params . author . livingDates }
45- link = { "https://d-nb.info/gnd/" + params . author . id }
41+ { params . showAuthor && (
42+ < Author
43+ bioLabel = { localization . bio_link }
44+ livingDates = { params . author . livingDates }
45+ link = { "https://d-nb.info/gnd/" + params . author . id }
46+ />
47+ ) }
48+ < NumArticles
49+ articlesCount = { params . articlesCount }
50+ openAccessArticlesCount = { params . openAccessCount }
51+ articlesCountLabel = { localization . articles_label }
52+ >
53+ < Modifier popoverContainer = { popoverContainer } />
54+ </ NumArticles >
55+ { defined ( params . dataSource ) && (
56+ < DataSource
57+ label = { localization . source_label }
58+ source = { params . dataSource }
59+ contentProvider = { params . contentProvider }
60+ popoverContainer = { this . props . popoverContainer }
61+ />
62+ ) }
63+ { defined ( params . timespan ) &&
64+ < Timespan >
65+ < ContextTimeFrame popoverContainer = { popoverContainer } timespan = { params . timespan } />
66+ </ Timespan > }
67+ < DocumentTypes
68+ documentTypes = { params . documentTypes }
69+ popoverContainer = { popoverContainer }
4670 />
47- ) }
48- < NumArticles
49- articlesCount = { params . articlesCount }
50- openAccessArticlesCount = { params . openAccessCount }
51- articlesCountLabel = { localization . articles_label }
52- >
53- < Modifier popoverContainer = { popoverContainer } />
54- </ NumArticles >
55- { defined ( params . dataSource ) && (
56- < DataSource
57- label = { localization . source_label }
58- source = { params . dataSource }
59- contentProvider = { params . contentProvider }
60- popoverContainer = { this . props . popoverContainer }
71+ { /* was an issue to left "All Languages" as default value in the context if no lang_id in parameters */ }
72+ < DocumentLang
73+ value = { params . documentLang }
74+ popoverContainer = { popoverContainer }
6175 />
62- ) }
63- { defined ( params . timespan ) &&
64- < Timespan >
65- < ContextTimeFrame popoverContainer = { popoverContainer } timespan = { params . timespan } />
66- </ Timespan > }
67- < DocumentTypes
68- documentTypes = { params . documentTypes }
69- popoverContainer = { popoverContainer }
70- />
71- { /* place for document Lang */ }
72- { defined ( params . documentLang ) && (
73- < DocumentLang
74- value = { params . documentLang }
75- />
76- ) }
77- { defined ( params . paperCount ) && (
78- < PaperCount
79- value = { params . paperCount }
80- label = { localization . paper_count_label }
76+ { defined ( params . paperCount ) && (
77+ < PaperCount
78+ value = { params . paperCount }
79+ label = { localization . paper_count_label }
80+ />
81+ ) }
82+ { defined ( params . datasetCount ) && (
83+ < DatasetCount
84+ value = { params . datasetCount }
85+ label = { localization . dataset_count_label }
86+ />
87+ ) }
88+ { defined ( params . funder ) && < Funder > { params . funder } </ Funder > }
89+ { defined ( params . projectRuntime ) && (
90+ < ProjectRuntime > { params . projectRuntime } </ ProjectRuntime >
91+ ) }
92+ { defined ( params . legacySearchLanguage ) && (
93+ < LegacySearchLang > { params . legacySearchLanguage } </ LegacySearchLang >
94+ ) }
95+ { defined ( params . timestamp ) && (
96+ < Timestamp
97+ value = { params . timestamp }
98+ label = { localization . timestamp_label }
99+ />
100+ ) }
101+ < MetadataQuality
102+ quality = { params . metadataQuality }
103+ service = { service }
104+ popoverContainer = { popoverContainer }
81105 />
82- ) }
83- { defined ( params . datasetCount ) && (
84- < DatasetCount
85- value = { params . datasetCount }
86- label = { localization . dataset_count_label }
87- />
88- ) }
89- { defined ( params . funder ) && < Funder > { params . funder } </ Funder > }
90- { defined ( params . projectRuntime ) && (
91- < ProjectRuntime > { params . projectRuntime } </ ProjectRuntime >
92- ) }
93- { defined ( params . legacySearchLanguage ) && (
94- < LegacySearchLang > { params . legacySearchLanguage } </ LegacySearchLang >
95- ) }
96- { defined ( params . timestamp ) && (
97- < Timestamp
98- value = { params . timestamp }
99- label = { localization . timestamp_label }
100- />
101- ) }
102- < MetadataQuality
103- quality = { params . metadataQuality }
104- service = { service }
105- popoverContainer = { popoverContainer }
106- />
107- { defined ( params . searchLanguage ) && (
108- < SearchLang > { params . searchLanguage } </ SearchLang >
109- ) }
110- < MoreInfoLink />
106+ { defined ( params . searchLanguage ) && (
107+ < SearchLang > { params . searchLanguage } </ SearchLang >
108+ ) }
109+ < MoreInfoLink />
111110 </ ContextLineTemplate >
112111 ) ;
113112 }
0 commit comments