Home About Hours Libraries For Schools For Libraries Help

Presence and Presence API

Presence code for your site

You may also wish to provide “presence” information about your service so patrons can tell at a glance if you are online or offline.

The URL for your presence indicator is http://www.oregonlibraries.net/presence/WIDGET. You can also embed this in an iframe:

<iframe src="http://www.oregonlibraries.net/presence/WIDGET" 
width=100px height=40px></iframe>

Presence text and CSS

You can optionally use your own CSS file, CSS code, or custom online and offline messages to show along with your presence information.

Presence API

If you still don't like the way the presence information displays, you can always query our presence API by adding a slash and the word 'value' at the end of the URL.

http://www.oregonlibraries.net/presence/WIDGET/value 

The result can be 0, 1 or 2. 0: no one is online 1: the library is online 2: the library is offline but rolling over to L-net

Presence Caching

To conserve resources, information about your chat presence is cached on our server for one minute. This provides faster response times from our server to your website, but it also means that your presence may appear to be inaccurate for a brief amount of time.

Caching is on by default, but you can always request a non-cached version of your presence information by adding '/html/nocache' to the end of your request URL:

http://www.oregonlibraries.net/presence/WIDGET/html/nocache 

To receive a non-cached version of the simple 0, 1 or 2 status value, add the word '/nocache' after /value:

http://www.oregonlibraries.net/presence/WIDGET/value/nocache 

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
Comment guidelines

Comments are moderated by the Multnomah County Library, fiscal agent for L-net: Oregon Libraries Network. The Library reserves the right to remove unlawful or off-topic comments. In order to protect your privacy, refrain from posting personally identifying information.Posting of images is not permitted. All comments must conform to our Social Software Policy

By submitting a comment, you agree to this policy.