OPAC now show a systempref variable in main/home screen => easier to change for a...
authortipaul <tipaul>
Mon, 15 Dec 2003 14:39:52 +0000 (14:39 +0000)
committertipaul <tipaul>
Mon, 15 Dec 2003 14:39:52 +0000 (14:39 +0000)
koha-tmpl/opac-tmpl/default/en/opac-main.tmpl
opac/opac-main.pl
updater/updatedatabase

index fbb127e..6199efa 100644 (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>
index ec22c7f..970fcca 100755 (executable)
@@ -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;
index dfca04b..307ecc9 100755 (executable)
@@ -357,6 +357,16 @@ my %tabledata = (
             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,
+                                    'type' => 1 },
             variable            => 'autoMemberNum',
             value               => '1',
             explanation         => 'Member number is auto-calculated',
@@ -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)
 #