|
Lines 27-33
return {
Link Here
|
| 27 |
} |
27 |
} |
| 28 |
|
28 |
|
| 29 |
$sth->execute( 'Collections', 'ccode', 'collection-code'); |
29 |
$sth->execute( 'Collections', 'ccode', 'collection-code'); |
| 30 |
$sth->execute( 'Holding libraries', 'holdingbranch', 'holdinglibrary'); |
30 |
|
| 31 |
$sth->execute( 'Home libraries', 'homebranch', 'homelibrary'); |
31 |
# Deal with DisplayLibraryFacets |
|
|
32 |
my ($DisplayLibraryFacets) = $dbh->selectrow_array(q{ |
| 33 |
SELECT value FROM systempreferences WHERE variable='DisplayLibraryFacets' |
| 34 |
}); |
| 35 |
my ($homebranch, $holdingbranch); |
| 36 |
if ( $DisplayLibraryFacets eq 'both' ) { |
| 37 |
$homebranch = 1; |
| 38 |
$holdingbranch = 1; |
| 39 |
} elsif ( $DisplayLibraryFacets eq 'holding' ) { |
| 40 |
$holdingbranch = 1; |
| 41 |
} elsif ( $DisplayLibraryFacets eq 'home' ) { |
| 42 |
$homebranch = 1; |
| 43 |
} |
| 44 |
$sth->execute( 'Holding libraries', 'holdingbranch', 'holdinglibrary') if $holdingbranch; |
| 45 |
$sth->execute( 'Home libraries', 'homebranch', 'homelibrary') if $homebranch; |
| 46 |
|
| 32 |
}, |
47 |
}, |
| 33 |
}; |
48 |
}; |