MT 2050, Follow-up, Fast Cataloging

Adds granular permissions for cataloging
Also adds a link from the circulation home to fast cataloging when fast cataloging is active
This commit is contained in:
Matthias Meusburger 2009-11-23 14:44:51 +01:00 committed by Henri-Damien LAURENT
parent ce3adab2ee
commit 9f41fe64be
89 changed files with 130 additions and 91 deletions

View File

@ -40,7 +40,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => 'edit_catalogue'},
debug => 0,
}
);

View File

@ -67,7 +67,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => 'edit_catalogue' },
}
);

View File

@ -48,7 +48,7 @@ my ($template, $loggedinuser, $cookie)
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => 'edit_catalogue'},
debug => 1,
});
$template->param("loop" => \@loop_suggests,

View File

@ -830,6 +830,8 @@ my $mode = $input->param('mode');
my $frameworkcode = $input->param('frameworkcode');
my $dbh = C4::Context->dbh;
my $userflags = ($frameworkcode eq 'FA') ? "fast_cataloging" : "edit_catalogue";
$frameworkcode = &GetFrameworkCode($biblionumber)
if ( $biblionumber and not($frameworkcode) );
@ -840,7 +842,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => $userflags },
}
);

View File

@ -49,7 +49,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => 'edit_catalogue' },
debug => 1,
}
);

View File

@ -75,16 +75,27 @@ my $biblionumber = $input->param('biblionumber');
my $itemnumber = $input->param('itemnumber');
my $op = $input->param('op');
my $frameworkcode = &GetFrameworkCode($biblionumber);
# Defining which userflag is needing according to the framework currently used
my $userflags;
if (defined $input->param('frameworkcode')) {
$userflags = ($input->param('frameworkcode') eq 'FA') ? "fast_cataloging" : "edit_catalogue";
}
if (not defined $userflags) {
$userflags = ($frameworkcode eq 'FA') ? "fast_cataloging" : "edit_catalogue";
}
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "cataloguing/additem.tmpl",
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => $userflags},
debug => 1,
});
my $frameworkcode = &GetFrameworkCode($biblionumber);
my $today_iso = C4::Dates->today('iso');
$template->param(today_iso => $today_iso);

View File

@ -39,7 +39,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => 'edit_catalogue' },
}
);

View File

@ -47,7 +47,7 @@ my ($template, $loggedinuser, $cookie)
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => 'edit_catalogue'},
debug => 1,
});

View File

@ -176,7 +176,7 @@ my ($input) = @_;
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
$template->param(BIGLOOP=>\@BIGLOOP);

View File

@ -75,7 +75,7 @@ sub plugin {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => '*' },
debug => 1,
}
);

View File

@ -76,7 +76,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
$result = "ta" unless $result;

View File

@ -88,7 +88,7 @@ sub plugin {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => '*' },
debug => 1,
}
);

View File

@ -84,7 +84,7 @@ sub plugin {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
$result = "$dateentered".'|| aca||aabn | a|a d' unless $result;

View File

@ -78,7 +78,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
$result = " nam a22 7a 4500" unless $result;

View File

@ -78,7 +78,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
$result = " nz a22 n 4500" unless $result;

View File

@ -75,7 +75,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
$result = " nam 7a " unless $result;

View File

@ -75,7 +75,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
$result = " nmm 7a " unless $result;

View File

@ -75,7 +75,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
$result = " ngm 7a " unless $result;

View File

@ -82,7 +82,7 @@ sub plugin {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});

View File

@ -77,7 +77,7 @@ sub plugin {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => '*' },
debug => 1,
}
);

View File

@ -72,7 +72,7 @@ sub plugin {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -70,7 +70,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -70,7 +70,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -79,7 +79,7 @@ sub plugin {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => '*' },
debug => 1,
}
);

View File

@ -73,7 +73,7 @@ sub plugin {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => '*' },
debug => 1,
}
);

View File

@ -72,7 +72,7 @@ sub plugin {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => '*' },
debug => 1,
}
);

View File

@ -69,7 +69,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,2);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -73,7 +73,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -73,7 +73,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -76,7 +76,7 @@ sub plugin {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
}
);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,8);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -73,7 +73,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,2);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,2);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,8);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,8);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,2);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,2);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,2);

