Is there a UNL method for exporting a .ics file for a specific department, in a specific date range?

17 views
Skip to first unread message

David Bagby

unread,
Mar 15, 2010, 5:00:14 PM3/15/10
to UNL Event Publisher
Hi Brett,
The School of Music is interested in being able to provide both: a)
a .ics file for a semester's worth of music performances; and b) a
subscription to just Music events.

Is there an existing form/mechanism at UNL to get data back out of the
UNL Events calendar, either as a file or as a subscription?

I tried the .ics subscription link from Music's home page at www.unl.edu/music.
It downloaded about 15 day of events into iCal, but I can't tell if
more are coming, and in any case, we'd like to see a whole semester at
once be available.

Thanks,

David

Brett Bieber

unread,
Mar 15, 2010, 5:12:10 PM3/15/10
to unl-event...@googlegroups.com
Hi David,

On Mon, Mar 15, 2010 at 4:00 PM, David Bagby <dba...@mac.com> wrote:
> Hi Brett,
> The School of Music is interested in being able to provide both: a)
> a .ics file for a semester's worth of music performances; and b) a
> subscription to just Music events.
>
> Is there an existing form/mechanism at UNL to get data back out of the
> UNL Events calendar, either as a file or as a subscription?

The .ics is the best option.

>  I tried the .ics subscription link from Music's home page at www.unl.edu/music.
> It downloaded about 15 day of events into iCal, but I can't tell if
> more are coming, and in any case, we'd like to see a whole semester at
> once be available.

By default I believe it shows 10 upcoming events. You can increase
this by adding the limit parameter to the URL:
http://events.unl.edu/fpa/upcoming/?format=ics&limit=100

You can view the results by removing the format=ics from the URL.

The 'upcoming' event URL will automatically be updated, so yes, you
can subscribe to that URL and any new events will show up to your
calendar, and old events will drop off.

Right now we have no views that support a date range, but you can
subscribe to specific calendar years, months or days by subscribing to
the ics file available on those pages.

--
Brett Bieber
University of Nebraska-Lincoln

Brian Steere

unread,
Mar 15, 2010, 5:15:00 PM3/15/10
to unl-event...@googlegroups.com
To the best of my knowledge there isn't a way to generate a .ics based on date, but you can increase the number of events by adding &limit=x (where x is the number of events).

I can't help you with the latter issue though...

On Mon, Mar 15, 2010 at 4:00 PM, David Bagby <dba...@mac.com> wrote:

--
You received this message because you are subscribed to the Google Groups "UNL Event Publisher" group.
To post to this group, send email to unl-event...@googlegroups.com.
To unsubscribe from this group, send email to unl-event-publi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/unl-event-publisher?hl=en.


mkornblum

unread,
Mar 22, 2010, 8:55:39 PM3/22/10
to UNL Event Publisher
A little while back I hacked together a new calendar view for Cornish
called "Term", you can see it in action here on our academic calendar:

http://arts.cornish.edu/registrar/academic-calendar/?t=fall&y=2009
http://arts.cornish.edu/registrar/academic-calendar/?t=spring&y=2010

It works by extending UNL_UCBCN_EventListing, overriding its
constructor to add a case for a "term" listing of events, and also
adds a new function to EventListing called "constructTermEventList()".
I say its "hacked" primarily because right now I just hard-code the
dates for Fall and Spring semester into the body of
constructTermEventList(). It's on my to-do list to change it to take
dates as parameters, or otherwise clean it up, but it does work. I
also created a Frontend view class for "Term" and associated templates
(including ICS, see it here: http://arts.cornish.edu/registrar/academic-calendar/?t=spring&y=2010&format=ics).

I'd be happy to share the code with David and/or submit it back to the
project, but as I mentioned it's a little messy right now. I think to
do what he's asking about I/we would need to take date parameters from
the URI, and that's not how it currently works. Still, it might help
as a starting point!

Mark Kornblum
Web Developer, Cornish College of the Arts

> > unl-event-publi...@googlegroups.com<unl-event-publisher%2Bunsu...@googlegroups.com>

Brett Bieber

unread,
Nov 28, 2011, 4:21:44 PM11/28/11
to unl-event...@googlegroups.com
Hi Mark,

Much later — anything you could provide on how you implemented this would be great.

Mark

unread,
Nov 28, 2011, 10:00:20 PM11/28/11
to unl-event...@googlegroups.com
Sure thing - I've attached a zip containing the relevant files. Like I said, it's pretty hacked together, but the basic idea is that a "Term" is a special case of EventListing. So in Cornish_EventListing.php, the dates of the Terms are hard coded. The Academic_Calendar_Frontend just has a few new cases in it to enable this new view, and then there's the Term object itself. This doesn't require users to enter anything any differently in the event admin, although it also doesn't expose setting term start and end dates anywhere outside the source code.

This was written against an older version of Event Publisher so it probably won't work anymore as is. I'm only at Cornish part time these days and I believe they have switched to a Google calendar for their academic calendaring needs since my exit, but I'd be happy to try to answer any questions here. Hope this helps!

Mark
----------------------
c: 206-393-8581 
w: http://www.markkornblum.net


--
You received this message because you are subscribed to the Google Groups "UNL Event Publisher" group.
To post to this group, send email to unl-event...@googlegroups.com.
To unsubscribe from this group, send email to unl-event-publi...@googlegroups.com.
UNL_Event_Term_mkornblum.zip
Reply all
Reply to author
Forward
0 new messages