Events
Let patrons find the library's events, see when and where they take place, and how to get in.
3.2.1 View event
SupportedShow an event with its time, place, admission and related material.
What you can build
An event page that tells the patron whether the event is for them: when and where it is, what it costs and how to get in. When a ticket or registration is required, the event carries a link, an email, a phone number or instructions. The page can also show the other dates in a series and the works related to the event.
Typical flow
- The client fetches the event with
Getand its id inContent Events event_.ids - The page shows the title, the time from
scheduling, the place frombranchandlocation, and the admission fromadmission. - When the event belongs to a series, the client fetches the other events with
GetandContent Events In Series series..series Id - Related works come from
GetwhenWorks relevantlistsWorks work, or fromIds Searchwhen it gives aWorks query. - The patron opens a work (1.2.1) or another event in the series.
What the API provides
stateisscheduled,cancelledorfinished.schedulingisall_withday startandDate end, orDate time_withspan startandTime end.Time locationisat_, a place inside the branch, orbranch externalwith anameand an optionaladdress.admissionisopen,ticketorregistration. Ticket and registration carrycontactwith at least one ofInfo url,email,phoneorinfo, and astate:ticket_,sale_ not_ open ticket_,sale_ open almost_orsold_ out sold_.out - A ticket has
pricing:simplewith a text, orprice_with ancategories amountin minor units and acurrencyin ISO 4217. Anamountof 0 means the event is free, but the ticket is still required. - Only
descriptioncan contain formatting, limited to the HTML tagsb,i,p,a,ul,olandli.
Calls in the API
- Enabled in the configuration
-
GetContentConfiguration
Calls behind the view
3.2.2 Register or get a ticket
Not yetLet the patron register for an event or get a ticket.
3.2.5 Browse events
SupportedShow the library's upcoming events for a period, so patrons can find the ones that interest them.
What you can build
An event calendar that lists the library's events day by day, each with its title, time, branch and price. Filters for branch, category and audience are built from the events themselves.
Typical flow
- The client fetches the events in a period with
Get,Content Events from_anddate to_.date - The client pages through the result with
pageandsizeuntilendis true.Of Results - The client groups the events by day and lets the patron filter by
branch,categoriesandaudiences. - The patron opens an event (3.2.1).
What the API provides
- A request must include either
to_ordate event_. Withoutids from_, the provider starts from today in its own time zone.date sizeis at most 50.totalis the number of events in the whole period.Gethas no parameters for branch, category or audience. The client filters on the fields in each event.Content Events promotedmarks an event as promoted, optionally between astartand anTime end.Time - Without
ui_, each event is returned in every language it has. The samelanguage idin several languages is one event.Getlists the languages the provider supports.Content Configuration
Calls in the API
- Enabled in the configuration
-
GetContentConfiguration
3.2.6 Event interest
Not yetLet the patron mark an event they are interested in.