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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt (-3 / +25 lines)
Lines 1-7 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Acquisitions &rsaquo; Search existing records</title>
2
<title>Koha &rsaquo; Acquisitions &rsaquo; Search existing records</title>
3
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
3
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4
[% INCLUDE 'greybox.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'datatables.inc' %]
5
[% INCLUDE 'datatables.inc' %]
7
<script type="text/javascript">
6
<script type="text/javascript">
Lines 14-19 Link Here
14
        'bInfo': false,
13
        'bInfo': false,
15
        'bSort': false,
14
        'bSort': false,
16
    } ) );
15
    } ) );
16
    $(".previewMARC").on("click", function(e){
17
        e.preventDefault();
18
        var ltitle = $(this).text();
19
        var page = $(this).attr("href");
20
        $("#marcPreviewLabel").text(ltitle);
21
        $("#marcPreview .modal-body").load(page + " table");
22
        $('#marcPreview').modal({show:true});
23
    });
24
    $("#marcPreview").on("hidden", function(){
25
        $("#marcPreviewLabel").html("");
26
        $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
27
    });
17
 });
28
 });
18
 //]]>
29
 //]]>
19
</script>
30
</script>
Lines 79-85 Link Here
79
                [% biblio.copyrightdate %]
90
                [% biblio.copyrightdate %]
80
            </td>
91
            </td>
81
        <td>
92
        <td>
82
        <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblio.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">View MARC</a>
93
        <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblio.biblionumber %]&amp;viewas=html" class="previewMARC">View MARC</a>
83
        </td>
94
        </td>
84
            <td>
95
            <td>
85
            <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;biblionumber=[% biblio.biblionumber %]" title="Order this one">
96
            <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;biblionumber=[% biblio.biblionumber %]" title="Order this one">
Lines 90-95 Link Here
90
      [% END %]
101
      [% END %]
91
    </tbody>
102
    </tbody>
92
    </table>
103
    </table>
104
    <div id="marcPreview" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
105
        <div class="modal-header">
106
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
107
            <h3 id="marcPreviewLabel">MARC preview</h3>
108
        </div>
109
        <div class="modal-body">
110
            <div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> Loading </div>
111
        </div>
112
        <div class="modal-footer">
113
            <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
114
        </div>
115
    </div>
93
</div>
116
</div>
94
[% END %]
117
[% END %]
95
118
96
- 

Return to bug 15320