-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-dist.php
104 lines (86 loc) · 2.34 KB
/
config-dist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . '/home/lib/pear/PEAR');
// TODO: This should be replaced by calls to a database!
function get_config($lib=false) {
$c = array();
$c['debug'] = true;
$c['debug_feeds'] = true;
$c['max_records'] = 11;
$c['per_page'] = 4;
// Library independent settings
// $c['smarty_path'] = '/home/lib/Smarty-2.6.26/libs/Smarty.class.php';
$c['smarty_path'] = '/usr/share/php/smarty/Smarty.class.php';
if ($lib) {
$c['lib'] = get_lib($lib);
// Save the short form of the chosen library
$c['lib']['lib'] = $lib;
}
return $c;
}
function get_db_config() {
$db = array(
'hostname' => 'localhost',
'user' => 'your_db_user',
'database' => 'your_db_name',
'password' => 'your_password'
);
return $db;
}
function get_lib($lib=false){
//Libraries
$l = array();
$l['hig'] = array(
'name' => 'Høgskolen i Gjøvik',
'name_short' => 'HiG',
'records_max' => 11,
'records_per_page' => 4,
'system' => 'bibsys',
'z3950' => 'z3950.bibsys.no:2100/HIG',
'theme' => 'apple', // apple, jqt
'frontpage' => '<ul>
<li>Åpningstider:
<li>Man. - tor.: 08.30-18.00</li>
<li>Fre.: 08:30-15.30</li>
<li>Tlf: <a href="tel:+4761135131">+47 61 13 51 31</a></li>
<li>E-post: <a href="mailto:[email protected]">[email protected]</a></li>
</ul>',
'nav' => array(
'nytt' => array(
'type' => 'feed',
'title' => 'Nytt fra biblioteket',
'url' => 'http://blog.hig.no/endnote/feed/'
),
/*
'lenker' => array(
'type' => 'feed',
'title' => 'Lenker',
'url' => 'http://blog.hig.no/lenker/feed/'
)
*/
)
);
$l['deich'] = array(
'name' => 'Deichmanske bibliotek',
'name_short' => 'Deichmanske',
'records_max' => 11,
'records_per_page' => 4,
'system' => 'bibliofil',
'z3950' => 'z3950.deich.folkebibl.no:210/data',
'theme' => 'apple', // apple, jqt
);
$l['pode'] = array(
'name' => 'Pode testkatalog',
'name_short' => 'Pode',
'records_max' => 11,
'records_per_page' => 4,
'system' => 'koha',
'sru' => 'http://torfeus.deich.folkebibl.no:9999/biblios',
'item_url' => 'http://dev.bibpode.no/cgi-bin/koha/opac-detail.pl?biblionumber=',
'theme' => 'jqt', // apple, jqt
);
if ($lib) {
return $l[$lib];
}
return $l;
}
?>