CINXE.COM
Ulusal Toplu Katalog - Tarama
<!-- $Id: 2.html,v 1.7 2009/01/08 14:00:34 ugur Exp $ --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <!-- $Id: header.html,v 1.6 2009/10/05 11:07:36 ugur Exp $ --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="description" content="Ulusal Toplu Katalog - Bilgiye tek noktadan ula艧谋n" > <meta name="keywords" content="catalog, katalog, toplu, union"> <link rel="stylesheet" href="tokat_addon/tokat.css"> <link rel="stylesheet" type="text/css" href="dojo/dijit/themes/tundra/tundra.css"> <title>Ulusal Toplu Katalog - Tarama</title> </head> <body class="tundra"> <!-- $Id: bar1.html,v 1.31 2015/11/05 09:39:16 ugur Exp $ --> <table width="100%" border="0" cellpadding="2" cellspacing="0"> <tr> <td class="tokat_heading_top" style="text-align:left;"><img src="tokat_addon/tokat_banner_sol_yeni.jpg" style="cursor:pointer;" title="T脺B陌TAK-ULAKB陌M" onclick="window.location='http://www.ulakbim.gov.tr'"/></td> <td class="tokat_heading_top"><img src="tokat_addon/tokat_banner_orta_yeni.jpg" /></td> <td class="tokat_heading_top" style="text-align:right;"><img src="tokat_addon/tokat_banner_sag_yeni.jpg" style="cursor:pointer;" title="T.C. K眉lt眉r ve Turizm Bakanl谋臒谋" onclick="window.location='http://www.kultur.gov.tr'"/></td> </tr> <tr><td class="tokat_heading_bottom" colspan="3"> <a class="menu" href="?cwid=2">Basit Tarama</a> -- <a class="menu" href="?cwid=3">Detayl谋 Tarama</a> -- <!-- --> <a class="menu" href="?cwid=10">Se莽enekler</a> -- <a class="menu" href="?cwid=9">陌statistikler</a> -- <a class="menu" href="?cwid=8">Di臒er</a> -- <!-- <a class="menu" href="?cwid=17">K眉t眉phane 陌leti艧im Bilgileri</a> -- <a class="menu" href="?cwid=11">Yard谋m</a> -- <a class="menu" href="?cwid=8">Hakk谋nda</a> -- <a class="menu" href="mailto:tokat@ulakbim.gov.tr?subject=ToKat%20Yorum%20ve%20Oneri">Yorum ve 脰neriler</a> -- --> <a class="menu" href="?cwid=20">Kat谋l谋m</a> </table> <h3>Basit Tarama</h3> <!-- $Id: search_page.html,v 1.21 2024/08/05 11:38:29 ugur Exp $ --> <script src='dojo/dojo/dojo.js' type='text/javascript' djConfig="PreventBackButtonFix: false"></script> <script type="text/javascript" language="JavaScript"> <!-- dojo.require("dojo.back"); dojo.require("dijit.Dialog"); dojo.back.init(); var selected_tokat_id = 0; var marc_detail = null; var marcs = new Array(); var lookupHist = new Object(); var cacheBooksInfo = new Object(); //var flag = 0; var MAX_CACHE_SIZE = 70; var isbn_arr; var peerLinksDialog; var _click_count; MAX_PEER_OPAC_LINKS_CACHE_SIZE=30; var _peer_opac_data_cache; _peer_opac_data_cache = new Object(); var _onclickHandlerObject; _onclickHandlerObject = null; //------------------------------------------------------------------- var initialState = { back: function() {genericForHistory(window.location.pathname + window.location.search + "&jx=1");}, forward: function(){genericForHistory(window.location.pathname + window.location.search + "&jx=1");}, changeUrl: "1" }; //------------------------------------------------------------------- dojo.addOnLoad(function(){ dojo.back.setInitialState(initialState); peerLinksDialog = new dijit.TooltipDialog({id:"peerLinksDialog"}); }); //------------------------------------------------------------------- function genericForHistory(url) { generic(url, true); } //------------------------------------------------------------------- function resetMultipleSelect(e) { elem = document.getElementById(e); for (i=0;i<elem.options.length;i++){ elem.options[i].selected=false; } } //------------------------------------------------------------------- function selectAll (select) { for (i = 0; i < document.__the_form.elements.length; i++) { if (document.__the_form.elements[i].type == "checkbox") { document.__the_form.elements[i].checked = select; } } return (false); } //------------------------------------------------------------------- function sayfaAc (sayfa, sayfa_adi) { var w; w = open(sayfa, sayfa_adi, "menubar=yes,scrollbars=yes,status=yes,width=800,height=600,resizable=yes"); w.focus(); return (false); } //------------------------------------------------------------------- function trimLongStrings(s, l) { l = l || 50; // default length return ((s.length <= l) ? s : (s.substr(0,l)+"...")); } //------------------------------------------------------------------- function detayGoster (tokat_id) { //obj = document.all? document.all["a"+tokat_id] : document.getElementById? document.getElementById("a"+tokat_id) : ""; if (! marc_detail) { marc_detail = document.all? document.all["marc_detail"] : document.getElementById? document.getElementById("marc_detail") : ""; marc_detail.style.border = "1px solid #8d8d8d"; marc_detail.style.padding = "5px"; } marc_detail.innerHTML = marcs[tokat_id]; selected_tokat_id = tokat_id; return (false); } //------------------------------------------------------------------- function generic(url, inHistory){ if (inHistory) { inHistory = true; } else { inHistory = false; } dojo.xhrGet ({ // Location of the HTML content we want to grab url: url, //handleAs: 'text', handleAs: 'json', // Called when the page loaded successfully load: function (data) { if (data.pre_code) { //sayfa degismeden once calistirilacak js kodu eval(data.pre_code); } //sayfada verilecek mesaj if (dojo.byId("general_message")) { if (data.messages) { dojo.byId("general_message").innerHTML = data.messages; } else { dojo.byId("general_message").innerHTML = ""; } } if (data.alert) { //phpden gelen bir uyar谋 sayfada gosterilir alert(data.alert); } for(field in data.replace){ //icerigi degisecek div alanlarinin icerigi degistiriliyor if (dojo.byId(""+field)) { dojo.byId(""+field).innerHTML = data.replace[""+field]; } } for(row in data.combo){ //icerigi degisecek comboboxlarin icerigi degistiriliyor dojo.byId(""+row).options[data.combo[""+row]].selected = true;; } if (data.post_code) { //sayfa degistikten sonra calistirilacak js kodu eval(data.post_code); } if (! inHistory) { scroll(0,0); var urlArr = url.split("&"); var page,order; for(i in urlArr){ if (urlArr[i].substr(0,4) == "page") { page = urlArr[i].substr(5,urlArr[i].length-5); } if (urlArr[i].substr(0,5) == "order") { order = urlArr[i].substr(6,urlArr[i].length-6); } } if (!page) { page = order; } var state = { back: function(){ genericForHistory(url);}, forward: function(){ genericForHistory(url);}, changeUrl: page }; dojo.back.addToHistory(state); } }, // Called if there was an error (such as a 404 response) errno: function (data) { console.error('Error: ', data); } }); } //------------------------------------------------------------------- function fetch_unix_timestamp () { return parseInt(new Date().getTime().toString().substr(-7,7)); } //------------------------------------------------------------------- function objectLength(obj) { var i = 0; for (key in obj) { i++; } return i; } //------------------------------------------------------------------- function checkAndCleanCache() { var j; if (objectLength(cacheBooksInfo) <= MAX_CACHE_SIZE) { return; } var tmp_arr = new Array(); for (key in cacheBooksInfo) { tmp_arr.push(key); } tmp_arr.sort(function(a,b) {return(cacheBooksInfo[b]["timestamp"] - cacheBooksInfo[a]["timestamp"]);}); for (j=tmp_arr.length; j >=MAX_CACHE_SIZE; j--) { delete cacheBooksInfo[tmp_arr[j]]; } } //------------------------------------------------------------------- function combineJsonObjects(booksInfo) { var i; for (i in isbn_arr) { if (booksInfo[isbn_arr[i]]) { cacheBooksInfo[isbn_arr[i]] = booksInfo[isbn_arr[i]]; } else { cacheBooksInfo[isbn_arr[i]] = new Object(); } cacheBooksInfo[isbn_arr[i]]["timestamp"] = fetch_unix_timestamp(); } } //------------------------------------------------------------------- function processGBSBookInfo(booksInfo) { combineJsonObjects(booksInfo); checkAndCleanCache(); processCacheBookInfo(); } //------------------------------------------------------------------- function processCacheBookInfo() { var element; var grp_id; var url; for (isbn in look_up_table) { for (grp_id in look_up_table[isbn]) { element = document.getElementById("g_"+ look_up_table[isbn][grp_id]); if (cacheBooksInfo[isbn]) { if (cacheBooksInfo[isbn].thumbnail_url && ((google_infos_value & 1) != 1)) { if (element.innerHTML == "" || element.innerHTML.search(/<img /i) == -1) { element.innerHTML += "<hr class=\"hr_thin\"><img class=\"img\" src=" + cacheBooksInfo[isbn].thumbnail_url.replace(/zoom=5/,"zoom=1") + " >"; } } if (cacheBooksInfo[isbn].preview && (cacheBooksInfo[isbn].preview == "full" || cacheBooksInfo[isbn].preview == "partial") && ((google_infos_value & 2) != 2)) { if (element.innerHTML.search(/Kitab谋n i莽eri臒ine bak/i) == -1) { url = cacheBooksInfo[isbn].preview_url.replace(/\.google\.com\//,".google.com.tr/"); element.innerHTML = "<hr class=\"hr_thin\"><em>GoogleBooks'da</em><br><a target=\"_gb_\" onclick=\"return(sayfaAc('"+url+"', '_gb_'));\" href=\"" + url +"\">Kitab谋n i莽eri臒ine bak</a>" + element.innerHTML ; } } } } } } //------------------------------------------------------------------- function loadGoogleBookInfo(isbns) { if (isbns.length == 0) { return; } isbn_arr = isbns.split(","); var cache_isbns = ""; for (isbn_no in isbn_arr) { if (! cacheBooksInfo[isbn_arr[isbn_no]]) { cache_isbns += isbn_arr[isbn_no] + ","; } else { cacheBooksInfo[isbn_arr[isbn_no]]["timestamp"] = fetch_unix_timestamp(); } } if (cache_isbns.length == 0) { processCacheBookInfo(); return; } cache_isbns = cache_isbns.substr(0, cache_isbns.length-1); var head = document.getElementsByTagName('head').item(0) var scriptTag = document.getElementById('__load_gb_script'); if (scriptTag) head.removeChild(scriptTag); script = document.createElement('script'); script.src = "https://books.google.com/books?jscmd=viewapi&bibkeys=" + cache_isbns + "&callback=processGBSBookInfo"; script.type = 'text/javascript'; script.id = '__load_gb_script'; head.appendChild(script); } //------------------------------------------------------------------- function checkAndCleanPeerOPACLinksCache() { var j; if (objectLength(_peer_opac_data_cache) <= MAX_PEER_OPAC_LINKS_CACHE_SIZE) { return; } var tmp_arr = new Array(); for (key in _peer_opac_data_cache) { tmp_arr.push(key); } tmp_arr.sort(function(a,b) {return(_peer_opac_data_cache[b][1] - _peer_opac_data_cache[a][1]);}); for (j=tmp_arr.length-1; j >= MAX_PEER_OPAC_LINKS_CACHE_SIZE; j--) { delete _peer_opac_data_cache[tmp_arr[j]]; } } //------------------------------------------------------------------- function getPeerOPACLinks (lbid, gid) { var key; key = lbid + "_" + gid; if (! _peer_opac_data_cache[key]) { //debug console.log("missed cache."); dojo.xhrGet({url: "?cwid=2&gid="+gid+"&lbid="+ lbid +"&jx=100", handleAs: "json", load: function(data) { _peer_opac_data_cache[key] = new Array (data[key], fetch_unix_timestamp()); }, error: function(data) { }, sync: true}); } else { _peer_opac_data_cache[key][1] = fetch_unix_timestamp(); } checkAndCleanPeerOPACLinksCache (); //debug console.log(_peer_opac_data_cache[key]); return (false); } //------------------------------------------------------------------- function resetThePeerLinksDialogContent() { peerLinksDialog.setContent('<table cellspacing="25" cellpadding="2" border="0"><tr><td align="center"><img border="0" src="tokat_addon/spinner.gif"><br>Y眉kleniyor...</td></tr></table>'); } //------------------------------------------------------------------- function closeThePeerLinksDialog() { dijit.popup.close(peerLinksDialog); if (_onclickHandlerObject != null) { dojo.disconnect(_onclickHandlerObject); _onclickHandlerObject = null; } return (false); } //------------------------------------------------------------------- function findGoogleBookLinkFromTokatGroupId(gid) { var grp_id; try { if (look_up_table == null) { return (false); } } catch (e) { return (false); } for (isbn in look_up_table) { for (grp_id in look_up_table[isbn]) { if (look_up_table[isbn][grp_id] != gid) { continue; } if (cacheBooksInfo[isbn] && cacheBooksInfo[isbn].preview && (cacheBooksInfo[isbn].preview == "full" || cacheBooksInfo[isbn].preview == "partial")) { return (cacheBooksInfo[isbn].preview_url.replace(/\.google\.com\//,".google.com.tr/")); } } } return (false); } function fillPeerLinksDialog11(itemList) { var i; alert(itemList); //content='aaaaa'; //peerLinksDialog.setContent(content); //dijit.popup.open({ // popup: peerLinksDialog, // around: me //}); for (i = 0;i < itemList.length;i++) { // alert(itemList[i] + "\n") } } //------------------------------------------------------------------- function fillPeerLinksDialog(me, lbid, gid, detailed_page_url) { var i, j; var key; var content; resetThePeerLinksDialogContent(); dijit.popup.open({ popup: peerLinksDialog, around: me }); getPeerOPACLinks(lbid, gid); key = lbid + "_" + gid; content = '<table border="0" cellspacing="1" cellpadding="1"><tr><td class="peerCatalogDialogTitles">'+ _peer_opac_data_cache[key][0]["library_branch_name"] +'</td><td align="right"><a onClick="return(closeThePeerLinksDialog());" title="[kapat]" href="#"><img src="tokat_addon/closeDialog.gif" alt="[kapat]" border="0"></a></td></tr>'; if (_peer_opac_data_cache[key][0] && _peer_opac_data_cache[key][0]["peer_opacs"]) { //content += '<tr><td colspan="2" class="peerCatalogDialogTitles" align="center">'+ _peer_opac_data_cache[key][0]["library_branch_name"] +' Katalo臒unda Tara:</td></tr>'; content += '<tr><td colspan="2">• '+ _peer_opac_data_cache[key][0]["library_branch_name"] +' Katalo臒unda tara:</td></tr>'; for (i in _peer_opac_data_cache[key][0]["peer_opacs"]) { //content += '<tr><td class="peerCatalogSearchFieldTitles" align="right">'+ _peer_opac_data_cache[key][0]["peer_opacs"][i][2] +': </td><td><a onclick="return(sayfaAc(\''+ _peer_opac_data_cache[key][0]["peer_opacs"][i][0] +'\', \'_karsi_katalog_\'));" target="_karsi_katalog_" title="'+ _peer_opac_data_cache[key][0]["peer_opacs"][i][1] +'" href="'+ _peer_opac_data_cache[key][0]["peer_opacs"][i][0] +'">'+ trimLongStrings(_peer_opac_data_cache[key][0]["peer_opacs"][i][1]) +'</a></td></tr>'; content += '<tr><td colspan="2" align="left"><span class="peerCatalogSearchFieldTitles"> · '+ _peer_opac_data_cache[key][0]["peer_opacs"][i][2] +':</span> <a onclick="return(sayfaAc(\''+ _peer_opac_data_cache[key][0]["peer_opacs"][i][0] +'\', \'_karsi_katalog_\'));" target="_karsi_katalog_" title="'+ _peer_opac_data_cache[key][0]["peer_opacs"][i][1] +'" href="'+ _peer_opac_data_cache[key][0]["peer_opacs"][i][0] +'">'+ trimLongStrings(_peer_opac_data_cache[key][0]["peer_opacs"][i][1]) +'</a></td></tr>'; } // content += '<tr><td colspan="2" align="left"> tara.</td></tr>'; content += '<tr><td colspan="2" align="center"> </td></tr>'; } if (_peer_opac_data_cache[key][0] && _peer_opac_data_cache[key][0]["library_branch_opac_url"]) { content += '<tr><td colspan="2">• <a href="'+ _peer_opac_data_cache[key][0]["library_branch_opac_url"] +'" target="_karsi_opac_" onclick="return(sayfaAc(\''+ _peer_opac_data_cache[key][0]["library_branch_opac_url"] +'\', \'_karsi_opac_\'));">'+ _peer_opac_data_cache[key][0]["library_branch_name"] +' Katalo臒u</a></td></tr>'; } if (_peer_opac_data_cache[key][0] && _peer_opac_data_cache[key][0]["download_marc"]) { content += '<tr><td colspan="2">• <a href="'+ _peer_opac_data_cache[key][0]["download_marc"] +'">MARC Kayd谋n谋 陌ndir</a></td></tr>' } content += '<tr><td colspan="2">• <a href="#" onclick="closeThePeerLinksDialog();generic(\''+detailed_page_url + '&lbid='+ _peer_opac_data_cache[key][0]["library_branch_id"] +'&jx=1' +'\');return(false);">Ayr谋nt谋l谋 G枚sterim</a></td></tr>' content += '<tr><td colspan="2">• <a href="?cwid=17&library_branch_id=' + _peer_opac_data_cache[key][0]["library_branch_id"] +'">陌leti艧im ve Yerle艧ke Bilgileri</a></td></tr>' var gb = findGoogleBookLinkFromTokatGroupId (gid); if (gb) { content += '<tr><td colspan="2">• <a href="'+ gb +'" target="_gb_" onclick="return(sayfaAc(\''+ gb +'\', \'_gb_\'));">GoogleBooks\'da kitab谋n i莽eri臒ine bak</a></td></tr>'; } content += "</table>"; peerLinksDialog.setContent(content); dijit.popup.open({ popup: peerLinksDialog, around: me }); _click_count=0; if (_onclickHandlerObject == null) { _onclickHandlerObject = dojo.connect(dojo.doc, 'onclick', null, _onclickHandler); } return (false); } //------------------------------------------------------------------- function _onclickHandler(evt) { var d; if (! (d = dojo.byId("peerLinksDialog"))) { return; } d = d.parentNode; // dialog icinde mi basilmis disinda mi? if (evt.pageX < d.offsetLeft || evt.pageX > (d.offsetLeft + d.clientWidth ) || evt.pageY < d.offsetTop || evt.pageY > (d.offsetTop + d.clientHeight ) ) { //debug console.log("disarida: ", _click_count); if (_click_count) { closeThePeerLinksDialog(); } } _click_count++; } // --> </script> <script src="tokat_addon/tokat.js" type="text/javascript"></script> <!-- $Id: simple_search_form.html,v 1.6 2008/11/25 14:37:27 derya Exp $ --> <div id="search_form" class="search_form"> <form name="__the_form" action="#alt" method="get"> <input type="hidden" name="_f" value="1"> <input type="hidden" name="the_page" value=""> <input type="hidden" name="cwid" value="2"> <table cellspacing="2" cellpadding="2" border="0"> <tr> <td nowrap> <input class="textbox" type="text" size=35 name="keyword" value=""> @ <select class="combobox" name="tokat_search_field"> <option value="1" selected="selected">B眉t眉n Alanlar</option> <option value="2" >Ba艧l谋k</option> <option value="3" >Yazar</option> <option value="4" >ISBN</option> <option value="5" >ISSN</option> <option value="6" >Konu</option> <option value="7" >Tam Metin</option> </select> <select class="combobox" name="order" id="order"> <option value="0" selected="selected">陌lgiye G枚re</option> <option value="1" >Ba艧l谋臒a G枚re Artan</option> <option value="2" >Ba艧l谋臒a G枚re Azalan</option> <option value="3" >Yazara G枚re Artan</option> <option value="4" >Yazara G枚re Azalan</option> <option value="5" >Yay谋n Y谋l谋na G枚re Artan</option> <option value="6" >Yay谋n Y谋l谋na G枚re Azalan</option> </select> </td> <td> <input name="command" type="submit" value="Tara"><script type="text/javascript" language="JavaScript">document.write(' <input type="button" value="Temizle" onClick="__the_form.keyword.value=""; __the_form.tokat_search_field.selectedIndex=0;__the_form.order.selectedIndex=0;return(false);">');</script> </td> </tr> </table> <br> </form> </div> <div id="general_message"></div> <!-- $Id: footer.html,v 1.2 2007/12/07 12:00:02 ugur Exp $ --> </body> </html>