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

(-)a/cataloguing/cataloging-home.pl (+52 lines)
Line 0 Link Here
1
#!/usr/bin/perl
2
3
# This file is part of Koha.
4
#
5
# Koha is free software; you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 3 of the License, or
8
# (at your option) any later version.
9
#
10
# Koha is distributed in the hope that it will be useful, but
11
# WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
14
#
15
# You should have received a copy of the GNU General Public License
16
# along with Koha; if not, see <http://www.gnu.org/licenses>.
17
#
18
19
use Modern::Perl;
20
use CGI qw ( -utf8 );
21
use C4::Auth qw( get_template_and_user );
22
use C4::Output qw( output_html_with_http_headers );
23
use C4::Context;
24
25
use Koha::BiblioFrameworks;
26
use Koha::Z3950Servers;
27
28
my $query = CGI->new;
29
my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user(
30
    {
31
        template_name   => "cataloguing/cataloging-home.tt",
32
        query           => $query,
33
        type            => "intranet",
34
        flagsrequired   => { editcatalogue => '*' },
35
    }
36
);
37
38
my $servers = Koha::Z3950Servers->search(
39
    {
40
        recordtype => 'biblio',
41
        servertype => ['zed','sru'],
42
    }
43
);
44
45
my $frameworks = Koha::BiblioFrameworks->search({}, { order_by => ['frameworktext'] });
46
47
$template->param(
48
    servers           => $servers,
49
    frameworks        => $frameworks
50
);
51
52
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc (-1 / +1 lines)
Lines 31-37 Link Here
31
                <ul class="dropdown-menu dropdown-menu-right">
31
                <ul class="dropdown-menu dropdown-menu-right">
32
                    <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
32
                    <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
33
                    [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
33
                    [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
34
                        <li><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></li>
34
                        <li><a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a></li>
35
                    [% END %]
35
                    [% END %]
36
                    [% IF ( CAN_user_acquisition ) %]
36
                    [% IF ( CAN_user_acquisition ) %]
37
                        <li><a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a></li>
37
                        <li><a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-2 / +2 lines)
Lines 804-810 function PopupMARCFieldDoc(field) { Link Here
804
                <a href="/cgi-bin/koha/mainpage.pl">Home</a>
804
                <a href="/cgi-bin/koha/mainpage.pl">Home</a>
805
            </li>
805
            </li>
806
            <li>
806
            <li>
807
                <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
807
                <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
808
            </li>
808
            </li>
809
            <li>
809
            <li>
810
                <a href="#" aria-current="page">
810
                <a href="#" aria-current="page">
Lines 953-959 function PopupMARCFieldDoc(field) { Link Here
953
                            </div>
953
                            </div>
954
                        [% ELSE %]
954
                        [% ELSE %]
955
                            <div class="btn-group">
955
                            <div class="btn-group">
956
                                <a class="btn btn-link" id="cancel" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cancel</a>
956
                                <a class="btn btn-link" id="cancel" href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cancel</a>
957
                            </div>
957
                            </div>
958
                        [% END %]
958
                        [% END %]
959
                        <div id="show-errors" class="btn-group"></div>
959
                        <div id="show-errors" class="btn-group"></div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-1 / +1 lines)
Lines 21-27 Link Here
21
        </li>
21
        </li>
22
        [% IF ( total || breeding_loop ) %]
22
        [% IF ( total || breeding_loop ) %]
23
            <li>
23
            <li>
24
                <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
24
                <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
25
            </li>
25
            </li>
26
            <li>
26
            <li>
27
                <a href="#" aria-current="page">Search results</a>
27
                <a href="#" aria-current="page">Search results</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-1 / +1 lines)
Lines 41-47 Link Here
41
          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
41
          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
42
        </li>
42
        </li>
43
        <li>
43
        <li>
44
            <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
44
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
45
        </li>
45
        </li>
46
        <li>
46
        <li>
47
            <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblio.biblionumber | uri %]">Edit <em>[% biblio.title | html %] [% IF ( biblio.author ) %] by [% biblio.author | html %][% END %] (Record #[% biblio.biblionumber | html %])</em></a>
47
            <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblio.biblionumber | uri %]">Edit <em>[% biblio.title | html %] [% IF ( biblio.author ) %] by [% biblio.author | html %][% END %] (Record #[% biblio.biblionumber | html %])</em></a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt (+182 lines)
