[Koha-patches] [PATCH] Fix for Bug 3095, Add to lists page doesn't redirect with no javascript

Owen Leonard oleonard at myacpl.org
Tue Apr 7 21:21:18 CEST 2009


---
 opac/opac-addbybiblionumber.pl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opac/opac-addbybiblionumber.pl b/opac/opac-addbybiblionumber.pl
index ace334e..c1ebacf 100755
--- a/opac/opac-addbybiblionumber.pl
+++ b/opac/opac-addbybiblionumber.pl
@@ -66,7 +66,7 @@ if ($newvirtualshelf) {
 	AddBibliosToShelf($shelfnumber, @biblionumber);
 	RefreshShelvesSummary($query->cookie("CGISESSID"),$loggedinuser,($loggedinuser == -1 ? 20 : 10));
 	print $query->header;
-	print "<html><body onload=\"window.opener.location.reload(true);self.close();\"></body></html>";
+	print "<html><meta http-equiv=\"refresh\" content=\"0;url=opac-shelves.pl?display=privateshelves\" /><body onload=\"window.opener.location.reload(true);self.close();\"></body></html>";
 	exit;
 }
 
@@ -80,7 +80,7 @@ if ($shelfnumber && ($shelfnumber != -1)) {
 	AddBibliosToShelf($shelfnumber, at biblionumber);
 	RefreshShelvesSummary($query->cookie("CGISESSID"),$loggedinuser,($loggedinuser == -1 ? 20 : 10));
 	print $query->header;
-	print "<html><body onload=\"window.opener.location.reload(true);self.close();\"></body></html>";
+	print "<html><meta http-equiv=\"refresh\" content=\"0;url=opac-shelves.pl?display=privateshelves\" /><body onload=\"window.opener.location.reload(true);self.close();\"></body></html>";
 	exit;
 }
 else {
-- 
1.5.6.5




More information about the Koha-patches mailing list