Skip to content

Commit

Permalink
feat(frontend): display place of origin
Browse files Browse the repository at this point in the history
Update the location count to count the place of origin instead of settlement
  • Loading branch information
jmiguelv committed Jul 11, 2024
1 parent 101ec76 commit 4d16ce2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions frontend/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
);
return maxYear - minYear;
})();
$: numberOfLocations = new Set(inscriptions.map((inscription) => inscription.settlement)).size;
$: numberOfLocations = new Set(inscriptions.map((inscription) => inscription.placeName)).size;
onMount(() => {
keywords = $page.url.searchParams.get('keywords') || '';
Expand Down Expand Up @@ -141,7 +141,15 @@
? inscription.notAfter < 0
? `${Math.abs(inscription.notAfter)} BC`
: `AD ${inscription.notAfter}`
: 'Unknown'}
: 'Unknown'}{#if inscription.place},
{@const place = inscription.place}
{#if place.offset}<em>{place.offset}</em>{/if}
{#if place.ref}
<a href={place.ref}>{place._}</a>
{:else}
{place._}
{/if}
{/if}
</p>
<dl>
<dt>Settlement</dt>
Expand Down

0 comments on commit 4d16ce2

Please sign in to comment.