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/modules/cataloguing/addbiblio.tt (-2 / +2 lines)
Lines 794-800 function PopupMARCFieldDoc(field) { Link Here
794
                <a href="/cgi-bin/koha/mainpage.pl">Home</a>
794
                <a href="/cgi-bin/koha/mainpage.pl">Home</a>
795
            </li>
795
            </li>
796
            <li>
796
            <li>
797
                <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
797
                <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
798
            </li>
798
            </li>
799
            <li>
799
            <li>
800
                <a href="#" aria-current="page">
800
                <a href="#" aria-current="page">
Lines 943-949 function PopupMARCFieldDoc(field) { Link Here
943
                            </div>
943
                            </div>
944
                        [% ELSE %]
944
                        [% ELSE %]
945
                            <div class="btn-group">
945
                            <div class="btn-group">
946
                                <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cancel</a>
946
                                <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cancel</a>
947
                            </div>
947
                            </div>
948
                        [% END %]
948
                        [% END %]
949
                        <div id="show-errors" class="btn-group"></div>
949
                        <div id="show-errors" class="btn-group"></div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-1 / +1 lines)
Lines 19-25 Link Here
19
        </li>
19
        </li>
20
        [% IF ( total || breeding_loop ) %]
20
        [% IF ( total || breeding_loop ) %]
21
            <li>
21
            <li>
22
                <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
22
                <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
23
            </li>
23
            </li>
24
            <li>
24
            <li>
25
                <a href="#" aria-current="page">Search results</a>
25
                <a href="#" aria-current="page">Search results</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-1 / +1 lines)
Lines 38-44 Link Here
38
          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
38
          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
39
        </li>
39
        </li>
40
        <li>
40
        <li>
41
            <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
41
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
42
        </li>
42
        </li>
43
        <li>
43
        <li>
44
            <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>
