CINXE.COM
História vyhľadávania › Register autorít kis3g katalóg
<!DOCTYPE html> <!-- TEMPLATE FILE: opac-search-history.tt --> <html lang="sk-SK" class="no-js"> <head> <title>História vyhľadávania › Register autorít kis3g katalóg</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Koha 23.0506000" /> <!-- leave this for stats --> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link href="/opac-tmpl/bootstrap/lib/jquery/responsive.dataTables.min_23.0506000.css" type="text/css" rel="stylesheet"> <link rel="shortcut icon" href="https://www.snk.sk/templates/snk2e/favicon.ico" type="image/x-icon" /> <link rel="apple-touch-icon" href="https://www.snk.sk/templates/snk2e/favicon.ico" type="image/x-icon" /> <link type="text/css" rel="stylesheet" href="/opac-tmpl/bootstrap/css/opac_23.0506000.css"> <link media="print" href="/opac-tmpl/bootstrap/css/print_23.0506000.css" type="text/css" rel="stylesheet"> <style>.loading { background: url("/opac-tmpl/bootstrap/images/loading.gif") no-repeat center; opacity:0.55; -webkit-transition: background-color 0; transition: background-color 0; } #SNKLink { text-align:center; } #listsmenu {display:none;} #userauthMARCdetails p a {display:none;} .search_history {display: none} .navbar-inverse .navbar-inner { background:#000000; border-radius: 5px; border-color:black; } #wrap {background-color: #dfe1e1;} .navbar-text {display:none} .nav .pull-right {display:none} .navbar .divider-vertical { border-left-color: #000000; border-right-color: #000000; } #logo { background: rgb(240, 243, 243) url("/opac-tmpl/img/SNK_rgb_znak.png") no-repeat scroll 0 center; background-size: 48px 48px; } #logo, #logo a { border: 0; margin: 0; width: 60px; } #userauthdetails {background: transparent url("/opac-tmpl/img/SNK_rgb_znak2.png") no-repeat scroll 0 center; background-size:70%; background-position: 500px 100px; } @media only screen and (max-width: 700px) { #logo{ background: transparent url("/opac-tmpl/img/SNK_rgb_znak.png") no-repeat scroll 0 center; background-size: 24px 24px; width: 24px; padding: 24px 0 0; margin-left: 3%; } } .monotag{font-family:monospace;} .breadcrumb { font-size: 85%; list-style: none outside none; margin: 10px 20px; padding: 5px 10px; border-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; border-color: #ddd; border-style: solid; border-width: 1px; } .mastheadsearch { margin: .5em 0; padding: .8em; background:#dfe1e1; } body { background: #f0f3f3 none; font-size: 14px; } #word_cloud { width: -moz-available; /* For Mozzila */ width: -webkit-fill-available; /* For Chrome */ width: stretch; width:100%; } .fonts-loaded body { font-family: Roboto; } .ui-widget, .ui-widget button, .ui-widget input, .ui-widget select, .ui-widget textarea { font-family: sans-serif; } .tab-content img {margin: 3px} .tab-content img:hover {transform: scale(1.5)} img.dikda {margin: 3px} img.dikda:hover {transform: scale(2);} .wikidataImg { transition: transform .2s; /* Animation */ } .wikidataImg:hover { transform: scale(3); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */ }</style> <script> var Koha = {}; function _(s) { return s } // dummy function for gettext const is_logged_in = false </script> <script src="/opac-tmpl/bootstrap/sk-SK/js/locale_data_23.0506000.js"></script> <script src="/opac-tmpl/bootstrap/js/Gettext_23.0506000.js"></script> <script src="/opac-tmpl/bootstrap/js/i18n_23.0506000.js"></script> <link type="text/css" rel="stylesheet" href="/opac-tmpl/lib/font-awesome/css/font-awesome.min_23.0506000.css"> </head> <body ID="opac-search-history" class="branch-default scrollto" > <button id="scrolltocontent">Preskočiť na hlavný obsah</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"> Register autorít kis3g </a> </div> <ul id="cart-list-nav" class="navbar-nav"> <li class="divider-vertical"></li> <li class="nav-item dropdown"> <a aria-expanded="false" aria-haspopup="true" aria-label="Show dropdown with detailed list information" class="nav-link dropdown-toggle" data-toggle="dropdown" href="/cgi-bin/koha/opac-shelves.pl" id="listsmenu" role="button" title="Zobraziť zoznamy"><i class="fa fa-list fa-icon-black" aria-hidden="true"></i> <span class="listslabel">Zoznamy</span> </a> <div aria-labelledby="listsmenu" role="menu" class="dropdown-menu"> </div> <!-- / .dropdown-menu --> </li> <!-- / .nav-item.dropdown --> </ul> <!-- / .navbar-nav --> <ul id="members" class="navbar-nav"> <li class="nav-item dropdown"> </li> <li class="nav-item search_history"> <a class="nav-link login-link" href="/cgi-bin/koha/opac-search-history.pl" title="Zobrazte svoj výpis hľadania">Výpis hľadania</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="Odstráňte svoj výpis hľadania"><i class="fa fa-trash" aria-hidden="true"></i> Vymazať</a> </li> </ul> </nav> <!-- /navbar --> <div class="container-fluid"> <div class="row"> <div class="col"> <div id="opacheader"> <div class="default_item"> <div class="default_body"> <!-- JS and CSS for Koha Galadriel OPAC Theme Plugin This JS was added automatically by installing the Koha Galadriel OPAC Theme Plugin Please do not modify --> </script> <!-- End of JS and CSS for Koha Galadriel OPAC Theme Plugin --></div> </div> </div> </div> </div> </div> </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="">Knižničný katalóg</option> <option value="ti">Názov</option> <option value="au">Autor</option> <option value="su">Predmet</option> <option value="nb">ISBN</option> <option value="ns">ISSN</option> <option value="se">Edícia</option> <option value="callnum">Signatúra</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 aria-label="Hľadať" class="btn btn-primary" id="searchsubmit" title="Hľadať" type="submit"> <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">Rozšírené hľadanie</a> </li> <li class="nav-item"> <a href="/cgi-bin/koha/opac-authorities-home.pl">Hľadanie autorít</a> </li> <li class="nav-item"> <a href="/cgi-bin/koha/opac-tags.pl">Menovky</a> </li> <li class="nav-item"> <a id="library_page" href="/cgi-bin/koha/opac-library.pl"> <span>Knižnica</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">Prihláste sa do svojho účtu</h2> <button aria-label="Zatvoriť" class="closebtn" data-dismiss="modal" type="button"> <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="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">Meno:</label><input type="text" id="muserid" name="userid" autocomplete="off" /> <label for="mpassword">Heslo:</label><input type="password" id="mpassword" name="password" autocomplete="off" /> <fieldset class="action"> <input class="btn btn-primary" type="submit" value="Prihlásiť sa" /> </fieldset> </div> </fieldset> </div> </form> <!-- /#auth --> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!-- /#modalAuth --> <div class="main"> <nav aria-label="navigačný reťazec" class="breadcrumbs" id="breadcrumbs"> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="/cgi-bin/koha/opac-main.pl">Domov</a> </li> <li class="breadcrumb-item active"> <a href="#" aria-current="page">Výpis hľadania</a> </li> </ol> </nav> <!-- /#breadcrumbs --> <div class="container-fluid"> <div class="row"> <div class="col col-lg-2 order-2 order-lg-1"> <div id="navigation"> <div id="OpacNav"> <div class="default_item"> <div class="default_body">posledná aktualizácia databázy:<br />22.11.2024 <br /><hr />Vysvetlivky<br /><img src="/opac-tmpl/img/wiki.png" width="16" height="16" /> - Hľadaj na wiki <br /><img src="/opac-tmpl/img/viaf.png" width="16" height="16" /> - Hľadaj vo VIAFe <br /><img src="/opac-tmpl/img/nkp.jpg" width="16" height="16" /> - Hľadaj v NK Praha <br /><img src="/opac-tmpl/img/wikidata.png" width="16" height="16" /> - Hľadaj vo WikiData <br /><img src="/opac-tmpl/img/google_place.png" width="16" height="16" /> - Ukáž na mape (len geografické autority)</div> </div> </div> <div id="usermenu"> </div> </div> </div> <div class="col-md-12 col-lg-10 order-1"> <div id="searchhistory" class="maincontent"> <h1>Výpis hľadania</h1> <div id="tabs" class="toptabs"> <ul class="nav nav-tabs" role="tablist"> <li class="nav-item" role="presentation"> <a href="#biblio_tab_panel" class="nav-link active" id="biblio_tab-tab" data-toggle="tab" data-target="#biblio_tab_panel" data-tabname="biblio_tab" aria-controls="biblio_tab_panel" role="tab" aria-selected="true"> <span>Katalóg</span> </a> </li> <li class="nav-item" role="presentation"> <a href="#authority_tab_panel" class="nav-link" id="authority_tab-tab" data-toggle="tab" data-target="#authority_tab_panel" data-tabname="authority_tab" aria-controls="authority_tab_panel" role="tab" aria-selected="false"> <span>Autorita</span> </a> </li> </ul> <div class="tab-content"> <div role="tabpanel" class="tab-pane show active" id="biblio_tab_panel" aria-labelledby="biblio_tab-tab"> <div id="biblio_tab" role="tabpanel" class="tab-pane active" aria-labelledby="biblio-tab-link"> <div id="current_biblio"> </div> <!-- / #current_biblio --> <hr /> <div id="previous_biblio"> </div> <!-- / #previous_biblio --> <p>Výpis vášho hľadania v katalógu je prázdny.</p> </div> <!-- / #biblio_tab --> </div> <div role="tabpanel" class="tab-pane" id="authority_tab_panel" aria-labelledby="authority_tab-tab"> <div id="authority_tab" role="tabpanel" class="tab-pane" aria-labelledby="authority-tab-link"> <div id="current_authority"> </div> <!-- / #current_authority --> <hr /> <div id="previous_authority"> </div> <p>Výpis vášho hľadania autorít je prázdny.</p> </div> <!-- / #authority_tab --> </div> </div> </div> </div> <!-- / #searchhistory --> </div> <!-- / .col-lg-10/12 --> </div> <!-- / .row --> </div> <!-- / .container-fluid --> </div> <!-- / #main --> <div class="container-fluid"> <div class="row"> <div class="col"> <div id="opaccredits"> <div class="default_item"> <div class="default_body"><div id ="SNKLink"> <a href="http://www.snk.sk" target="_blank"><img id="SNKimg" src="/opac-tmpl/img/SNK_logo.png" style="margin: 20px; filter: grayscale(100%); transform: scale(1);" width="128"></a> <a href="http://dikda.snk.sk" target="_blank"><img id="dikdaimg" src="/opac-tmpl/img/SNK_dikda_logo.jpg" style="margin: 20px; filter: grayscale(100%); transform: scale(1);" width="128"></a> </div> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-157536688-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-157536688-1'); </script> <!-- JS and CSS for Koha Galadriel OPAC Theme Plugin This JS was added automatically by installing the Koha Galadriel OPAC Theme Plugin Please do not modify --><!-- End of JS and CSS for Koha Galadriel OPAC Theme Plugin --></div> </div> </div> </div> </div> </div> <div class="container-fluid"> <div class="row"> <div class="col"> <div id="report-koha-url"> <div class="row justify-content-between"> <div class="col"> <div id="koha_url" class="clearfix noprint"> <p>Prevádzkované v systéme <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 --> </div> <!-- / #wrapper in masthead.inc --> <!-- JavaScript includes --> <script src="/opac-tmpl/lib/jquery/jquery-3.6.0.min_23.0506000.js"></script> <script src="/opac-tmpl/lib/jquery/jquery-migrate-3.3.2.min_23.0506000.js"></script> <script src="/opac-tmpl/lib/bootstrap/js/bootstrap.bundle.min_23.0506000.js"></script> <script src="/opac-tmpl/lib/fontfaceobserver.min_23.0506000.js"></script> <script src="/opac-tmpl/lib/enquire.min_23.0506000.js"></script> <script> let logged_in_user_id = ""; </script> <script src="/opac-tmpl/bootstrap/js/global_23.0506000.js"></script> <script> var MSG_CONFIRM_AGAIN = _("Upozornenie: Túto akciu nemožno vrátiť späť. Potvrďte ju prosím ešte raz") var MSG_DELETE_SEARCH_HISTORY = _("Naozaj chcete odstrániť Váš výpis hľadania?"); var MSG_NO_SUGGESTION_SELECTED = _("Nezvolili ste žiaden návrh"); var MSG_SEARCHING = _("Prehľadáva sa %s..."); var MSG_ERROR_SEARCHING_COLLECTION = _("Chyba pri hľadaní v zbierke %s"); var MSG_NO_RESULTS_FOUND_IN_COLLECTION = _("V zbierke knižnice %s sa nenašli žiadne výsledky"); var MSG_RESULTS_FOUND_IN_COLLECTION = _("V zbierke knižince %s sa našlo %s výsledkov"); var MSG_BY = _("podľa"); var MSG_TYPE = _("Typ"); var MSG_NEXT = _("Ďalej"); var MSG_PREVIOUS = _("Predošlý"); var MSG_CHECKOUTS = _("Výpožičky"); var MSG_NO_CHECKOUTS = _("Bez výpožičiek"); var MSG_CHECK_OUT = _("Vypožičať"); var MSG_CHECK_OUT_CONFIRM = _("Naozaj chcete vypožičať tento exemplár?"); var MSG_CHECKED_OUT_UNTIL = _("Vypožičané do %s"); var MSG_CHECK_IN = _("Vrátiť"); var MSG_CHECK_IN_CONFIRM = _("Naozaj chcete vrátiť tento exemplár?"); var MSG_NO_CHECKOUTS = _("Bez výpožičiek"); var MSG_DOWNLOAD = _("Stiahnuť"); var MSG_HOLDS = _("Rezervácie"); var MSG_NO_HOLDS = _("Bez rezervácií"); var MSG_PLACE_HOLD = _("Zarezervovať"); var MSG_CANCEL_HOLD = _("Zrušiť"); var MSG_CANCEL_HOLD_CONFIRM = _("Naozaj chcete zrušiť túto rezerváciu?"); var MSG_ON_HOLD = _("Rezervovaný"); $(".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(MSG_DELETE_SEARCH_HISTORY); }); </script> <script src="/opac-tmpl/bootstrap/js/basket_23.0506000.js"></script> <script src="/opac-tmpl/lib/js-cookie/js.cookie-3.0.1.min_23.0506000.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/jquery/plugins/jquery.dataTables.min_23.0506000.js"></script> <script src="/opac-tmpl/lib/jquery/plugins/dataTables.responsive.min_23.0506000.js"></script> <script> var MSG_DT_FIRST = _("Prvé"); var MSG_DT_LAST = _("Posledné"); var MSG_DT_NEXT = _("Ďalej"); var MSG_DT_PREVIOUS = _("Predošlý"); var MSG_DT_EMPTY_TABLE = _("V tabuľke nie sú žiadne údaje"); var MSG_DT_INFO = _("Zobrazuje sa _START_ po _END_ z _TOTAL_"); var MSG_DT_INFO_EMPTY = _("Niet čo zobraziť"); var MSG_DT_INFO_FILTERED = _("(filtrované z _MAX_ všetkých položiek)"); var MSG_DT_LENGTH_MENU = _("Zobraziť položky _MENU_"); var MSG_DT_LOADING_RECORDS = _("Načítavam..."); var MSG_DT_PROCESSING = _("Spracúvam..."); var MSG_DT_SEARCH = _("Hľadať:"); var MSG_DT_ZERO_RECORDS = _("Nenašli sa nijaké zhodné záznamy"); var MSG_DT_COPY_TO_CLIPBOARD = _("Skopírovať do schránky"); var MSG_DT_COPY_KEYS = _("Stlačením <i>ctrl</i> alebo <i>⌘</i> + <i>C</i> skopírujte tabuľkové údaje<br>do vašej systémovej schránky.<br><br>Pre zrušenie kliknite na toto hlásenie alebo stlačte Esc."); var MSG_DT_COPIED_ROWS = _("Do schránky sa skopírovalo %d riadkov"); var MSG_DT_COPIED_ONE_ROW = _("Do schránky sa skopíroval jeden riadok"); var MSG_CLEAR_FILTER = _("Zrušiť filter"); var MSG_DT_ALL = _("Všetko"); var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the"); </script> <script src="/opac-tmpl/bootstrap/js/datatables_23.0506000.js"></script> <script> var MSG_CONFIRM_DELETE_HISTORY = _("Naozaj chcete odstrániť zvolené položky Vášho výpisu hľadania?"); $(document).ready(function() { // We show table ordered by descending dates by default // (so that the more recent query is shown first) $(".historyt").dataTable($.extend(true, {}, dataTablesDefaults, { "order": [[ 1, "desc" ]], "dom": '<"top"<"table_entries"><"table_controls"fB>>t', "columnDefs": [ { "targets": [ 0 ], "sortable": false, "searchable": false }, { "className": 'dtr-control', "orderable": false, "targets": -1 } ], "language": { "search": "_INPUT_", "searchPlaceholder": _("Hľadať") }, "autoWidth": false, "responsive": { "details": { "type": 'column',"target": -1 } }, })); $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { $(".historyt").DataTable().responsive.recalc(); }); $(".CheckNone").click(function(e){ e.preventDefault(); var form = $(this).parents("form").get(0); $(form).find("input:checkbox").prop("checked", false); enableCheckboxActions(form); }); $(".CheckAll").click(function(e){ e.preventDefault(); var form = $(this).parents("form").get(0); $(form).find("input:checkbox").prop("checked", true); enableCheckboxActions(form); }); $("input:checkbox").click(function(){ var form = $(this).parents("form").get(0); enableCheckboxActions(form); }); $(".removeitems,.remove-selected").click(function(e){ e.preventDefault(); var form = $(this).parents("form").get(0); var ids = $(form).find("input:checkbox:checked"); if ( $(ids).length < 1 ) { return false; } if ( confirm(MSG_CONFIRM_DELETE_HISTORY) ) { $(form).submit(); } return false; }); $(".remove-selected").addClass("disabled"); }); function enableCheckboxActions(form){ // Enable/disable controls if checkboxes are checked var checkedBoxes = $(form).find("input:checkbox:checked"); if ($(checkedBoxes).size()) { $(form).find(".selections").html(_("Zvolené hľadania: ")); $(form).find(".selections-toolbar .links a").removeClass("disabled"); $(form).find(".remove-selected").removeClass("disabled"); } else { $(form).find(".selections").html(_("Vybrať hľadania a: ")); $(form).find(".selections-toolbar .links a").addClass("disabled"); $(form).find(".remove-selected").addClass("disabled"); } } </script> <script> function addGoogleFont(FontName) { $("head").append("<link href='https://fonts.googleapis.com/css?family=" + FontName + "' rel='stylesheet' type='text/css'>"); } addGoogleFont("Roboto"); $( "th:contains('Records')" ).text(''); $('#userauthdetails h1:first').css("display","none"); $('#masthead_search').remove(); $('#moresearches').remove(); $('#searchform').attr("action","/cgi-bin/koha/opac-authorities-home.pl"); $('#translControl1').attr("name","value"); $('#searchform div').append('<input name="type" value="opac" type="hidden">'); $('#searchform div').append('<input name="op" value="do_search" type="hidden">'); $('.span7').removeClass("span7").addClass("span10"); $( document ).ajaxStop(function() { $('#userauthdetails').removeClass("loading"); }); $('#searchsubmit').removeClass('btn-primary'); $(document).ready(function () { $('#SNKLink img').on("mouseover", function(){ $(this).css('filter', 'grayscale(1%)'); $(this).css("transform", "scale(1.1)"); }); $('#SNKLink img').on("mouseout", function(){ $(this).css('filter', 'grayscale(100%)'); $(this).css("transform", "scale(1)"); }); var linka=window.location.href; var terms = linka.match(/value=(.*?)\&(.*?)/); if (terms) { termsList = decodeURI(terms[1].replace(/\+/g," ")); $('#results').prepend("<b>Hľadané termíny: <span style=\"background-color:yellow;\">"+ termsList + "<br><br>"); } //$('#userauthdetails').addClass("loading"); $("head").append(""); $.getScript('/opac-tmpl/js/nra_autority.js').done(function( script, textStatus ) { console.log( textStatus ); }); $.getScript('/opac-tmpl/js/visual.js').done(function( script, textStatus ) { console.log( textStatus ); }); $.getScript('/opac-tmpl/js/wikiimg.js').done(function( script, textStatus ) { console.log( textStatus ); }); }); $(document).ready(function() { var data1; $.get( "/cgi-bin/koha/svc/report?id=4", function( data1 ) { $.each(data1, function(index, value) { // json is a record arr var json = value; var tr; tr = $('<tr/>'); $.each(json, function(index, value) { tr.append("<td>" + value + "</td>"); }); $('#custom_table').append(tr); // alert( index + ": " + value ); }); }); }); $(window).load(function() { var arr = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","X","Y","Z"]; var namelinkindex="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&authtypecode=PERSO_NAME&operator=start&marclist=mainentry&and_or=and&orderby=HeadingAsc&value="; var geolinkindex="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&authtypecode=GEOGR_NAME&operator=start&marclist=mainentry&and_or=and&orderby=HeadingAsc&value="; var corpolinkindex="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&authtypecode=CORPO_NAME&operator=start&marclist=mainentry&and_or=and&orderby=HeadingAsc&value="; var subjlinkindex="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&authtypecode=TOPIC_TERM&operator=start&marclist=mainentry&and_or=and&orderby=HeadingAsc&value="; $.each(arr, function( index, value ) { $('#nameregister').append(' <a href="'+namelinkindex+value+'">'+value+' </a> '); $('#georegister').append(' <a href="'+geolinkindex+value+'">'+value+' </a> '); $('#corporegister').append(' <a href="'+corpolinkindex+value+'">'+value+' </a> '); $('#subjregister').append(' <a href="'+subjlinkindex+value+'">'+value+' </a> '); }); }); function loadWikiImg() { $('.anameLink').each(function(i){ var ID=$(this).attr("href").replace("/cgi-bin/koha/opac-authoritiesdetail.pl?authid=",""); function makeSPARQLQuery( endpointUrl, sparqlQuery, doneCallback ) { var settings = { headers: { Accept: 'application/sparql-results+json' }, data: { query: sparqlQuery } }; return $.ajax( endpointUrl, settings ).then( doneCallback ); } var endpointUrl = 'https://query.wikidata.org/sparql', sparqlQuery = 'SELECT ?pic WHERE {?item wdt:P9807 \"'+ID+'\"; wdt:P18 ?pic. SERVICE wikibase:label { bd:serviceParam wikibase:language \"[AUTO_LANGUAGE],sk,en,cs,pl,de\". }}'; makeSPARQLQuery( endpointUrl, sparqlQuery, function( data ) { /*$( 'body' ).append( $( '<pre>' ).text( JSON.stringify( data ) ) );*/ myVar='<br><img class="wikidataImg" src="'+data.results.bindings[0].pic.value.replace("http","https")+'" width="100" >'; console.log( data.results.bindings[0].pic.value ); $('tr').eq(i+1).children('td:eq(2)').append(myVar); } ); }); } $(window).load(function(){ setTimeout(function() { loadWikiImg(); }, 300); }); </script> </body> </html>