=$this->layout()->content ?>
=$this->doctype('HTML5')?>
=$this->headThemeResources()?> =$this->headMeta()?> =$this->headTitle()?> headLink( [ 'href' => $this->url('search-opensearch') . '?method=describe', 'type' => 'application/opensearchdescription+xml', 'title' => $this->transEsc('Library Catalog Search'), 'rel' => 'search' ] ); ?> layout()->rtl) { $this->headLink()->appendStylesheet('vendor/bootstrap-rtl.min.css'); } ?> =$this->headLink()?> =$this->headStyle()?> renderingError)) { // Add translation strings $this->jsTranslations()->addStrings( [ 'add_tag_success' => 'add_tag_success', 'bulk_email_success' => 'bulk_email_success', 'bulk_noitems_advice' => 'bulk_noitems_advice', 'bulk_save_success' => 'bulk_save_success', 'close' => 'close', 'collection_empty' => 'collection_empty', 'error_occurred' => 'An error has occurred', 'go_to_list' => 'go_to_list', 'libphonenumber_invalid' => 'libphonenumber_invalid', 'libphonenumber_invalidcountry' => 'libphonenumber_invalidcountry', 'libphonenumber_invalidregion' => 'libphonenumber_invalidregion', 'libphonenumber_notanumber' => 'libphonenumber_notanumber', 'libphonenumber_toolong' => 'libphonenumber_toolong', 'libphonenumber_tooshort' => 'libphonenumber_tooshort', 'libphonenumber_tooshortidd' => 'libphonenumber_tooshortidd', 'loading' => 'Loading', 'more' => 'more', 'number_thousands_separator' => [ 'number_thousands_separator', null, ',' ], 'sms_success' => 'sms_success' ] ); // Add libphonenumber.js strings $this->jsTranslations()->addStrings( [ "Phone number invalid" => 'libphonenumber_invalid', "Invalid country calling code" => 'libphonenumber_invalidcountry', "Invalid region code" => 'libphonenumber_invalidregion', "The string supplied did not seem to be a phone number" => 'libphonenumber_notanumber', "The string supplied is too long to be a phone number" => 'libphonenumber_toolong', "The string supplied is too short to be a phone number" => 'libphonenumber_tooshort', "Phone number too short after IDD" => 'libphonenumber_tooshortidd' ] ); // Deal with cart stuff: $cart = $this->cart(); if ($cart->isActive()) { $this->headScript()->appendFile("vendor/cookies.js"); $this->headScript()->appendFile("cart.js"); $domain = $cart->getCookieDomain(); if (!empty($domain)) { $this->headScript()->appendScript( 'VuFind.cart.setDomain("' . $domain . '");' ); } $cookiePath = $cart->getCookiePath(); if (!empty($cookiePath)) { $this->headScript()->appendScript( 'VuFind.cart.setCookiePath("' . $cookiePath . '");' ); } $this->jsTranslations()->addStrings( [ 'addBookBag' => 'Add to Book Bag', 'bookbagFull' => 'bookbag_full_msg', 'bookbagMax' => $cart->getMaxSize(), 'bookbagStatusFull' => 'bookbag_full', 'confirmDelete' => 'confirm_delete', 'confirmEmpty' => 'bookbag_confirm_empty', 'itemsAddBag' => 'items_added_to_bookbag', 'itemsInBag' => 'items_already_in_bookbag', 'removeBookBag' => 'Remove from Book Bag', 'viewBookBag' => 'View Book Bag' ] ); } $this->headScript()->appendScript( 'var userIsLoggedIn = ' . ($this->auth()->isLoggedIn() ? 'true' : 'false') . ';' ); } // Session keep-alive if ($this->keepAlive()) { $this->headScript()->appendScript('var keepAliveInterval = ' . $this->keepAlive()); $this->headScript()->appendFile("keep_alive.js"); } ?> url('home'), '/'); $translations = $this->jsTranslations()->getJSON(); $dsb = DEFAULT_SEARCH_BACKEND; $setupJS = <<