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

(-)a/cataloguing/cataloging-home.pl (+1 lines)
Lines 43-48 my $servers = Koha::Z3950Servers->search( Link Here
43
);
43
);
44
44
45
my $frameworks = Koha::BiblioFrameworks->search({}, { order_by => ['frameworktext'] });
45
my $frameworks = Koha::BiblioFrameworks->search({}, { order_by => ['frameworktext'] });
46
$template->param( fast_cataloging => 1 ) if $frameworks->find({ frameworkcode => 'FA' });
46
47
47
$template->param(
48
$template->param(
48
    servers           => $servers,
49
    servers           => $servers,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt (-1 / +7 lines)
Lines 164-170 Link Here
164
164
165
                    <div class="col-sm-4 col-md-4">
165
                    <div class="col-sm-4 col-md-4">
166
166
167
                        [% IF ( CAN_user_tools_label_creator || CAN_user_tools_upload_local_cover_images ) %]
167
                        [% IF ( CAN_user_tools_label_creator || CAN_user_tools_upload_local_cover_images || ( fast_cataloging && CAN_user_editcatalogue_fast_cataloging  ) ) %]
168
                        <h3>Tools</h3>
168
                        <h3>Tools</h3>
169
                        <ul class="buttons-list">
169
                        <ul class="buttons-list">
170
                            [% IF ( CAN_user_tools_label_creator ) %]
170
                            [% IF ( CAN_user_tools_label_creator ) %]
Lines 187-192 Link Here
187
                            </li>
187
                            </li>
188
                            [% END %]
188
                            [% END %]
189
189
190
                            [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
191
                            <li>
192
                                <a class="circ-button" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA"><i class="fa fa-plus"></i> Fast cataloging</a>
193
                            </li>
194
                            [% END %]
195
190
                        </ul>
196
                        </ul>
191
                        [% END %]
197
                        [% END %]
192
198
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-1 / +1 lines)
Lines 124-130 Link Here
124
                            </li>
124
                            </li>
125
                            [% END %]
125
                            [% END %]
126
126
127
                            [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
127
                            [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items || ( fast_cataloging && CAN_user_editcatalogue_fast_cataloging ) ) %]
128
                            <li>
128
                            <li>
129
                                <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/cataloging-home.pl"><i class="fa fa-fw fa-tag"></i>Cataloging</a>
129
                                <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/cataloging-home.pl"><i class="fa fa-fw fa-tag"></i>Cataloging</a>
130
                            </li>
130
                            </li>
(-)a/mainpage.pl (-1 / +4 lines)
Lines 30-35 use Koha::Patron::Modifications; Link Here
30
use Koha::Patron::Discharge;
30
use Koha::Patron::Discharge;
31
use Koha::Reviews;
31
use Koha::Reviews;
32
use Koha::ArticleRequests;
32
use Koha::ArticleRequests;
33
use Koha::BiblioFrameworks;
33
use Koha::ProblemReports;
34
use Koha::ProblemReports;
34
use Koha::Quotes;
35
use Koha::Quotes;
35
use Koha::Suggestions;
36
use Koha::Suggestions;
Lines 50-55 my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user( Link Here
50
51
51
my $logged_in_user = Koha::Patrons->find($loggedinuser);
52
my $logged_in_user = Koha::Patrons->find($loggedinuser);
52
53
54
# Checking if there is a Fast Cataloging Framework
55
$template->param( fast_cataloging => 1 ) if Koha::BiblioFrameworks->find( 'FA' );
56
53
my $homebranch;
57
my $homebranch;
54
if (C4::Context->userenv) {
58
if (C4::Context->userenv) {
55
    $homebranch = C4::Context->userenv->{'branch'};
59
    $homebranch = C4::Context->userenv->{'branch'};
56
- 

Return to bug 33133