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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc (-148 lines)
Lines 1-148 Link Here
1
<div id="toolbar">
2
	<script type="text/javascript">
3
	//<![CDATA[
4
5
function confirm_deletion() {
6
    var is_confirmed = window.confirm(_('Are you sure you want to delete this patron? This cannot be undone.'));
7
    if (is_confirmed) {
8
        window.location='/cgi-bin/koha/members/deletemem.pl?member=[% borrowernumber %]';
9
    }
10
}
11
12
function confirm_updatechild() {
13
    var is_confirmed = window.confirm(_('Are you sure you want to update this child to an Adult category?  This cannot be undone.'));
14
    if (is_confirmed) {
15
        window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=[% borrowernumber %]&catcode=[% catcode %]&catcode_multi=[% CATCODE_MULTI %]';
16
    }
17
}
18
19
function confirm_reregistration() {
20
    var is_confirmed = window.confirm(_('Are you sure you want to renew this patron\'s registration?'));
21
    // var borrowernumbervalue1 = $("#borrowernumber").attr("value");
22
    if (is_confirmed) {
23
	window.location = '/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;cardnumber=[% cardnumber %]&amp;destination=circ&amp;reregistration=y';
24
    }
25
}
26
27
function update_child() {
28
    // var borrowernumbervalue= $("#borrowernumber").attr("value"); 
29
[% IF ( CATCODE_MULTI ) %]
30
 window.open('/cgi-bin/koha/members/update-child.pl?op=multi&borrowernumber=[% borrowernumber %]','UpdateChild','width=400,height=300,toolbar=no,scrollbars=yes,resizable=yes');
31
[% ELSE %]
32
 confirm_updatechild();
33
[% END %]
34
}
35
36
function export_barcodes() {
37
    window.open('/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]&amp;op=export_barcodes');
38
}
39
40
	// prepare DOM for YUI Toolbar
41
42
	 $(document).ready(function() {
43
	    $("#printslip,#patronflags,#deletepatron").parent().remove();
44
		$("#moremenuc,#printmenuc,#searchtoholdc").empty();
45
	    yuiToolbar();
46
	 });
47
48
	// YUI Toolbar Functions
49
    var slip_re = /slip/;
50
	function printx_window(print_type) {
51
        var handler = print_type.match(slip_re) ? "printslip" : "moremember";
52
		window.open("/cgi-bin/koha/members/" + handler + ".pl?borrowernumber=[% borrowernumber %]&amp;print=" + print_type, "printwindow");
53
		return false;
54
	}
55
	function searchToHold(){
56
		var date = new Date();
57
		date.setTime(date.getTime() + (10 * 60 * 1000));
58
	    $.cookie("holdfor", "[% borrowernumber %]", { path: "/", expires: date });
59
	    location.href="/cgi-bin/koha/catalogue/search.pl";
60
	}
