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

(-)a/installer/data/mysql/atomicupdate/bug_31028.pl (+8 lines)
Lines 125-129 return { Link Here
125
            }
125
            }
126
        );
126
        );
127
        say $out "Added new notice 'TICKET_NOTIFY'";
127
        say $out "Added new notice 'TICKET_NOTIFY'";
128
129
        $dbh->do(
130
            q{
131
                INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
132
	            ('CatalogConcerns', '0', NULL, 'Allow users to report catalog concerns', 'YesNo')
133
	        }
134
        );
135
        say $out "`CatalogConcerns` preference added";
128
    }
136
    }
129
}
137
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 128-133 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
128
('casLogout','0','','Does a logout from Koha should also log the user out of CAS?','YesNo'),
128
('casLogout','0','','Does a logout from Koha should also log the user out of CAS?','YesNo'),
129
('casServerUrl','https://localhost:8443/cas','','URL of the cas server','Free'),
129
('casServerUrl','https://localhost:8443/cas','','URL of the cas server','Free'),
130
('casServerVersion','2', '2|3','Version of the CAS server Koha will connect to.','Choice'),
130
('casServerVersion','2', '2|3','Version of the CAS server Koha will connect to.','Choice'),
131
('CatalogConcerns', '0', NULL, 'Allow users to report catalog concerns', 'YesNo'),
131
('CatalogerEmails', '', '', 'Notify these catalogers by email when a catalog concern is submitted', 'free'),
132
('CatalogerEmails', '', '', 'Notify these catalogers by email when a catalog concern is submitted', 'free'),
132
('CatalogModuleRelink','0',NULL,'If OFF the linker will never replace the authids that are set in the cataloging module.','YesNo'),
133
('CatalogModuleRelink','0',NULL,'If OFF the linker will never replace the authids that are set in the cataloging module.','YesNo'),
133
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
134
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-menu.inc (-2 / +2 lines)
Lines 29-35 Link Here
29
        </ul>
29
        </ul>
30
        [% END %]
30
        [% END %]
31
31
32
        [% IF ( CAN_user_tools_inventory || ( Koha.Preference('OpacCatalogConcerns') && CAN_user_editcatalogue_edit_catalogue ) ) %]
32
        [% IF ( CAN_user_tools_inventory || ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) ) %]
33
        <h5>Reports</h5>
33
        <h5>Reports</h5>
34
        <ul>
34
        <ul>
35
            [% IF ( CAN_user_tools_inventory ) %]
35
            [% IF ( CAN_user_tools_inventory ) %]
Lines 37-43 Link Here
37
                <a href="/cgi-bin/koha/tools/inventory.pl">Inventory</a>
37
                <a href="/cgi-bin/koha/tools/inventory.pl">Inventory</a>
38
            </li>
38
            </li>
39
            [% END %]
39
            [% END %]
40
            [% IF Koha.Preference('OpacCatalogConcerns') && CAN_user_editcatalogue_edit_catalogue %]
40
            [% IF ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue %]
41
            <li>
41
            <li>
42
                <a href="/cgi-bin/koha/cataloguing/concerns.pl">Catalog concerns</a>
42
                <a href="/cgi-bin/koha/cataloguing/concerns.pl">Catalog concerns</a>
43
            </li>
43
            </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc (-1 / +4 lines)
Lines 2-8 Link Here
2
[% INCLUDE 'blocking_errors.inc' %]
2
[% INCLUDE 'blocking_errors.inc' %]
3
<div id="toolbar" class="btn-toolbar">
3
<div id="toolbar" class="btn-toolbar">
4
4
5
[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items || CAN_user_serials_create_subscription ) %]
5
[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items || CAN_user_serials_create_subscription || Koha.Preference('CatalogConcerns') ) %]
6
    <div class="btn-group">
6
    <div class="btn-group">
7
    <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New <span class="caret"></span></button>
7
    <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New <span class="caret"></span></button>
8
        <ul class="dropdown-menu">
8
        <ul class="dropdown-menu">
Lines 23-28 Link Here
23
            [% IF CAN_user_editcatalogue_edit_catalogue && ! EasyAnalyticalRecords %]
23
            [% IF CAN_user_editcatalogue_edit_catalogue && ! EasyAnalyticalRecords %]
24
                <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?parentbiblionumber=[% biblionumber | uri %]">New child record</a></li>
24
                <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?parentbiblionumber=[% biblionumber | uri %]">New child record</a></li>
25
            [% END %]
25
            [% END %]
26
            [% IF Koha.Preference('CatalogConcerns') %]
