Permalink
Browse files

/koha-tmpl/ is now the documentroot for opac and intranet pages (reme…

…mber koha-html is deprecated and should be removed very soon)

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
  • Loading branch information...
1 parent 01a01f9 commit 5fd15869dff8f3794a3c2eb6f9365293b1493020 tipaul committed Mar 18, 2003
Showing with 31 additions and 14 deletions.
  1. +4 −10 koha-tmpl/index.html
  2. +12 −0 koha-tmpl/intranet.html
  3. +12 −0 koha-tmpl/opac.html
  4. +3 −4 misc/buildrelease
View
@@ -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>
View
@@ -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>
View
@@ -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>
View
@@ -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

0 comments on commit 5fd1586

Please sign in to comment.