View | Details | Raw Unified | Return to bug 9764
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc (-12 / +13 lines)
Lines 3-13 Link Here
3
//<![CDATA[
3
//<![CDATA[
4
4
5
$(document).ready(function(){
5
$(document).ready(function(){
6
6
    $("#clear").on("click",function(e){
7
    var searchButton = new YAHOO.widget.Button("search");
7
        e.preventDefault();
8
    var cancelButton = new YAHOO.widget.Button("cancel");
8
        finderjumpfull('blinddetail-biblio-search.pl?authid=0&index=[% index %]');
9
    var clearButton = new YAHOO.widget.Button("clear");
9
    });
10
    var newButton = new YAHOO.widget.Button("createnew");
10
    $("#createnew").on("click",function(e){
11
        e.preventDefault();
12
        finderjumpfull('authorities.pl?index=[% index %]&authtypecode=[% authtypecode %]');
13
    });
11
    // marclist
14
    // marclist
12
    $( "#value_any" ).autocomplete({
15
    $( "#value_any" ).autocomplete({
13
        source: function(request, response) {
16
        source: function(request, response) {
Lines 99-105 function finderjumpfull(page) Link Here
99
//]]>
102
//]]>
100
</script>
103
</script>
101
104
102
105
<div id="toolbar" class="btn-toolbar">
106
    <div class="btn-group"><a href="#" id="clear" class="btn btn-small"><i class="icon-remove-sign"></i> Clear field</a></div>
107
    <div class="btn-group"><a href="#" id="createnew" class="btn btn-small"><i class="icon-plus"></i> Create new authority</a></div>
108
</div>
103
<form name="f" method="get" action="auth_finder.pl">
109
<form name="f" method="get" action="auth_finder.pl">
104
            <input type="hidden" name="source" value="[% source %]" />
110
            <input type="hidden" name="source" value="[% source %]" />
105
            <input type="hidden" name="op" value="do_search" />
111
            <input type="hidden" name="op" value="do_search" />
Lines 195-204 function finderjumpfull(page) Link Here
195
            </ol>
201
            </ol>
196
        </fieldset>
202
        </fieldset>
197
        [% END %]
203
        [% END %]
198
        <fieldset class="action"> <input type="submit" value="Start search" class="submit" id="search" /> <a id="cancel" class="cancel close" href="#">Cancel</a>
204
        <fieldset class="action"> <input type="submit" value="Search" class="submit" id="search" /> <a id="cancel" class="cancel close" href="#">Cancel</a>
199
        <span id="authfinderops">
200
        <a href="javascript:finderjumpfull('blinddetail-biblio-search.pl?authid=0&amp;index=[% index %]')" id="clear" class="button">Clear field</a>
201
        <a href="javascript:finderjumpfull('authorities.pl?index=[% index %]&authtypecode=[% authtypecode %]')" id="createnew" class="button">Create new</a>
202
        </span>
203
        </fieldset>
205
        </fieldset>
204
</form>
206
</form>
205
- 

Return to bug 9764