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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt (-9 / +14 lines)
Lines 1-15 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Serials  &rsaquo; Routing slip preview</title>
3
<title>Koha &rsaquo; Serials  &rsaquo; Routing slip preview</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
<script type="text/javascript">
5
    $(document).ready(function(){
6
        $("#print_slip").on("click",function(e){
7
            e.preventDefault();
8
            window.print();
9
            self.close();
10
        });
11
    });
12
</script>
13
<style type="text/css">
5
<style type="text/css">
14
   #custom-doc { width:38.46em;*width:37.53em;min-width:500px; margin:auto; text-align:left; }
6
   #custom-doc { width:38.46em;*width:37.53em;min-width:500px; margin:auto; text-align:left; }
15
</style>
7
</style>
Lines 17-22 Link Here
17
   .yui-t7, #custom-doc { min-width:0; width:auto; }
9
   .yui-t7, #custom-doc { min-width:0; width:auto; }
18
</style>
10
</style>
19
</head>
11
</head>
12
20
<body id="ser_routing-preview-slip" class="ser">
13
<body id="ser_routing-preview-slip" class="ser">
21
14
22
<div id="custom-doc" class="yui-t7">
15
<div id="custom-doc" class="yui-t7">
Lines 50-53 Link Here
50
43
51
   </div>
44
   </div>
52
45
46
[% MACRO jsinclude BLOCK %]
47
    <script type="text/javascript">
48
        $(document).ready(function(){
49
            $("#print_slip").on("click",function(e){
50
                e.preventDefault();
51
                window.print();
52
                self.close();
53
            });
54
        });
55
    </script>
56
[% END %]
57
53
[% INCLUDE 'intranet-bottom.inc' %]
58
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview.tt (-13 / +19 lines)
Lines 1-20 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Serials &rsaquo; Preview routing list</title>
3
<title>Koha &rsaquo; Serials &rsaquo; Preview routing list</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
<script type="text/javascript">
5
    $(document).ready(function(){
6
        $("#save_and_preview").on("click",function(e){
7
            e.preventDefault();
8
            print_slip( $("#subscriptionid").val(), $("#issue_escaped").val() );
9
        });
10
    });
11
function print_slip(subscriptionid,issue){
12
    var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue;
13
    window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes');
14
    window.location.href='subscription-detail.pl?subscriptionid=' + subscriptionid;
15
}
16
</script>
17
</head>
5
</head>
6
18
<body id="ser_routing-preview" class="ser">
7
<body id="ser_routing-preview" class="ser">
19
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'header.inc' %]
20
[% INCLUDE 'serials-search.inc' %]
9
[% INCLUDE 'serials-search.inc' %]
Lines 58-61 function print_slip(subscriptionid,issue){ Link Here
58
[% INCLUDE 'serials-menu.inc' %]
47
[% INCLUDE 'serials-menu.inc' %]
59
</div>
48
</div>
60
</div>
49
</div>
50
51
[% MACRO jsinclude BLOCK %]
52
    <script type="text/javascript">
53
        $(document).ready(function(){
54
            $("#save_and_preview").on("click",function(e){
55
                e.preventDefault();
56
                print_slip( $("#subscriptionid").val(), $("#issue_escaped").val() );
57
            });
58
        });
59
        function print_slip(subscriptionid,issue){
60
            var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue;
61
            window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes');
62
            window.location.href='subscription-detail.pl?subscriptionid=' + subscriptionid;
63
        }
64
    </script>
65
[% END %]
66
61
[% INCLUDE 'intranet-bottom.inc' %]
67
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing.tt (-31 / +35 lines)
Lines 1-36 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Serials &rsaquo; [% title |html %] &rsaquo; [% IF ( op ) %]Create Routing List[% ELSE %]Edit routing list[% END %]</title>
3
<title>Koha &rsaquo; Serials &rsaquo; [% title |html %] &rsaquo; [% IF ( op ) %]Create Routing List[% ELSE %]Edit routing list[% END %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
<script type="text/javascript">
5
    $(document).ready(function(){
6
        $("#add_recipients").on("click",function(e){
7
            e.preventDefault();
8
            userPopup();
9
        });
10
        $(".itemrank").on("change",function(){
11
            var subscriptionid = $(this).data("subscriptionid");
12
            var routingid = $(this).data("routingid");
13
            reorder_item( subscriptionid, routingid, $(this).val());
14
        });
15
    });
16
function reorder_item(sid,rid,rank){
17
    var mylocation = 'reorder_members.pl?subscriptionid='+sid+'&routingid='+rid+'&rank='+rank;
18
    window.location.href=mylocation; 
19
}
20
21
    function userPopup() {
22
        window.open("/cgi-bin/koha/serials/add_user_search.pl",
23
            'PatronPopup',
24
            'width=740,height=450,location=yes,toolbar=no,'
25
            + 'scrollbars=yes,resize=yes'
26
        );
27
    }
28
29
    function add_user(borrowernumber) {
30
        var myurl = "routing.pl?subscriptionid="+[% subscriptionid %]+"&borrowernumber="+borrowernumber+"&op=add";
31
        window.location.href = myurl;
32
    }
33
</script>
34
</head>
5
</head>
35
<body id="ser_routing" class="ser">
6
<body id="ser_routing" class="ser">
36
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'header.inc' %]
Lines 115-118 function reorder_item(sid,rid,rank){ Link Here
115
[% INCLUDE 'serials-menu.inc' %]
86
[% INCLUDE 'serials-menu.inc' %]
116
</div>
87
</div>
117
</div>
88
</div>
89
90
[% MACRO jsinclude BLOCK %]
91
    <script type="text/javascript">
92
        $(document).ready(function(){
93
            $("#add_recipients").on("click",function(e){
94
                e.preventDefault();
95
                userPopup();
96
            });
97
            $(".itemrank").on("change",function(){
98
                var subscriptionid = $(this).data("subscriptionid");
99
                var routingid = $(this).data("routingid");
100
                reorder_item( subscriptionid, routingid, $(this).val());
101
            });
102
        });
103
        function reorder_item(sid,rid,rank){
104
            var mylocation = 'reorder_members.pl?subscriptionid='+sid+'&routingid='+rid+'&rank='+rank;
105
            window.location.href=mylocation;
106
        }
107
108
        function userPopup() {
109
            window.open("/cgi-bin/koha/serials/add_user_search.pl",
110
                'PatronPopup',
111
                'width=740,height=450,location=yes,toolbar=no,'
112
                + 'scrollbars=yes,resize=yes'
113
            );
114
        }
115
116
        function add_user(borrowernumber) {
117
            var myurl = "routing.pl?subscriptionid="+[% subscriptionid %]+"&borrowernumber="+borrowernumber+"&op=add";
118
            window.location.href = myurl;
119
        }
120
    </script>
121
[% END %]
122
118
[% INCLUDE 'intranet-bottom.inc' %]
123
[% INCLUDE 'intranet-bottom.inc' %]
119
- 

Return to bug 19761