Juneteenth Closure
Orange County Library System will be closed Wednesday, June 19, in observance of Juneteenth. The library system will resume normal business hours on Thursday, June 20. View a complete list of holiday closures >

My Library

'); var bibUrls = data['tm_field_bib_record_link$url'] || [], bibTitles = data.tm_field_staff_picks_title || [], reviewBodies = data.tm_field_staff_picks_review_short || [], bibAuthors = data.tm_field_staff_picks_author || [], firstName = data['tm_user$field_profile_first_name'], lastName = data['tm_user$field_profile_last_name'], displayName = data['ss_user$profile_staff_picks$field_staff_picks_display_name'] || '', location = data['ss_user$field_emp_location$name'] || null; if (!bibUrls[0] || !bibTitles[0] || !reviewBodies[0] || !bibAuthors[0]) return null; var actualName = [firstName, lastName].join(' '); var bibLink = $('') .attr({href: bibUrls[0] || ''}) .append(bibTitles[0] || 'Title Not Found'); var bibText = $('

').append([bibLink, ' | By: ', bibAuthors[0] || '']); var reviewContent = [ bibText, $('

').append([ '"', reviewBodies[0], '"', $('').append([ ' —', (displayName || actualName), location !== null ? ', ' + location : '' ].join('')) ]) ]; review.html(reviewContent); return review; } var staffPicksContent = $('#staff-picks-content'); $.ajax({ url: 'https://intranet.ocls.info/staff-picks/query', method: 'GET', data: { random: true, limit : 1 }, dataType: 'json' }) .then(function (response) { response = response || {}; var solrResponse = response.response || {}, numFound = solrResponse.numFound || 0, docs = solrResponse.docs || []; if (numFound == 0 || !docs.length) return; // build and place content from data staffPicksContent.append([ $('

').text('Staff Picks'), ].concat(docs.map($staffPick).filter(function (row) { return row !== null; }))); }) .catch(function (e) { console.error(e); }); })(window.jQuery);


WebPAC PRO © Innovative Interfaces, Inc.