Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 611 lines (444 sloc) 27.22 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611
</div><!-- End #main -->
</div><!-- End #page-content -->

<div id="navigation">

<ul id="navigation-menu">
<li><a href="http://gvsu.edu/library">Library Home</a></li>
<li><a href="http://gvsu.edu/library/find" class="navparent" target="_self">Find</a>
<ul>
<li><a href="http://gvsu.edu/library/databases.htm" class="" target="_self">Databases</a></li>
<li><a href="http://gvsu.edu/library/findarticles" class="" target="_self">Articles</a></li>
<li><a href="http://gvsu.edu/library/findbooks" class="" target="_self">Books</a></li>
<li><a href="http://libguides.gvsu.edu" class="" target="_self">Subject &amp; Course Guides</a></li>
<li><a href="http://gvsu.edu/library/findjournals" class="" target="_self">Magazines &amp; Journals</a></li>
<li><a href="http://gvsu.edu/library/govdoc" class="" target="_self">Government Resources</a></li>
<li><a href="http://gvsu.edu/library/digitalcollections" class="" target="_self">Digital Collections</a></li>
<li><a href="http://gvsu.edu/library/specialcollections" class="" target="_self">Special Collections &amp; University Archives</a></li>
<li><a href="http://gvsu.edu/s/jn" class="" target="_self">ScholarWorks@GVSU Institutional Repository</a></li>
<li><a href="http://gvsu.edu/library/cml" class="" target="_self">Curriculum Materials</a></li>
</ul>
</li>
<li><a href="http://gvsu.edu/library/allservices" class="navparent" target="_self">Services</a>
<ul>
<li><a href="http://gvsu.edu/library/studentsupport" class="navparent">Student Support</a>
<ul>
<li><a href="http://gvsu.edu/library/student-support-220.htm#articles">Get Articles</a></li>
<li><a href="http://gvsu.edu/library/student-support-220.htm#books">Get Books</a></li>
<li><a href="http://gvsu.edu/library/student-support-220.htm#research">Get Research Help</a></li>
<li><a href="http://gvsu.edu/library/citationtools">Citation Tools</a></li>
<li><a href="http://gvsu.edu/library/student-support-220.htm#technology">Technology in the Library</a></li>
<li><a href="http://gvsu.edu/library/distancelearning">Distance Learning</a></li>
<li><a href="http://gvsu.edu/library/libraryquest">Library Quest</a></li>
</ul>
</li>
<li><a href="http://gvsu.edu/library/groupstudy">Reserve a Study Room</a></li>
<li><a href="http://gvsu.edu/library/ereserves" class="" target="_self">Course Reserves</a></li>
<li><a href="http://gvsu.edu/library/ill" class="" target="_self">Document Delivery</a></li>
<li><a href="http://gvsu.edu/library/instruction" class="" target="_self">Instructional Services</a></li>
<li><a href="http://gvsu.edu/library/sc/" class="navparent" target="_self">Scholarly Communications</a>
<ul>
<li><a href="http://gvsu.edu/s/jm" class="" target="_self">ScholarWorks@GVSU Institutional Repository</a></li>
</ul>
</li>
<li><a href="http://gvsu.edu/library/mastersprojects" class="" target="_self">Master's Projects</a></li>
<li><a href="http://gvsu.edu/library/labs" class="navparent" target="_self">Library Labs</a>
<ul>
<li><a href="http://gvsu.edu/library/status">Library Systems' Status</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="http://gvsu.edu/library/about" class="navparent" target="_self">About</a>
<ul>
<!--li><a href="http://gvsu.edu/chat" class="" target="_self">Contact Us</a></li-->
<li><a href="#" class="navparent">People</a>
<ul>
<li><a href="http://gvsu.edu/library/librarians" class="" target="_self">Subject Librarians </a></li>
<li><a href="http://gvsu.edu/library/staff" class="" target="_self">Staff</a></li>
<li><a href="http://gvsu.edu/library/lsac" class="" target="_self">Student Advisory Council</a></li>
<li><a href="http://gvsu.edu/library/jobs" class="" target="_self">Jobs</a></li>
</ul>
</li>
<li><a href="#" class="navparent">Visiting</a>
<ul>
<li><a href="http://gvsu.edu/library/hours.htm" class="" target="_self">Hours</a></li>
<li><a href="http://gvsu.edu/library/tours" class="" target="_self">Tours</a></li>
<li><a href="http://gvsu.edu/library/maryidemapew" class="" target="_self">Mary Idema Pew Library</a></li>
<li><a href="http://gvsu.edu/library/steelcase" class="" target="_self">Steelcase Library</a></li>
<li><a href="http://gvsu.edu/library/freychs" class="" target="_self">Frey Foundation Learning Center</a></li>
<li><a href="http://gvsu.edu/library/seidmanhouse" class="" target="_self">Seidman House</a></li>
<li><a href="http://gvsu.edu/library/cml" class="" target="_self">Curriculum Materials Library</a></li>
</ul>
</li>
</ul>
</li>
</ul>

