|
Lines 9-15
$(document).ready(function(){
Link Here
|
| 9 |
e.preventDefault(); |
9 |
e.preventDefault(); |
| 10 |
finderjump('authorities.pl?index=' + index + '&authtypecode=' + authtypecode, 'full' ); |
10 |
finderjump('authorities.pl?index=' + index + '&authtypecode=' + authtypecode, 'full' ); |
| 11 |
}); |
11 |
}); |
| 12 |
// marclist |
12 |
// marclistanywhere |
| 13 |
$( "#value_any" ).autocomplete({ |
13 |
$( "#value_any" ).autocomplete({ |
| 14 |
source: function(request, response) { |
14 |
source: function(request, response) { |
| 15 |
$.ajax({ |
15 |
$.ajax({ |
|
Lines 35-40
$(document).ready(function(){
Link Here
|
| 35 |
} |
35 |
} |
| 36 |
}); |
36 |
}); |
| 37 |
}, |
37 |
}, |
|
|
38 |
select: function( event, ui ) { |
| 39 |
$("#marclistanywhere").val("exact"); |
| 40 |
}, |
| 41 |
minLength: 3, |
| 42 |
}); |
| 43 |
// marclistheading |
| 44 |
$( "#value_match" ).autocomplete({ |
| 45 |
source: function(request, response) { |
| 46 |
$.ajax({ |
| 47 |
url: "/cgi-bin/koha/authorities/ysearch.pl", |
| 48 |
dataType: "json", |
| 49 |
data: { |
| 50 |
authtypecode : authtypecode, |
| 51 |
term: request.term, |
| 52 |
op: "do_search", |
| 53 |
type: "intranet", |
| 54 |
and_or: "and", |
| 55 |
operator: "start", |
| 56 |
orderby: "HeadingAsc", |
| 57 |
querytype: "match" |
| 58 |
}, |
| 59 |
success: function(data) { |
| 60 |
response( $.map( data, function( item ) { |
| 61 |
return { |
| 62 |
label: item.summary, |
| 63 |
value: item.summary |
| 64 |
}; |
| 65 |
})); |
| 66 |
} |
| 67 |
}); |
| 68 |
}, |
| 69 |
select: function( event, ui ) { |
| 70 |
$("#marclistheading").val("exact"); |
| 71 |
}, |
| 38 |
minLength: 3, |
72 |
minLength: 3, |
| 39 |
}); |
73 |
}); |
| 40 |
// mainentry |
74 |
// mainentry |
|
Lines 63-68
$(document).ready(function(){
Link Here
|
| 63 |
} |
97 |
} |
| 64 |
}); |
98 |
}); |
| 65 |
}, |
99 |
}, |
|
|
100 |
select: function( event, ui ) { |
| 101 |
$("#mainentry").val("exact"); |
| 102 |
}, |
| 66 |
minLength: 3, |
103 |
minLength: 3, |
| 67 |
}); |
104 |
}); |
| 68 |
// mainmainentry |
105 |
// mainmainentry |
|
Lines 91-96
$(document).ready(function(){
Link Here
|
| 91 |
} |
128 |
} |
| 92 |
}); |
129 |
}); |
| 93 |
}, |
130 |
}, |
|
|
131 |
select: function( event, ui ) { |
| 132 |
$("#mainmainentry").val("exact"); |
| 133 |
}, |
| 94 |
minLength: 3, |
134 |
minLength: 3, |
| 95 |
}); |
135 |
}); |
| 96 |
$("#clear-form").click(function(){ |
136 |
$("#clear-form").click(function(){ |
| 97 |
- |
|
|