Fix for Bug 3095, Add to lists page doesn't redirect with no javascript
authorOwen Leonard <oleonard@myacpl.org>
Tue, 7 Apr 2009 19:21:18 +0000 (14:21 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:15:08 +0000 (21:15 +0200)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
opac/opac-addbybiblionumber.pl

index ace334e..c1ebacf 100755 (executable)
@@ -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,@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 {