Line 0 Link Here
1
[% USE raw %]
2
[% USE Koha %]
3
[% USE Branches %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Cataloging &rsaquo; Koha</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
9
<body id="cat_cataloging-home" class="cat">
10
    [% INCLUDE 'header.inc' %]
11
    [% INCLUDE 'cataloging-search.inc' %]
12
13
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
14
        <ol>
15
            <li>
16
                <a href="/cgi-bin/koha/mainpage.pl">Home</a>
17
            </li>
18
            <li>
19
                <a href="#" aria-current="page">Cataloging</a>
20
            </li>
21
        </ol>
22
    </nav>
23
24
    <div class="main container-fluid">
25
        <div class="row">
26
            <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
27
                [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
28
                <div id="toolbar" class="btn-toolbar">
29
                    <div class="btn-group">
30
                        <button class="btn btn-default" id="newRecord"><i class="fa fa-plus"></i> New record</button>
31
                        <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
32
                        <ul class="dropdown-menu">
33
                            <li><a id="newRecordDefault" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li>
34
                            [% FOREACH framework IN frameworks %]
35
                            <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li>
36
                            [% END %]
37
                        </ul>
38
                    </div>
39
                    [% IF servers.count > 0 %]
40
                    <div class="btn-group">
41
                        <button class="btn btn-default" id="z3950search"><i class="fa fa-search"></i> New from Z39.50/SRU</button>
42
                        <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
43
                        <ul class="dropdown-menu">
44
                            <li id="Default" class="z3950searchFw"><a href="#">Default framework</a></li>
45
                            [% FOREACH framework IN frameworks %]
46
                            <li id="[% framework.frameworkcode | html %]" class="z3950searchFw"><a href="#">[% framework.frameworktext | html %]</a></li>
47
                            [% END %]
48
                        </ul>
49
                    </div>
50
                    [% END # /IF servers.count %]
51
                </div> <!-- /#toolbar -->
52
                [% END # /IF CAN_user_editcatalogue_edit_catalogue %]
53
54
                <h1>Cataloging</h1>
55
56
                <div class="row">
57
58
                    <div class="col-sm-5 col-md-3">
59
                        <h3>New</h3>
60
61
                        <ul class="buttons-list">
62
                            [% IF Koha.Preference( 'EnableAdvancedCatalogingEditor' ) == 1 && CAN_user_editcatalogue_advanced_editor %]
63
                            <li>
64
                                <a class="circ-button" href="/cgi-bin/koha/cataloguing/editor.pl" class="btn btn-default"><i class="fa fa-pencil"></i> Advanced editor</a>
65
                            </li>
66
                            [% END %]
67
                        </ul>
68
69
                        <h3>Import</h3>
70
71
                        <ul class="buttons-list">
72
                            [% IF ( CAN_user_tools_stage_marc_import ) %]
73
                            <li>
74
                                <a class="circ-button" href="/cgi-bin/koha/tools/stage-marc-import.pl"><i class="fa fa-download"></i> Stage records for import</a>
75
                            </li>
76
                            [% END %]
77
78
                            [% IF ( CAN_user_tools_manage_staged_marc ) %]
79
                            <li>
80
                                <a class="circ-button" href="/cgi-bin/koha/tools/manage-marc-import.pl"><i class="fa fa-tasks"></i> Manage staged records</a>
81
                            </li>
82
                            [% END %]
83
                        </ul>
84
85
                        <h3>Export</h3>
86
87
                        <ul class="buttons-list">
88
                            [% IF ( CAN_user_tools_export_catalog ) %]
89
                            <li>
90
                                <a class="circ-button" href="/cgi-bin/koha/tools/export.pl"><i class="fa fa-upload"></i> Export catalog data</a>
91
                            </li>
92
                            [% END %]
93
                        </ul>
94
95
                    </div>
96
97
98
                    <div class="col-sm-5 col-md-3">
99
                        <h3>Batch editing</h3>
100
101
                        <ul class="buttons-list">
102
                            [% IF ( CAN_user_tools_items_batchmod ) %]
103
                            <li>
104
                                <a class="circ-button" href="/cgi-bin/koha/tools/batchMod.pl"><i class="fa fa-pencil"></i> Batch item modification</a>
105
                            </li>
106
                            [% END %]
107
                            [% IF ( CAN_user_tools_items_batchdel ) %]
108
                            <li>
109
                                <a class="circ-button" href="/cgi-bin/koha/tools/batchMod.pl?del=1"><i class="fa fa-trash"></i> Batch item deletion</a>
110
                            </li>
111
                            [% END %]
112
                            [% IF CAN_user_tools_records_batchmod %]
113
                            <li>
114
                                <a class="circ-button" href="/cgi-bin/koha/tools/batch_record_modification.pl"><i class="fa fa-pencil"></i> Batch record modification</a>
115
                            </li>
116
                            [% END %]
117
                            [% IF CAN_user_tools_records_batchdel %]
118
                            <li>
119
                                <a class="circ-button" href="/cgi-bin/koha/tools/batch_delete_records.pl"><i class="fa fa-trash"></i> Batch record deletion</a>
120
                            </li>
121
                            [% END %]
122
123
                            [% IF ( CAN_user_tools_marc_modification_templates ) %]
124
                            <li>
125
                                <a class="circ-button" href="/cgi-bin/koha/tools/marc_modification_templates.pl"><i class="fa fa-gear"></i> MARC modification templates</a>
126
                            </li>
127
                            [% END %]
128
                        </ul>
129
                    </div>
130
131
                    <div class="col-sm-5 col-md-3">
132
                        <h3>Automations</h3>
133
134
                        <ul class="buttons-list">
135
                            [% IF ( CAN_user_tools_items_batchmod ) %]
136
                            <li>
137
                                <a class="circ-button" href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl"><i class="fa fa-calendar"></i> Item modifications by age</a>
138
                            </li>
139
                            [% END %]
140
                            [% IF ( CAN_user_stockrotation_manage_rotas && Koha.Preference('StockRotation') ) %]
141
                            <li>
142
                                <a class="circ-button" href="/cgi-bin/koha/tools/stockrotation.pl"><i class="fa fa-refresh"></i> Stock rotation</a>
143
                            </li>
144
                            [% END %]
145
                        </ul>
146
                    </div>
147
148
                    <div class="col-sm-5 col-md-3">
149
                        <h3>Reports</h3>
150
151
                        <ul class="buttons-list">
152
                            [% IF ( CAN_user_tools_inventory ) %]
153
                            <li>
154
                                <a class="circ-button" href="/cgi-bin/koha/tools/inventory.pl"><i class="fa fa-line-chart"></i> Inventory</a>
155
                            </li>
156
                            [% END %]
157
                        </ul>
158
159
                        <h3>Tools</h3>
160
161
                        <ul class="buttons-list">
162
                            [% IF ( CAN_user_tools_label_creator ) %]
163
                            <li>
164
                                <a class="circ-button" href="/cgi-bin/koha/labels/label-home.pl"><i class="fa fa-hashtag"></i> Label creator</a>
165
                            </li>
166
167
                            <li>
168
                                <a class="circ-button" href="/cgi-bin/koha/labels/barcode-print.pl"><i class="fa fa-barcode"></i> Barcode image generator</a>
169
                            </li>
170
171
                            <li>
172
                                <a class="circ-button" href="/cgi-bin/koha/labels/spinelabel-home.pl"><i class="fa fa-hashtag"></i> Quick spine label creator</a>
173
                            </li>
174
                            [% END %]
175
176
                        </ul>
177
                    </div>
178
                </div>
179
            </div>
180
        </div>
181
182
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt (-1 / +1 lines)
Lines 27-33 Link Here
27
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
27
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
28
        </li>
28
        </li>
29
        <li>
29
        <li>
30
            <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
30
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
31
        </li>
31
        </li>
32
        <li>
32
        <li>
33
            <a href="#" aria-current="page">
33
            <a href="#" aria-current="page">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/linkitem.tt (-1 / +1 lines)
Lines 15-21 Link Here
15
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
15
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
16
        </li>
16
        </li>
17
        <li>
17
        <li>
18
            <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
18
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
19
        </li>
19
        </li>
20
        <li>
20
        <li>
21
            <a href="#" aria-current="page">
21
            <a href="#" aria-current="page">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt (-1 / +1 lines)
Lines 26-32 div#result { margin-top: 1em; } Link Here
26
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
26
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
27
        </li>
27
        </li>
28
        <li>
28
        <li>
29
            <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
29
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
30
        </li>
30
        </li>
31
        <li>
31
        <li>
32
            <a href="#" aria-current="page">
32
            <a href="#" aria-current="page">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-2 / +1 lines)
Lines 124-130 Link Here
124
124
125
                            [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
125
                            [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
126
                            <li>
126
                            <li>
127
                                <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl"><i class="fa fa-fw fa-tag"></i>Cataloging</a>
127
                                <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/cataloging-home.pl"><i class="fa fa-fw fa-tag"></i>Cataloging</a>
128
                            </li>
128
                            </li>
129
                            [% END %]
129
                            [% END %]
130
130
131
- 

Return to bug 31162