<div class="clear"></div>

<div id="navigation-contact">

<p><b>University Libraries</b><br />
<a href="mailto:library@gvsu.edu">library@gvsu.edu</a><br />
Phone: 616-331-3500<br></p>

</div><!-- End #navigation-contact -->

<div id="navigation-contact-socialMedia">

<p>

<a href="http://twitter.com/gvsulib"><img src="/illiad/img/twitter.png" alt="Twitter" title="Twitter" width="32" height="32"></a>

<a href="http://youtube.com/user/gvsulib"><img src="/illiad/img/youtube.png" alt="YouTube" title="YouTube" width="32" height="32"></a></p>

</div><!-- End #navigation-contact-socialMedia -->

<div id="navigation-footer">

<style type="text/css">
.chat { display: inline-block; padding-left: 1.45em; }
.chat-online { background-image: url(/illiad/img/chat-online.png); background-repeat:no-repeat;background-position:middle left; }
.chat-offline { background-image: url(/illiad/img/chat-offline.png); background-repeat:no-repeat;background-position:middle left; color: #575757 !important;}</style>
<div class="needs-js">
&nbsp;</div>
<div class="libraryh3lp" jid="gvsulibs-queue@chat.libraryh3lp.com" style="display: none;">
<a class="lib-button-small-grey" href="#" onclick="window.open('https://libraryh3lp.com/chat/gvsulibs-queue@chat.libraryh3lp.com?skin=16489',
'chat', 'resizable=1,width=320,height=200'); return false;"><span class="chat chat-online">Chat now </span> </a></div>
<div class="libraryh3lp" style="display: none;">
<a class="lib-button-small-grey" href="http://gvsu.edu/chat"><span class="chat chat-offline">Chat is Offline</span></a></div>
<hr />

<p><b>Document Delivery</b><br />
<a href="mailto:docdel@gvsu.edu">docdel@gvsu.edu</a><br />
Phone: 616-331-2630<br /></p>
<p><a href="http://gvsu.edu/library/docdelpolicies" title="Document Delivery policies">Document Delivery Policies</a></p>

<!-- Temporary Libstats link fix -->

<style type="text/css">
#libstats-link { margin-top: 5em; }
#libstats-link a { display: inline-block; background: #fff; color: #fff; text-decoration: none; padding: .5em 1em; -webkit-border-radius: 6px; -moz-border-radius: 6px; -o-border-radius: 6px; border-radius: 6px; font-size: 1em; }
#libstats-link a:hover { background: #069; }
#libstats-link a:hover { -webkit-box-shadow: 0px 3px 2px rgba(172, 167, 174, 0.75);
-moz-box-shadow: 0px 3px 2px rgba(172, 167, 174, 0.75);
box-shadow: 0px 3px 2px rgba(172, 167, 174, 0.75); }
</style>

<div id="libstats-link">
<a href="http://gvsulib.com/libstats">Libstats</a>
</div>

<p><a href="javascript:var%20KICKASSVERSION='2.0';var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='//hi.kickassapp.com/kickass.js';void(0);">_</a></p>

</div><!-- End #navigation-footer -->

</div><!-- End #navigation -->

<div id="gvsu-footer-wrapper">
<div class="gvsu-clear"></div>

