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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt (-4 / +30 lines)
Lines 2-8 Link Here
2
2
3
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Cataloging &rsaquo; Merging records</title>
4
<title>Koha &rsaquo; Cataloging &rsaquo; Merging records</title>
5
[% INCLUDE 'greybox.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
7
<script type="text/javascript" src="[% themelang %]/js/merge-record.js"></script>
6
<script type="text/javascript" src="[% themelang %]/js/merge-record.js"></script>
8
[% INCLUDE 'merge-record-strings.inc' %]
7
[% INCLUDE 'merge-record-strings.inc' %]
Lines 10-15 Link Here
10
div.record ul, div.record li { float:none; display:block; }
9
div.record ul, div.record li { float:none; display:block; }
11
div#result { margin-top: 1em; }
10
div#result { margin-top: 1em; }
12
/* We use this style "against" the li ui-tabs-nav style automatically applied */
11
/* We use this style "against" the li ui-tabs-nav style automatically applied */
12
#dataPreview { width : 80%; margin-left : -40%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }
13
</style>
13
</style>
14
<script type="text/javascript">
14
<script type="text/javascript">
15
//<![CDATA[
15
//<![CDATA[
Lines 18-23 div#result { margin-top: 1em; } Link Here
18
    function changeFramework(fw) {
18
    function changeFramework(fw) {
19
        $("#frameworkcode").val(fw);
19
        $("#frameworkcode").val(fw);
20
    }
20
    }
21
    $(document).ready(function(){
22
            $(".previewData").on("click", function(e){
23
            e.preventDefault();
24
            var ltitle = $(this).text();
25
            var page = $(this).attr("href");
26
            $("#dataPreviewLabel").text(ltitle);
27
            $("#dataPreview .modal-body").load(page + " div");
28
            $('#dataPreview').modal({show:true});
29
        });
30
        $("#dataPreview").on("hidden", function(){
31
            $("#dataPreviewLabel").html("");
32
            $("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
33
        });
34
    });
21
  [% ELSE %]
35
  [% ELSE %]
22
    function check_mandatory () {
36
    function check_mandatory () {
23
        var missing = {
37
        var missing = {
Lines 106-112 $(document).ready(function(){ Link Here
106
120
107
  [% END %]
121
  [% END %]
108
[% END %]
122
[% END %]
109
110
//]]>
123
//]]>
111
</script>
124
</script>
112
</head>
125
</head>
Lines 201-207 $(document).ready(function(){ Link Here
201
                    [% FOREACH subtitle IN record.subtitles %]
214
                    [% FOREACH subtitle IN record.subtitles %]
202
                        [% subtitle.subfield %]
215
                        [% subtitle.subfield %]
203
                    [% END %]
216
                    [% END %]
204
                    (<a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% record.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">[% record.biblionumber %]</a>)
217
                    ([% record.biblionumber %]) <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% record.biblionumber %]" class="previewData">View MARC</a>
205
                </label>
218
                </label>
206
            </li>
219
            </li>
207
        [% END %]
220
        [% END %]
Lines 233-238 $(document).ready(function(){ Link Here
233
    </fieldset>
246
    </fieldset>
234
    </fieldset>
247
    </fieldset>
235
</form>
248
</form>
249
250
<div id="dataPreview" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
251
    <div class="modal-header">
252
        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
253
        <h3 id="dataPreviewLabel">Preview</h3>
254
    </div>
255
    <div class="modal-body">
256
        <div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> Loading </div>
257
    </div>
258
    <div class="modal-footer">
259
        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
260
    </div>
261
</div>
262
236
[% ELSE %]
263
[% ELSE %]
237
[% IF ( errors.size ) %]
264
[% IF ( errors.size ) %]
238
    <div class="dialog alert">
265
    <div class="dialog alert">
239
- 

Return to bug 15314