CINXE.COM
Authority search result › NUKAT catalog
<!DOCTYPE html> <!-- TEMPLATE FILE: opac-authoritiessearchresultlist.tt --> <html lang="en" class="no-js"> <head> <title>Authority search result › NUKAT catalog</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Koha" /> <!-- leave this for stats --> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="csrf-token" content="f05792a688580bd0cc7c96641ac62a03f04b8a3a,19b94cf03f22c7ccfa81f86b02dadcd06a74bbce,1739733099"> <link href="/opac-tmpl/bootstrap/lib/jquery/responsive.dataTables.min_24.0505000.css" type="text/css" rel="stylesheet"> <link rel="shortcut icon" href="https://centrum.nukat.edu.pl/images/logotypy/logo/png/favico_violet.ico" type="image/x-icon" /> <link rel="apple-touch-icon" href="https://centrum.nukat.edu.pl/images/logotypy/logo/png/favico_violet.ico" type="image/x-icon" /> <link href="/opac-tmpl/bootstrap/css/opac_24.0505000.css" rel="stylesheet" type="text/css"> <link type="text/css" rel="stylesheet" media="print" href="/opac-tmpl/bootstrap/css/print_24.0505000.css"> <style>#opac-main-search { background:#623A8E; } #logo{ background: url("https://centrum.nukat.edu.pl/images/logotypy/logo/png/logo.png") no-repeat; background-size: contain; } .view a i.fa, .view a i.fa-solid, .view button i.fa, .view button i.fa-solid, .actions a i.fa, .actions a i.fa-solid, .actions button i.fa, .actions button i.fa-solid, .toolbar a i.fa, .toolbar a i.fa-solid, .toolbar button i.fa, .toolbar button i.fa-solid, #action a i.fa, #action a i.fa-solid, #action button i.fa, #action button i.fa-solid, #action a, #a_listResults, .table-striped tbody > tr:nth-child(2n+1) > td a, .table-striped tbody > tr:nth-child(2n+1) > th a, .table-striped tbody>tr:nth-child(odd)>td a.btn.btn-link, .table-striped tbody>tr:nth-child(odd)>th a.btn.btn-link, .navbar-nav>li>a, a:link, a:visited{ color: #623A8E } .title_summary .results_summary.availability, #availability_facet { display: none; } @media only screen and (max-width: 700px) { /* Screens below 700 pixels wide */ #logo { margin: 0; width: 64px; height: 32px; } }</style> <link rel="search" type="application/opensearchdescription+xml" href="https://katalog.nukat.edu.pl/cgi-bin/koha/opac-search.pl?format=opensearchdescription" title="Search NUKAT"> <link rel="unapi-server" type="application/xml" title="unAPI" href="https://katalog.nukat.edu.pl/cgi-bin/koha/unapi" /> <script> var Koha = {}; function _(s) { return s } // dummy function for gettext const is_logged_in = false </script> <script src="/opac-tmpl/bootstrap/js/Gettext_24.0505000.js"></script> <script src="/opac-tmpl/bootstrap/js/i18n_24.0505000.js"></script> <link rel="stylesheet" type="text/css" href="/opac-tmpl/lib/fontawesome/css/fontawesome.min_24.0505000.css"> <link type="text/css" rel="stylesheet" href="/opac-tmpl/lib/fontawesome/css/brands.min_24.0505000.css"> <link type="text/css" rel="stylesheet" href="/opac-tmpl/lib/fontawesome/css/solid.min_24.0505000.css"> </head> <body ID="opac-authoritiesresultlist" class="branch-default scrollto" > <button id="scrolltocontent">Skip to main content</button> <div id="wrapper"> <div id="header-region" class="noprint"> <nav class="navbar navbar-expand"> <div id="logo"> <a class="navbar-brand" href="/cgi-bin/koha/opac-main.pl"> NUKAT </a> </div> <div id="cartDetails" class="cart-message">Your cart is empty.</div> <ul id="cart-list-nav" class="navbar-nav"> <li class="nav-item js-show"> <a href="#" class="nav-link" title="Collect items you are interested in" id="cartmenulink" role="button" aria-label="Cart"> <i id="carticon" class="fa fa-shopping-cart fa-icon-black" aria-hidden="true"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span> </a> </li> <li class="divider-vertical"></li> </ul> <!-- / .navbar-nav --> <div id="header_langmenu"> <ul class="navbar-nav"> <li class="dropdown"> <a href="#" title="Switch languages" class="nav-link dropdown-toggle" id="langmenu" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-flag fa-icon-black" aria-hidden="true"></i> <span class="langlabel">Languages</span> <b class="caret"></b></a> <div aria-labelledby="langmenu" role="menu" class="dropdown-menu dropdown-menu-right"> <a class="dropdown-item menu-inactive" href="#" tabindex="-1" role="menuitem"> English <i class="fa fa-check" aria-hidden="true"></i> </a> <a class="dropdown-item" href="/cgi-bin/koha/opac-changelanguage.pl?language=pl-PL" tabindex="-1" role="menuitem"> Polski </a> </div> <!-- /# .dropdown-menu --> </li> <!-- / .dropdown --> </ul> <!-- /.nav.pull-right --> </div> <!-- /#header_langmenu --> <ul id="members" class="navbar-nav"> <li class="nav-item dropdown"> </li> <!-- Cookie consent button for non logged-in users --> <li style="display:none" id="cookieConsentDivider" class="divider-vertical" aria-hidden="true"></li> <li style="display:none" id="cookieConsentLi" class="nav-item" aria-hidden="true"> <a id="cookieConsentButton" href="#" name="Your cookies" class="nav-link" title="View and amend cookies you have consented to" role="button"> <i class="fa fa-cookie-bite" aria-hidden="true"></i> <span class="cookieconsentlabel">Your cookies</span> </a> </li> <li class="divider-vertical"></li> <li class="nav-item search_history"> <a class="nav-link login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> </li> <li class="divider-vertical"></li> <li class="nav-item"> <a class="nav-link logout clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history"><i class="fa fa-trash-can" aria-hidden="true"></i> Clear</a> </li> </ul> </nav> <!-- /navbar --> </div> <!-- / header-region --> <div class="container-fluid"> <div class="row"> <div class="col"> <div id="opac-main-search" class="mastheadsearch"> <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform"> <div class="form-row align-items-center"> <div class="col-sm-auto order-2 order-sm-2"> <select name="idx" id="masthead_search" class="form-control"> <option value="">Library catalog</option> <option value="ti">Title</option> <option value="au">Author</option> <option value="su">Subject</option> <option value="nb">ISBN</option> <option value="ns">ISSN</option> <option value="se">Series</option> <option value="callnum">Call number</option> </select> </div> <!-- /.col-sm-auto --> <div class="col order-4 order-sm-3"> <input type="text" class="transl1 form-control" id="translControl1" name="q" value="" /><span id="translControl"></span> </div> <!-- /.col --> <div class="order-5 col-sm-auto"> <button type="submit" id="searchsubmit" class="btn btn-primary" title="Search" aria-label="Search"> <i class="fa fa-search" aria-hidden="true"></i> </button> </div> </div> <!-- /.form-row --> <input type="hidden" name="weight_search" value="1"> </form> </div><!-- /#opac-main-search --> </div> <!-- /.col --> </div> <!-- /.row --> <div class="row"> <ul class="nav" id="moresearches"> <li class="nav-item"> <a href="/cgi-bin/koha/opac-search.pl">Advanced search</a> </li> <li class="nav-item"> <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a> </li> <li class="nav-item"> <a href="/cgi-bin/koha/opac-browse.pl">Browse search</a> </li> <li class="nav-item"> <a id="library_page" href="/cgi-bin/koha/opac-library.pl"> <span>Libraries</span> </a> </li> </ul> <!-- /.nav#moresearches --> </div> <!-- /.row --> </div> <!-- /.container-fluid --> <!-- Login form hidden by default, used for modal window --> <div id="loginModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h2 class="modal-title" id="modalLoginLabel">Log in to your account</h2> <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth"> <input type="hidden" name="csrf_token" value="f05792a688580bd0cc7c96641ac62a03f04b8a3a,19b94cf03f22c7ccfa81f86b02dadcd06a74bbce,1739733099" /> <input type="hidden" name="has-search-query" id="has-search-query" value="" /> <div class="modal-body"> <input type="hidden" name="koha_login_context" value="opac" /> <fieldset class="brief"> <div class="local-login"> <label for="muserid">Login:</label><input type="text" id="muserid" name="login_userid" autocomplete="off" /> <label for="mpassword">Password:</label><input type="password" id="mpassword" name="login_password" autocomplete="off" /> <fieldset class="action"> <input type="hidden" name="op" value="cud-login" /> <input type="submit" class="btn btn-primary" value="Log in" /> </fieldset> </div> <div id="forgotpassword-modal" class="forgotpassword"> <p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p> </div> </fieldset> </div> </form> <!-- /#auth --> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!-- /#modalAuth --> <!-- Cookie consent bar --> <div id="cookieConsentBar" aria-hidden="true"> <div id="cookieConsentBar_content"> <div id="CookieConsentBar"> <div class="en_item"> <div class="en_body"><p>The online catalog uses functional cookies: these are essential to make the site work.</p></div> </div> </div> </div> <div class="consentButtons"> <button type="button" class="btn btn-primary consentAcceptEssential">Accept essential cookies</button> <button type="button" class="btn btn-info" id="consentMoreInfo" aria-label="Click to view more information about your cookie consents">More information</button> </div> </div> <!-- /#cookieConsentBar --> <!-- Cookie consent modal --> <div id="cookieConsentModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="cookieConsentModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h2 class="modal-title" id="cookieConsentModalLabel">Cookies policy</h2> </div> <div class="modal-body"> <div id="cookieConsentPopupText"> <div id="CookieConsentPopup"> <div class="en_item"> <div class="en_body"><h3>What are cookies?</h3> <p>Cookies are small text files placed on your browser by websites. They help make websites work, or work more efficiently. They also \u0022remember\u0022 some of your preferences, so you don't have to set a preference again every time you switch to a different page on the same website.</p> <p>If cookies are a concern for you, you may like to regularly clear your cookies on your browser or use a private browser mode. Check your browser settings for these options.</p> <h3>Essential cookies</h3> <p>Here is the list of essential cookies used on the Koha online catalog.</p> <p>Some of these depend on settings chosen by the library team; therefore all the cookies listed may not apply to this site.</p> <table id="cookiesinfot" class="table table-bordered table-striped"> <thead> <tr> <th>Storage</th> <th>Name</th> <th>Value</th> <th>Expiration</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>Cookie</td> <td>CGISESSID</td> <td>Session ID</td> <td>Until logout or end of session</td> <td>Session cookie</td> </tr> <tr> <td>Cookie</td> <td>KohaOpacLanguage</td> <td>Language code</td> <td>3 years</td> <td>Stores the language the user selected, so the online catalog will appear in that same language the next time it is visited.</td> </tr> <tr> <td>Cookie</td> <td> <p>form_serialized</p> <p>form_serialized_limits</p> </td> <td>Search terms and limits</td> <td>End of session or when the advanced search page is accessed again.</td> <td>jQuery cookie. Stores search terms and limits of the last advanced search. Set when an advanced search is submitted.</td> </tr> <tr> <td>Cookie</td> <td>search_path_code</td> <td>ads (fewer) or exs (more)</td> <td>End of session or when the advanced search page is accessed again.</td> <td>jQuery cookie. Related to serialized_form* cookies. Stores if the advanced search form was used with 'More options' or 'Fewer options'.</td> </tr> <tr> <td>Cookie</td> <td>num_paragraph</td> <td>Count of search options added</td> <td>End of session or when the advanced search page is accessed again.</td> <td>jQuery cookie. Used to store the number of created options when user selects 'More options' in advanced search to increase search boxes.</td> </tr> <tr> <td>Cookie</td> <td>bib_list</td> <td>List of record IDs (biblionumbers) separated by /</td> <td>End of session or until the cart is emptied.</td> <td>Stores cart contents in the online catalog. Set when records are added to the cart for the first time.</td> </tr> </tbody> </table> <h3>Non-essential cookies</h3> <p>The library team may create additional cookies. These are optional and will require your agreement before they are used.</p> <p>If any non-essential cookies are created, they will appear below.</p> </div> </div> </div> </div> <div id="consentCookieList"> </div> </div> <div class="modal-footer"> <div class="consentButtons"> <button type="button" class="btn btn-primary consentAcceptEssential">Accept essential cookies</button> <a type="button" href="#" class="btn btn-secondary consentCloseModal">Cancel</a> </div> </div> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!-- /#cookieConsentModal --> <div class="main"> <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs"> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="/cgi-bin/koha/opac-main.pl" title="Home">Home</a> </li> <li class="breadcrumb-item"> <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a> </li> <li class="breadcrumb-item active"> <a href="#" aria-current="page"> <span>Results</span> </a> </li> </ol> </nav> <div class="container-fluid"> <div class="row"> <div class="col order-first order-md-first order-lg-2"> <div id="userauthsearchresults" class="maincontent"> <h1>Authority search results</h1> <div class="pages"></div> <div id="results"> <p><strong>Results 1 to 1 of 1</strong></p> </div> <div class="searchresults"> <table class="table table-bordered table-striped"> <caption class="sr-only">Authority search results</caption> <thead> <tr> <th>Authorized headings</th> <th></th> <th>Type of heading</th> <th>Records</th> <th></th> </tr> </thead> <tbody> <tr> <td> Has艂o osobowe: <div class="authorizedheading"> <span class="authorizedheading">Whitaker, Forest (1961- ).</span> </div> <div class="authres_notes"> <!-- notes modal --> <div style='font-style:normal;' class="modal fade notesModal" id="notesModal_5429987" tabindex="-1" role="dialog" aria-labelledby="notesModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="notesModalLabel">Notes</h4> <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">脳</button> </div> <div class="modal-body"> <ul> <li>Ameryka艅ski aktor, scenarzysta, re偶yser i producent filmowy.</li> <li>Kp. Ghost Dog the way of the samurai [Film] = Ghost Dog droga samuraja / dir. by Jim Jarmusch. - Warszawa, 2008. Aktor</li> <li>LCA online</li> </ul> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> <span><a href="#" data-toggle="modal" data-target="#notesModal_5429987">Notes</a></span> </div> <div class="standard_ids"> <span class="standard_ids">Control number: <span class="control_numbers">n 2008058119</span></span> </div> </td> <td><a href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=5429987">Details</a> <td>Has艂o osobowe</td> <td> <a href="/cgi-bin/koha/opac-search.pl?type=opac&op=do_search&q=an,phr:5429987">16 records</a> </td> <td></td> </tr> </tbody> </table> </div> <!-- / .searchresults --> <div class="pages"></div> </div> <!-- / #userauthsearchresults --> </div> <!-- / .col-lg-10/12 --> </div> <!-- / .row --> </div> <!-- / .container-fluid --> </div> <!-- / .main --> </div> <!-- / #wrapper in masthead.inc --> <footer> <div class="container-fluid"> <div class="row"> <div class="col"> <div id="report-koha-url"> <div class="row justify-content-between"> <div class="col"> <ul class="nav" id="footernav"> <li id="cookieConsentFooter" class="nav-item noprint"> <a href="#">Cookies</a> </li> </ul> </div> <div class="col"> <div id="koha_url" class="clearfix noprint"> <p>Powered by <a class="koha_url" rel="nofollow" href="http://koha-community.org">Koha</a> </p> </div> <!-- /#koha_url --> </div> <!-- /.col --> </div> <!-- /.row.justify-content-between --> </div> <!-- /#report-koha-url --> </div> <!-- /.col --> </div> <!-- /.row --> </div> <!-- /.container-fluid --> </footer> <!-- CookieConsentedJS code that may run --> <!-- JavaScript includes --> <script src="/opac-tmpl/lib/jquery/jquery-3.6.0.min_24.0505000.js"></script> <script src="/opac-tmpl/lib/jquery/jquery-migrate-3.3.2.min_24.0505000.js"></script> <script src="/opac-tmpl/lib/bootstrap/js/bootstrap.bundle.min_24.0505000.js"></script> <script src="/opac-tmpl/lib/fontfaceobserver/fontfaceobserver.min_24.0505000.js"></script> <script src="/opac-tmpl/lib/enquire/enquire.min_24.0505000.js"></script> <script> let logged_in_user_id = ""; </script> <script src="/opac-tmpl/bootstrap/js/global_24.0505000.js"></script> <script> $(".print-large").on("click",function(){ window.print(); return false; }); $(".addtoshelf").on("click",function(e){ e.preventDefault(); Dopop( this.href ); }); $("body").on("click", ".addtocart", function(e){ e.preventDefault(); var biblionumber = $(this).data("biblionumber"); addRecord( biblionumber ); }); $("body").on("click", ".cartRemove", function(e){ e.preventDefault(); var biblionumber = $(this).data("biblionumber"); delSingleRecord( biblionumber ); }); $(".clearsh").on("click", function(){ return confirmDelete( _("Are you sure you want to delete your search history?") ); }); </script> <script src="/opac-tmpl/bootstrap/js/basket_24.0505000.js"></script> <script src="/opac-tmpl/lib/js-cookie/js.cookie-3.0.1.min_24.0505000.js"></script> <script> $(document).ready(function() { if($('#searchsubmit').length) { $(document).on("click", '#searchsubmit', function(e) { Cookies.remove("form_serialized", { path: '/'}); Cookies.remove("form_serialized_limits", { path: '/'}); Cookies.remove("search_path_code", { path: '/'}); }); } }); </script> <script src="/opac-tmpl/lib/dayjs/dayjs.min_24.0505000.js"></script> <script src="/opac-tmpl/lib/dayjs/plugin/timezone_24.0505000.js"></script> <script src="/opac-tmpl/lib/dayjs/plugin/utc_24.0505000.js"></script> <script> dayjs.extend(window.dayjs_plugin_utc); dayjs.extend(window.dayjs_plugin_timezone); </script> <!-- js-date-format.inc --> <script> (function() { var def_date_format = 'iso'; var def_time_format = '24hr'; var def_tz = 'Europe/Warsaw'; var get_date_pattern = function(format) { var date_pattern = 'YYYY-MM-DD'; if(format == 'us') date_pattern = 'MM/DD/YYYY'; if(format == 'metric') date_pattern = 'DD/MM/YYYY'; if(format == 'dmydot') date_pattern = 'DD.MM.YYYY'; return date_pattern; }; var get_time_pattern = function(format) { var time_pattern = 'HH:mm'; if(format == '12hr') time_pattern = 'hh:mm a'; return time_pattern; }; /* * A JS equivilent of the KohaDates TT Plugin. Passed an rfc3339 formatted date string, * or JS Date, the function will return a date string formatted as per the koha instance config. * Optionally accepts a dateformat parameter to allow override of the configured output format * as well as a 'withtime' boolean denoting whether to include time or not in the output string. */ window.$date = function(value, options) { if(!value) return ''; var tz = (options&&options.tz)||def_tz; var m = dayjs(value); if ( ! value.match(/^\d{4}-\d{2}-\d{2}$/ ) ) { m = m.tz(tz); } var dateformat = (options&&options.dateformat)||def_date_format; var withtime = (options&&options.withtime)||false; if(dateformat=='rfc3339' && withtime) return m.format(); var timeformat = (options&&options.timeformat)||def_time_format; var date_pattern = get_date_pattern(dateformat); var time_pattern = !withtime?'':' '+get_time_pattern(timeformat); return m.format(date_pattern+time_pattern); } window.$datetime = function(value, options) { options = options||{}; options.withtime = true; return $date(value, options); }; window.$time = function(value, options) { if(!value) return ''; var tz = (options&&options.tz)||def_tz; var m = dayjs(value); if(tz) m = m.tz(tz); var dateformat = (options&&options.dateformat); var timeformat = (dateformat=='rfc3339'&&'24hr')||(options&&options.timeformat)||def_time_format; return m.format(get_time_pattern(timeformat)+(dateformat=='rfc3339'?':ss'+(!m.isUTC()?'Z':''):''))+(dateformat=='rfc3339' && m.isUTC()?'Z':''); } })(); </script> <!-- / js-date-format.inc --> <script> (function() { /** * Format the biblio response from a Koha RESTful API request. * @param {Object} biblio The biblio json object as returned from the Koha RESTful API * @param {Object} config A configuration object * Valid keys are: `link` * @return {string} The formatted HTML string */ window.$biblio_to_html = function(biblio, config) { if (biblio === undefined) { return ''; // empty string for no biblio } var title = '<span class="biblio-title">'; if (biblio.title != null && biblio.title != '') { title += escape_str(biblio.title); } else { title += _("No title"); } title += '</span>'; // add subtitle if (biblio.subtitle != null && biblio.subtitle != '') { title += ' <span class="biblio-subtitle">' + escape_str(biblio.subtitle) + '</span>'; } // set title as link if (config && config.link) { if (config.link === 'marcdetail') { title = '<a href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=' + encodeURIComponent(biblio.biblio_id) + '" class="title">' + title + '</a>'; } else if (config.link === 'labeled_marc') { title = '<a href="/cgi-bin/koha/opac-labeledMARCdetail.pl?biblionumber=' + encodeURIComponent(biblio.biblio_id) + '" class="title">' + title + '</a>'; } else if (config.link === 'isbd') { title = '<a href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=' + encodeURIComponent(biblio.biblio_id) + '" class="title">' + title + '</a>'; } else { title = '<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=' + encodeURIComponent(biblio.biblio_id) + '" class="title">' + title + '</a>'; } } // add medium if (biblio.medium != null && biblio.medium != '') { title += ' <span class="biblio-medium">' + escape_str(biblio.medium) + '</span>'; } // add part numbers/names let part_numbers = (typeof biblio.part_number === 'string') ? biblio.part_number.split("|") : []; let part_names = (typeof biblio.part_name === 'string') ? biblio.part_name.split("|") : []; let i = 0; while (part_numbers[i] || part_names[i]) { if (part_numbers[i]) { title += ' <span class="part-number">' + escape_str(part_numbers[i]) + '</span>'; } if (part_names[i]) { title += ' <span class="part-name">' + escape_str(part_names[i]) + '</span>'; } i++; } return title; }; })(); </script> <script src="/opac-tmpl/lib/jquery/plugins/jquery.dataTables.min_24.0505000.js"></script> <script src="/opac-tmpl/lib/jquery/plugins/dataTables.responsive.min_24.0505000.js"></script> <script src="/opac-tmpl/bootstrap/js/datatables_24.0505000.js"></script> <script type="text/JavaScript"> $(document).ready(function(){ $('.table').dataTable($.extend(true, {}, dataTablesDefaults, { "searching": false, "paging": false, "info": false, "autoWidth": false, "responsive": { "details": { "type": 'column',"target": -1 } }, "columnDefs": [ { "className": 'dtr-control', "orderable": false, "targets": -1 } ], })); }); </script> <script> // focus na glownym search fieldzie na OPAC homepage $(document).ready(function(){ if (window.location.pathname == "/" || window.location.href.indexOf("opac-main.pl") > -1) { $("#translControl1").focus(); } }); // *****************************************************T艁UMACZENIA************************************************** const translations = { en: { libraries_available: "Libraries offering access to this title", see_more: "see more", loading: "Loading", no_results: "No result", link_only_catalog: "link only to catalog", link_only_website: "link only to library page", city: "City", state: "State", name: "Library" }, pl: { libraries_available: "Biblioteki udost臋pniaj膮ce ten tytu艂", see_more: "zob. wi臋cej", loading: "艁adowanie", no_results: "Brak", link_only_catalog: "link tylko do katalogu", link_only_website: "link tylko do strony biblioteki", city: "Miasto", state: "Wojew贸dztwo/Kraj", name: "Biblioteka" } }; const currentLanguage = document.documentElement.getAttribute('lang').slice(0, 2); // *****************************************************WIDOK WYSZUKIWANIA************************************************** $(document).ready(function () { // Sprawdzenie, czy adres URL zawiera "opac-search.pl" if (window.location.href.includes("opac-search.pl")) { // Funkcja do pobierania liczby element贸w async function fetchItemsCountForBiblionumbers(biblionumbers) { const apiUrl = '/api/v1/contrib/nukat_symbols/count/symbols'; // Tworzymy zapytanie GET z parametrami biblio_ids const url = `${apiUrl}?biblio_ids=${biblionumbers.join(',')}`; try { const response = await fetch(url, { method: 'GET', headers: { 'Content-Type': 'application/json', } }); if (!response.ok) { throw new Error(`B艂膮d podczas pobierania danych: ${response.statusText}`); } // Pobranie odpowiedzi JSON const data = await response.json(); return data; } catch (error) { console.error('Wyst膮pi艂 b艂膮d podczas pobierania danych:', error); return {}; } } // Funkcja, kt贸ra przetwarza wszystkie elementy z klas膮 "libraries_number" async function updateLibrariesNumber() { const biblionumbers = []; $('table.table-striped tbody tr').each(function () { const $row = $(this); const biblionumber = $row.find('input[name="biblionumber"]').val(); if (biblionumber) { biblionumbers.push(Number(biblionumber)); // Konwertowanie biblionumeru na liczb臋 } }); if (biblionumbers.length === 0) return; try { const itemsCountData = await fetchItemsCountForBiblionumbers(biblionumbers); // Przetwarzanie wszystkich wierszy i aktualizacja liczby dost臋pnych element贸w $('table.table-striped tbody tr').each(function () { const $row = $(this); const biblionumber = $row.find('input[name="biblionumber"]').val(); const $availabilityElement = $row.find('.results_summary.availability'); if ($availabilityElement.length > 0 && biblionumber) { const itemsCount = itemsCountData[biblionumber] || 0; // Tworzymy nowy div i wstawiamy go po elemencie .availability const librariesAvailableDiv = $(` <div class="results_summary libraries_available"> ${translations[currentLanguage]["libraries_available"]}: ${itemsCount} <p><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=${biblionumber}">${translations[currentLanguage]["see_more"]}</a></p> </div> `); $availabilityElement.after(librariesAvailableDiv); } }); } catch (error) { console.error('B艂膮d podczas aktualizacji liczby bibliotek:', error); } } updateLibrariesNumber(); } }); // ******************************************************WIDOK SZCZEG脫艁OWY************************************************** // Funkcja do pobierania biblionumber z adresu URL $(document).ready(function () { // Funkcja do pobierania biblionumeru z URL function getBiblionumber() { const urlParams = new URLSearchParams(window.location.search); const biblionumberFromParams = urlParams.get('biblionumber'); if (biblionumberFromParams) { return biblionumberFromParams; } const pathParts = window.location.pathname.split('/'); const lastSegment = pathParts[pathParts.length - 1]; const isBiblionumberValid = /^\d+$/.test(lastSegment); if (isBiblionumberValid) { return lastSegment; } return null; // Zwracamy null, je艣li nie znaleziono biblionumber } // Zmienna do przechowywania biblionumeru const biblionumber = getBiblionumber(); if (!biblionumber) return; // Usu艅 klas臋 'active' i ustaw 'aria-selected' na 'false' $('.nav-link').removeClass('active').attr('aria-selected', 'false'); $('.tab-pane[role="tabpanel"]').removeClass('active').attr('aria-selected', 'false'); console.log(`Pobieram dane dla biblionumber: ${biblionumber}`); // Zast膮pienie pierwszej zak艂adki (egzemplarze) na "Biblioteki udost臋pniaj膮ce tytu艂" const newNavItem = $('<li>', { class: 'nav-item', role: 'presentation' }) .append($('<a>', { class: 'nav-link active', id: 'libraries_info-tab', 'data-toggle': 'tab', href: '#libraries_info_panel', 'aria-controls': 'libraries_info_panel', role: 'tab', 'aria-selected': 'true', 'data-target': "#libraries_info_panel", text: translations[currentLanguage]["libraries_available"] })); $('.nav-tabs > *:first').replaceWith(newNavItem); // Zast膮pienie pierwszego panelu (egzemplarze) na "Biblioteki udost臋pniaj膮ce tytu艂" const newTabPanel = $('<div>', { class: 'tab-pane active', role: 'tabpanel', id: 'libraries_info_panel', 'aria-labelledby': 'libraries_info-tab' }) .append(`<div id="libraries_info"><p>${translations[currentLanguage]['loading']}...</p></div>`); $('.tab-content > *:first').replaceWith(newTabPanel); // Funkcja do pobierania symboli z API na podstawie biblionumeru async function fetchSymbols(biblionumber, page = 1, allLinks = []) { const perPage = 50; // Liczba element贸w na stronie const apiUrl = `/api/v1/contrib/nukat_symbols/symbols/${biblionumber}?_page=${page}&_per_page=${perPage}`; try { const response = await fetch(apiUrl, { headers: { 'x-koha-embed': 'library', // Dodanie nag艂贸wka } }); if (!response.ok) throw new Error(`B艂膮d podczas pobierania danych: ${response.statusText}`); const totalCount = parseInt(response.headers.get('X-Total-Count'), 10); const totalPages = Math.ceil(totalCount / perPage); const data = await response.json(); // Przetwarzanie danych const links = data.map(item => { const { library, control_number } = item; const address3 = library?.address3 || ''; const prefix = address3.slice(0, 3); let url = address3.slice(3); if (prefix === "[R]" && control_number) { url = `${url}${control_number}`; // Dodajemy numer kontrolny do URL } // Tworzymy nazw臋 na podstawie zawarto艣ci prefixu const info = prefix === "[W]" ? ` (${translations[currentLanguage]['link_only_website']})` : prefix === "[K]" ? ` (${translations[currentLanguage]['link_only_catalog']})` : null; // Dodajemy city i state const city = library?.city || '-'; const state = library?.state || '-'; return { url: url || '#', // Je艣li brak URL, przypisujemy '#' name: library?.name, info: info, city: city, state: state }; }); // Sortowanie: najpierw po state, potem po city const sortedLinks = links.sort((a, b) => a.state.localeCompare(b.state) || a.city.localeCompare(b.city) || a.name.localeCompare(b.name) ); // Wy艣wietlanie link贸w w tabeli const librariesInfoDiv = $('#libraries_info'); librariesInfoDiv.empty(); // Opr贸偶niamy kontener przed dodaniem nowych danych if (sortedLinks.length === 0) { // Je艣li lista link贸w jest pusta, wy艣wietl informacj臋 o braku danych librariesInfoDiv.append(`<span>${translations[currentLanguage]['no_results']}</span>`); } else { // Tworzymy tabel臋 const table = $('<table>').addClass('table table-striped'); const tableHeader = $('<thead>').append( $('<tr>').append( $('<th>').text(translations[currentLanguage]["state"]), $('<th>').text(translations[currentLanguage]["city"]), $('<th>').text(translations[currentLanguage]["name"]), ) ); const tableBody = $('<tbody>'); // Dodajemy wiersze z danymi sortedLinks.forEach(linkData => { const row = $('<tr>'); const nameCell = $('<td>'); // Tworzymy link + info w tej samej kom贸rce if (linkData.url === '#') { nameCell.text(linkData.name); // Je艣li nie ma URL, po prostu wy艣wietlamy nazw臋 } else { const linkElement = $('<a>', { href: linkData.url, target: '_blank', text: linkData.name }); // Dodajemy do kom贸rki nazw臋 i info nameCell.append(linkElement).append(linkData.info ? ` <i>${linkData.info}</i>` : ''); } const cityCell = $('<td>').text(linkData.city); const stateCell = $('<td>').text(linkData.state); // 艁膮czymy kom贸rki w jeden wiersz row.append(stateCell,cityCell, nameCell); tableBody.append(row); }); // 艁膮czymy nag艂贸wki i cia艂o tabeli table.append(tableHeader, tableBody); librariesInfoDiv.append(table); } // Je艣li s膮 kolejne strony, przejd藕 do nast臋pnej if (page < totalPages) { await fetchSymbols(biblionumber, page + 1, sortedLinks); } } catch (error) { console.error('Wyst膮pi艂 b艂膮d:', error); } } // Uruchomienie g艂贸wnej funkcji fetchSymbols(biblionumber); }); </script> <script src="/opac-tmpl/bootstrap/js/cookieconsent_24.0505000.js"></script> </body> </html>