<div id="gvsu-footer">
<div id="gvsu-contact_info" style="padding: 3.33em 0 3.33em 2.5em;">
<div class="vcard">
<span class="fn org" style="display:none">Grand Valley State University</span>
<p class="adr gvsu-address">
<span class="street-address">1 Campus Drive</span><br>
<span class="locality">Allendale</span>, <span class="region" title="Michigan">MI</span> <span class="postal-code">49401-9403</span><br>
<span class="country-name">USA</span> - <a href="tel:616-331-5000" class="tel" title="+1-616-331-5000">(616) 331-5000</a>
</p>
</div>
<p class="gvsu-footer_mobile_links"><br>
<a href="http://gvsu.edu/bus">Bus Schedule</a><br>
<a href="http://gvsu.edu/maps.htm">Campus Maps &amp; Directions</a><br>
<a href="http://gvsu.edu/aboutgvsu.htm">Quick Facts</a></p>
</div><!-- End #gvsu-contact_info -->

<div id="gvsu-footer_links">
<p>
<a href="http://gvsu.edu/admissions">Apply Now</a><br>
<a href="http://www.gvsulakers.com">Athletics</a><br>
<a href="http://gvsu.edu/giving">Giving</a><br>
<a href="http://gvsu.edu/diversity">Inclusion/Diversity</a><br>
<a href="http://gvsu.edu/library">Library</a><br>
<a href="http://gvsu.edu/admissions/visit-schedule.htm">Schedule a Campus Visit</a><br>
</p>
</div><!-- ENd #gvsu-footer_links -->

<div class="gvsu-clear"></div>
</div>

<div id="gvsu-footer_secondary">

<div id="gvsu-disclaimers_copyright">
<span class="gvsu-disclaimer gvsu-disclaimer_first"><a href="http://gvsu.edu/affirmativeactionstatement.htm"><span class="gvsu-disclaimer_mobile">GVSU is an </span>EO/AA institution</a></span>
<span class="gvsu-disclaimer"><a href="http://gvsu.edu/privacystatement.htm">Privacy Policy</a></span>
<span class="gvsu-disclaimer gvsu-disclaimer-disclosure"><a href="http://gvsu.edu/disclosures">Disclosure Information</a></span>
<span class="gvsu-disclaimer"><span class="gvsu-disclaimer_mobile">Copyright </span>&copy; 1995-2012<span class="gvsu-disclaimer_tablet"> GVSU</span></span>
</div><!-- End #gvsu-disclaimers_copyright -->
</div><!-- End #gvsu-footer_secondary -->

</div><!-- End #footer -->
</div><!-- End #footer-wrapper -->
</div><!-- End #content -->

</div><!-- End #wrapper -->
<div id="renewalHack" style="display: none;"></div>

<!-- Place this script as near to the end of your BODY as possible. --><script
type="text/javascript">
  (function() {
    var x = document.createElement("script"); x.type = "text/javascript"; x.async = true;
    x.src = (document.location.protocol === "https:" ? "https://" : "http://") + "libraryh3lp.com/js/libraryh3lp.js?multi,poll";
    var y = document.getElementsByTagName("script")[0]; y.parentNode.insertBefore(x, y);
  })();
</script>
<script type="text/javascript">
      var isIE = (function() { // Is this IE?
         var div = document.createElement('div');
         div.innerHTML = '<!--[if lt IE 9]><marquee></marquee><![endif]-->';
         return (div.getElementsByTagName('marquee').length === 1);
      }());
   </script>