61
	function yuiToolbar() {
62
	    var printmenu = [
63
            [% IF ( CAN_user_borrowers ) %]
64
            { text: _("Print summary"), onclick: {fn: function(){printx_window("page")}} },
65
            [% END %]
66
            { text: _("Print slip"), onclick: {fn: function(){printx_window("slip")}} },
67
            { text: _("Print quick slip"), onclick: {fn: function(){printx_window("qslip")}} }
68
	    ];
69
	
70
		var moremenu = [
71
            { text: _("Renew patron"),  onclick: { fn: confirm_reregistration } },
72
            { text: _("Set permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]"[% UNLESS CAN_user_permissions %], disabled: true[% END %]},
73
            { text: _("Delete"), [% UNLESS CAN_user_borrowers %]disabled: true, [% END %] onclick: { fn: confirm_deletion } },
74
            { text: _("Update child to adult patron") , onclick: { fn: update_child }[% UNLESS is_child %], disabled: true[% END %]},
75
            { text: _("Export today's checked in barcodes"), onclick: { fn: export_barcodes }}
76
        ];
77
78
	    new YAHOO.widget.Button({
79
	        type: "menu",
80
	        label: _("Print"),
81
	        name: "printmenubutton",
82
	        menu: printmenu,
83
	        container: "printmenuc"
84
	    });
85
	    new YAHOO.widget.Button({
86
	        id: "searchtohold",
87
	        type: "button",
88
	        label: _("Search to hold"),
89
	        container: "searchtoholdc",
90
			onclick: {fn: searchToHold }
91
		});
92
	    new YAHOO.widget.Button({
93
	        type: "menu",
94
	        label: _("More"),
95
	        name: "moremenubutton",
96
	        menu: moremenu,
97
	        container: "moremenuc"
98
	    });
99
100
	    [% IF ( adultborrower ) %]new YAHOO.widget.Button("addchild");[% END %]
101
	    new YAHOO.widget.Button("editpatron");
102
	    new YAHOO.widget.Button("addnote");
103
        [% IF CAN_user_borrowers %] new YAHOO.widget.Button("changepassword");  [% END %]
104
	    new YAHOO.widget.Button("duplicate");
105
	    new YAHOO.widget.Button("printslip");
106
		new YAHOO.widget.Button("printpage");
107
	}
108
109
	//]]>
110
	</script>
111
	<ul class="toolbar">
112
	[% IF ( CAN_user_borrowers ) %]
113
	[% IF ( category_type ) %]
114
            [% IF ( guarantor ) %]
115
                <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=[% borrowernumber %]&amp;guarantorid=[% guarantorborrowernumber %]&amp;category_type=[% category_type %]">
116
            [% ELSE %]
117
            <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">
118
            [% END %]Edit</a></li>
119
        [% ELSE %] <!-- try with categorycode if no category_type -->
120
            [% IF ( categorycode ) %]
121
            <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit</a></li>
122
            [% ELSE %] <!-- if no categorycode, set category_type to A by default -->
123
                <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=[% borrowernumber %]&amp;category_type=A">Edit</a></li>
124
            [% END %]
125
        [% END %]
126
	[% END %]
127
	[% IF ( CAN_user_borrowers ) %]
128
        [% IF ( adultborrower AND activeBorrowerRelationship ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
129
        [% IF ( CAN_user_borrowers ) %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change password</a></li>[% END %]
130
    [% END %]
131
    <li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
132
    <li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print summary</a></li>
133
    <li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=slip">Print slip</a></li>
134
	<li id="searchtoholdc"><a id="searchtohold" href="#">Search to hold</a></li>
135
    <li id="moremenuc"><a id="renewpatron" href="/cgi-bin/koha/members/moremember.pl?reregistration=y&amp;borrowernumber=[% borrowernumber %]">Renew account</a></li>
136
    [% IF ( CAN_user_permissions ) %]
137
        [% IF ( StaffMember ) %]
138
            [% IF ( CAN_user_staffaccess ) %]
139
                <li><a id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]">Set permissions</a></li>
140
            [% END %]
141
          [% ELSE %]
142
                <li><a id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]">Set permissions</a></li>
143
        [% END %]
144
    [% END %]
145
    [% IF ( StaffMember ) %][% UNLESS ( CAN_user_staffaccess ) %]<li><a id="deletepatron" href="javascript:confirm_deletion();">Delete</a></li>[% END %]
146
    [% ELSE %]<li><a id="deletepatron" href="javascript:confirm_deletion();">Delete</a></li>[% END %]
147
148
</ul></div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-87 / +99 lines)
Lines 1-124 Link Here
1
<div id="toolbar">
1
<div id="toolbar">
2
	<script type="text/javascript">
2
    <script type="text/javascript">
3
	//<![CDATA[
3
    //<![CDATA[
4
4
[% IF ( CAN_user_borrowers ) %]
5
function confirm_deletion() {
5
function confirm_deletion() {
6
    var is_confirmed = window.confirm(_('Are you sure you want to delete this patron? This cannot be undone.'));
6
    var is_confirmed = window.confirm(_('Are you sure you want to delete this patron? This cannot be undone.'));
7
    if (is_confirmed) {
7
    if (is_confirmed) {
8
            window.location='/cgi-bin/koha/members/deletemem.pl?member=[% borrowernumber %]';
8
        window.location='/cgi-bin/koha/members/deletemem.pl?member=[% borrowernumber %]';
9
    }
9
    }
10
}
10
}
11
function confirm_updatechild() {
12
    var is_confirmed = window.confirm(_('Are you sure you want to update this child to an Adult category?  This cannot be undone.'));
13
11
12
[% IF ( is_child ) %]function confirm_updatechild() {
13
    var is_confirmed = window.confirm(_('Are you sure you want to update this child to an Adult category?  This cannot be undone.'));
14
    if (is_confirmed) {
14
    if (is_confirmed) {
15
            window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=[% borrowernumber %]&catcode=[% catcode %]&catcode_multi=[% CATCODE_MULTI %]';
15
        window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=[% borrowernumber %]&catcode=[% catcode %]&catcode_multi=[% CATCODE_MULTI %]';
16
    }
17
}
18
19
function confirm_reregistration() {
20
    var is_confirmed = window.confirm(_('Are you sure you want to renew this patron\'s registration?'));
21
    if (is_confirmed) {
22
    window.location='/cgi-bin/koha/members/moremember.pl?reregistration=y&borrowernumber=[% borrowernumber %]';
23
    }
16
    }
24
}
17
}
25
18
26
function update_child() {
19
function update_child() {
27
[% IF ( CATCODE_MULTI ) %]
20
[% IF ( CATCODE_MULTI ) %]
28
 window.open('update-child.pl?op=multi&borrowernumber=[% borrowernumber %]','UpdateChild','width=400,height=300,toolbar=no,scrollbars=yes,resizable=yes');
21
 window.open('/cgi-bin/koha/members/update-child.pl?op=multi&borrowernumber=[% borrowernumber %]','UpdateChild','width=400,height=300,toolbar=no,scrollbars=yes,resizable=yes');
29
[% ELSE %]
22
[% ELSE %]
30
 confirm_updatechild();
23
 confirm_updatechild();
31
[% END %]
24
[% END %]
25
}[% ELSE %][% END %]
26
27
function confirm_reregistration() {
28
    var is_confirmed = window.confirm(_('Are you sure you want to renew this patron\'s registration?'));
29
    if (is_confirmed) {
30
    window.location = '/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;cardnumber=[% cardnumber %]&amp;desintation=[% destination %]&amp;reregistration=y';
31
    }
32
}
33
function export_barcodes() {
34
    window.open('/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]&amp;op=export_barcodes');
32
}
35
}
36
[% END %]
33
37
34
	// prepare DOM for YUI Toolbar
38
    // prepare DOM for YUI Toolbar
35
39
36
	 $(document).ready(function() {
40
     $(document).ready(function() {
37
	    $("#printslip,#patronflags,#deletepatron").parent().remove();
41
        $("#printslip,#patronflags,#deletepatron").parent().remove();
38
		$("#moremenuc,#printmenuc,#searchtoholdc").empty();
42
        $("#moremenuc,#printmenuc,#searchtoholdc").empty();
39
	    yuiToolbar();
43
        yuiToolbar();
40
	 });
44
     });
41
45
42
	// YUI Toolbar Functions
46
    // YUI Toolbar Functions
43
	function printx_window(print_type) {
47
    var slip_re = /slip/;
44
		window.open("/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=" + print_type, "printwindow");
48
    function printx_window(print_type) {
45
		return false;
49
        var handler = print_type.match(slip_re) ? "printslip" : "moremember";
46
	}
50
        window.open("/cgi-bin/koha/members/" + handler + ".pl?borrowernumber=[% borrowernumber %]&amp;print=" + print_type, "printwindow");
47
	function searchToHold(){
51
        return false;
48
		var date = new Date();
52
    }
49
		date.setTime(date.getTime() + (10 * 60 * 1000));
53
    function searchToHold(){
50
	    $.cookie("holdfor", "[% borrowernumber %]", { path: "/", expires: date });
54
        var date = new Date();
51
	    location.href="/cgi-bin/koha/catalogue/search.pl";
55
        date.setTime(date.getTime() + (10 * 60 * 1000));
52
	}
56
        $.cookie("holdfor", "[% borrowernumber %]", { path: "/", expires: date });
53
	function yuiToolbar() {
57
        location.href="/cgi-bin/koha/catalogue/search.pl";
54
	    var printmenu = [
58
    }
59
    function yuiToolbar() {
60
        var printmenu = [
55
            { text: _("Print summary"), onclick: {fn: function(){printx_window("page")}} },
61
            { text: _("Print summary"), onclick: {fn: function(){printx_window("page")}} },
56
            { text: _("Print slip"), onclick: {fn: function(){printx_window("slip")}} },
62
            { text: _("Print slip"), onclick: {fn: function(){printx_window("slip")}} },
57
            { text: _("Print quick slip"), onclick: {fn: function(){printx_window("qslip")}} }
63
            { text: _("Print quick slip"), onclick: {fn: function(){printx_window("qslip")}} }
58
	    ];
64
        ];
59
65
    
60
		var moremenu = [
66
        var moremenu = [
61
            { text: _("Renew patron"),  onclick: { fn: confirm_reregistration } },
67
            { text: _("Renew patron"), [% UNLESS CAN_user_borrowers %]disabled: true, [% END %] onclick: { fn: confirm_reregistration } },
62
            { text: _("Set permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]"[% UNLESS ( CAN_user_permissions ) %], disabled: true[% END %]},
68
            { text: _("Set permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]"[% UNLESS CAN_user_permissions %], disabled: true[% END %]},
63
			{ text: _("Delete"), onclick: { fn: confirm_deletion}[% UNLESS ( CANDELETEUSER ) %], disabled: true[% END %] },
69
            { text: _("Delete"), [% UNLESS CAN_user_borrowers %]disabled: true, [% END %] onclick: { fn: confirm_deletion } },
64
            { text: _("Update child to adult patron") , onclick: { fn: update_child }[% UNLESS ( is_child ) %], disabled: true[% END %]}
70
            { text: _("Update child to adult patron")[% IF is_child && CAN_user_borrowers %], onclick: { fn: update_child }[% ELSE %], disabled: true[% END %]},
65
		];
71
            { text: _("Export today's checked in barcodes"), [% UNLESS CAN_user_borrowers %]disabled: true, [% END %] onclick: { fn: export_barcodes }}
72
        ];
66
73
67
	    new YAHOO.widget.Button({
74
        new YAHOO.widget.Button({
68
	        type: "menu",
75
            type: "menu",
69
	        label: _("Print"),
76
            label: _("Print"),
70
	        name: "printmenubutton",
77
            name: "printmenubutton",
71
	        menu: printmenu,
78
            menu: printmenu,
72
	        container: "printmenuc"
79
            container: "printmenuc"
73
	    });
80
        });
81
        new YAHOO.widget.Button({
82
            id: "searchtohold",
83
            type: "button",
84
            label: _("Search to hold"),
85
            container: "searchtoholdc",
86
            onclick: {fn: searchToHold }
87
        });
88
        new YAHOO.widget.Button({
89
            type: "menu",
90
            label: _("More"),
91
            name: "moremenubutton",
92
            menu: moremenu,
93
            container: "moremenuc"
94
        });
74
95
75
	    new YAHOO.widget.Button({
96
        [% IF ( CAN_user_borrowers ) %][% IF ( adultborrower ) %]new YAHOO.widget.Button("addchild");[% END %]
76
	        id: "searchtohold",
97
        new YAHOO.widget.Button("editpatron");
77
	        type: "button",
98
        new YAHOO.widget.Button("changepassword");
78
	        label: _("Search to hold"),
99
        new YAHOO.widget.Button("duplicate");[% END %]
79
	        container: "searchtoholdc",
100
        new YAHOO.widget.Button("printslip");
80
			onclick: {fn: searchToHold }
101
        new YAHOO.widget.Button("printpage");
81
		});
102
    }
82
83
	    new YAHOO.widget.Button({
84
	        type: "menu",
85
	        label: _("More"),
86
	        name: "moremenubutton",
87
	        menu: moremenu,
88
	        container: "moremenuc"
89
	    });
90
91
	    [% IF ( adultborrower ) %]new YAHOO.widget.Button("addchild");[% END %]
92
	    new YAHOO.widget.Button("editpatron");
93
	    new YAHOO.widget.Button("addnote");
94
            [% IF CAN_user_borrowers %]new YAHOO.widget.Button("changepassword");  [% END %]
95
	    new YAHOO.widget.Button("duplicate");
96
	    new YAHOO.widget.Button("printslip");
97
		new YAHOO.widget.Button("printpage");
98
	}
99
100
	//]]>
101
103
102
	</script>
104
    //]]>
103
	<ul class="toolbar">
105
    </script>
104
	[% IF ( category_type ) %]
106
    <ul class="toolbar">
107
    [% IF ( CAN_user_borrowers ) %]
108
        [% IF ( category_type ) %]
105
            [% IF ( guarantor ) %]
109
            [% IF ( guarantor ) %]
106
                <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;guarantorid=[% guarantorborrowernumber %]&amp;category_type=[% category_type %]">
110
                <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=[% destination %]&amp;borrowernumber=[% borrowernumber %]&amp;guarantorid=[% guarantorborrowernumber %]&amp;category_type=[% category_type %]">
107
            [% ELSE %]
111
            [% ELSE %]
108
            <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">
112
            <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=[% destination %]&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">
109
            [% END %]Edit</a></li>
113
            [% END %]Edit</a></li>
110
        [% ELSE %] <!-- try with categorycode if no category_type -->
114
        [% ELSE %] <!-- try with categorycode if no category_type -->
111
            [% IF ( categorycode ) %]
115
            [% IF ( categorycode ) %]
112
            <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit</a></li>
116
            <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=[% destination %]&amp;borrowernumber=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit</a></li>
113
            [% ELSE %] <!-- if no categorycode, set category_type to A by default -->
117
            [% ELSE %] <!-- if no categorycode, set category_type to A by default -->
114
                <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;category_type=A">Edit</a></li>
118
                <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=[% destination %]&amp;borrowernumber=[% borrowernumber %]&amp;category_type=A">Edit</a></li>
115
            [% END %]
119
            [% END %]
116
        [% END %]
120
        [% END %]
117
	[% IF ( adultborrower AND activeBorrowerRelationship ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
121
        [% IF ( adultborrower AND activeBorrowerRelationship ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
118
    [% IF CAN_user_borrowers %]<li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change password</a></li> [% END %]
122
        <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change password</a></li>
119
	<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
123
        <li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
124
    [% END %]
120
    <li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print summary</a></li>
125
    <li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print summary</a></li>
121
    <li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=slip">Print slip</a></li>
126
    <li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=slip">Print slip</a></li>
122
	<li id="searchtoholdc"><a id="searchtohold" href="#">Search to hold</a></li>
127
    <li id="searchtoholdc"><a id="searchtohold" href="#">Search to hold</a></li>
123
    <li id="moremenuc"><a id="renewpatron" href="/cgi-bin/koha/members/moremember.pl?reregistration=y&amp;borrowernumber=[% borrowernumber %]">Renew account</a></li>[% IF ( CAN_user_permissions ) %]<li><a id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]">Set permissions</a></li>[% END %]<li><a id="deletepatron" href="javascript:confirm_deletion();">Delete</a></li>
128
    [% IF ( CAN_user_borrowers ) %]<li id="moremenuc"><a id="renewpatron" href="/cgi-bin/koha/members/moremember.pl?reregistration=y&amp;borrowernumber=[% borrowernumber %]">Renew account</a></li>[% END %]
129
    [% IF ( CAN_user_permissions ) %]
130
        [% IF ( CAN_user_staffaccess ) %]
131
            <li><a id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]">Set permissions</a></li>
132
        [% END %]
133
    [% END %]
134
    [% IF ( CAN_user_staffaccess ) %]<li><a id="deletepatron" href="#" onclick="confirm_deletion();">Delete</a></li>[% END %]
135
124
</ul></div>
136
</ul></div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +2 lines)
Lines 1-5 Link Here
1
[% USE KohaDates %]
1
[% USE KohaDates %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% SET destination = "circ" %]
3
<title>Koha &rsaquo; Circulation
4
<title>Koha &rsaquo; Circulation
4
[% IF borrowernumber %]
5
[% IF borrowernumber %]
5
  &rsaquo; Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 %]
6
  &rsaquo; Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 %]
Lines 261-267 function validate1(date) { Link Here
261
[% END %]
262
[% END %]
262
263
263
[% IF ( borrowernumber ) %]
264
[% IF ( borrowernumber ) %]
264
[% INCLUDE 'circ-toolbar.inc' %]
265
[% INCLUDE 'members-toolbar.inc' %]
265
[% END %]
266
[% END %]
266
267
267
<!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
268
<!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt (-1 / +1 lines)
Lines 13-19 Link Here
13
    <div id="bd">
13
    <div id="bd">
14
        <div id="yui-main">
14
        <div id="yui-main">
15
            <div class="yui-b">
15
            <div class="yui-b">
16
                [% INCLUDE 'circ-toolbar.inc' %]
16
                [% INCLUDE 'members-toolbar.inc' %]
17
17
18
                <h1>Files</h1>
18
                <h1>Files</h1>
19
19
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt (-1 / +1 lines)
Lines 35-41 Link Here
35
    <div id="bd">
35
    <div id="bd">
36
    <div id="yui-main">
36
    <div id="yui-main">
37
    <div class="yui-b">
37
    <div class="yui-b">
38
[% INCLUDE 'circ-toolbar.inc' %]
38
[% INCLUDE 'members-toolbar.inc' %]
39
<h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
39
<h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
40
40
41
41
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt (-1 / +1 lines)
Lines 25-31 Link Here
25
   <div id="bd">
25
   <div id="bd">
26
	<div id="yui-main">
26
	<div id="yui-main">
27
	<div class="yui-b">
27
	<div class="yui-b">
28
[% INCLUDE 'circ-toolbar.inc' %]
28
[% INCLUDE 'members-toolbar.inc' %]
29
<h1>Circulation history</h1>
29
<h1>Circulation history</h1>
30
[% IF loop_reading %]
30
[% IF loop_reading %]
31
<form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
31
<form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/routing-lists.tt (-1 / +1 lines)
Lines 12-18 Link Here
12
    <div id="bd">
12
    <div id="bd">
13
    <div id="yui-main">
13
    <div id="yui-main">
14
    <div class="yui-b">
14
    <div class="yui-b">
15
[% INCLUDE 'circ-toolbar.inc' %]
15
[% INCLUDE 'members-toolbar.inc' %]
16
16
17
<!-- Search Bar -->
17
<!-- Search Bar -->
18
<p class="tip">Search subscriptions:</p>
18
<p class="tip">Search subscriptions:</p>
(-)a/members/moremember.pl (-2 / +3 lines)
Lines 85-91 my $quickslip = 0; Link Here
85
my $flagsrequired;
85
my $flagsrequired;
86
if ($print eq "page") {
86
if ($print eq "page") {
87
    $template_name = "members/moremember-print.tmpl";
87
    $template_name = "members/moremember-print.tmpl";
88
    $flagsrequired = { borrowers => 1 };
88
    # circ staff who process checkouts but can't edit
89
    # patrons still need to be able to access print view
90
    $flagsrequired = { circulate => "circulate_remaining_permissions" };
89
} elsif ($print eq "slip") {
91
} elsif ($print eq "slip") {
90
    $template_name = "members/moremember-receipt.tmpl";
92
    $template_name = "members/moremember-receipt.tmpl";
91
    # circ staff who process checkouts but can't edit
93
    # circ staff who process checkouts but can't edit
92
- 

Return to bug 6261