1 /* global index authtypecode */
3 $(document).ready(function(){
4 $("#clear").on("click",function(e){
6 finderjump('blinddetail-biblio-search.pl?authid=0&index=' + index );
8 $("#createnew").on("click",function(e){
10 finderjump('authorities.pl?index=' + index + '&authtypecode=' + authtypecode, 'full' );
13 $( "#value_any" ).autocomplete({
14 source: function(request, response) {
16 url: "/cgi-bin/koha/authorities/ysearch.pl",
19 authtypecode : authtypecode,
25 orderby: "HeadingAsc",
28 success: function(data) {
29 response( $.map( data, function( item ) {
41 $( "#value_main" ).autocomplete({
42 source: function(request, response) {
44 url: "/cgi-bin/koha/authorities/ysearch.pl",
47 authtypecode : authtypecode,
53 orderby: "HeadingAsc",
54 querytype: "mainentry"
56 success: function(data) {
57 response( $.map( data, function( item ) {
69 $( "#value_mainstr" ).autocomplete({
70 source: function(request, response) {
72 url: "/cgi-bin/koha/authorities/ysearch.pl",
75 authtypecode : authtypecode,
81 orderby: "HeadingAsc",
82 querytype: "mainmainentry"
84 success: function(data) {
85 response( $.map( data, function( item ) {
98 function finderjump(page, full){
101 window_size = 'width=100,height=100,';
103 window.open(page,'', window_size + 'resizable=yes,toolbar=false,scrollbars=yes,top');