CINXE.COM
LibriVox
<!DOCTYPE html> <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6 ie"> <![endif]--> <!--[if IE 7 ]> <html lang="en" class="no-js ie7 ie"> <![endif]--> <!--[if IE 8 ]> <html lang="en" class="no-js ie8 ie"> <![endif]--> <!--[if IE 9 ]> <html lang="en" class="no-js ie9 ie"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"> </script> <![endif]--> <head> <meta content="text/html; charset=utf-8" http-equiv="content-type"> <title>LibriVox</title> <meta name="description" content="LibriVox" /> <meta name="author" content="LibriVox" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="shortcut icon" href="https://librivox.org/favicon.ico"> <link rel="stylesheet" href="https://librivox.org/css/style.css?v=1"> <link href='https://fonts.googleapis.com/css?family=Lato:400,400italic,700,700italic' rel='stylesheet' type='text/css'> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript" src="https://librivox.org/js/catalog/small-menu.js"></script> <script type="text/javascript"> var CI_ROOT = "https://librivox.org/" </script> </head> <body> <section class="header-wrap"> <header class="site-header"> <!-- Site title/Logo and tagline --> <hgroup class="logo-wrap"> <h1 class="logo"><a href="https://librivox.org/"><img src="https://librivox.org/images/librivox-logo.png" alt="librivox-logo" width="180" height="37"><span class="assistive-text">LibriVox</span></a></h1> <h3 class="tagline">Acoustical liberation of books in the public domain</h3> </hgroup> <!-- Sub menu --> <nav class="sub-menu"> <h1 class="assistive-text icon-fontawesome-webfont"><span>Menu</span></h1> <div class="assistive-text skip-link"><a href="#" title="Skip to content">Skip to content</a></div> <ul class="sub-menu-list"> <li class="first"><a href="https://librivox.org/pages/about-librivox/">About</a></li> <li><a href="https://librivox.org/pages/contact-librivox/">Contact</a></li> <li><a href="https://forum.librivox.org/">Forum</a></li> <li><a href="https://librivox.org/pages/help/">Help</a></li> <li class="twitter ir"><a href="http://twitter.com/librivox">Twitter</a></li> <!-- <li class="facebook ir"><a href="http://www.facebook.com/LibriVox">Facebook</a></li> --> <li class="rss "><a href="https://librivox.org/pages/librivox-feeds/">rss</a></li> </ul> </nav><!-- end sub-menu --> <!-- Search Form --> <div class="search-wrap"> <form role="search" action="#" id="searchform" method="get" class="searchform"> <label class="assistive-text" for="q">Search LibriVox</label> <input type="text" placeholder="Search by Author, Title or Reader" id="q" name="q" class="field"> <input type="text" id="dummy" name="dummy" style="display:none;"> <input type="submit" value="Search" id="searchsubmit" name="submit" class="submit"> </form> <a href="#" class="advanced-search js-advanced-search"> Advanced search</a> </div> <!-- end search-wrap --> </header> <!-- Main menu --> <div class="main-menu-wrap"> <section class="main-menu"> <h3>Browse the catalog</h3> <nav class="main-menu-list-wrap"> <ul class="main-menu-list"> <li data-menu_item="author" class="js-menu_item first"><a href="#"><span class="author-icon"></span>Author</a></li> <li data-menu_item="title" class="js-menu_item last"><a href="#"><span class="title-icon"></span>Title</a></li> <li data-menu_item="genre" class="js-menu_item "><a href="#" ><span class="genre-icon"></span>Genre/Subject</a></li> <li data-menu_item="language" class="js-menu_item "><a href="#"><span class="language-icon"></span>Language</a></li> <!-- <li data-menu_item="reader" class="js-menu_item "><a href="#"><span class="reader-icon"></span>Reader</a></li> --> </ul> </nav> </section> <!-- end main-menu --> </div> <!-- end .main-menu-wrap --> </section><!-- end .header-wrap --> <input type="hidden" id="primary_key" value="3181"> <div class="main-content"> <div class="sidebar"> <div id="sort_type" class="sort-type" style="display:none;"> <h4>Project type</h4> <ul> <li class="js-title-submenu" data-submenu="either"><a class="selected" href="#">all</a></li> <li class="js-title-submenu" data-submenu="solo"><a href="#">solo</a></li> <li class="js-title-submenu" data-submenu="group"><a href="#">group</a></li> </ul> </div> <a href="https://librivox.org/pages/donate-to-librivox/" class="donate">Donate to LibriVox</a> <a href="https://librivox.org/pages/thank-a-reader/" class="thank-reader">Thank a reader</a> <div class="disclaimer"> LibriVox recordings are Public Domain in the USA. If you are not in the USA, please verify the copyright status of these works in your own country before downloading, otherwise you may be violating copyright laws. </div> </div> <div class="page author-page"> <div class="page-header-wrap js-header_section"> <div class="content-wrap clearfix"> <h1>Matsuo Bashō <span class="dod-dob">(1644 - 1694)</span></h1> <p class="description">Matsuo Bashō (松尾 芭蕉?, 1644 – November 28, 1694), born Matsuo Kinsaku (松尾 金作?), then Matsuo Chūemon Munefusa (松尾 忠右衛門 宗房?), was the most famous poet of the Edo period in Japan. During his lifetime, Bashō was recognized for his works in the collaborative haikai no renga form; today, after centuries of commentary, he is recognized as the greatest master of haiku (at the time called hokku).</p> <div class="page-header-half"> <p><span>External Links</span></p> <p><a href="http://en.wikipedia.org/wiki/Matsuo_Bashō">Wiki - Matsuo Bashō</a></p> </div> <div class="page-header-half"> <p><span>Total matches:</span> 3</p> </div> </div> <div class="sort-menu" id="sort_menu" style="display:none;"> <p>Order by</p> <select class="js-sort-menu"> <option value="alpha" >Alphabetically</option> <option value="catalog_date" >Release date</option> </select> </div><!-- end .sort-menu --> </div><!-- end . page-header --> <ul class="browse-list"> </ul> <div class="page-number-nav"></div> </div> </div><!-- end .page --> </div><!-- end .main-content --> <footer class="footer-wrap"> <div class="footer"> <p class="license clear"><a href="#"><img src="https://librivox.org/images/public-domain-license.gif" alt="public-domain-license" width="88" height="31" /></a></p> </div><!-- end .footer-wrap --> </footer> <!--[if lte IE 9]> <script type="text/javascript" src="https://librivox.org/js/catalog/jquery.columnizer.js"></script> <![endif]--> <script type="text/javascript"> function get_search_page_from_url() { var query_string = window.location.href.slice( window.location.href.indexOf('?') ); if (typeof URLSearchParams !== 'function') { // Manual parsing is annoying and most browsers support URLSearchParams return 1; } var query_params = new URLSearchParams(query_string); var search_page_param = parseInt(query_params.get('search_page')); if (typeof search_page_param === 'number' && search_page_param > 0) { return search_page_param; } else { return 1; } } var search_category = "author"; var sub_category; var advanced_search = 0; var primary_key = 3181; var search_page = get_search_page_from_url(); set_advanced_form_page(search_page); var search_order = $('.js-sort-menu').val() || 'alpha'; var project_type = 'either'; var q = ""; var spinner = '<div class="loading_img" style="margin-left:300px;margin-top:60px;"><img src="../../img/loading.gif"/></div>'; $('.browse-header').hide(); var pathArray = window.location.pathname.split('/'); var current_page = pathArray[1]; if (q !== '') { advanced_search = 0; $('.advanced-search-inner').hide('slow'); librivox_search(); } else if (advanced_search === 1) { advanced_search_actions(); } else if (advanced_search === 2) { advanced_form_submit(); } else if (advanced_search === 3) { //may be able to combine with below $('.advanced-search-inner').hide(); get_results(search_category, search_page, sub_category, primary_key); } else { //only on loading search page if (current_page === 'search') { var item = $('.js-menu_item[data-menu_item="'+search_category+'"]'); load_search_data(item, search_category); } else if (jQuery.inArray(current_page, ['author', 'reader', 'group']) > -1) { get_results(current_page, search_page, sub_category, primary_key); } } advanced_search = 0; // it's done its job // do better $('#sort_type').hide(); if (search_category === 'title' || search_category === 'reader') { $('#sort_type').show(); } $('#sort_menu').hide(); if (search_category === 'title' || (primary_key > 0)) { $('#sort_menu').show(); } // Manage menus $('.js-menu_item').on('click', function(e){ search_category = $(this).attr('data-menu_item'); primary_key = 0; if (current_page !== 'search') { window.location.href = CI_ROOT + 'search/' + search_category; return; } e.preventDefault(); $('.advanced-search-inner').hide('slow'); $('#sidebar_wrapper').show(); $('#sort_menu').hide(); if (search_category === 'title' || (primary_key > 0)) { $('#sort_menu').show(); } q = ''; $('#q').val(''); load_search_data($(this), $(this).attr('data-menu_item')); }); $('.js-title-submenu').on('click', function(e){ e.preventDefault(); $('.js-title-submenu a').removeClass('selected'); $(this).children('a').addClass('selected'); project_type = $(this).attr('data-submenu'); set_advanced_form_page(1); //this is a new search, so reset get_results(search_category, search_page, sub_category, primary_key); }); $('.js-sort-menu').on('change', function(){ search_order = $(this).val(); get_results(search_category, search_page, sub_category, primary_key); }); function load_search_data(item, label) { $('.js-menu_item a').removeClass('active').removeClass('current-page'); item.children('a').addClass('active').addClass('current-page'); //console.log(item.attr('data-menu_item')); //global search_order = 'alpha'; if (item.attr('data-menu_item') == 'title') { search_order = 'catalog_date'; } $('.js-sort-menu').val(search_order); get_results(search_category, 1); set_browse_header(label); } function set_browse_header(label) { label = label.charAt(0).toUpperCase() + label.slice(1); var text = 'Browsing <span>'+ label +'</span>'; $('.browse-header').html(text).show(); $('.browse-header-wrap').show(); } function get_results(search_category, search_page, sub_category, primary_key) { sub_category = typeof sub_category !== 'undefined' ? sub_category : ''; primary_key = typeof primary_key !== 'undefined' ? primary_key : 0; search_order = typeof search_order !== 'undefined' ? search_order : 'alpha'; project_type = typeof project_type !== 'undefined' ? project_type : 'either'; var params = { 'primary_key': primary_key, 'search_category':search_category, 'sub_category': sub_category ,'search_page':search_page, 'search_order': search_order, 'project_type': project_type} ; if (history.pushState && current_page == 'search') { history.pushState(null, location.textContent, location.href); history.replaceState(null, null, "https://librivox.org/search"); } $.ajax({ url: CI_ROOT + current_page + '/get_results' , type: 'get', //yes, get...we want these all to work through the browser addressbar as well, now data: { 'primary_key': primary_key, 'search_category':search_category, 'sub_category': sub_category ,'search_page':search_page, 'search_order': search_order, 'project_type': project_type}, beforeSend: function(){ $('.browse-list').html(spinner); $('.page-number-nav').html(''); }, complete: function(r){ var response_obj = jQuery.parseJSON(r.responseText); $('.browse-list').html(''); if (response_obj.status == 'SUCCESS') { $('#sort_menu').hide(); $('#sort_type').hide(); if ((response_obj.results != 'No results') && (search_category != 'group') && (search_category == 'title' || (primary_key > 0))) { $('#sort_menu').show(); $('#sort_type').show(); } $('.browse-list').html(response_obj.results); $('.page-number-nav').html(response_obj.pagination); } if (history.pushState) { history.pushState(null, location.textContent, location.href); history.replaceState(null, null, "?primary_key=" + primary_key + '&search_category=' + search_category + '&search_page=' + search_page + '&search_form=get_results&search_order=' + search_order); } } }); } /* Advanced search form function */ $('#advanced_search_form_submit').on('click', function(e){ e.preventDefault(); set_advanced_form_page(1); //this is a new search, so reset advanced_form_submit(); }); function set_advanced_form_page(new_page) { search_page = new_page; $('#search_page').val(new_page); } function advanced_form_submit() { $('.advanced-search-inner').hide('slow'); $('#sort_type').hide(); //console.log('hidden'); q = ''; $('#q').val(''); get_advanced_results(); $('#sidebar_wrapper').show(); } function get_advanced_results() { $.ajax({ url: CI_ROOT + 'advanced_search', type: 'get', data: $('#advanced_search_form').serialize() + '&q=' + encodeURIComponent(q), beforeSend: function(){ $('.browse-list').html(spinner); $('.page-number-nav').html(''); }, complete: function(r){ var response_obj = jQuery.parseJSON(r.responseText); $('.browse-list').html(''); //clear the spinner, success or no //console.log(response_obj.status); $('#sort_menu').hide(); $('#sort_type').hide(); if (response_obj.status == 'SUCCESS') { $('.browse-list').html(response_obj.results); $('.page-number-nav').html(response_obj.pagination); if (search_category == 'title' || (primary_key > 0)) { $('#sort_menu').show(); } } if (history.pushState) { history.pushState(null, location.textContent, location.href); if (q != '') { history.replaceState(null, null, "?q=" + q + '&search_form=advanced'); } else { history.replaceState(null, null, "?" + $('#advanced_search_form').serialize()); } } } }); } $('.js-advanced-search').on('click', function(e){ // TODO: make toggle if (current_page != 'search') { window.location.href = CI_ROOT + 'search/' + 'advanced_search'; } e.preventDefault(); advanced_search_actions(); return false; }); function advanced_search_actions() { $('.browse-header').html(''); $('.browse-list').html(''); $('.page-number-nav').html(''); $('#sidebar_wrapper').hide(); $('#sort_menu').hide(); $('.advanced-search-inner').show('slow'); } /* end Advanced Search Form*/ /* Librivox search form */ $('#searchsubmit').on('click', function(e){ e.preventDefault(); //console.log(current_page); q = $('#q').val(); if (current_page != 'search') { window.location.href = CI_ROOT + 'search?search_form=get_results&q=' + encodeURIComponent(q); return; } set_advanced_form_page(1); // This is a new search, so reset librivox_search(); $('#sidebar_wrapper').show(); $('.advanced-search-inner').hide('slow'); }); function librivox_search() { search_order = 'alpha'; $('#advanced_search_form #sort_order').val('alpha'); // the code eventually serializes the form, so we need to set it to alpha here $('.browse-header-wrap').hide(); get_advanced_results(); } /* end Librivox search form*/ $(document).on('click', '.page-number', function(e) { e.preventDefault(); search_page = $(this).attr('data-page_number'); var call_function = $(this).attr('data-call_function'); if (call_function == 'get_advanced_results') { $('#search_page').val(search_page); //set it for the form.serialize() get_advanced_results(); } else { get_results(search_category, search_page, sub_category, primary_key); } return false; }); $(document).on('click', '.js-sublink', function(e) { e.preventDefault(); sub_category = $(this).attr('data-sub_category'); primary_key = $(this).attr('data-primary_key'); set_advanced_form_page(1); //this is a new search, so reset if (search_category == 'title' || (primary_key > 0)) { $('#sort_menu').show(); } var label = $(this).text(); set_browse_header(label); get_results(search_category, search_page, sub_category, primary_key); return false; }); //reader sections $('.data_tab').on('click', function(){ $('.data_tab').removeClass('selected'); $(this).addClass('selected'); $('.tab-pane').removeClass('selected').hide(); var active_pane = $(this).attr('data-tab'); $('#'+ active_pane ).show(); return false; }); </script>