View File

@ -73,7 +73,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,2);

View File

@ -73,7 +73,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -72,7 +72,7 @@ my ($template, $loggedinuser, $cookie)
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
my $f1 = substr($result,0,1);

View File

@ -140,7 +140,7 @@ my ($input) = @_;
query => $query,
type => 'intranet',
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
@ -202,7 +202,7 @@ my ($input) = @_;
query => $query,
type => 'intranet',
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});

View File

@ -116,7 +116,7 @@ sub plugin {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => '*' },
debug => 1,
}
);

View File

@ -95,7 +95,7 @@ sub plugin {
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => '*' },
debug => 1,
}
);

View File

@ -79,7 +79,7 @@ my ($input) = @_;
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
$template->param(index => $index,

View File

@ -87,7 +87,7 @@ my ($input) = @_;
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => {editcatalogue => 1},
flagsrequired => {editcatalogue => '*'},
debug => 1,
});
$template->param(index => $index,

View File

@ -77,7 +77,7 @@ sub plugin {
query => $input,
type => "intranet",
authnotrequired => 0,
flagsrequired => { editcatalogue => 1 },
flagsrequired => { editcatalogue => '*' },
debug => 1,
}
);

View File

@ -21,7 +21,7 @@ use CGI;
use C4::Auth;
use C4::Output;
use C4::Context;
use C4::Koha;
my $query = new CGI;
my ($template, $loggedinuser, $cookie)
@ -32,4 +32,9 @@ my ($template, $loggedinuser, $cookie)
flagsrequired => {circulate => "circulate_remaining_permissions"},
});
# Checking if there is a Fast Cataloging Framework
my $fa = getframeworkinfo('FA');
$template->param({ fast_cataloging => 1 }) if (defined $fa);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -1,6 +1,8 @@
INSERT INTO permissions (module_bit, code, description) VALUES
( 1, 'circulate_remaining_permissions', 'Remaining circulation permissions'),
( 1, 'override_renewals', 'Override blocked renewals'),
( 9, 'edit_catalogue', 'Edit catalogue'),
( 9, 'fast_cataloging', 'Fast cataloging'),
(11, 'vendors_manage', 'Manage vendors'),
(11, 'contracts_manage', 'Manage contracts'),
(11, 'period_manage', 'Manage periods'),

View File

@ -1,6 +1,8 @@
INSERT INTO permissions (module_bit, code, description) VALUES
( 1, 'circulate_remaining_permissions', 'Remaining circulation permissions'),
( 1, 'override_renewals', 'Override blocked renewals'),
( 9, 'edit_catalogue', 'Editer le catalogue'),
( 9, 'fast_cataloging', 'Catalogage rapide'),
(13, 'edit_news', 'Write news for the OPAC and staff interfaces'),
(13, 'label_creator', 'Create printable labels and barcodes from catalog and patron data'),
(13, 'edit_calendar', 'Define days when the library is closed'),

View File

@ -3291,6 +3291,18 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion ($DBversion);
}
$DBversion = "3.01.00.128";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do(qq{
INSERT INTO `permissions` (`module_bit`, `code`, `description`) VALUES
(9, 'edit_catalogue', 'Edit catalogue'),
(9, 'fast_cataloging', 'Fast cataloging')
});
print "Upgrade to $DBversion done (granular permissions for cataloging added)\n";
SetVersion ($DBversion);
}
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table

View File

