Skip to content

Commit

Permalink
add specimen count to collection object list when count is greater th…
Browse files Browse the repository at this point in the history
…an 1
  • Loading branch information
wbbaker committed Mar 4, 2025
1 parent fc86299 commit 967cdfb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ For further reference see https://dwc.tdwg.org/terms/.
<div v-html="nameAndAuthor(specimen)"/>
<ul class="tree ml-6 relative">
<li class="my-2">{{ describeSpecimen(specimen) }}</li>
<li class="my-2">{{describeDetails(specimen).join(', ')}}</li>
<li class="my-2">{{ describeDetails(specimen).join(', ') }}</li>
<GalleryImage
v-if="images.length"
:images="images"
Expand Down Expand Up @@ -59,6 +59,7 @@ function describeSpecimen(specimen) {

function describeDetails(specimen) {
return [
specimen.individualCount !== 1 && `${specimen.individualCount} specimens`,
describeCollectionDate(specimen),
specimen.recordedBy && `Recorded by ${specimen.recordedBy}`,
describeIdentifiedBy(specimen),
Expand Down

0 comments on commit 967cdfb

Please sign in to comment.