<script src="/illiad/js/modernizr-1.7.min.js"></script>
<script src="/illiad/js/jquery.min.js"></script>
<script>
$(document).ready(function() {

// Sub navigation

if(isIE == false) {
$("#nav-styles").html('<style>.lib-subnav .list { display: none; }.lib-subnav:hover .list { display: block; }#lib-subnav-toggle { width: auto; padding: .8em;}@media screen and (min-width: 48em) {#lib-subnav-toggle { display: none;}.lib-subnav .list { display: block;}.lib-subnav:hover .list { display: static; }.lib-subnav ul li:hover ul {display: block;}}</style>');
$(".lib-subnav").prepend('<a id="lib-subnav-toggle">Menu</a><div class="list">');
$("#lib-subnav-wrap").addClass('list');
$("#lib-subnav-toggle").click(function() {
$(this).next(".list").slideToggle(400);
});
}
if(isIE == true) {

}

function getQueryVar(varName){
    
     var queryStr = unescape(window.location.search) + '&';
var regex = new RegExp('.*?[&\\?]' + varName + '=(.*?)&.*');
val = queryStr.replace(regex, "$1");
return val == queryStr ? false : val;
}

// Document Delivery Script

$("option:contains('LIB')").text("Mary Idema Pew Library @ Allendale");
$("option:contains('STEEL')").text("Steelcase Library @ DeVos");
$("option:contains('AWRI')").text("Annis Water Research Institute");
$("option:contains('FREY')").text("Frey Learning Center @ CHS");
$("option:contains('OCS')").text("Ship books to me");
$("option:contains('VARI')").text("VanAndel Research Institute");

var pickupLoc = $("select#NVTGC").val();

if(pickupLoc != "OCS") {
$(".illiad-mailing-address").hide();
$("#NVTGC").change(function(){
$(".illiad-mailing-address").toggle($(this).val()=='OCS');
});
}

$("#transactionMenu a.menuEdit:last").click(function() { // Add notification that item will be canceled.
if(confirm("Are you sure you want to cancel this request?")) {
alert("Your request has been cancelled."); }
else { return false; }
});


$(".lib-table table tbody tr td a").addClass("editlink");
$(".lib-table table tbody tr td a:contains('Delete')").removeClass("editlink").addClass("delete-link");
$(".lib-table table tbody tr td a:contains('View')").removeClass("editlink").addClass("view-link");

$(".lib-table table:contains('Checked Out Items') th:contains('Due Date')").text("Due");
$(".lib-table table:contains('Checked Out Items') td:contains('Checked Out to Customer')").text("Checked Out");
$(".lib-table table:contains('Outstanding Requests')").find("a").text("Show");

$("a.menuEdit:contains('Cancel')").css("color", "red").css("display", "block").css("float", "right");

$("a.delete-link").click(function() {
if(confirm("Are you sure you want to delete this item?")) {
alert("Your article has been deleted."); }
else { return false; }
});

/* Look to see if the lib-renew link is visible on the page.
Hide it by default, and later we'll show it if renewals are allowed.
*/
if($("#lib-renew-link").length > 0) { // Yup.

$("#lib-renew-link").hide();

}

/* Illiad's status messages are ridiculous. The text is rarely helpful,
and everything is written in a weird hybrid of computer- and
librarian-ese. We'll hide some of the most offensive ones.
*/

if($('.statusNormal').length > 0) { // There is a .statusNormal class

// Get the text of the status
var statusText = $('.statusNormal').text();

// Hide the useless versions
if(statusText === 'Choose an option from the choices below.' || statusText === 'Enter information below and press the Submit Information button to send.' || statusText === 'When Finished Editing, press the Submit Information button below.') {

$('.statusNormal').hide();

} else { // Status might be useful. Style it appropriately.

$('.statusNormal').addClass('lib-alert').find('font').removeAttr('color');

}
}


/* Check to see if this is the request submitted page,
the only place this status class appears
*/

if($('.statusInformation').length > 0) { // Yup.

// Get some information about what type of item this is.

// Get the text of the status
var statusText = $('.statusInformation').text();

// Break the status text up into words
var statusTextWords = statusText.split(' ');

// Make sure we're really on the request received page,
// and check for item type
if(statusTextWords[1] == 'Request' && statusTextWords[2] == 'Received.' && statusTextWords[0 == 'Article']) {

// Item is an article. Make a readable status.
$('.statusInformation').html('<b>Got it!</b> Most articles come in 1-3 days. We&#8217;ll let you know when it&#8217;s here.');

} else {

// Item is either a book or thesis. Make readable status.
$('.statusInformation').html('<b>Got it!</b> Loans from other libraries can take 1-2 weeks. We&#8217;ll let you know when it&#8217;s here.');
}
}

if($(".statusNormal").length > 0 && $(".statusNormal:last-child").text() == "There can be no further renewals.") {

// This is the page you see when you've renewed an item. The dialogs are terrible.
// Let's fix that.

// Get the due date
var firstAlert = $(".statusNormal:first-child").text();
var alertChunks = firstAlert.split(" ");
var dueDate = alertChunks[7];

// Now hide the terrible status alerts
$(".statusNormal").hide();

// Add a nice new one.
var newAlert = '<span class="lib-success" style="margin-bottom: 0;"><b>Got it!</b> We&#8217;ll ask the library we borrowed this from if you can have it until <b>' + dueDate + '</b><br />They probably will. We&#8217;ll email you only if they need it back now.</span>';

// Put it on the page
$("#status").prepend(newAlert);
}


if(isIE == false) { // Hide this function from IE 8 and below, because it chokes on $.load

$(".how-to-renew-items").hide();

// Load checked out items in hidden iframes to see if they allow renewals
var renewAllowed;
$(".lib-table").find("table:contains('Checked Out Items')").find("a").each(function(index) {
var renewNo = $(this).text();
$("#renewalHack").load('illiad.dll?Action=10&Form=67&Value=' + renewNo + ' #renewal-details', function() {
var renewAllowed = $("#renewalHack").find("table td:contains('Renewals Allowed')").next("td").text();
var renewDate = $("#renewalHack").find("table td:contains('Due Date')").next("td").text();
$(".lib-table table:contains('Checked Out Items') tbody tr:contains('" + renewNo + "')").find("td:last-child").text(renewDate);
if($.trim(renewAllowed) === 'Yes') {

// Calculate whether it is currently 7 days before or after the due date to know if the request will go through

var newDate = Date.parse(renewDate);
newDate = newDate / 1000;
var currentDate = Math.round((new Date()).getTime() / 1000);

var diff = newDate - currentDate;

console.log(diff);

if(diff > 604800 || diff < -604800) { // Not during renewal period

console.log("Getting here");

$(".lib-table table:contains('Checked Out Items')").find("a:contains(" + renewNo + ")").removeClass('editlink').text("Allowed");

} else { // Can be renewed

var renewLink = $("#renewalHack").find("a.menuRenew").attr("href");
$(".lib-table table:contains('Checked Out Items')").find("a:contains(" + renewNo + ")").removeClass('editlink').attr("href", renewLink).attr("id", "lib-renew").text("Renew");

}

} else {
$(".lib-table table:contains('Checked Out Items')").find("a:contains(" + renewNo + ")").removeClass('editlink').text("Not Allowed");
}

});

});
}

var renewalPage = $(".lib-table").find("td:contains('Renewals Allowed')").next("td").text();

if(renewalPage == "Yes") { // Hide renewal button if renewals are not allowed during the time period

var renewDate = $(".lib-table").find("table td:contains('Due Date')").next("td").text();

// Calculate whether it is currently 7 days before or after the due date to know if the request will go through

var newDate = Date.parse(renewDate);
newDate = newDate / 1000;
var currentDate = Math.round((new Date()).getTime() / 1000);

var diff = newDate - currentDate;

if(diff > 604800 || diff < 0) { // Not during renewal period

$("a.menuRenew:contains('Renew Request')").hide();
$(".lib-table").find("td:contains('Renewals Allowed')").next("td").text("Yes - 7 days before or after Due Date");

} else {
$("a.menuRenew:contains('Renew Request')").text("Request Renewal");
}

}


$("#transactionMenu a.menuRenew").click(function() { // Add notification that item will be canceled.
alert("We&#8217;ll try to renewal this. If the lender says no, we&#8217;ll email you.");
});

$("#lib-renew").click(function() { // Add notification that item will be canceled.
alert("We&#8217;ll try to renewal this. If the lender says no, we&#8217;ll email you.");
});

if(($(".row-header:contains('Transaction Information')").length > 0)) {

// This is the detail page.

function getUrlVars() {
     var vars = {};
     var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
         vars[key] = value;
     });
     return vars;
}

// Why the transaction number is not listed here is beyond me. Let's fix that.
var transactionNumber = getUrlVars()["Value"];

$(".row-header:contains('Transaction Information')").find("th").text("Details for Transaction No. " + transactionNumber);

// ALso the alert is dumb here. Hide it.
$(".statusNormal").hide();

}