44
            <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 (+144 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
                    [% IF Koha.Preference( 'EnableAdvancedCatalogingEditor' ) == 1 && CAN_user_editcatalogue_advanced_editor %]
30
                    <a id="useadvanced" href="/cgi-bin/koha/cataloguing/editor.pl" class="btn btn-default"><i class="fa fa-pencil"></i> Advanced editor</a>
31
                    [% END %]
32
                    <div class="btn-group">
33
                        <button class="btn btn-default" id="newRecord"><i class="fa fa-plus"></i> New record</button>
34
                        <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
35
                        <ul class="dropdown-menu">
36
                            <li><a id="newRecordDefault" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li>
37
                            [% FOREACH framework IN frameworks %]
38
                            <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li>
39
                            [% END %]
40
                        </ul>
41
                    </div>
42
                    [% IF servers.count > 0 %]
43
                    <div class="btn-group">
44
                        <button class="btn btn-default" id="z3950search"><i class="fa fa-search"></i> New from Z39.50/SRU</button>
45
                        <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
46
                        <ul class="dropdown-menu">
47
                            <li id="Default" class="z3950searchFw"><a href="#">Default framework</a></li>
48
                            [% FOREACH framework IN frameworks %]
49
                            <li id="[% framework.frameworkcode | html %]" class="z3950searchFw"><a href="#">[% framework.frameworktext | html %]</a></li>
50
                            [% END %]
51
                        </ul>
52
                    </div>
53
                    [% END # /IF servers.count %]
54
                </div> <!-- /#toolbar -->
55
                [% END # /IF CAN_user_editcatalogue_edit_catalogue %]
56
          
57
                <h1>Cataloging</h1>
58
59
                <div class="row">
60
                    <div class="col-sm-5 col-md-4">
61
                        <h3>Import</h3>
62
        
63
                        <ul class="buttons-list">
64
                            [% IF ( CAN_user_tools_stage_marc_import ) %]
65
                            <li>
66
                                <a class="circ-button" href="/cgi-bin/koha/tools/stage-marc-import.pl"><i class="fa fa-download"></i> Stage records for import</a>
67
                            </li>
68
                            [% END %]
69
        
70
                            [% IF ( CAN_user_tools_manage_staged_marc ) %]
71
                            <li>
72
                                <a class="circ-button" href="/cgi-bin/koha/tools/manage-marc-import.pl"><i class="fa fa-tasks"></i> Manage staged records</a>
73
                            </li>
74
                            [% END %]
75
                        </ul>
76
        
77
                        <h3>Export</h3>
78
        
79
                        <ul class="buttons-list">
80
                            [% IF ( CAN_user_tools_export_catalog ) %]
81
                            <li>
82
                                <a class="circ-button" href="/cgi-bin/koha/tools/export.pl"><i class="fa fa-upload"></i> Export catalog data</a>
83
                            </li>
84
                            [% END %]
85
                        </ul>
86
        
87
                    </div>
88
        
89
                    <div class="col-sm-5 col-md-4">
90
                        <h3>Batch editing</h3>
91
        
92
                        <ul class="buttons-list">
93
                            [% IF ( CAN_user_tools_items_batchmod ) %]
94
                            <li>
95
                                <a class="circ-button" href="/cgi-bin/koha/tools/batchMod.pl"><i class="fa fa-hand-grab-o"></i> Batch item modification</a>
96
                            </li>
97
                            [% END %]
98
                            [% IF ( CAN_user_tools_items_batchdel ) %]
99
                            <li>
100
                                <a class="circ-button" href="/cgi-bin/koha/tools/batchMod.pl?del=1"><i class="fa fa-trash"></i> Batch item deletion</a>
101
                            </li>
102
                            [% END %]
103
                            [% IF CAN_user_tools_records_batchmod %]
104
                            <li>
105
                                <a class="circ-button" href="/cgi-bin/koha/tools/batch_record_modification.pl"><i class="fa fa-line-chart"></i> Batch record modification</a>
106
                            </li>
107
                            [% END %]
108
                            [% IF CAN_user_tools_records_batchdel %]
109
                            <li>
110
                                <a class="circ-button" href="/cgi-bin/koha/tools/batch_delete_records.pl"><i class="fa fa-trash"></i> Batch record deletion</a>
111
                            </li>
112
                            [% END %]
113
                        </ul>
114
        
115
                        <h3>Automations</h3>
116
        
117
                        <ul class="buttons-list">
118
                            [% IF ( CAN_user_tools_items_batchmod ) %]
119
                            <li>
120
                                <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>
121
                            </li>
122
                            [% END %]
123
                        </ul>
124
                    </div>
125
        
126
                    <!-- Add the extra clearfix for only the required viewport -->
127
                    <div class="clearfix visible-sm-block"></div>
128
        
129
                    <div class="col-sm-5 col-md-4">
130
                        <h3>Reports</h3>
131
        
132
                        <ul class="buttons-list">
133
                            [% IF ( CAN_user_tools_inventory ) %]
134
                            <li>
135
                                <a class="circ-button" href="/cgi-bin/koha/tools/inventory.pl"><i class="fa fa-line-chart"></i> Inventory</a>
136
                            </li>
137
                            [% END %]
138
                        </ul>
139
                    </div>
140
                </div>
141
            </div>
142
        </div>
143
144
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt (-1 / +1 lines)
Lines 24-30 Link Here
24
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
25
        </li>
25
        </li>
26
        <li>
26
        <li>
27
            <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
27
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
28
        </li>
28
        </li>
29
        <li>
29
        <li>
30
            <a href="#" aria-current="page">
30
            <a href="#" aria-current="page">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/linkitem.tt (-1 / +1 lines)
Lines 12-18 Link Here
12
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
12
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
13
        </li>
13
        </li>
14
        <li>
14
        <li>
15
            <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
15
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
16
        </li>
16
        </li>
17
        <li>
17
        <li>
18
            <a href="#" aria-current="page">
18
            <a href="#" aria-current="page">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt (-1 / +1 lines)
Lines 24-30 div#result { margin-top: 1em; } Link Here
24
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
25
        </li>
25
        </li>
26
        <li>
26
        <li>
27
            <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
27
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
28
        </li>
28
        </li>
29
        <li>
29
        <li>
30
            <a href="#" aria-current="page">
30
            <a href="#" aria-current="page">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-2 / +1 lines)
Lines 120-126 Link Here
120
120
121
                            [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
121
                            [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
122
                            <li>
122
                            <li>
123
                                <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl"><i class="fa fa-fw fa-tag"></i>Cataloging</a>
123
                                <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/cataloging-home.pl"><i class="fa fa-fw fa-tag"></i>Cataloging</a>
124
                            </li>
124
                            </li>
125
                            [% END %]
125
                            [% END %]
126
126
127
- 

Return to bug 31162