-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublications.html
More file actions
1021 lines (941 loc) · 41.8 KB
/
Copy pathpublications.html
File metadata and controls
1021 lines (941 loc) · 41.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
layout: page
permalink: /publications/
title: publications
description: Publications, CV, and external scholarly profiles.
nav: false
nav_order: 3.1
---
<h2>Publications & CV</h2>
<ul>
<li><a href="https://orcid.org/0000-0002-7398-9388">ORCID: 0000-0002-7398-9388</a></li>
<li><a href="https://scholar.google.com/citations?user=CDY4XuYAAAAJ&hl=en">Google Scholar profile</a></li>
<li><a href="https://www.researchgate.net/profile/Brian-Enquist">ResearchGate profile</a></li>
<li>Full CV: <a href="{{ '/cv/' | relative_url }}">View the CV page</a></li>
</ul>
<hr />
<h2>Complete Publication List</h2>
<p class="pub-intro-text">Use the tabs to group papers by subject area, or use the search box to filter within the active group.</p>
<div class="home-stats" style="max-width: 480px; margin: 0.5rem 0 1.25rem">
<div class="home-stat">
<span class="home-stat__number">320+</span>
<span class="home-stat__label">Publications</span>
</div>
<div class="home-stat">
<span class="home-stat__number">1993</span>
<span class="home-stat__label">Est.</span>
</div>
<div class="home-stat">
<span class="home-stat__number">12</span>
<span class="home-stat__label">Research Areas</span>
</div>
</div>
<div class="publication-topic-toolbar">
<div id="publication-topic-tabs" class="publication-topic-tabs" role="tablist" aria-label="Filter by research theme"></div>
<p class="publication-topic-caption publication-topic-caption--hint">Tabs are ordered by number of publications (highest to lowest).</p>
</div>
<div id="pub-search-wrap">
<input
type="text"
id="pub-search"
spellcheck="false"
autocomplete="off"
class="search bibsearch-form-input"
placeholder="Search by title, author, or journal"
aria-label="Search publications"
/>
<button type="button" id="pub-search-clear" hidden>✕</button>
</div>
<p id="pub-search-count"></p>
<p id="publication-topic-empty" class="publication-topic-empty" hidden>No publications match the current subject tab and search query.</p>
<div id="full-publication-list">{% include publications_full_from_doc.md %}</div>
<script id="publication-category-overrides" type="application/json">
{
"overrides": {{ site.data.publication_category_overrides.overrides | jsonify }}
}
</script>
<style>
.publication-topic-toolbar {
margin: 0.75rem 0 0.5rem;
}
.publication-topic-tabs {
display: flex;
flex-wrap: wrap;
gap: 0.65rem;
margin-bottom: 0.75rem;
}
.publication-topic-tab {
appearance: none;
border: 1px solid var(--global-divider-color);
background: var(--global-card-bg-color);
border-radius: 999px;
color: var(--global-text-color);
cursor: pointer;
font-family: "Source Sans 3", sans-serif;
font-size: 0.88rem;
font-weight: 600;
line-height: 1.3;
padding: 0.4rem 0.85rem;
letter-spacing: 0.02em;
transition:
background-color 0.2s ease,
border-color 0.2s ease,
color 0.2s ease,
transform 0.2s ease,
box-shadow 0.2s ease;
}
.publication-topic-tab:hover {
border-color: var(--global-theme-color);
color: var(--global-theme-color);
background: color-mix(in srgb, var(--global-theme-color) 6%, var(--global-card-bg-color) 94%);
outline: none;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(31, 90, 68, 0.1);
}
.publication-topic-tab:focus-visible {
border-color: var(--global-theme-color);
color: var(--global-theme-color);
outline: 2px solid var(--global-theme-color);
outline-offset: 2px;
transform: translateY(-1px);
}
.publication-topic-tab.is-active {
background: var(--global-theme-color);
border-color: var(--global-theme-color);
color: var(--global-card-bg-color);
font-weight: 700;
box-shadow: 0 2px 8px rgba(31, 90, 68, 0.22);
}
.publication-topic-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 1.4rem;
height: 1.4rem;
margin-left: 0.45rem;
padding: 0 0.4rem;
border-radius: 999px;
background: color-mix(in srgb, var(--global-theme-color) 16%, transparent);
font-size: 0.75rem;
font-weight: 600;
}
.publication-topic-tab.is-active .publication-topic-count {
background: rgba(255, 255, 255, 0.18);
color: #fff;
}
.publication-topic-caption {
margin: 0.25rem 0 0;
color: var(--global-text-color-light);
font-size: 0.98rem;
}
.publication-topic-caption--hint {
font-size: 0.8rem;
letter-spacing: 0.01em;
opacity: 0.9;
}
.publication-topic-empty {
display: inline-block;
margin: 0 0 1rem;
padding: 0.7rem 0.9rem;
border-left: 3px solid var(--global-theme-color);
background: color-mix(in srgb, var(--global-theme-color) 10%, transparent);
color: var(--global-text-color);
}
/* Publication list width — give papers more breathing room */
#full-publication-list ol,
#full-publication-list ul {
padding-left: 1.25rem;
padding-right: 1.25rem;
max-width: 100%;
}
#full-publication-list li {
margin-bottom: 0.4rem;
max-width: none;
}
/* Year headers — editorial chapter markers */
.pub-year-header {
font-family: "Source Serif 4", Georgia, serif;
font-size: 1.4rem !important;
font-weight: 600 !important;
color: var(--global-theme-color) !important;
margin: 3rem 0 0.5rem !important;
padding: 0 0 0 0.85rem !important;
border-bottom: none !important;
letter-spacing: 0.02em;
line-height: 1;
scroll-margin-top: 5rem;
font-variant-numeric: tabular-nums;
position: relative;
}
.pub-year-header::before {
content: "";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 1.1em;
background: var(--global-theme-color);
border-radius: 2px;
}
/* Search bar */
#pub-search-wrap {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 0.65rem 0 0;
}
#pub-search {
flex: 1;
border: 1px solid var(--global-divider-color);
border-radius: 6px;
padding: 0.55rem 0.8rem;
background: var(--global-card-bg-color);
font-family: "Source Sans 3", sans-serif;
font-size: 0.95rem;
color: var(--global-text-color);
outline: none;
transition:
border-color 0.18s ease,
box-shadow 0.18s ease;
}
#pub-search:focus {
border-color: var(--global-theme-color);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--global-theme-color) 16%, transparent);
}
#pub-search::placeholder {
color: var(--global-text-color-light);
opacity: 0.75;
}
#pub-search-clear {
background: none;
border: 1px solid color-mix(in srgb, var(--global-theme-color) 40%, transparent);
border-radius: 999px;
cursor: pointer;
font-size: 0.78rem;
padding: 0.28rem 0.65rem;
color: var(--global-theme-color);
font-family: "Source Sans 3", sans-serif;
transition:
background 0.15s ease,
color 0.15s ease;
}
#pub-search-clear:hover {
background: var(--global-theme-color);
color: #fff;
}
#pub-search-count {
margin: 0.35rem 0 0;
font-size: 0.82rem;
color: var(--global-text-color-light);
font-family: "Source Sans 3", sans-serif;
letter-spacing: 0.02em;
min-height: 1.4em;
}
/* Year navigator — fixed right-rail timeline */
#year-nav {
position: fixed;
top: 50%;
right: 1.25rem;
transform: translateY(-50%);
z-index: 200;
pointer-events: none;
max-height: 80vh;
}
@media (max-width: 1200px) {
#year-nav {
right: 0.55rem;
}
}
@media (max-width: 980px) {
#year-nav {
display: none;
}
}
#year-nav ul {
list-style: none;
margin: 0;
padding: 0 0 0 0.8rem;
border-left: 2px solid var(--global-divider-color);
display: flex;
flex-direction: column;
gap: 0.1rem;
pointer-events: all;
max-height: 80vh;
overflow-y: auto;
scrollbar-width: none;
}
#year-nav ul::-webkit-scrollbar {
display: none;
}
#year-nav li a {
display: block;
font-size: 0.69rem;
font-weight: 500;
color: var(--global-text-color-light);
text-decoration: none;
padding: 0.08rem 0.5rem;
border-radius: 999px;
transition:
color 0.18s ease,
background 0.18s ease,
transform 0.18s ease,
font-size 0.18s ease,
font-weight 0.18s ease;
letter-spacing: 0.03em;
white-space: nowrap;
line-height: 1.75;
}
#year-nav li a:hover {
color: var(--global-theme-color);
background: color-mix(in srgb, var(--global-theme-color) 10%, transparent);
transform: translateX(-2px);
}
#year-nav li.is-active a {
color: var(--global-theme-color);
font-weight: 700;
font-size: 0.78rem;
}
#year-nav li[hidden] {
display: none;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
const input = document.getElementById("pub-search");
const container = document.getElementById("full-publication-list");
const tabsContainer = document.getElementById("publication-topic-tabs");
const emptyState = document.getElementById("publication-topic-empty");
if (!input || !container || !tabsContainer || !emptyState) return;
const clearBtn = document.getElementById("pub-search-clear");
const resultCount = document.getElementById("pub-search-count");
if (clearBtn) {
clearBtn.addEventListener("click", function () {
input.value = "";
input.dispatchEvent(new Event("input"));
input.focus();
});
}
const topicDefinitions = [
{ id: "all", label: "All", threshold: 0, matchers: [] },
{
id: "macroecology",
label: "Macroecology",
threshold: 2,
matchers: [
{ pattern: /macroecolog/i, weight: 3 },
{ pattern: /biogeograph/i, weight: 2 },
{ pattern: /latitudinal/i, weight: 2 },
{ pattern: /range size/i, weight: 2 },
{ pattern: /species richness/i, weight: 2 },
{ pattern: /rarity/i, weight: 1 },
{ pattern: /broad geographic/i, weight: 2 },
{ pattern: /continental/i, weight: 1 },
// Species abundance distributions — McGill et al. 2007; Morlon et al. 2009
{ pattern: /species\s+abundance\s+distribution[s]?/i, weight: 3 },
{ pattern: /abundance\s+distribution[s]?\b/i, weight: 2 },
// Macroscopic patterns — Enquist et al. 2002 (Science)
{ pattern: /macroscopic\s+patterns?/i, weight: 3 },
// Global rarity — Enquist et al. 2019 (Science Advances)
{ pattern: /global.*rarity|rarity.*global/i, weight: 2 },
// Northern/Southern Hemisphere breadth — Bektaş et al. 2024 (Ecography)
{ pattern: /northern\s+hemisphere|southern\s+hemisphere/i, weight: 2 },
// Latitudinal diversity gradient — Lamanna et al. 2014; Weiser et al. 2017
{ pattern: /latitudinal\s+diversity\s+gradient/i, weight: 3 },
// Diversity gradients — Weiser et al. 2018; Stegen et al. 2012
{ pattern: /diversity\s+gradient[s]?/i, weight: 2 },
// Biodiversity patterns across gradients — Stegen et al. 2012
{ pattern: /biodiversity\s+patterns?\s+(across|along)/i, weight: 2 },
// Species–energy relationship — Símová et al. 2011
{ pattern: /species[- ]energy\s+relationship/i, weight: 3 },
// General laws of biodiversity — Moulatlet et al. 2025
{ pattern: /general\s+laws?\s+of\s+biodiversity/i, weight: 3 },
// Global beta-diversity — Xu et al. 2023
{ pattern: /global\s+beta[- ]?diversity/i, weight: 2 },
// Global distribution and drivers (trait geography) — Mo et al. 2024
{ pattern: /global\s+distribution\s+(and\s+)?drivers?/i, weight: 2 },
// Across the globe — Hordijk et al. 2024
{ pattern: /across\s+the\s+globe/i, weight: 2 },
// Body size–abundance — White et al. 2007; Dillon et al. 2019
{ pattern: /body\s+size.{0,20}abundance/i, weight: 2 },
// Broad climatic gradients — Stegen et al. 2011
{ pattern: /broad\s+climatic\s+gradient[s]?/i, weight: 2 },
// Global productivity–richness — Hordijk et al. 2023
{ pattern: /global\s+relationship.*richness|richness.*global\s+relationship/i, weight: 2 },
// Tree diversity / species under global change — Boonman et al. 2024
{ pattern: /tree\s+species.*global\s+change|global\s+change.*tree\s+species/i, weight: 2 },
],
},
{
id: "metabolic-scaling-allometry",
label: "Metabolic Scaling and Allometry",
threshold: 2,
matchers: [
{ pattern: /allometr/i, weight: 3 },
{ pattern: /metabolic/i, weight: 2 },
{ pattern: /scaling/i, weight: 1 },
{ pattern: /scaling theor/i, weight: 3 },
{ pattern: /trait driver theor/i, weight: 3 },
{ pattern: /traits to ecosystems/i, weight: 2 },
{ pattern: /body size/i, weight: 2 },
{ pattern: /biomass allocation/i, weight: 2 },
{ pattern: /quarter-power/i, weight: 3 },
{ pattern: /carbon economics/i, weight: 2 },
{ pattern: /branching networks?/i, weight: 2 },
{ pattern: /mesotherm/i, weight: 2 },
{ pattern: /woody plant production/i, weight: 2 },
{ pattern: /production across global climate gradients/i, weight: 2 },
{ pattern: /biosphere functioning/i, weight: 2 },
{ pattern: /megabiota/i, weight: 2 },
{ pattern: /temperature gradient/i, weight: 1 },
{ pattern: /stoichiometr/i, weight: 1 }, // Vasseur et al. 2025 — organism traits → ecosystem processes; size
{ pattern: /organism traits to ecosystem processes/i, weight: 3 },
{ pattern: /why size is so important/i, weight: 3 },
// Cruz et al. 2025 — scaling COVID-19
{ pattern: /scaling covid/i, weight: 3 },
{ pattern: /covid.{0,5}rates.*population size/i, weight: 3 },
// Enquist et al. 2024 — scaling & macroecology, ecological resilience
{ pattern: /scaling approaches and macroecolog/i, weight: 3 },
{ pattern: /ecological resilience in the anthropocene/i, weight: 3 },
// Castorena et al. 2022 — general theory of plant carbon
{ pattern: /general theory of plant carbon/i, weight: 3 },
// Brummer et al. 2021 — branching principles
{ pattern: /branching principles/i, weight: 3 },
{ pattern: /animal and plant networks/i, weight: 3 },
],
},
{
id: "trait-based-ecology",
label: "Trait-based Ecology",
threshold: 2,
matchers: [
{ pattern: /trait-based/i, weight: 3 },
{ pattern: /functional trait/i, weight: 3 },
{ pattern: /leaf economics/i, weight: 2 },
{ pattern: /leaf economic spectrum/i, weight: 2 }, // "leaf economic spectrum" (no 's')
{ pattern: /plant form and function/i, weight: 3 }, // global spectrum of plant form and function
{ pattern: /trait driver/i, weight: 3 }, // Trait Driver Theory
{ pattern: /traitstrap/i, weight: 3 }, // traitstrap R package
{ pattern: /open traits/i, weight: 3 }, // OpenTraits network
{ pattern: /trait variation/i, weight: 2 },
{ pattern: /trait diversity/i, weight: 2 },
{ pattern: /phenotypic distribution/i, weight: 2 },
{ pattern: /plant trait|leaf trait|canopy trait/i, weight: 2 }, // plant/leaf/canopy trait papers
{ pattern: /intraspecific trait/i, weight: 2 }, // ITV papers (variation or variability)
{ pattern: /trait.environment/i, weight: 2 }, // trait-environment relationships
{ pattern: /trait dimension/i, weight: 2 }, // trait dimensions (Messier et al.)
{ pattern: /trait mean\b|trait space/i, weight: 2 }, // shifts in trait means; trait space
{ pattern: /scaling from traits|traits to ecosystem/i, weight: 2 }, // TDT scaling
{ pattern: /intraspecific variation/i, weight: 1 },
{ pattern: /leaf mass per area/i, weight: 1 },
{ pattern: /\btraits\b/i, weight: 1 },
// Enquist et al. 1999 — Allometric scaling of production and life history variation in vascular plants (Nature 401)
{ pattern: /life history variation/i, weight: 2 },
// West et al. 1999 — A general model for the structure, and allometry of plant vascular systems (Nature 400)
{ pattern: /vascular systems/i, weight: 2 },
// Wood density as a key plant functional trait (Mo 2024, Stegen 2009, Swenson 2007–2008)
{ pattern: /wood density/i, weight: 2 },
{ pattern: /wood specific gravity/i, weight: 2 },
// Functional composition papers (Swenson 2020, Martínez-Villa 2024, Enquist 2011)
{ pattern: /functional composition/i, weight: 2 },
// Life-history scaling in trait context (Grady 2024)
{ pattern: /life history scaling/i, weight: 2 },
// Rebuilding community ecology from functional traits (McGill et al. 2006) — already caught by /functional trait/i
// Leaf size/area as a functional trait proxy (Li 2020)
{ pattern: /leaf size.*ecosystem|ecosystem.*leaf size/i, weight: 2 },
// Lourenco Jr et al. (2021) Ecosphere 12:e03629 — Soil-associated drivers of plant traits
// and functional composition in Atlantic Forest coastal tree communities.
// Already caught by /plant trait/ + /functional composition/ (score 4); matcher added for documentation.
{ pattern: /soil.*drivers.*plant traits|Atlantic Forest.*plant traits/i, weight: 2 },
// Consistent trait–environment relationships — Kemppinen et al. (2021) Nature Ecol & Evol
{ pattern: /consistent trait.*environment relationship/i, weight: 2 },
// Globally important plant functional traits — Kühn et al. (2021) Frontiers Biogeography
{ pattern: /globally important plant functional traits/i, weight: 2 },
],
},
{
id: "ecophysiology",
label: "Ecophysiology",
threshold: 2,
matchers: [
{ pattern: /\bflux\b|\bfluxes\b/i, weight: 2 },
{ pattern: /hydraulic/i, weight: 2 },
{ pattern: /photosynth/i, weight: 2 },
{ pattern: /respiration/i, weight: 2 },
{ pattern: /drought/i, weight: 1 },
{ pattern: /thermoregulation/i, weight: 2 },
{ pattern: /stoichiometr/i, weight: 2 },
{ pattern: /carbon economics/i, weight: 2 },
{ pattern: /carbon exchange/i, weight: 2 },
{ pattern: /primary productivity/i, weight: 1 },
{ pattern: /water relations/i, weight: 2 },
{ pattern: /vein\b|venation|leaf vein/i, weight: 2 },
{ pattern: /physiolog/i, weight: 1 },
{ pattern: /plant physiology/i, weight: 2 }, // Enquist et al. 2007 adaptive plant physiology
{ pattern: /leaf wax/i, weight: 2 }, // Feakins et al. 2016 leaf wax n-alkanes & biomarkers
{ pattern: /n-alkane/i, weight: 2 }, // Feakins et al. 2016 Organic Geochemistry
{ pattern: /physiochem/i, weight: 2 }, // Chavana-Bryant et al. 2016 spectral & physiochemical
{ pattern: /wettability/i, weight: 2 }, // Goldsmith et al. 2016 leaf wettability traits
],
},
{
id: "ecological-stoichiometry",
label: "Ecological Stoichiometry",
threshold: 3,
matchers: [
// High-precision anchors to avoid over-labeling generic nutrient papers.
{ pattern: /ecological stoichiometr|biological stoichiometr/i, weight: 3 },
{ pattern: /\b(c:n:p|n:p|c:p|c:n)\b/i, weight: 3 },
{ pattern: /nutrient stoichiometr/i, weight: 2 },
{ pattern: /nitrogen.{0,25}phosphorus|phosphorus.{0,25}nitrogen/i, weight: 2 },
{ pattern: /leaf nutrient content/i, weight: 1 },
{ pattern: /nutrient stocks?.{0,25}primary productivity|primary productivity.{0,25}nutrient stocks?/i, weight: 2 },
{ pattern: /elemental composition|elemental ratio/i, weight: 1 },
{ pattern: /stoichiometric homeostasis|growth rate hypothesis|redfield ratio/i, weight: 3 },
],
},
{
id: "functional-ecology",
label: "Functional Ecology",
threshold: 2,
matchers: [
{ pattern: /functional diversity/i, weight: 3 },
{ pattern: /functional composition/i, weight: 3 },
{ pattern: /community assembly/i, weight: 2 },
{ pattern: /ecosystem function/i, weight: 2 },
{ pattern: /ecological function/i, weight: 2 },
{ pattern: /distinctiveness/i, weight: 1 },
{ pattern: /evenness/i, weight: 1 },
],
},
{
id: "phylogenetic-ecology",
label: "Phylogenetic Ecology",
threshold: 2,
matchers: [
// Weight 3 — specific, diagnostic community-phylogenetics terms
{ pattern: /community phylogenetics/i, weight: 3 },
{ pattern: /phylogenetic (diversity|endemism|signal|relatedness|beta diversity)/i, weight: 3 },
{ pattern: /phylogenetic.{0,20}(community|assembly) (ecology|structure)/i, weight: 3 },
{ pattern: /(community|functional).{0,20}phylogenetic (structure|composition)/i, weight: 3 },
{ pattern: /scale depend\w+ .{0,20}phylogenet/i, weight: 3 },
// Weight 2 — "phylogenetic" or "phylogeny" anywhere (title, journal, methods)
{ pattern: /phylogeneti/i, weight: 2 },
// Weight 3 — specific named papers requested by user
// Bryant et al. 2008 PNAS: elevational diversity patterns across microbes and plants
{ pattern: /microbes on mountainsides/i, weight: 3 },
// Neves et al. 2021 PNAS: evolutionary diversity shaped by extreme conditions
{ pattern: /adaptive challenge.*extreme conditions/i, weight: 3 },
{ pattern: /evolutionary diversity.*plant assemblages/i, weight: 3 },
// Weight 1 — weak signals; two together reach threshold
// Swenson collaboration spans community phylogenetics, trait-phylogeny, and assembly
{ pattern: /swenson/i, weight: 1 },
{ pattern: /eco-evolutionary/i, weight: 1 },
{ pattern: /evolutionary determinants/i, weight: 1 },
{ pattern: /opposing assembly mechanisms/i, weight: 1 },
{ pattern: /null model.{0,20}community|community.{0,20}null model/i, weight: 1 },
// Tree of life papers (Gallagher 2020, Eiserhardt 2018)
{ pattern: /tree of life/i, weight: 2 },
],
},
{
id: "tropical-ecology",
label: "Tropical Ecology",
threshold: 2,
matchers: [
{ pattern: /tropical/i, weight: 2 },
{ pattern: /amazon/i, weight: 2 },
{ pattern: /neotropical/i, weight: 2 },
{ pattern: /andes-amazon/i, weight: 2 },
{ pattern: /tropical forest/i, weight: 3 },
{ pattern: /dry forest/i, weight: 2 },
{ pattern: /montane cloud forest/i, weight: 2 },
// Atlantic Forest — major tropical hotspot in SE Brazil; catches Lourenco Jr et al. (2021) Ecosphere
{ pattern: /atlantic forest/i, weight: 3 },
// Andean forests — tropical/montane South America; catches Martínez-Villa et al. (2024) GEB
{ pattern: /\bandean\b/i, weight: 2 },
// Panama — tropical rainforest research system; catches Kaspari et al. (2017) Ecology
{ pattern: /\bpanama\b/i, weight: 2 },
// Biotropica — premier Neotropical ecology journal; catches Hogan et al. (2019)
{ pattern: /biotropica/i, weight: 2 },
// Lianas — structural woody vines characteristic of tropical forests; catches Ngute et al. (2024) GCB
{ pattern: /\bliana[s]?\b/i, weight: 2 },
],
},
{
id: "arctic-alpine",
label: "Arctic and Alpine",
threshold: 2,
matchers: [
{ pattern: /arctic/i, weight: 2 },
{ pattern: /alpine/i, weight: 2 },
{ pattern: /tundra/i, weight: 2 },
{ pattern: /svalbard/i, weight: 2 },
{ pattern: /subalpine/i, weight: 2 },
{ pattern: /afromontane/i, weight: 2 }, // raised from 1: captures Halbritter 2025 Afromontane grasslands
{ pattern: /\bnorway\b/i, weight: 2 }, // Vandvik 2025 climate gradients in Norway
{ pattern: /\bpuna\b/i, weight: 2 }, // Halbritter 2024 Puna grasslands Peru
{ pattern: /\bmountain plant/i, weight: 2 }, // Bektaş 2024 mountain plant communities Northern Hemisphere
// Gongga Mountains, China — high-elevation warming experiment; catches Vandvik et al. (2020) Scientific Data
{ pattern: /\bGongga\b/i, weight: 2 },
],
},
{
id: "conservation-impacts",
label: "Conservation Impacts",
threshold: 2,
matchers: [
{ pattern: /deregulation/i, weight: 2 },
{ pattern: /increasing fire|landscape fire|wildfire/i, weight: 2 },
{ pattern: /amazonian biodiversity/i, weight: 3 },
{ pattern: /drought.{0,30}biodiversity|biodiversity.{0,30}drought/i, weight: 2 },
{ pattern: /conservation planning/i, weight: 3 },
{ pattern: /conserving terrestrial biodiversity/i, weight: 3 },
{ pattern: /biodiversity, carbon and water/i, weight: 3 },
{ pattern: /areas of global importance/i, weight: 3 },
{ pattern: /balancing land use/i, weight: 3 },
{ pattern: /renewable energy/i, weight: 3 },
{ pattern: /agriculture/i, weight: 2 },
{ pattern: /extinction risk/i, weight: 3 },
{ pattern: /at risk from rapid global change/i, weight: 3 },
{ pattern: /rapid global change/i, weight: 2 },
{ pattern: /commonness of rarity/i, weight: 3 },
{ pattern: /global and future distribution of rarity/i, weight: 3 },
{ pattern: /rarity across land plants/i, weight: 2 },
{ pattern: /tree species are at risk/i, weight: 3 },
{ pattern: /protected areas?/i, weight: 3 },
{ pattern: /protected area design/i, weight: 3 },
{ pattern: /protected area selection/i, weight: 3 },
{ pattern: /spatial planning/i, weight: 2 },
{ pattern: /conservation priorit/i, weight: 2 },
{ pattern: /prioriti(s|z)ation/i, weight: 2 },
{ pattern: /biodiversity framework/i, weight: 2 },
{ pattern: /threat assessments?/i, weight: 2 },
{ pattern: /land conservation/i, weight: 2 },
{ pattern: /global change/i, weight: 1 },
// Human pressure on tree diversity — Guo et al. (2022) PNAS
{ pattern: /\bhuman\s+(pressure|footprint|impact)\b/i, weight: 2 },
// Climate change + land use threatening phylogenetic endemism hotspots — Guo et al. (2023) Nat. Commun.
{ pattern: /\bland\s+use\s+threat/i, weight: 2 },
// Forest carbon stocks — Mo et al. (2024) Nat. Ecol. Evol.
{ pattern: /\bforest\s+carbon\s+stock[s]?\b/i, weight: 2 },
// Dominance, rarity and threats in global tree communities — Hordijk et al. (2024) GEB
{ pattern: /\bpredictors\s+and\s+threat[s]?\b/i, weight: 2 },
// Unprecedented macroclimatic exposure of tree diversity — Boonman et al. (2025) PNAS
{ pattern: /unprecedented.*macroclimatic|macroclimatic.*unprecedented/i, weight: 2 },
// Megafauna extinction and Amazonian carbon + range reduction — Doughty et al. (2016) Ecography
{ pattern: /\bmegafauna\s+extinction\b/i, weight: 2 },
],
},
{
id: "biodiversity",
label: "Biodiversity",
threshold: 2,
matchers: [
{ pattern: /\bbiodiversity\b/i, weight: 3 },
{ pattern: /\b(beta|phylogenetic|taxonomic)\s+diversity\b/i, weight: 3 },
{ pattern: /\bfunctional\s+diversity\b/i, weight: 2 },
{ pattern: /\b(species|tree|plant|forest|bacterial)\s+diversity\b/i, weight: 2 },
{ pattern: /\bendemism\b|endemic\s+flora/i, weight: 2 },
{ pattern: /\brarity\b|\brange\s+size\b/i, weight: 2 },
{ pattern: /\bnaturalization\b|\binvasion[s]?\b/i, weight: 2 },
{ pattern: /\bcommunity\s+phylogenetics\b/i, weight: 2 },
{ pattern: /\bassemblage[s]?\b|\bcommunity\s+structure\b/i, weight: 1 },
{ pattern: /\bconserving\s+terrestrial\s+biodiversity\b/i, weight: 3 },
{ pattern: /\bthreat\s+assessments?\b|\bextinction\s+risk\b/i, weight: 2 },
{ pattern: /\bglobal\s+shortfalls?\s+in\s+threat\s+assessments?\b/i, weight: 3 },
{ pattern: /\bareas\s+of\s+global\s+importance\s+for\s+conserving\s+terrestrial\s+biodiversity\b/i, weight: 3 },
{ pattern: /\bhigh\s+exposure\s+of\s+global\s+tree\s+diversity\s+to\s+human\s+pressure\b/i, weight: 3 },
{ pattern: /\bthe\s+number\s+of\s+tree\s+species\s+on\s+earth\b/i, weight: 3 },
{ pattern: /\bglobal\s+beta[- ]?diversity\s+of\s+angiosperm\s+trees\s+is\s+shaped\s+by\s+quaternary\s+climate\s+change\b/i, weight: 3 },
{ pattern: /\bplant\s+functional\s+diversity\s+and\s+the\s+biogeography\s+of\s+biomes\s+in\s+north\s+and\s+south\s+america\b/i, weight: 3 },
{ pattern: /\bgeneral\s+patterns\s+of\s+taxonomic\s+diversity\s+and\s+biomass\s+partitioning\s+across\s+tree\s+dominated\s+communities\b/i, weight: 3 },
{ pattern: /\bthe\s+evolution\s+of\s+plant\s+communities:\s+biodiversity\s+and\s+community\s+structure\s+through\s+time\b/i, weight: 3 },
{ pattern: /\ba\s+review\s+of\s+the\s+heterogeneous\s+landscape\s+of\s+biodiversity\s+databases\b/i, weight: 3 },
{ pattern: /\bBIEN\b|biodiversity\s+informatics|botanical\s+information\s+network/i, weight: 2 },
{ pattern: /taxonomic\s+name\s+resolution\s+service|vegetation\s+inventory\s+database/i, weight: 2 },
],
},
{
id: "biodiversity-informatics",
label: "Biodiversity Informatics",
threshold: 2,
matchers: [
{ pattern: /biodiversity informatics/i, weight: 3 },
{ pattern: /\bBIEN\b/i, weight: 3 },
{ pattern: /database/i, weight: 2 },
{ pattern: /databases/i, weight: 2 },
{ pattern: /metadata/i, weight: 2 },
{ pattern: /occurrence data/i, weight: 2 },
{ pattern: /reproducible workflow/i, weight: 2 },
{ pattern: /name resolution/i, weight: 3 },
{ pattern: /cyberinfrastructure/i, weight: 2 },
{ pattern: /informatics/i, weight: 2 },
{ pattern: /thesaurus/i, weight: 3 },
{ pattern: /code sharing/i, weight: 3 },
{ pattern: /open science/i, weight: 2 },
{ pattern: /academic software/i, weight: 3 },
{ pattern: /future.{0,3}proof.*trait|trait.*future.{0,3}proof/i, weight: 3 },
{ pattern: /\bsPlot\b/i, weight: 3 },
{ pattern: /Plant-O-Matic/i, weight: 3 },
],
},
{
id: "science-culture-teaching",
label: "Science Culture/Teaching",
threshold: 2,
matchers: [
{ pattern: /scientific cultures|science of the biosphere requires the integration of scientific cultures/i, weight: 3 },
{ pattern: /science communication/i, weight: 3 },
{ pattern: /doing science in the covid|covid-19 era and beyond/i, weight: 3 },
{ pattern: /academic software development|better incentives are needed to reward academic software development/i, weight: 3 },
{ pattern: /ai chatbots can boost scientific coding|scientific coding/i, weight: 3 },
{ pattern: /teaching|field-based course|pedagogy|education/i, weight: 2 },
{ pattern: /ecological synthesis and its role in advancing knowledge/i, weight: 3 },
],
},
];
let activeTopic = "all";
let navItems = null; // populated after year navigator is built
const yearHeaders = Array.from(container.querySelectorAll("p")).filter((p) => {
const t = p.textContent.trim();
return /^\d{4}$/.test(t) || /^\d{4}\s*-\s*\d{4}$/.test(t);
});
const yearSections = yearHeaders.map((header) => {
const lists = [];
let node = header.nextElementSibling;
while (
node &&
!(node.tagName === "P" && (/^[0-9]{4}$/.test(node.textContent.trim()) || /^[0-9]{4}\s*-\s*[0-9]{4}$/.test(node.textContent.trim())))
) {
if (node.tagName === "OL" || node.tagName === "UL") {
lists.push(node);
}
node = node.nextElementSibling;
}
const items = lists.flatMap((list) => Array.from(list.children).filter((child) => child.tagName === "LI"));
return { header, lists, items };
});
function scoreTopic(text, topic) {
let score = 0;
for (const { pattern, weight } of topic.matchers) {
if (pattern.test(text)) {
score += weight;
if (score >= topic.threshold) return score;
}
}
return score;
}
function classifyPublication(text) {
const matched = [];
for (const topic of topicDefinitions) {
if (topic.id !== "all" && scoreTopic(text, topic) >= topic.threshold) {
matched.push(topic.id);
}
}
return matched;
}
function getPublicationOverrides() {
const node = document.getElementById("publication-category-overrides");
if (!node) return [];
try {
const parsed = JSON.parse(node.textContent || "{}");
return Array.isArray(parsed.overrides) ? parsed.overrides : [];
} catch (err) {
console.warn("Failed to parse publication category overrides:", err);
return [];
}
}
const publicationOverrides = getPublicationOverrides();
function applyOverrideTopics(normalizedText, baseTopics) {
const topicSet = new Set(baseTopics);
publicationOverrides.forEach((override) => {
const hints = Array.isArray(override.title_hints) ? override.title_hints : [];
if (hints.length === 0) return;
const matched = hints.some((hint) => normalizedText.includes(String(hint).toLowerCase()));
if (!matched) return;
const forced = Array.isArray(override.force_categories) ? override.force_categories : [];
forced.forEach((topicId) => topicSet.add(topicId));
});
return Array.from(topicSet);
}
const allItems = yearSections.flatMap((section) => section.items);
const topicCounts = { all: allItems.length };
topicDefinitions.forEach((topic) => {
if (topic.id !== "all") topicCounts[topic.id] = 0;
});
const itemCache = new Map();
allItems.forEach((li) => {
const normalizedText = li.textContent.toLowerCase().replace(/\s+/g, " ").trim();
const autoTopics = classifyPublication(normalizedText);
const topics = applyOverrideTopics(normalizedText, autoTopics);
li.dataset.topics = topics.join("|");
topics.forEach((topicId) => {
topicCounts[topicId] += 1;
});
itemCache.set(li, { text: normalizedText, topicSet: new Set(topics) });
});
const orderedTopics = topicDefinitions.slice().sort((a, b) => {
if (a.id === "all") return -1;
if (b.id === "all") return 1;
const countDiff = (topicCounts[b.id] || 0) - (topicCounts[a.id] || 0);
if (countDiff !== 0) return countDiff;
return a.label.localeCompare(b.label);
});
const tabButtons = orderedTopics.map((topic) => {
const button = document.createElement("button");
button.type = "button";
button.className = "publication-topic-tab";
button.id = `publication-topic-tab-${topic.id}`;
button.setAttribute("role", "tab");
button.setAttribute("aria-selected", topic.id === activeTopic ? "true" : "false");
button.dataset.topic = topic.id;
button.innerHTML = `${topic.label}<span class="publication-topic-count">${topicCounts[topic.id] || 0}</span>`;
button.addEventListener("click", function () {
activeTopic = topic.id;
// Clear search when switching tabs so the full topic view shows
input.value = "";
tabButtons.forEach((tabButton) => {
const isActive = tabButton.dataset.topic === activeTopic;
tabButton.classList.toggle("is-active", isActive);
tabButton.setAttribute("aria-selected", isActive ? "true" : "false");
tabButton.style.opacity = "";
});
applyFilter();
});
tabsContainer.appendChild(button);
return button;
});
tabButtons.forEach((tabButton) => {
const isActive = tabButton.dataset.topic === activeTopic;
tabButton.classList.toggle("is-active", isActive);
});
let wasSearchActive = false;
function applyFilter() {
const query = input.value.trim().toLowerCase();
// When the user is searching, always search across ALL publications
// regardless of which topic tab is active.
const searchActive = query !== "";
const words = searchActive ? query.split(/\s+/).filter(Boolean) : [];
let visibleTotal = 0;
let firstVisibleItem = null;
// Update tab highlight: grey-out all tabs while searching (only write DOM on state change)
if (searchActive !== wasSearchActive) {
tabButtons.forEach((tabButton) => {
tabButton.style.opacity = searchActive && tabButton.dataset.topic !== "all" ? "0.45" : "";
});
wasSearchActive = searchActive;
}
// Show/hide clear button
if (clearBtn) clearBtn.hidden = !searchActive;
yearSections.forEach((section) => {
let visibleCount = 0;
section.items.forEach((li) => {
const { text, topicSet } = itemCache.get(li);
// Require every word in the query to appear somewhere in the text
const matchesQuery = !searchActive || words.every((w) => text.includes(w));
// When searching, ignore topic tab and show all matching papers
const matchesTopic = searchActive || activeTopic === "all" || topicSet.has(activeTopic);
const match = matchesQuery && matchesTopic;
li.style.display = match ? "" : "none";
if (match) {
visibleCount += 1;
visibleTotal += 1;
if (!firstVisibleItem) firstVisibleItem = li;
}
});
section.visibleCount = visibleCount;
section.header.style.display = visibleCount > 0 ? "" : "none";
section.lists.forEach((list) => {
list.style.display = visibleCount > 0 ? "" : "none";
});
});
emptyState.hidden = visibleTotal !== 0;
// Update result count
if (resultCount) {
if (searchActive) {
resultCount.textContent =
visibleTotal === 0
? "No papers matched your search."
: `${visibleTotal} paper${visibleTotal === 1 ? "" : "s"} matched — scroll down to see all results.`;
} else {
resultCount.textContent = "";
}
}
// Scroll to first visible result when searching
if (searchActive && firstVisibleItem) {
firstVisibleItem.scrollIntoView({ behavior: "smooth", block: "nearest" });
}
// Sync year nav pill visibility with current filter state
if (navItems) {
navItems.forEach((navItem) => {
const section = sectionByYear.get("year-" + navItem.dataset.navYear);
if (section) navItem.hidden = section.visibleCount === 0;
});
}
}
function debounce(fn, ms) {
let timer;
return function () {
clearTimeout(timer);
timer = setTimeout(fn, ms);
};
}
input.addEventListener("input", debounce(applyFilter, 150));
applyFilter();
// --- Year Navigator ---
// Stamp id + class onto each year header for anchoring and styling
yearSections.forEach(({ header }) => {
const year = header.textContent.trim().replace(/\s/g, "");
header.id = "year-" + year;
header.classList.add("pub-year-header");
});
// O(1) section lookup by header id (ids stamped above)
const sectionByYear = new Map(yearSections.map((s) => [s.header.id, s]));
// Build the sidebar rail nav
const yearNav = document.createElement("nav");
yearNav.id = "year-nav";
yearNav.setAttribute("aria-label", "Jump to publication year");
const yearNavList = document.createElement("ul");
yearSections.forEach(({ header }) => {
const year = header.id.replace("year-", "");
const li = document.createElement("li");
li.dataset.navYear = year;
const a = document.createElement("a");
a.href = "#" + header.id;
a.textContent = year;
a.addEventListener("click", (e) => {
e.preventDefault();
header.scrollIntoView({ behavior: "smooth", block: "start" });
});
li.appendChild(a);
yearNavList.appendChild(li);
});
yearNav.appendChild(yearNavList);
document.body.appendChild(yearNav);
navItems = Array.from(yearNavList.querySelectorAll("li"));
// Sync initial nav pill visibility with current filter state
navItems.forEach((navItem) => {
const section = sectionByYear.get("year-" + navItem.dataset.navYear);
if (section) navItem.hidden = section.visibleCount === 0;
});