# if requested, create basket group, close it and attach the basket
if ($query->param('createbasketgroup')) {
my $branchcode;
- if(C4::Context->userenv and C4::Context->userenv->{'branch'}
- and C4::Context->userenv->{'branch'} ne "NO_LIBRARY_SET") {
+ if(C4::Context->userenv and C4::Context->userenv->{'branch'}) {
$branchcode = C4::Context->userenv->{'branch'};
}
my $basketgroupid = NewBasketgroup( { name => $basket->{basketname},
if ( $query->param('createbasketgroup') ) {
my $branchcode;
if ( C4::Context->userenv
- and C4::Context->userenv->{'branch'}
- and C4::Context->userenv->{'branch'} ne "NO_LIBRARY_SET" )
+ and C4::Context->userenv->{'branch'} )
{
$branchcode = C4::Context->userenv->{'branch'};
}
$template->param( restricted_to_own_library => not $can_edit_from_any_library );
$branch = C4::Context::mybranch() unless $can_edit_from_any_library;
-$branch = '*' if $branch eq 'NO_LIBRARY_SET';
-
my $op = $input->param('op') || q{};
my $language = C4::Languages::getlanguage();
}
}
- if ($currentbranch and $currentbranch ne "NO_LIBRARY_SET"
- and C4::Context->preference('SeparateHoldings')) {
+ if ($currentbranch and C4::Context->preference('SeparateHoldings')) {
if ($itembranchcode and $itembranchcode eq $currentbranch) {
push @itemloop, $item;
} else {
my $sessionID = $query->cookie("CGISESSID");
my $session;
$session = get_session($sessionID) if $sessionID;
- if (!$session or $session->param('branch') eq 'NO_LIBRARY_SET'){
+ if (!$session){
# no branch set we can't transfer
print $query->redirect("/cgi-bin/koha/circ/selectbranchprinter.pl");
exit;
my $sessionID = $query->cookie("CGISESSID") ;
my $session = get_session($sessionID);
-if (!C4::Context->userenv){
- if ($session->param('branch') eq 'NO_LIBRARY_SET'){
- # no branch set we can't issue
- print $query->redirect("/cgi-bin/koha/circ/selectbranchprinter.pl");
- exit;
- }
-}
my $barcodes = [];
my $barcode = $query->param('barcode');
my $sessionID = $query->cookie("CGISESSID");
my $session = get_session($sessionID);
-if ($session->param('branch') eq 'NO_LIBRARY_SET'){
- # no branch set we can't return
- print $query->redirect("/cgi-bin/koha/circ/selectbranchprinter.pl");
- exit;
-}
# Print a reserve slip on this page
if ( $query->param('print_slip') ) {
</brand>
[% ELSE %]
<strong>
- [% IF ( LoginBranchname == 'NO_LIBRARY_SET' ) %]
- NO LIBRARY SET
- [% ELSE %]
- <span class="logged-in-branch-name">[% LoginBranchname | html %]</span>
- <span class="logged-in-branch-code content_hidden">[% Branches.GetLoggedInBranchcode | html %]</span>
- [% END %]
+ <span class="logged-in-branch-name">[% LoginBranchname | html %]</span>
+ <span class="logged-in-branch-code content_hidden">[% Branches.GetLoggedInBranchcode | html %]</span>
</strong>
[% END %]
</span>
[% LoginBranchname | html %]
</brand>
[% ELSE %]
- [% IF ( LoginBranchname == 'NO_LIBRARY_SET' ) %]
- NO LIBRARY SET
- [% ELSE %]
- Location: <br />
- <span class="logged-in-branch-name">[% LoginBranchname | html %]</span>
- <span class="logged-in-branch-code content_hidden">[% Branches.GetLoggedInBranchcode | html %]</span>
- [% END %]
+ Location: <br />
+ <span class="logged-in-branch-name">[% LoginBranchname | html %]</span>
+ <span class="logged-in-branch-code content_hidden">[% Branches.GetLoggedInBranchcode | html %]</span>
[% END %]
</li>
: Koha::Libraries->search->count() == 1 ? undef
: undef;
$branch ||= q{};
-$branch = q{} if $branch eq 'NO_LIBRARY_SET';
my $op = $input->param('op');
$op ||= q{};