Skip to content

Commit d10d1a0

Browse files
committed
dynamic list of herbaria involved
1 parent 1afc39a commit d10d1a0

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

htdocs/src/Controller/HomeController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function index(): Response
2222
{
2323
$institutions = $this->institutionRepository->createQueryBuilder('i')
2424
->where('i.code IS NOT NULL')
25+
->andWhere('i.IHLink IS NOT NULL')
2526
->orderBy('i.code', Order::Ascending->value)
2627
->getQuery()
2728
->getResult();

htdocs/templates/output/home/index.html.twig

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,8 @@
33
{% block main %}
44

55
<div class="container">
6-
<p>JACQ is the jointly administered herbarium management system and specimen database of the following herbaria: ADMONT, B, BAK, BATU, BEOU, BOZ, BP, BRNM, BRNU, CBH, CHER, DR, ERE, FT, GAT, GJO, GZU, HAJB, HAL, HBG, HERZ, JE, KFTA, KIEL, KL, KUFS, LAGU, LECB, LW, LWKS, LWS, LZ, MHES, MJG, MNVD, NBSI, NS, NSK, OLD, PAV, PI, PIAGR, PR, PRC, ROPV, SARAT, SIENA, SPP, SZU, TBI, TGM, TGU, TMRC, TO, TUB, UBT, ULM, UPA, W, WU and WUP.</p>
7-
<!-- <p>
8-
{% for institution in institutions %}
9-
{% if not loop.first %}
10-
{% if loop.last %}
11-
and
12-
{% else %}
13-
,
14-
{% endif %}
15-
{% endif %}
16-
{{ institution.code }}
17-
{% endfor %}
18-
</p> -->
6+
<p>JACQ is the jointly administered herbarium management system and specimen database of the following herbaria: {{ institutions|map(i => i.code)|join(', ', ' and ') }}.
7+
</p>
198
<p>Listed Acronyms follow the <a href="http://sweetgum.nybg.org/science/ih/" target="_blank">Index Herbariorum Abbreviations</a>. For requests and comments on specimens like identifications, typification, and comments please contact the corresponding Director/Curator listed in the Index Herbariorum.</p>
209
<div class="divider"></div>
2110
<ul class="collapsible">

0 commit comments

Comments
 (0)