OPAC now show a systempref variable in main/home screen => easier to change for a library.

This commit is contained in:
tipaul 2003-12-15 14:39:52 +00:00
parent 3d031f028b
commit abebb31d30
3 changed files with 17 additions and 4 deletions

View file

@ -48,9 +48,7 @@ a {
<tr valign=top >
<td align="right">
<img src="<!-- TMPL_VAR NAME='themelang' -->/images/holder.gif" width=1 height=30 alt=" " hspace=0 vspace=0>
<i><b>Koha<br/>
Free Software ILS<br/><br/></b>
Koha : a gift, a contribution<br/> in Maori</i>
<TMPL_VAR name="LibraryName">
</td>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="<!-- TMPL_VAR NAME='themelang' -->/images/front-arrow.gif" border=0>

View file

@ -33,5 +33,7 @@ my ($template, $borrowernumber, $cookie)
flagsrequired => {borrow => 1},
});
$template->param(CGIitemtype => $CGIitemtype);
$template->param(CGIitemtype => $CGIitemtype,
LibraryName => C4::Context->preference("LibraryName"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View file

@ -353,6 +353,16 @@ my %tabledata = (
},
],
systempreferences => [
{
uniquefieldrequired => 'variable',
forceupdate => { 'explanation' => 1,
'type' => 1 },
variable => 'LibraryName',
value => '<i><b>Koha<br/>Free Software ILS<br/><br/></b>Koha : a gift, a contribution<br/> in Maori</i>',
explanation => 'Library name as shown on main opac page',
type => ''
},
{
uniquefieldrequired => 'variable',
forceupdate => { 'explanation' => 1,
@ -971,6 +981,9 @@ $sth->finish;
exit;
# $Log$
# Revision 1.70 2003/12/15 14:40:09 tipaul
# OPAC now show a systempref variable in main/home screen => easier to change for a library.
#
# Revision 1.69 2003/12/04 12:51:41 tipaul
# setting default acquisition to NORMAL, which is better, imho (it's always possible to add a biblio directly through catalogue menu entry)
#