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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/tables/members_results.tt (-1 / +1 lines)
Lines 9-15 Link Here
9
                "dt_cardnumber":
9
                "dt_cardnumber":
10
                    "[% data.cardnumber | html %]",
10
                    "[% data.cardnumber | html %]",
11
                "dt_name":
11
                "dt_name":
12
                    "<span style='white-space:nowrap'><a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber | html %]'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = To.json(data.firstname) surname = To.json(data.surname) othernames = To.json(data.othernames) cardnumber = data.cardnumber invert_name = 1%]</a></span>",
12
                    "<a href=\"#\" class=\"patron_preview\" data-borrowernumber=\"[% data.borrowernumber | html %]\" style='white-space:nowrap'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = To.json(data.firstname) surname = To.json(data.surname) othernames = To.json(data.othernames) cardnumber = data.cardnumber invert_name = 1%]</a>",
13
                "dt_branch":
13
                "dt_branch":
14
                    "[% data.branchname | html %]",
14
                    "[% data.branchname | html %]",
15
                "dt_category":
15
                "dt_category":
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt (+32 lines)
Lines 7-12 Link Here
7
<title>Koha &rsaquo; Patron search</title>
7
<title>Koha &rsaquo; Patron search</title>
8
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% Asset.css("css/datatables.css") | $raw %]
9
[% Asset.css("css/datatables.css") | $raw %]
10
<style> .modal-body .close { display: none; } </style>
10
</head>
11
</head>
11
12
12
<body id="common_patron_search" class="common">
13
<body id="common_patron_search" class="common">
Lines 89-94 Link Here
89
90
90
<div id="closewindow"><a href="#" class="btn btn-default btn-default close">Close</a></div>
91
<div id="closewindow"><a href="#" class="btn btn-default btn-default close">Close</a></div>
91
92
93
<!-- Patron preview modal -->
94
<div class="modal" id="patronPreview" tabindex="-1" role="dialog" aria-labelledby="patronPreviewLabel">
95
    <div class="modal-dialog" role="document">
96
        <div class="modal-content">
97
            <div class="modal-header">
98
                <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
99
                <h4 class="modal-title" id="patronPreviewLabel"></h4>
100
            </div>
101
            <div class="modal-body">
102
                <div id="loading">
103
                    <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading
104
                </div>
105
            </div>
106
            <div class="modal-footer">
107
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
108
            </div>
109
        </div>
110
    </div>
111
</div>
112
113
</div>
114
</div>
115
92
[% MACRO jsinclude BLOCK %]
116
[% MACRO jsinclude BLOCK %]
93
    [% INCLUDE 'datatables.inc' %]
117
    [% INCLUDE 'datatables.inc' %]
94
118
Lines 200-205 Link Here
200
                select_user( borrowernumber, JSON.parse(borrower_data) );
224
                select_user( borrowernumber, JSON.parse(borrower_data) );
201
            });
225
            });
202
226
227
            $("body").on("click",".patron_preview", function( e ){
228
                e.preventDefault();
229
                var borrowernumber = $(this).data("borrowernumber");
230
                var page = "/cgi-bin/koha/members/moremember.pl?print=brief&borrowernumber=" + borrowernumber;
231
                $("#patronPreview .modal-body").load( page + " div.container-fluid" );
232
                $('#patronPreview').modal({show:true});
233
            });
234
203
        });
235
        });
204
236
205
        function filter() {
237
        function filter() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt (-1 / +1 lines)
Lines 17-23 Link Here
17
                "dt_cardnumber":
17
                "dt_cardnumber":
18
                    "[% data.cardnumber | html %]",
18
                    "[% data.cardnumber | html %]",
19
                "dt_name":
19
                "dt_name":
20
                    "<span style='white-space:nowrap'><a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber | html %]'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = To.json(data.firstname) surname = To.json(data.surname) othernames = To.json(data.othernames) invert_name = 1 %]</a><br />[% INCLUDE escape_address data = data %][% IF data.email %]<br/>Email: <a href='mailto:[% data.email | html %]'>[% data.email | html %]</a>[% END %]</span>",
20
                    "<a href=\"#\" class=\"patron_preview\" data-borrowernumber=\"[% data.borrowernumber | html %]\" style='white-space:nowrap'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = To.json(data.firstname) surname = To.json(data.surname) othernames = To.json(data.othernames) invert_name = 1 %]</a><br />[% INCLUDE escape_address data = data %][% IF data.email %]<br/>Email: <a href='mailto:[% data.email | html %]'>[% data.email | html %]</a>[% END %]",
21
    "dt_dateofbirth":
21
    "dt_dateofbirth":
22
        "[% data.dateofbirth | $KohaDates %]",
22
        "[% data.dateofbirth | $KohaDates %]",
23
                "dt_category":
23
                "dt_category":
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/tables/members_results.tt (-1 / +1 lines)
Lines 9-15 Link Here
9
                "dt_cardnumber":
9
                "dt_cardnumber":
10
                    "[% data.cardnumber | html %]",
10
                    "[% data.cardnumber | html %]",
11
                "dt_name":
11
                "dt_name":
12
                    "<span style='white-space:nowrap'><a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber | html %]'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = To.json(data.firstname) surname = To.json(data.surname) othernames = To.json(data.othernames) cardnumber = data.cardnumber invert_name = 1%]</a></span>",
12
                    "<a href=\"#\" class=\"patron_preview\" data-borrowernumber=\"[% data.borrowernumber | html %]\" style='white-space:nowrap'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = To.json(data.firstname) surname = To.json(data.surname) othernames = To.json(data.othernames) cardnumber = data.cardnumber invert_name = 1%]</a>",
13
                "dt_category":
13
                "dt_category":
14
                    "[% data.category_description | html %] ([% data.category_type | html %])",
14
                    "[% data.category_description | html %] ([% data.category_type | html %])",
15
                "dt_branch":
15
                "dt_branch":
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/tables/members_results.tt (-2 / +1 lines)
Lines 9-15 Link Here
9
                "dt_cardnumber":
9
                "dt_cardnumber":
10
                    "[% data.cardnumber | html %]",
10
                    "[% data.cardnumber | html %]",
11
                "dt_name":
11
                "dt_name":
12
                    "<span style='white-space:nowrap'><a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber | html %]'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = To.json(data.firstname) surname = To.json(data.surname) othernames = To.json(data.othernames) cardnumber = data.cardnumber invert_name = 1%]</a></span>",
12
                    "<a href=\"#\" class=\"patron_preview\" data-borrowernumber=\"[% data.borrowernumber | html %]\" style='white-space:nowrap'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = To.json(data.firstname) surname = To.json(data.surname) othernames = To.json(data.othernames) cardnumber = data.cardnumber invert_name = 1 %]</a>",
13
                "dt_branch":
13
                "dt_branch":
14
                    "[% data.branchname | html %]",
14
                    "[% data.branchname | html %]",
15
                "dt_action":
15
                "dt_action":
16
- 

Return to bug 18480