/koha-tmpl/ is now the documentroot for opac and intranet pages (remember koha-html...
authortipaul <tipaul>
Tue, 18 Mar 2003 14:17:56 +0000 (14:17 +0000)
committertipaul <tipaul>
Tue, 18 Mar 2003 14:17:56 +0000 (14:17 +0000)
the index.html shows just 2 links : 1 to intranet.html, the other to opac.html.
during buildrelease, intranet.html is moved to intranet document root and renamed to index.html, same thing for opac.html with opac documentroot.
with this trick, you can have a "cvs" install, and a clean "official" install

koha-tmpl/index.html
koha-tmpl/intranet.html [new file with mode: 0644]
koha-tmpl/opac.html [new file with mode: 0644]
misc/buildrelease

index d2f098a..5194d5b 100644 (file)
@@ -1,12 +1,6 @@
 <html>
-<head>
-<meta http-equiv="refresh" content="0; url=/cgi-bin/koha/mainpage.pl">
-</head>
-<body bgcolor=white>
-<table border=0 width=100% height=100%>
-<tr><td align=center valign=center>
-<img src=/images/kohasplash.jpg>
-</td></tr>
-</table>
+<body>
+<a href="intranet.html">Intranet</a>
+<a href="opac.html">OPAC</a>
 </body>
-</html>
+</html>
\ No newline at end of file
diff --git a/koha-tmpl/intranet.html b/koha-tmpl/intranet.html
new file mode 100644 (file)
index 0000000..d2f098a
--- /dev/null
@@ -0,0 +1,12 @@
+<html>
+<head>
+<meta http-equiv="refresh" content="0; url=/cgi-bin/koha/mainpage.pl">
+</head>
+<body bgcolor=white>
+<table border=0 width=100% height=100%>
+<tr><td align=center valign=center>
+<img src=/images/kohasplash.jpg>
+</td></tr>
+</table>
+</body>
+</html>
diff --git a/koha-tmpl/opac.html b/koha-tmpl/opac.html
new file mode 100644 (file)
index 0000000..8de8517
--- /dev/null
@@ -0,0 +1,12 @@
+<html>
+<head>
+<meta http-equiv="refresh" content="0; url=/cgi-bin/koha/opac-main.pl">
+</head>
+<body bgcolor=white>
+<table border=0 width="100%" height="100%">
+<tr><td align=center valign=center>
+<img src=/images/kohasplash.jpg>
+</td></tr>
+</table>
+</body>
+</html>
index 6d432e9..61c1b66 100644 (file)
@@ -117,7 +117,6 @@ while (<CVSLOG>) {
     }
 }
 
-
 my $releaseversion='';
 my $currentversion='';
 
@@ -245,9 +244,6 @@ Tagging koha with tag R_$tagname
 # MOVE files to /tmp and build tar.gz
 #----------------------------------------------------------
 
-
-
-
 my $rootdir="/tmp/koha-".$releaseversion;
 system("rm -rf $rootdir");
 mkdir ($rootdir, 0700);
@@ -325,6 +321,9 @@ system("find $rootdir/intranet-cgi -name '*.pl' -exec chmod a+x \\{\\} \\;");
 # FIXME: "cp -a" is GNU-ism. It is not portable.
 system('cp', '-a', "$rootdir/intranet-cgi/koha-tmpl/opac-tmpl", "$rootdir/opac-html");
 system('cp', '-a', "$rootdir/intranet-cgi/koha-tmpl/intranet-tmpl", "$rootdir/intranet-html");
+#copy index files (they are just redirections to main.pl)
+system("cp $rootdir/intranet-cgi/koha-tmpl/opac.html","$rootdir/opac-html/index.html");
+system("cp $rootdir/intranet-cgi/koha-tmpl/intranet.html","$rootdir/intranet-html/index.html");
 system('rm', '-rf', "$rootdir/intranet-cgi/koha-tmpl");
 
 # Remove extraneous files from opac-html