From abebb31d3012e52c652563f5ea11d74788b8bdd6 Mon Sep 17 00:00:00 2001 From: tipaul Date: Mon, 15 Dec 2003 14:39:52 +0000 Subject: [PATCH] OPAC now show a systempref variable in main/home screen => easier to change for a library. --- koha-tmpl/opac-tmpl/default/en/opac-main.tmpl | 4 +--- opac/opac-main.pl | 4 +++- updater/updatedatabase | 13 +++++++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/default/en/opac-main.tmpl b/koha-tmpl/opac-tmpl/default/en/opac-main.tmpl index fbb127efb4..6199efac75 100644 --- a/koha-tmpl/opac-tmpl/default/en/opac-main.tmpl +++ b/koha-tmpl/opac-tmpl/default/en/opac-main.tmpl @@ -48,9 +48,7 @@ a {  - Koha
- Free Software ILS

- Koha : a gift, a contribution
in Maori
+         diff --git a/opac/opac-main.pl b/opac/opac-main.pl index ec22c7f1fd..970fcca507 100755 --- a/opac/opac-main.pl +++ b/opac/opac-main.pl @@ -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; diff --git a/updater/updatedatabase b/updater/updatedatabase index dfca04b45d..307ecc9597 100755 --- a/updater/updatedatabase +++ b/updater/updatedatabase @@ -353,6 +353,16 @@ my %tabledata = ( }, ], systempreferences => [ + { + uniquefieldrequired => 'variable', + forceupdate => { 'explanation' => 1, + 'type' => 1 }, + variable => 'LibraryName', + value => 'Koha
Free Software ILS

Koha : a gift, a contribution
in Maori
', + 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) # -- 2.39.5