if(($(".row-header:contains('Request Information')").length > 0)) {

// This is the detail page.

function getUrlVars() {
     var vars = {};
     var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
         vars[key] = value;
     });
     return vars;
}

// Why the transaction number is not listed here is beyond me. Let's fix that.
var transactionNumber = getUrlVars()["Value"];

$(".row-header:contains('Request Information')").find("th").text("Details for Transaction No. " + transactionNumber);

// ALso the alert is dumb here. Hide it.
$(".statusNormal").hide();

}

if($("#main_menu").length > 0) {

var emptyTables = 0, numArticles, numRequests, numBooks, articleWidth, requestWidth, bookWidth;



if(($("#electronic-articles").length > 0) && ($("#electronic-articles").find(".row-message").find("td").text() == "No Electronic Articles Received")) {

// Home page and no electronic articles are there

emptyTables = emptyTables + 1;
numArticles = 0;

$("#electronic-articles").hide();

}

if(($("#outstanding-requests").length > 0) && ($("#outstanding-requests").find(".row-message").find("td").text() == "No Requests")) {

// Home page and no electronic articles are there

emptyTables = emptyTables + 1;
numRequests = 0;

$("#outstanding-requests").hide();

}

if(($("#checkedout-items").length > 0) && ($("#checkedout-items").find(".row-message").find("td").text() == "No Items")) {

// Home page and no electronic articles are there

emptyTables = emptyTables + 1;
numBooks = 0;

$("#checkedout-items").hide();

}

// What to show when there are no tables on the home page

if(emptyTables == 3) {

// Everything has been hidden! Quick, show something!

$("#main").prepend('<h4>You have no requests</h4><p>Document Delivery can get you electronic copies of articles and book chapters that <abbr title="Grand Valley State University">GVSU</abbr> doesn&#8217;t have online in a few days, or borrow books and more from other libraries, usually within a week.</p><p><div><a href="https://gvsu.illiad.oclc.org/illiad/illiad.dll?Action=10&amp;Form=22" class="lib-button">Request an Item Now</a></div></p><p>Need a book fast? <a href="http://elibrary.mel.org/search">Get it directly from another Michigan Library.</a></p>');

} else {

function getItemNumbers(idDiv) {

return $(idDiv).find("tbody").find("tr").length;

}

// Show the dashboard graph

// Get number of items for each item type

if(numArticles == 0) {

totalArticles = 0;
articleLabel = 'Electronic Articles';

} else {

totalArticles = getItemNumbers("#electronic-articles");
articleLabel = '<a href="#electronic-articles">Electronic Articles</a>';
}

if(numRequests == 0) {

totalRequests = 0;
requestLabel = 'Outstanding Requests';

} else {

totalRequests = getItemNumbers("#outstanding-requests");
requestLabel = '<a href="#outstanding-requests">Outstanding Requests</a>';
}

if(numBooks == 0) {

totalBooks = 0;
bookLabel = "Checked Out Items";

} else {

totalBooks = getItemNumbers("#checkedout-items");
bookLabel = '<a href="#checkedout-items">Checked Out Items</a>';

}

$("#main").prepend('<style>.dashboard-graph ul li { padding: .8em 1%; border-bottom: 1px solid #bbb; font-size: 1.1em; } .dashboard-graph b { display: inline-block; width: 75%; } .dashboard-graph span.number { display: inline-block; width: 20%; } .dashboard-graph span.graph { display:inline-block;width: 60%; } .dashboard-graph span.chart { display:inline-block; background-color: #069; height: 100%; } .dashboard-graph ul li:first-child { border-top: 1px solid #bbb; }.dashboard-graph ul li:nth-of-type(even) { background-color: #eee; }</style><div class="line"><h4 style="margin-bottom: 0;">Your Document Delivery</h4><div class="dashboard-graph span2 unit left"><ul><li><b>' + articleLabel + ':</b> <span class="number">' + totalArticles + '</span></li><li><b>' + requestLabel + ':</b> <span class="number">' + totalRequests + '</span></li><li><b>' + bookLabel + ':</b> <span class="number">' + totalBooks + '</span></li></ul></div><div class="span2 right unit lastUnit" style="text-align: right;"><div style="margin-right: 5%;"><p>Need something? We&#8217;ll get it for you!</p><p><a href="illiad.dll?Action=10&amp;Form=22" class="lib-button">Request an Item Now</a></p></div></div></div>');

}
}

});
</script>
<script type="text/javascript">
  var uvOptions = {};
  (function() {
    var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true;
    uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/bF8LF3wMOjs03b3RB1gA.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s);
  })();
</script>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2700108-12']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<script>
/*

UserVoice.push(['identify', {
email: '<#PARAM name="EmailAddress">', // User’s email address
name: '<#PARAM name="FirstName"> <#PARAM name="LastName">', // User’s real name
status: '<#PARAM name="StatusGroup">' // GVSU Status
}]);

*/

</script>

</body></html>
Something went wrong with that request. Please try again.