27
                <li><a id="newconcern" role="button" href="#" data-toggle="modal" data-target="#addConcernModal">New catalog concern</a></li>
28
            [% END %]
26
    </ul>
29
    </ul>
27
    </div>
30
    </div>
28
[% END %]
31
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/add_catalog_concern.inc (+49 lines)
Line 0 Link Here
1
[% USE AdditionalContents %]
2
[% SET CatalogConcernHelp = AdditionalContents.get( location => "CatalogConcernHelp", lang => lang, library => logged_in_user.branchcode ) %]
3
[% SET CatalogConcernTemplate = AdditionalContents.get( location => "CatalogConcernTemplate", lang => lang, library => logged_in_user.branchcode ) %]
4
<!-- Add concern modal -->
5
<div class="modal" id="addConcernModal" tabindex="-1" role="dialog" aria-labelledby="addConcernLabel">
6
    <div class="modal-dialog" role="document">
7
        <div class="modal-content modal-lg">
8
            <div class="modal-header">
9
                <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
10
                <h4 class="modal-title" id="addConcernLabel">Add concern</h4>
11
            </div>
12
            <div class="modal-body">
13
                <fieldset class="rows">
14
                    <ol>
15
                        [% IF biblionumber %]
16
                        <input type="hidden" id="biblio_add" name="biblio_id" value="[% biblionumber %]">
17
                        [% ELSE %]
18
                        <li>
19
                            <label class="required" for="biblio_id">Biblio: </label>
20
                            <input type="text" name="biblio_id" id="biblio_add">
21
                            <span class="required">Required</span>
22
                        </li>
23
                        [% END %]
24
                        <li>
25
                            <label class="required" for="message">Please describe your concern: </label>
26
                            <textarea id="message_add" name="message" required="required" rows="15">
27
                            [%- IF CatalogConcernTemplate && CatalogConcernTemplate.content && CatalogConcernTemplate.content.count > 0 -%]
28
                            [%- FOREACH template IN CatalogConcernTemplate.content -%]
29
                            [%- template.content | $raw -%]
30
                            [%- END -%]
31
                            [%- END -%]
32
                            </textarea>
33
                            <span class="required">Required</span>
34
                            [%- IF CatalogConcernHelp && CatalogConcernHelp.content && CatalogConcernHelp.content.count > 0 -%]
35
                            [%- FOREACH help IN CatalogConcernHelp.content -%]
36
                            <p id="helpBlock" class="help-block">[%- help.content | $raw -%]</p>
37
                            [%- END -%]
38
                            [%- END -%]
39
                        </li>
40
                    </ol>
41
                </fieldset>
42
            </div> <!-- /.modal-body -->
43
            <div class="modal-footer">
44
                <button type="submit" class="btn btn-default" id="addConfirm">Confirm</button>
45
                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
46
            </div> <!-- /.modal-footer -->
47
        </div> <!-- /.modal-content -->
48
    </div> <!-- /.modal-dialog -->
49
</div> <!-- /#addConcernModal -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (+8 lines)
Lines 42-47 Cataloging: Link Here
42
                  1: "Allow"
42
                  1: "Allow"
43
                  0: "Don't allow"
43
                  0: "Don't allow"
44
            - authorized values to be created within the cataloguing module. Librarian will need the manage_auth_values subpermission.
44
            - authorized values to be created within the cataloguing module. Librarian will need the manage_auth_values subpermission.
45
        -
46
            - pref: CatalogConcerns
47
              default: 0
48
              choices:
49
                  0: "Don't allow"
50
                  1: Allow
51
            - "staff to report concerns about catalog records."
52
            - '<p><strong>Note:</strong> You can also enable `<a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OpacCatalogConcerns">OpacCatalogConcerns</a>` to allow OPAC users the same option.</p>'
45
        -
53
        -
46
            - "Use "
54
            - "Use "
47
            - pref: CatalogerEmails
55
            - pref: CatalogerEmails
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+1 lines)
Lines 336-341 OPAC: Link Here
336
                  0: "Don't allow"
336
                  0: "Don't allow"
337
                  1: Allow
337
                  1: Allow
338
            - "OPAC users to report concerns about catalog records."
338
            - "OPAC users to report concerns about catalog records."
339
            - '<p><strong>Note:</strong> Enabling `<a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=CatalogConcerns">CatalogConcerns</a>` will allow concern submissions from the staff client.</p>'
339
        -
340
        -
340
            - pref: OPACReportProblem
341
            - pref: OPACReportProblem
341
              choices:
342
              choices:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt (+11 lines)
Lines 85-94 Link Here
85
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
85
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
86
     </div> <!-- /.row -->
86
     </div> <!-- /.row -->
