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

(-)a/Koha/Schema/Result/TicketUpdate.pm (-1 / +1 lines)
Lines 147-152 __PACKAGE__->belongs_to( Link Here
147
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-24 18:31:28
147
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-24 18:31:28
148
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8YG3jhlqbHWptc28pvBmrg
148
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8YG3jhlqbHWptc28pvBmrg
149
149
150
__PACKAGE__->add_columns( '+public' => { is_boolean => 1 } );
150
151
151
# You can replace this text with custom code or comments, and it will be preserved on regeneration
152
1;
152
1;
(-)a/installer/data/mysql/atomicupdate/bug_31028.pl (-9 / +9 lines)
Lines 48-55 return { Link Here
48
        $dbh->do(
48
        $dbh->do(
49
            q{
49
            q{
50
                INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
50
                INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
51
	            ('OpacCatalogConcerns', '0', NULL, 'Allow logged in OPAC users to report catalog concerns', 'YesNo')
51
                ('OpacCatalogConcerns', '0', NULL, 'Allow logged in OPAC users to report catalog concerns', 'YesNo')
52
	        }
52
            }
53
        );
53
        );
54
        say $out "`OpacCatalogConcerns` preference added";
54
        say $out "`OpacCatalogConcerns` preference added";
55
55
Lines 89-95 return { Link Here
89
        $dbh->do(
89
        $dbh->do(
90
            q{
90
            q{
91
                INSERT IGNORE INTO letter(module,code,branchcode,name,is_html,title,content,message_transport_type)
91
                INSERT IGNORE INTO letter(module,code,branchcode,name,is_html,title,content,message_transport_type)
92
                VALUES ( 'catalogue', 'TICKET_ACKNOWLEDGE', '', 'Concern acknowledgement', '1', 'Catalog concern acknowledgement', "Dear [%- INCLUDE 'patron-title.inc' patron => ticket.reporter -%],<br><br>Thankyou for your report concerning [%- INCLUDE 'biblio-title.inc' biblio=ticket.biblio link = 0 -%].<br><br>You reported: <br>[%- ticket.body -%]<br><br>Thankyou", 'email' );
92
                VALUES ( 'catalogue', 'TICKET_ACKNOWLEDGE', '', 'Concern acknowledgement', '1', 'Catalog concern acknowledgement', "Dear [%- INCLUDE 'patron-title.inc' patron => ticket.reporter -%],<br><br>Thank you for your report concerning [%- INCLUDE 'biblio-title.inc' biblio=ticket.biblio link = 0 -%].<br><br>You reported: <br>[%- ticket.body -%]<br><br>Thank you", 'email' );
93
            }
93
            }
94
        );
94
        );
95
        say $out "Added new notice 'TICKET_ACKNOWLEDGE'";
95
        say $out "Added new notice 'TICKET_ACKNOWLEDGE'";
Lines 97-103 return { Link Here
97
        $dbh->do(
97
        $dbh->do(
98
            q{
98
            q{
99
                INSERT IGNORE INTO letter(module,code,branchcode,name,is_html,title,content,message_transport_type)
99
                INSERT IGNORE INTO letter(module,code,branchcode,name,is_html,title,content,message_transport_type)
100
                VALUES ( 'catalogue', 'TICKET_UPDATE', '', 'Concern updated', '1', 'Catalog concern updated', "Dear [%- INCLUDE 'patron-title.inc' patron => ticket_update.ticket.reporter -%],<br><br>The library has added an update to the concern you reported against [%- INCLUDE 'biblio-title.inc' biblio=ticket_update.ticket.biblio link = 0 -%].<br><br>The following comment was left: <br>[%- ticket_update.message -%]<br><br>Thankyou", 'email' );
100
                VALUES ( 'catalogue', 'TICKET_UPDATE', '', 'Concern updated', '1', 'Catalog concern updated', "Dear [%- INCLUDE 'patron-title.inc' patron => ticket_update.ticket.reporter -%],<br><br>The library has added an update to the concern you reported against [%- INCLUDE 'biblio-title.inc' biblio=ticket_update.ticket.biblio link = 0 -%].<br><br>The following comment was left: <br>[%- ticket_update.message -%]<br><br>Thank you", 'email' );
101
            }
101
            }
102
        );
102
        );
103
        say $out "Added new notice 'TICKET_UPDATE'";
103
        say $out "Added new notice 'TICKET_UPDATE'";
Lines 105-111 return { Link Here
105
        $dbh->do(
105
        $dbh->do(
106
            q{
106
            q{
107
                INSERT IGNORE INTO letter(module,code,branchcode,name,is_html,title,content,message_transport_type)
107
                INSERT IGNORE INTO letter(module,code,branchcode,name,is_html,title,content,message_transport_type)
108
                VALUES ( 'catalogue', 'TICKET_RESOLVE', '', 'Concern resolved', '1', 'Catalog concern resolved', "Dear [%- INCLUDE 'patron-title.inc' patron => ticket_update.ticket.reporter -%],<br><br>The library has now marked your concern with [%- INCLUDE 'biblio-title.inc' biblio=ticket_update.ticket.biblio link = 0 -%]as resolved.<br><br>The following comment was left:   <br>[%- ticket_update.message -%]<br><br>Thankyou", 'email' );
108
                VALUES ( 'catalogue', 'TICKET_RESOLVE', '', 'Concern resolved', '1', 'Catalog concern resolved', "Dear [%- INCLUDE 'patron-title.inc' patron => ticket_update.ticket.reporter -%],<br><br>The library has now marked your concern with [%- INCLUDE 'biblio-title.inc' biblio=ticket_update.ticket.biblio link = 0 -%]as resolved.<br><br>The following comment was left:   <br>[%- ticket_update.message -%]<br><br>Thank you", 'email' );
109
            }
109
            }
110
        );
110
        );
111
        say $out "Added new notice 'TICKET_RESOLVE'";
111
        say $out "Added new notice 'TICKET_RESOLVE'";
Lines 113-120 return { Link Here
113
        $dbh->do(
113
        $dbh->do(
114
            q{
114
            q{
115
                INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
115
                INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
116
	            ('CatalogerEmails', '', '', 'Notify these catalogers by email when a catalog concern is submitted', 'free')
116
                ('CatalogerEmails', '', '', 'Notify these catalogers by email when a catalog concern is submitted', 'free')
117
	        }
117
            }
118
        );
118
        );
119
        say $out "`CatalogerEmails` preference added";
119
        say $out "`CatalogerEmails` preference added";
120
120
Lines 129-136 return { Link Here
129
        $dbh->do(
129
        $dbh->do(
130
            q{
130
            q{
131
                INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
131
                INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
132
	            ('CatalogConcerns', '0', NULL, 'Allow users to report catalog concerns', 'YesNo')
132
                ('CatalogConcerns', '0', NULL, 'Allow users to report catalog concerns', 'YesNo')
133
	        }
133
            }
134
        );
134
        );
135
        say $out "`CatalogConcerns` preference added";
135
        say $out "`CatalogConcerns` preference added";
136
    }
136
    }
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-4 / +4 lines)
Lines 54-65 tables: Link Here
54
          content:
54
          content:
55
            - "Dear [%- INCLUDE 'patron-title.inc' patron => ticket.reporter -%],<br>"
55
            - "Dear [%- INCLUDE 'patron-title.inc' patron => ticket.reporter -%],<br>"
56
            - "<br>"
56
            - "<br>"
57
            - "Thankyou for your report concerning [%- INCLUDE 'biblio-title.inc' biblio=ticket.biblio link = 0 -%].<br>"
57
            - "Thank you for your report concerning [%- INCLUDE 'biblio-title.inc' biblio=ticket.biblio link = 0 -%].<br>"
58
            - "<br>"
58
            - "<br>"
59
            - "You reported: <br>"
59
            - "You reported: <br>"
60
            - "[%- ticket.body -%]<br>"
60
            - "[%- ticket.body -%]<br>"
61
            - "<br>"
61
            - "<br>"
62
            - "Thankyou"
62
            - "Thank you"
63
63
64
        - module: catalogue
64
        - module: catalogue
65
          code: TICKET_RESOLVE
65
          code: TICKET_RESOLVE
Lines 77-83 tables: Link Here
77
            - "The following comment was left: <br>"
77
            - "The following comment was left: <br>"
78
            - "[%- ticket_update.message -%]<br>"
78
            - "[%- ticket_update.message -%]<br>"
79
            - "<br>"
79
            - "<br>"
80
            - "Thankyou"
80
            - "Thank you"
81
81
82
        - module: catalogue
82
        - module: catalogue
83
          code: TICKET_UPDATE
83
          code: TICKET_UPDATE
Lines 95-101 tables: Link Here
95
            - "The following comment was left: <br>"
95
            - "The following comment was left: <br>"
96
            - "[%- ticket_update.message -%]<br>"
96
            - "[%- ticket_update.message -%]<br>"
97
            - "<br>"
97
            - "<br>"
98
            - "Thankyou"
98
            - "Thank you"
99
99
100
        - module: catalogue
100
        - module: catalogue
101
          code: TICKET_NOTIFY
101
          code: TICKET_NOTIFY
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/add_catalog_concern.inc (-1 / +1 lines)
Lines 42-48 Link Here
42
                </fieldset>
42
                </fieldset>
43
            </div> <!-- /.modal-body -->
43
            </div> <!-- /.modal-body -->
44
            <div class="modal-footer">
44
            <div class="modal-footer">
45
                <input type="hidden" id="concern_biblio" name="biblio_id" value="[% biblionumber %]">
45
                <input type="hidden" id="concern_biblio" name="biblio_id" value="[% biblionumber | html %]">
46
                <button type="submit" class="btn btn-primary" id="addConfirm">Submit <i id="concern-submit-spinner" class="fa fa-spinner fa-pulse fa-fw" style="display:none"></i></button>
46
                <button type="submit" class="btn btn-primary" id="addConfirm">Submit <i id="concern-submit-spinner" class="fa fa-spinner fa-pulse fa-fw" style="display:none"></i></button>
47
                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
47
                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
48
            </div> <!-- /.modal-footer -->
48
            </div> <!-- /.modal-footer -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +1 lines)
Lines 1361-1367 Note that permanent location is a code, and location may be an authval. Link Here
1361
                        "resolver",
1361
                        "resolver",
1362
                        "updates+count",
1362
                        "updates+count",
1363
                    ],
1363
                    ],
1364
                    'emptyTable': '<div class="dialog message">' + _("Congradulations, there are no catalog concerns.") + '</div>',
1364
                    'emptyTable': '<div class="dialog message">' + _("Congratulations, there are no catalog concerns.") + '</div>',
1365
                    "columnDefs": [ {
1365
                    "columnDefs": [ {
1366
                        "targets": [0,1,2],
1366
                        "targets": [0,1,2],
1367
                        "render": function (data, type, row, meta) {
1367
                        "render": function (data, type, row, meta) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt (-1 / +1 lines)
Lines 89-95 Link Here
89
                    "biblio",
89
                    "biblio",
90
                    "updates+count",
90
                    "updates+count",
91
                ],
91
                ],
92
                'emptyTable': '<div class="dialog message">' + _("Congradulations, there are no catalog concerns.") + '</div>',
92
                'emptyTable': '<div class="dialog message">' + _("Congratulations, there are no catalog concerns.") + '</div>',
93
                "columnDefs": [{
93
                "columnDefs": [{
94
                    "targets": [0, 1, 2, 3],
94
                    "targets": [0, 1, 2, 3],
95
                    "render": function(data, type, row, meta) {
95
                    "render": function(data, type, row, meta) {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/modals/catalog_concern.inc (-2 / +1 lines)
Lines 18-24 Link Here
18
                        <input type="text" name="concern_title" id="concern_title" required="required"/>
18
                        <input type="text" name="concern_title" id="concern_title" required="required"/>
19
                    </div>
19
                    </div>
20
                    <div class="form-group">
20
                    <div class="form-group">
21
                        <label for="concern_body">Please decribe your concerns: </label>
21
                        <label for="concern_body">Please describe your concerns: </label>
22
                        <textarea class="form-control" name="concern_body" id="concern_body" aria-describedby="helpBlock" required="required" rows="15"></textarea>
22
                        <textarea class="form-control" name="concern_body" id="concern_body" aria-describedby="helpBlock" required="required" rows="15"></textarea>
23
                        [%- IF CatalogConcernHelp && CatalogConcernHelp.content && CatalogConcernHelp.content.count > 0 -%]
23
                        [%- IF CatalogConcernHelp && CatalogConcernHelp.content && CatalogConcernHelp.content.count > 0 -%]
24
                        <div class="help-block">
24
                        <div class="help-block">
25
- 

Return to bug 31028