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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-memberentry.tt (-35 lines)
Lines 20-39 Link Here
20
            [% ELSE %]
20
            [% ELSE %]
21
                $( "#borrower_dateofbirth" ).datepicker({ yearRange: "c-120:c" });
21
                $( "#borrower_dateofbirth" ).datepicker({ yearRange: "c-120:c" });
22
            [% END %]
22
            [% END %]
23
24
            $('#update_privacy_guarantor_checkouts').click( function() {
25
                $.post( "/cgi-bin/koha/svc/patron/show_checkouts_to_relatives", { privacy_guarantor_checkouts: $('#privacy_guarantor_checkouts').val() })
26
                 .done(function( data ) {
27
                     var message;
28
                     if ( data.success ) {
29
                         message = _("Your setting has been updated!");
30
                     } else {
31
                         message = _("Unable to update your setting!");
32
                     }
33
34
                     $('#update_privacy_guarantor_checkouts_message').fadeIn("slow").text( message ).delay( 5000 ).fadeOut("slow");
35
                 });
36
            });
37
        });
23
        });
38
    //]]>
24
    //]]>
39
    </script>
25
    </script>
Lines 76-102 Link Here
76
                                <div class="dialog alert">You typed in the wrong characters in the box before submitting. Please try again.</div>
62
                                <div class="dialog alert">You typed in the wrong characters in the box before submitting. Please try again.</div>
77
                            [% END %]
63
                            [% END %]
78
64
79
                            <fieldset class="rows" id="memberentry_privacy">
80
                                <legend id="privacy_legend">Privacy</legend>
81
                                <ol>
82
                                    <li>
83
                                        <label>Show checkouts to relatives</label>
84
                                        <select id="privacy_guarantor_checkouts">
85
                                            <option value="0">No</option>
86
                                            [% IF borrower.privacy_guarantor_checkouts %]
87
                                                <option value="1" selected="selected">Yes</option>
88
                                            [% ELSE %]
89
                                                <option value="1">Yes</option>
90
                                            [% END %]
91
                                        </select>
92
                                        <span class="hint">
93
                                            <button id="update_privacy_guarantor_checkouts" onclick="return false;">Update</button>
94
                                            <span id="update_privacy_guarantor_checkouts_message" class="alert" style="display:none"></span>
95
                                        </span>
96
                                    </li>
97
                                </ol>
98
                            </fieldset>
99
100
                                [% UNLESS
65
                                [% UNLESS
101
                                    hidden.defined('branchcode')
66
                                    hidden.defined('branchcode')
102
                                %]
67
                                %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-privacy.tt (-19 / +2 lines)
Lines 35-42 Link Here
35
    </div>
35
    </div>
36
    <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
36
    <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
37
            <input type="hidden" name="op" value="update_privacy" />
37
            <input type="hidden" name="op" value="update_privacy" />
38
38
            <label for:"privacy">Please choose your privacy rule:</label>
39
            <label for="privacy">Please choose your privacy rule:</label>
40
            <select name="privacy">
39
            <select name="privacy">
41
                [% IF ( privacy0 ) %]
40
                [% IF ( privacy0 ) %]
42
                    <option value="0" selected="1" class="privacy0">Forever</option>
41
                    <option value="0" selected="1" class="privacy0">Forever</option>
Lines 54-76 Link Here
54
                    <option value="2" class="privacy2">Never</option>
53
                    <option value="2" class="privacy2">Never</option>
55
                [% END %]
54
                [% END %]
56
            </select>
55
            </select>
57
56
            <input type="Submit" value="Submit" />
58
            <p/>
59
60
            <label for="privacy_guarantor_checkouts">Allow relatives to view your current checkouts?</label>
61
            <select name="privacy_guarantor_checkouts">
62
                [% IF borrower.privacy_guarantor_checkouts %]
63
                    <option value="0">No</option>
64
                    <option value="1" selected>Yes</option>
65
                [% ELSE %]
66
                    <option value="0" selected>No</option>
67
                    <option value="1">Yes</option>
68
                [% END %]
69
            </select>
70
71
            <p/>
72
73
            <input type="Submit" value="Save" />
74
        </form>
57
        </form>
75
        <h2>Immediate deletion</h2>
58
        <h2>Immediate deletion</h2>
76
        <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form">
59
        <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form">
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt (-50 / +1 lines)
Lines 1-6 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE KohaDates %]
2
[% USE KohaDates %]
3
[% USE EncodeUTF8 %]
4
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
5
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your library home
4
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your library home
6
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
Lines 16-22 var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended Link Here
16
15
17
        $('#opac-user-views').tabs();
16
        $('#opac-user-views').tabs();
18
17
19
        var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
18
        var dTables = $("#checkoutst,#holdst,#overduest");
20
        dTables.each(function(){
19
        dTables.each(function(){
21
            var thIndex = $(this).find("th.psort").index();
20
            var thIndex = $(this).find("th.psort").index();
22
            $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
21
            $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
Lines 147-153 var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended Link Here
147
<div id="opac-user-views" class="toptabs">
146
<div id="opac-user-views" class="toptabs">
148
        <ul>
147
        <ul>
149
            <li><a href="#opac-user-checkouts">Checked out</a></li>
148
            <li><a href="#opac-user-checkouts">Checked out</a></li>
150
            [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
151
            [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue</a></li>[% END %]
149
            [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue</a></li>[% END %]
152
[% IF ( OPACFinesTab ) %]
150
[% IF ( OPACFinesTab ) %]
153
            [% IF ( BORROWER_INF.amountoverfive ) %]<li><a href="#opac-user-fines">Fines</a></li>[% END %]
151
            [% IF ( BORROWER_INF.amountoverfive ) %]<li><a href="#opac-user-fines">Fines</a></li>[% END %]
Lines 327-378 var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended Link Here
327
        [% END %]
325
        [% END %]
328
    [% END %]
326
    [% END %]
329
327
330
    [% IF relatives && Koha.Preference('borrowerRelationship') %]
331
        <div id="opac-user-relative-issues">
332
            <table id="opac-user-relative-issues-table">
333
                <thead>
334
                    <tr>
335
                        <th class="anti-the">Title</th>
336
                        <th>Due</th>
337
                        <th>Barcode</th>
338
                        <th>Call No.</th>
339
                        <th class="psort">Relative</th>
340
                    </tr>
341
                </thead>
342
343
                <tbody>
344
                    [% FOREACH r IN relatives %]
345
                        [% FOREACH i IN r.issues %]
346
                            <tr>
347
                                <td>
348
                                    <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.item.biblio.biblionumber %]">
349
                                        [% i.item.biblio.title | $EncodeUTF8 %]
350
                                    </a>
351
                                </td>
352
353
                                <td>
354
                                    [% i.date_due | $KohaDates %]
355
                                </td>
356
357
                                <td>
358
                                    [% i.item.barcode %]
359
                                </td>
360
361
                                <td>
362
                                    [% i.item.itemcallnumber | $EncodeUTF8 %]
363
                                </td>
364
365
                                <td>
366
                                    [% r.firstname | $EncodeUTF8 %] [% r.surname | $EncodeUTF8 %]
367
                                </td>
368
                            </tr>
369
                        [% END %]
370
                    [% END %]
371
                </tbody>
372
            </table>
373
        </div>
374
    [% END %]
375
376
[% IF ( overdues_count ) %]
328
[% IF ( overdues_count ) %]
377
<div id="opac-user-overdues"><table id="overduest">
329
<div id="opac-user-overdues"><table id="overduest">
378
<caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
330
<caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
379
- 

Return to bug 9303