87
87
88
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
89
    [% INCLUDE 'modals/add_catalog_concern.inc' %]
90
    [% END %]
91
88
[% MACRO jsinclude BLOCK %]
92
[% MACRO jsinclude BLOCK %]
89
    [% INCLUDE 'catalog-strings.inc' %]
93
    [% INCLUDE 'catalog-strings.inc' %]
90
    [% Asset.js("js/catalog.js") | $raw %]
94
    [% Asset.js("js/catalog.js") | $raw %]
91
    [% Asset.js("js/browser.js") | $raw %]
95
    [% Asset.js("js/browser.js") | $raw %]
96
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
97
        <script>
98
            /* Set a variable needed by add_catalog_concern.js */
99
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
100
        </script>
101
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
102
    [% END %]
92
    <script>
103
    <script>
93
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
104
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
94
        browser.show();
105
        browser.show();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt (+10 lines)
Lines 209-219 Link Here
209
209
210
[% END %]
210
[% END %]
211
211
212
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
213
    [% INCLUDE 'modals/add_catalog_concern.inc' %]
214
    [% END %]
212
215
213
[% MACRO jsinclude BLOCK %]
216
[% MACRO jsinclude BLOCK %]
214
    [% INCLUDE 'catalog-strings.inc' %]
217
    [% INCLUDE 'catalog-strings.inc' %]
215
    [% Asset.js("js/catalog.js") | $raw %]
218
    [% Asset.js("js/catalog.js") | $raw %]
216
    [% Asset.js("js/browser.js") | $raw %]
219
    [% Asset.js("js/browser.js") | $raw %]
220
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
221
        <script>
222
            /* Set a variable needed by add_catalog_concern.js */
223
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
224
        </script>
225
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
226
    [% END %]
217
    <script>
227
    <script>
218
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
228
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
219
        browser.show();
229
        browser.show();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (+11 lines)
Lines 1299-1310 Note that permanent location is a code, and location may be an authval. Link Here
1299
    </div>
1299
    </div>
1300
    [% END %]
1300
    [% END %]
1301
1301
1302
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
1303
    [% INCLUDE 'modals/add_catalog_concern.inc' %]
1304
    [% END %]
1305
1302
[% MACRO jsinclude BLOCK %]
1306
[% MACRO jsinclude BLOCK %]
1303
    [% INCLUDE 'catalog-strings.inc' %]
1307
    [% INCLUDE 'catalog-strings.inc' %]
1304
    [% Asset.js("js/catalog.js") | $raw %]
1308
    [% Asset.js("js/catalog.js") | $raw %]
1305
    [% Asset.js("js/recalls.js") | $raw %]
1309
    [% Asset.js("js/recalls.js") | $raw %]
1306
    [% Asset.js("js/coce.js") | $raw %]
1310
    [% Asset.js("js/coce.js") | $raw %]
