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

(-)a/catalogue/stockrotation.pl (+6 lines)
Lines 39-44 use Koha::Util::StockRotation qw(:ALL); Link Here
39
39
40
my $input = new CGI;
40
my $input = new CGI;
41
41
42
unless (C4::Context->preference('StockRotation')) {
43
    # redirect to Intranet home if self-check is not enabled
44
    print $input->redirect("/cgi-bin/koha/mainpage.pl");
45
    exit;
46
}
47
42
my %params = $input->Vars();
48
my %params = $input->Vars();
43
49
44
my $op = $params{op};
50
my $op = $params{op};
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc (-1 / +1 lines)
Lines 40-46 Link Here
40
[% IF ( issuehistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]
40
[% IF ( issuehistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]
41
<a href="/cgi-bin/koha/catalogue/issuehistory.pl?biblionumber=[% biblio_object_id | url  %]" >Checkout history</a></li>
41
<a href="/cgi-bin/koha/catalogue/issuehistory.pl?biblionumber=[% biblio_object_id | url  %]" >Checkout history</a></li>
42
[% IF ( CAN_user_tools_view_system_logs ) %][% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&amp;modules=CATALOGUING&amp;action=MODIFY&amp;object=[% biblio_object_id | url  %]">Modification log</a> </li>[% END %]
42
[% IF ( CAN_user_tools_view_system_logs ) %][% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&amp;modules=CATALOGUING&amp;action=MODIFY&amp;object=[% biblio_object_id | url  %]">Modification log</a> </li>[% END %]
43
[% IF ( CAN_user_stockrotation_can_add_items_rotas ) %][% IF ( stockrotationview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/catalogue/stockrotation.pl?biblionumber=[% biblio_object_id %]">Rota</a> </li>[% END %]
43
[% IF ( CAN_user_stockrotation_can_add_items_rotas && Koha.Preference('StockRotation') ) %][% IF ( stockrotationview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/catalogue/stockrotation.pl?biblionumber=[% biblio_object_id %]">Rota</a> </li>[% END %]
44
</ul>
44
</ul>
45
</div>
45
</div>
46
46
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc (-1 / +20 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
2
3
<script type="text/javascript">//<![CDATA[
4
    $(document).ready(function() {
5
        var path = location.pathname.substring(1);
6
        if (path.indexOf("labels") >= 0 && path.indexOf("spine") < 0 ) {
7
          $('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').css('font-weight','bold');
8
        } else if (path.indexOf("patroncards") >= 0 ) {
9
          $('#navmenulist a[href$="/cgi-bin/koha/patroncards/home.pl"]').css('font-weight','bold');
10
        } else if (path.indexOf("patron_lists") >= 0 ) {
11
          $('#navmenulist a[href$="/cgi-bin/koha/patron_lists/lists.pl"]').css('font-weight','bold');
12
        } else if ((path+location.search).indexOf("batchMod.pl?del=1") >= 0 ) {
13
          $('#navmenulist a[href$="/cgi-bin/koha/tools/batchMod.pl?del=1"]').css('font-weight','bold');
14
        } else {
15
          $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold');
16
        }
17
    });
18
//]]>
19
</script>
1
<div id="navmenu">
20
<div id="navmenu">
2
<div id="navmenulist">
21
<div id="navmenulist">
3
<ul>
22
<ul>
Lines 38-44 Link Here
38
    [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
57
    [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
39
	<li><a href="/cgi-bin/koha/tools/picture-upload.pl">Upload patron images</a></li>
58
	<li><a href="/cgi-bin/koha/tools/picture-upload.pl">Upload patron images</a></li>
40
    [% END %]
59
    [% END %]
41
    [% IF ( CAN_user_stockrotation_can_edit_rotas ) %]
60
    [% IF ( CAN_user_stockrotation_can_edit_rotas && Koha.Preference('StockRotation') ) %]
42
    <li><a href="/cgi-bin/koha/tools/stockrotation.pl">Stock rotation</a></li>
61
    <li><a href="/cgi-bin/koha/tools/stockrotation.pl">Stock rotation</a></li>
43
    [% END %]
62
    [% END %]
44
</ul>
63
</ul>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt (-1 / +3 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
2
1
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Tools</title>
4
<title>Koha &rsaquo; Tools</title>
3
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
Lines 70-76 Link Here
70
	<dd>Upload patron images in a batch or one at a time</dd>
72
	<dd>Upload patron images in a batch or one at a time</dd>
71
    [% END %]
73
    [% END %]
72
74
73
    [% IF ( CAN_user_stockrotation_can_edit_rotas ) %]
75
    [% IF ( CAN_user_stockrotation_can_edit_rotas && Koha.Preference('StockRotation') ) %]
74
    <dt><a href="/cgi-bin/koha/tools/stockrotation.pl">Stock rotation</a></dt>
76
    <dt><a href="/cgi-bin/koha/tools/stockrotation.pl">Stock rotation</a></dt>
75
    <dd>Manage Stock rotation rotas, rota stages and rota items</dd>
77
    <dd>Manage Stock rotation rotas, rota stages and rota items</dd>
76
    [% END %]
78
    [% END %]
(-)a/tools/stockrotation.pl (-1 / +7 lines)
Lines 28-33 use Modern::Perl; Link Here
28
use CGI;
28
use CGI;
29
29
30
use C4::Auth;
30
use C4::Auth;
31
use C4::Context;
31
use C4::Output;
32
use C4::Output;
32
33
33
use Koha::Libraries;
34
use Koha::Libraries;
Lines 39-44 use Koha::Util::StockRotation qw(:ALL); Link Here
39
40
40
my $input = new CGI;
41
my $input = new CGI;
41
42
43
unless (C4::Context->preference('StockRotation')) {
44
    # redirect to Intranet home if self-check is not enabled
45
    print $input->redirect("/cgi-bin/koha/mainpage.pl");
46
    exit;
47
}
48
42
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
49
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
43
    {
50
    {
44
        template_name   => 'tools/stockrotation.tt',
51
        template_name   => 'tools/stockrotation.tt',
45
- 

Return to bug 11897