Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 39 additions & 4 deletions source/_includes/blocks/event-cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ <h3 class="event-title is-size-5 has-text-left">{{ event.label }}</h3>
let eventDetails = createDiv(cardContent, "event-details has-text-left");
eventDetails.style.marginBottom = "0";

createNode(eventDetails, "i", "fas fa-university");
eventDetails.appendChild(document.createTextNode(" " + organiser));
eventDetails.appendChild(document.createElement("br"));

if(organiser) {
createNode(eventDetails, "i", "fas fa-university");
eventDetails.appendChild(document.createTextNode(" " + organiser));
eventDetails.appendChild(document.createElement("br"));
}

createNode(eventDetails, "i", "fas fa-map-marked-alt");
eventDetails.appendChild(document.createTextNode(" "));
if (location) {
Expand Down Expand Up @@ -158,6 +160,31 @@ <h3 class="event-title is-size-5 has-text-left">{{ event.label }}</h3>
}
}

function findNextCall(parent, events, group) {
if (group in events.meetings) {
let event = events.meetings[group]
if ('next_call' in event) {
links = []
if (location && location.link) {
links.push({
'label': 'Zoom Link',
'link': location.link
});
}

links.push({
'label': 'Notes',
'link': event.notes
});
buildCard(parent, new Date(event.next_call), false, 'Next ' + event.label + ' community call', event.frequency, null, null, links);
} else {
console.log('Group: ' + group + ' does not have a next call in https://iiif.io/events/calendar.json');
}
} else {
console.log('Group: ' + group + ' not in https://iiif.io/events/calendar.json');
}
}

function addCalls(parent, events, limit) {
let weeksCalls = events.week;
if (weeksCalls.length < limit) {
Expand Down Expand Up @@ -218,6 +245,14 @@ <h3 class="event-title is-size-5 has-text-left">{{ event.label }}</h3>
.then(response => response.json())
.then(data => addCalls(parent, data, {{ include.limit | default: 10 }}));
</script>
{% elsif include.type and include.type == 'next_call' %}
<script>
let parent = document.currentScript.parentElement;
let group = "{{ include.group }}"
fetch('https://iiif.io/events/calendar.json')
.then(response => response.json())
.then(data => findNextCall(parent, data, group));
</script>
{% else %}
<script>
// Show all events
Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/3d/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF 3D Community Group"
layout: page
group: 3d

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}

## About

Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/D4H/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF Discovery for Humans Community Group"
layout: page
group: D4H

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}

## About

Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/archives/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF Archives Community Group"
layout: page
group: archives

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}

## About

Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/auth-tsg/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF Authentication Technical Specification Group"
layout: page
group: auth-tsg

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}

## About
The Authentication API is an interaction pattern for managing access control to IIIF image resources. With the introduction of support for A/V in the IIIF Presentation API version 3 there is now a need to support authenticating resources which do not require a IIIF Image API service, as well as general updates for consistency with the new APIs. There have also been developments in the browser community that cause difficulties with the existing authentication specification. With the current specification being broken in some browsers, and soon to be obsolete in others, there is an urgent need to update the method in which the IIIF Authentication API works to remain useful in the evolving web landscape.
Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/av/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF A/V Community Group"
layout: page
group: av

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}

## About

Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/content-search-tsg/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF Content Search Technical Specification Group"
layout: page
group: content-search-tsg

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}

## About

Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/discovery/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF Discovery Technical Specification Group"
layout: page
group: discovery

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}

## About

Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/manuscripts/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF Manuscripts Community Group"
layout: page
group: manuscripts

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}

## About

Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/maps-tsg/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF Maps Technical Specification Group"
layout: page
group: maps-tsg

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}

## About
IIIF has a technical focus on images, and the cultural heritage presence within has ensured digitized maps are represented. We recognize a growing need to describe data in the humanities with its spatial relevance to planet Earth, for which maps are the conduit interface. Geospatial description allows systems to portray data in a natural and understandable human context.
Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/maps/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF Maps Community Group"
layout: page
group: maps

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}

## About

Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/museums/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF Museums Community Group"
layout: page
group: museums

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}

## About

Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/newspapers/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF Newspapers Community Group"
layout: page
group: newspapers

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}


## About
Expand Down
2 changes: 2 additions & 0 deletions source/community/groups/outreach/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "IIIF Outreach Community Group"
layout: page
group: outreach

---
{%- include blocks/event-cards.html type="next_call" group=page.group -%}

## About

Expand Down