1307
    [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
1311
    [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
1312
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
1313
        <script>
1314
            /* Set a variable needed by add_catalog_concern.js */
1315
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1316
        </script>
1317
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
1318
    [% END %]
1308
    <script>
1319
    <script>
1309
        var interface = "[% interface | html %]";
1320
        var interface = "[% interface | html %]";
1310
        var theme = "[% theme | html %]";
1321
        var theme = "[% theme | html %]";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt (+11 lines)
Lines 133-141 Link Here
133
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
133
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
134
     </div> <!-- /.row -->
134
     </div> <!-- /.row -->
135
135
136
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
137
    [% INCLUDE 'modals/add_catalog_concern.inc' %]
138
    [% END %]
139
136
[% MACRO jsinclude BLOCK %]
140
[% MACRO jsinclude BLOCK %]
137
    [% INCLUDE 'catalog-strings.inc' %]
141
    [% INCLUDE 'catalog-strings.inc' %]
138
    [% Asset.js("js/catalog.js") | $raw %]
142
    [% Asset.js("js/catalog.js") | $raw %]
143
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
144
        <script>
145
            /* Set a variable needed by add_catalog_concern.js */
146
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
147
        </script>
148
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
149
    [% END %]
139
    <script>
150
    <script>
140
        var interface = "[% interface | html %]";
151
        var interface = "[% interface | html %]";
141
        var theme = "[% theme | html %]";
152
        var theme = "[% theme | html %]";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt (+11 lines)
Lines 95-104 Link Here
95
     </div> <!-- /.row -->
95
     </div> <!-- /.row -->
96
[% END %]
96
[% END %]
97
97
98
[% IF ( Koha.Preference('CatalogConcerns') ) %]
99
[% INCLUDE 'modals/add_catalog_concern.inc' %]
100
[% END %]
101
98
[% MACRO jsinclude BLOCK %]
102
[% MACRO jsinclude BLOCK %]
99
    [% INCLUDE 'catalog-strings.inc' %]
103
    [% INCLUDE 'catalog-strings.inc' %]
100
    [% Asset.js("js/catalog.js") | $raw %]
104
    [% Asset.js("js/catalog.js") | $raw %]
101
    [% Asset.js("js/browser.js") | $raw %]
105
    [% Asset.js("js/browser.js") | $raw %]
106
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
107
        <script>
108
            /* Set a variable needed by add_catalog_concern.js */
109
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
110
        </script>
111
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
112
    [% END %]
102
    <script>
113
    <script>
103
    //<![CDATA[
114
    //<![CDATA[
104
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
115
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (+11 lines)
Lines 389-394 Link Here
389
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
389
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
390
     </div> <!-- /.row -->
390
     </div> <!-- /.row -->
391
391
392
[% IF ( Koha.Preference('CatalogConcerns') ) %]
393
[% INCLUDE 'modals/add_catalog_concern.inc' %]
394
[% END %]
395
392
[% MACRO jsinclude BLOCK %]
396
[% MACRO jsinclude BLOCK %]
393
    [% INCLUDE 'catalog-strings.inc' %]
397
    [% INCLUDE 'catalog-strings.inc' %]
394
    [% INCLUDE 'modals/checkout_renewals.inc' %]
398
    [% INCLUDE 'modals/checkout_renewals.inc' %]
Lines 398-403 Link Here
398
    [% Asset.js("js/catalog.js") | $raw %]
402
    [% Asset.js("js/catalog.js") | $raw %]
399
    [% Asset.js("js/browser.js") | $raw %]
403
    [% Asset.js("js/browser.js") | $raw %]
400
    [% Asset.js("js/checkout_renewals_modal.js") | $raw %]
404
    [% Asset.js("js/checkout_renewals_modal.js") | $raw %]
405
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
406
        <script>
407
            /* Set a variable needed by add_catalog_concern.js */
408
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
409
        </script>
410
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
411
    [% END %]
401
    <script>
412
    <script>
402
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
413
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
403
        browser.show();
414
        browser.show();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt (-2 / +2 lines)
Lines 91-97 Link Here
91
                        </ul>
91
                        </ul>
92
                        [% END %]
92
                        [% END %]
93
93
94
                        [% IF ( CAN_user_tools_inventory || ( Koha.Preference('OpacCatalogConcerns') && CAN_user_editcatalogue_edit_catalogue ) ) %]
94
                        [% IF ( CAN_user_tools_inventory || ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) ) %]
95
                        <h3>Reports</h3>
95
                        <h3>Reports</h3>
96
                        <ul class="buttons-list">
96
                        <ul class="buttons-list">
97
                            [% IF ( CAN_user_tools_inventory ) %]
97
                            [% IF ( CAN_user_tools_inventory ) %]
Lines 100-106 Link Here
100
                            </li>
100
                            </li>
101
                            [% END %]
101
                            [% END %]
102
102
103
                            [% IF ( Koha.Preference('OpacCatalogConcerns') && CAN_user_editcatalogue_edit_catalogue ) %]
103
                            [% IF ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
104
                            <li>
104
                            <li>
105
                                <a class="circ-button" href="/cgi-bin/koha/cataloguing/concerns.pl"><i class="fa fa-list-ul"></i> Catalog concerns</a>
105
                                <a class="circ-button" href="/cgi-bin/koha/cataloguing/concerns.pl"><i class="fa fa-list-ul"></i> Catalog concerns</a>
106
                            </li>
106
                            </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +11 lines)
Lines 1355-1360 Link Here
1355
    </div> <!-- /#bundleMissingModal -->
1355
    </div> <!-- /#bundleMissingModal -->
1356
    [% END %]
1356
    [% END %]
1357
1357
1358
[% IF ( Koha.Preference('CatalogConcerns') ) %]
1359
[% INCLUDE 'modals/add_catalog_concern.inc' %]
1360
[% END %]
1361
1358
[% MACRO jsinclude BLOCK %]
1362
[% MACRO jsinclude BLOCK %]
1359
    [% INCLUDE 'datatables.inc' %]
1363
    [% INCLUDE 'datatables.inc' %]
1360
    [% INCLUDE 'columns_settings.inc' %]
1364
    [% INCLUDE 'columns_settings.inc' %]
Lines 1367-1373 Link Here
1367
        </script>
1371
        </script>
1368
        [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1372
        [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1369
    [% END %]
1373
    [% END %]
1370
1374
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
1375
        <script>
1376
            /* Set a variable needed by add_catalog_concern.js */
1377
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1378
        </script>
1379
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
1380
    [% END %]
1371
    <script>
1381
    <script>
1372
        function Dopop(link) {
1382
        function Dopop(link) {
1373
            var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1383
            var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-2 / +2 lines)
Lines 170-176 Link Here
170
                <div class="row">
170
                <div class="row">
171
                    <div class="col-sm-12">
171
                    <div class="col-sm-12">
172
                        [%# Following statement must be in one line for translatability %]
172
                        [%# Following statement must be in one line for translatability %]
173
                        [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) || ( CAN_user_suggestions_suggestions_manage && ( pendingsuggestions || all_pendingsuggestions )) || ( CAN_user_borrowers_edit_borrowers && pending_discharge_requests ) || pending_article_requests || ( Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes && pending_checkout_notes.count ) || ( Koha.preference('OpacCatalogConcerns') && pending_biblio_tickets && CAN_user_editcatalogue_edit_catalogue ) || ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports.count ) || already_ran_jobs || new_curbside_pickups.count %]
173
                        [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) || ( CAN_user_suggestions_suggestions_manage && ( pendingsuggestions || all_pendingsuggestions )) || ( CAN_user_borrowers_edit_borrowers && pending_discharge_requests ) || pending_article_requests || ( Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes && pending_checkout_notes.count ) || ( ( Koha.preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && pending_biblio_tickets && CAN_user_editcatalogue_edit_catalogue ) || ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports.count ) || already_ran_jobs || new_curbside_pickups.count %]
174
                            <div id="area-pending" class="page-section">
174
                            <div id="area-pending" class="page-section">
175
                                [% IF pending_article_requests %]
175
                                [% IF pending_article_requests %]
176
                                <div class="pending-info" id="article_requests_pending">
176
                                <div class="pending-info" id="article_requests_pending">
Lines 225-231 Link Here
225
                                </div>
225
                                </div>
226
                                [% END %]
226
                                [% END %]
227
227
228
                                [% IF ( Koha.Preference('OpacCatalogConcerns') && CAN_user_editcatalogue_edit_catalogue ) %]
228
                                [% IF ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
229
                                <div class="pending-info" id="catalog_concerns_pending">
229
                                <div class="pending-info" id="catalog_concerns_pending">
230
                                    <a href="/cgi-bin/koha/cataloguing/concerns.pl">Catalog concerns pending</a>:
230
                                    <a href="/cgi-bin/koha/cataloguing/concerns.pl">Catalog concerns pending</a>:
231
                                    <span class="pending-number-link">[% pending_biblio_tickets | html %]</span>
231
                                    <span class="pending-number-link">[% pending_biblio_tickets | html %]</span>
(-)a/koha-tmpl/intranet-tmpl/prog/js/modals/add_catalog_concern.js (+26 lines)
Line 0 Link Here
1
$(document).ready(function() {
2
    $('#addConcernModal').on('click', '#addConfirm', function(e) {
3
        let biblio_id = $('#biblio_add').val();
4
        let message = $('#message_add').val();
5
6
        let params = {
7
            message: message,
8
            biblio_id: biblio_id,
9
            reporter_id: logged_in_user_borrowernumber,
10
        };
11
12
        $.ajax({
13
            url: '/api/v1/tickets',
14
            type: 'POST',
15
            data: JSON.stringify(params),
16
            success: function(data) {
17
                $('#addConcernModal').modal('hide');
18
19
                if ($.fn.dataTable.isDataTable("#table_concerns")) {
20
                    $("#table_concerns").DataTable().ajax.reload();
21
                }
22
            },
23
            contentType: "json"
24
        });
25
    });
26
});
(-)a/mainpage.pl (-2 / +1 lines)
Lines 104-110 my $pending_article_requests = Koha::ArticleRequests->search_limited( Link Here
104
)->count;
104
)->count;
105
my $pending_problem_reports = Koha::ProblemReports->search({ status => 'New' });
105
my $pending_problem_reports = Koha::ProblemReports->search({ status => 'New' });
106
106
107
if ( C4::Context->preference('OpacCatalogConcerns') ) {
107
if ( C4::Context->preference('OpacCatalogConcerns') || C4::Context->preference('CatalogConcerns') ) {
108
    my $pending_biblio_tickets = Koha::Tickets->search(
108
    my $pending_biblio_tickets = Koha::Tickets->search(
109
        {
109
        {
110
            resolved_date => undef,
110
            resolved_date => undef,
111
- 

Return to bug 31028