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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc (-2 / +2 lines)
Lines 9-18 Link Here
9
        $("#z3950submit").click(function(){
9
        $("#z3950submit").click(function(){
10
            [% IF ( authid ) %]
10
            [% IF ( authid ) %]
11
                if (confirm(_("Please note that this Z39.50 search could replace the current record."))){
11
                if (confirm(_("Please note that this Z39.50 search could replace the current record."))){
12
                    window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl?authid=[% authid %]","z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
12
                    window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl?authid=[% authid %]","z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes');
13
                }
13
                }
14
            [% ELSE %]
14
            [% ELSE %]
15
                window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl","z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
15
                window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl","z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes');
16
            [% END %]
16
            [% END %]
17
            return false;
17
            return false;
18
        });
18
        });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt (-5 / +25 lines)
Lines 1-6 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Z39.50 search results</title>
2
<title>Koha &rsaquo; Z39.50 search results</title>
3
[% INCLUDE 'greybox.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
5
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
4
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
6
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
Lines 62-67 $(document).ready(function(){ Link Here
62
        e.preventDefault();
61
        e.preventDefault();
63
        $("form[name='f']").find("input[type=text]").val("");
62
        $("form[name='f']").find("input[type=text]").val("");
64
    });
63
    });
64
    $(".previewMARC").on("click", function(e){
65
        e.preventDefault();
66
        var ltitle = $(this).text();
67
        var page = $(this).attr("href");
68
        $("#marcPreviewLabel").text(ltitle);
69
        $("#marcPreview .modal-body").load(page + " pre");
70
        $('#marcPreview').modal({show:true});
71
    });
72
    $("#marcPreview").on("hidden", function(){
73
        $("#marcPreviewLabel").html("");
74
        $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
75
    });
65
});
76
});
66
77
67
[% IF ( total_pages ) %]
78
[% IF ( total_pages ) %]
Lines 87-93 function validate_goto_page(){ Link Here
87
.linktools { background-color:#FFF;border-top:1px solid #DDD; border-left: 1px solid #DDD; border-right: 1px solid #666; border-bottom:1px solid #666;display: none; white-space: nowrap;}
98
.linktools { background-color:#FFF;border-top:1px solid #DDD; border-left: 1px solid #DDD; border-right: 1px solid #666; border-bottom:1px solid #666;display: none; white-space: nowrap;}
88
.linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;}
99
.linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;}
89
.linktools a:hover { background-color:#EEE;color:#CC3300;border-right:1px solid #CCC;}
100
.linktools a:hover { background-color:#EEE;color:#CC3300;border-right:1px solid #CCC;}
90
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent; }
101
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent; } #marcPreview { width : 90%; margin-left : -45%; top: 5%; } .modal-body { max-height: 380px; } .modal-header { padding: 0 14px; } @media (max-width: 767px) { #marcPreview { margin: 0; width : auto; } }
91
</style>
102
</style>
92
103
93
    [% IF ( opsearch ) %]
104
    [% IF ( opsearch ) %]
Lines 164-173 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
164
    <tbody>[% FOREACH breeding_loo IN breeding_loop %]
175
    <tbody>[% FOREACH breeding_loo IN breeding_loop %]
165
        [% IF ( breeding_loo.breedingid ) %]
176
        [% IF ( breeding_loo.breedingid ) %]
166
        <tr id="row[% breeding_loo.breedingid %]">
177
        <tr id="row[% breeding_loo.breedingid %]">
167
            <td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" rel="gb_page_center[600,500]">Preview MARC</a> <a href="#" onclick="Import([% breeding_loo.breedingid %],'[% breeding_loo.heading_code %]','[% breeding_loo.authid %]'); return false">Import</a><a href="#" onclick="closemenu();return false;" title="Close this menu"> X </a></div> </td>
178
            <td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewMARC">Preview MARC</a> <a href="#" onclick="Import([% breeding_loo.breedingid %],'[% breeding_loo.heading_code %]','[% breeding_loo.authid %]'); return false">Import</a><a href="#" onclick="closemenu();return false;" title="Close this menu"> X </a></div> </td>
168
            <td>[% breeding_loo.heading %]</td>
179
            <td>[% breeding_loo.heading %]</td>
169
            <td>[% breeding_loo.heading_code %]</td>
180
            <td>[% breeding_loo.heading_code %]</td>
170
            <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" title="MARC" rel="gb_page_center[600,500]">MARC</a></td>
181
            <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewMARC">MARC</a></td>
171
            <!-- <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td> -->
182
            <!-- <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td> -->
172
            <td><a href="#" onclick="Import([% breeding_loo.breedingid %],'[% breeding_loo.heading_code %]','[% breeding_loo.authid %]'); return false">Import</a></td>
183
            <td><a href="#" onclick="Import([% breeding_loo.breedingid %],'[% breeding_loo.heading_code %]','[% breeding_loo.authid %]'); return false">Import</a></td>
173
        </tr>
184
        </tr>
Lines 175-180 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
175
    [% END %]</tbody>
186
    [% END %]</tbody>
176
</table>
187
</table>
177
188
189
    <div id="marcPreview" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
190
        <div class="modal-header">
191
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
192
            <h3 id="marcPreviewLabel">MARC preview</h3>
193
        </div>
194
        <div class="modal-body">
195
            <div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> Loading </div>
196
        </div>
197
    </div>
198
178
    <form method="post" action="z3950_auth_search.pl" id="page_form" name="page_form" class="checkboxed">
199
    <form method="post" action="z3950_auth_search.pl" id="page_form" name="page_form" class="checkboxed">
179
        <input type="hidden" name="op" id="op" value="do_search" />
200
        <input type="hidden" name="op" id="op" value="do_search" />
180
        <input type="hidden" name="current_page" id="current_page" value="[% current_page %]" />
201
        <input type="hidden" name="current_page" id="current_page" value="[% current_page %]" />
181
- 

Return to bug 15316