@ -2,7 +2,7 @@
<script type="text/javascript">
//<![CDATA[
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
/* this function open a popup to search on z3950 server. */
function PopupZ3950() {
var strQuery = GetZ3950Terms();
@ -156,7 +156,7 @@ function confirm_items_deletion() {
<form method="post" name="f" id="f" action="/cgi-bin/koha/cataloguing/addbiblio.pl" onsubmit="return Check();">
<ul class="toolbar">
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
<li id="newmenuc"><a id="newbiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl">New Record</a></li>
<li><a id="newitem" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">New Item</a></li>
<li><a id="newsub" href="/cgi-bin/koha/serials/subscription-add.pl?biblionumber_for_new_subscription=<!-- TMPL_VAR NAME="biblionumber" -->">New Subscription</a></li>
@ -171,7 +171,7 @@ function confirm_items_deletion() {
<!-- TMPL_UNLESS name="bi_notforloan" -->
<!-- TMPL_UNLESS NAME="norequests" --><li><a id="placehold" href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Place Hold</a></li><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue" --><li id="z3950searchc"><input type="button" id="z3950search" value="z39.50 Search" onclick="PopupZ3950(); return false;" /></li><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" --><li id="z3950searchc"><input type="button" id="z3950search" value="z39.50 Search" onclick="PopupZ3950(); return false;" /></li><!-- /TMPL_IF -->
</ul>
</form>
</div>

View File

@ -13,7 +13,7 @@
<div class="bd">
<ul>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
<li><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_acquisition" -->

View File

@ -43,7 +43,7 @@
</ul></li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
<li><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a><ul>
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl">Add MARC Record</a></li>
<li><a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a></li>

View File

@ -42,7 +42,7 @@
<!-- TMPL_LOOP NAME="ITEM_DATA" -->
<div class="yui-g">
<h3 id="item<!-- TMPL_VAR NAME="itemnumber" -->">Barcode <!-- TMPL_VAR NAME="barcode" --> <!-- TMPL_IF name="notforloantext" --><!-- TMPL_VAR name="notforloantext" --> <!-- /TMPL_IF --></h3>
<div class="listgroup"><h4>Item Information <!-- TMPL_IF NAME="CAN_user_editcatalogue" --><!-- TMPL_UNLESS name="nomod" --><a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->">[Edit Items]</a><!-- /TMPL_IF --><!-- /TMPL_UNLESS --></h4>
<div class="listgroup"><h4>Item Information <!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" --><!-- TMPL_UNLESS name="nomod" --><a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->">[Edit Items]</a><!-- /TMPL_IF --><!-- /TMPL_UNLESS --></h4>
<ol class="bibliodetails">
<li><span class="label">Home Library:</span> <!-- TMPL_VAR NAME="homebranchname" -->&nbsp;</li>
<!-- TMPL_IF NAME="item-level_itypes" -->
@ -140,7 +140,7 @@
<ol class="bibliodetails">
<li><span class="label">
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
Accession Date:</span> <a href="/cgi-bin/koha/acqui/basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->"><!-- TMPL_VAR NAME="dateaccessioned" --></a>
<!-- TMPL_ELSE -->
<!-- TMPL_VAR NAME="dateaccessioned" -->

View File

@ -236,7 +236,7 @@ function GetZ3950Terms(){
<!-- /TMPL_IF -->
<span class="addto"></span>
<!-- TMPL_IF NAME="CAN_user_editcatalogue" --><input type="button" onclick="PopupZ3950(); return false;" value="z39.50 Search"/><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" --><input type="button" onclick="PopupZ3950(); return false;" value="z39.50 Search"/><!-- /TMPL_IF -->
</div>
</div>
<!-- TMPL_IF NAME="stopwords_removed" --><div><p class="tip">Ignored the following common words: "<!-- TMPL_VAR NAME="stopwords_removed" -->"<p></div><!-- /TMPL_IF -->

View File

@ -98,7 +98,7 @@
</td>
<td> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=<!-- TMPL_VAR NAME="biblionumber" -->" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=<!-- TMPL_VAR NAME="biblionumber" -->" title="MARC" rel="gb_page_center[600,500]">Card</a>
</td>
<td><!-- TMPL_IF NAME="CAN_user_editcatalogue"--><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Edit biblio</a>
<td><!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue"--><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Edit biblio</a>
<!-- TMPL_ELSE --><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" class="disabled" onclick="return false;">Edit biblio</a>
<!-- /TMPL_IF -->
@ -149,7 +149,7 @@
</td>
<td><!-- TMPL_IF NAME="NOTMARC" -->
<!-- TMPL_ELSE -->
<a href="/cgi-bin/koha/cataloguing/addbiblio.pl?breedingid=<!-- TMPL_VAR NAME="id" -->" <!-- TMPL_UNLESS NAME="CAN_user_editcatalogue" --> class="disabled" onclick="return false;"<!-- /TMPL_UNLESS -->>Add biblio</a>
<a href="/cgi-bin/koha/cataloguing/addbiblio.pl?breedingid=<!-- TMPL_VAR NAME="id" -->" <!-- TMPL_UNLESS NAME="CAN_user_editcatalogue_edit_catalogue" --> class="disabled" onclick="return false;"<!-- /TMPL_UNLESS -->>Add biblio</a>
<!-- /TMPL_IF --></td>
</tr>
<!-- /TMPL_LOOP -->

View File

@ -21,6 +21,11 @@
<li><a href="/cgi-bin/koha/circ/returns.pl">Check In</a></li>
<li><a href="/cgi-bin/koha/circ/branchtransfers.pl">Transfer</a></li>
<!-- TMPL_IF NAME="AutoLocation" --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="IndependantBranches" --><!-- TMPL_ELSE --><li><a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a></li><!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="fast_cataloging" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_fast_cataloging" -->
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA">Fast cataloging</a></li>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</ul>
</div>

View File

@ -70,7 +70,7 @@
<div class="yui-u">
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
<h3><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl">Add MARC Record</a></li>

View File

@ -70,7 +70,7 @@
<div class="yui-u">
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
<h3><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl">Add MARC Record</a></li>

View File

@ -70,7 +70,7 @@
<div class="yui-u">
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
<h3><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl">Add MARC Record</a></li>

View File

@ -70,7 +70,7 @@
<div class="yui-u">
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
<h3><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl">Add MARC Record</a></li>

View File

@ -70,7 +70,7 @@
<div class="yui-u">
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
<h3><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl">Add MARC Record</a></li>

View File

@ -70,7 +70,7 @@
<div class="yui-u">
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
<h3><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl">Add MARC Record</a></li>

View File

@ -70,7 +70,7 @@
<div class="yui-u">
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
<h3><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl">Add MARC Record</a></li>

View File

@ -54,7 +54,7 @@
</div>
<div class="yui-u">
<!-- TMPL_IF NAME="CAN_user_editcatalogue" -->
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
<h3><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></h3>
<ul>
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl">Add MARC Record</a></li>

View File

@ -43,7 +43,7 @@ my $query = new CGI;
# web browser, but instead should be stored and submitted by biblios.
my ($status, $cookie, $sessionID) = check_api_auth($query, { editcatalogue => 1} );
my ($status, $cookie, $sessionID) = check_api_auth($query, { editcatalogue => 'edit_catalogue'} );
if ($status eq "ok") {
print $query->header(-type => 'text/xml', cookie => $cookie);

View File

@ -29,7 +29,7 @@ use XML::Simple;
my $query = new CGI;
binmode STDOUT, ":utf8";
my ($status, $cookie, $sessionID) = check_api_auth($query, { editcatalogue => 1} );
my ($status, $cookie, $sessionID) = check_api_auth($query, { editcatalogue => 'edit_catalogue'} );
unless ($status eq "ok") {
print $query->header(-type => 'text/xml', -status => '403 Forbidden');
print XMLout({ auth_status => $status }, NoAttr => 1, RootName => 'response', XMLDecl => 1);

View File

@ -29,7 +29,7 @@ use XML::Simple;
my $query = new CGI;
my ($status, $cookie, $sessionID) = check_api_auth($query, { editcatalogue => 1} );
my ($status, $cookie, $sessionID) = check_api_auth($query, { editcatalogue => 'edit_catalogue'} );
if ($status eq "ok") {
print $query->header(-type => 'text/xml', cookie => $cookie);

View File

@ -30,7 +30,7 @@ use C4::Charset;
my $query = new CGI;
binmode STDOUT, ":utf8";
my ($status, $cookie, $sessionID) = check_api_auth($query, { editcatalogue => 1} );
my ($status, $cookie, $sessionID) = check_api_auth($query, { editcatalogue => 'edit_catalogue'} );
unless ($status eq "ok") {
print $query->header(-type => 'text/xml', -status => '403 Forbidden');
print XMLout({ auth_status => $status }, NoAttr => 1, RootName => 'response', XMLDecl => 1);