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)
committerGalen Charlton <galen.charlton@liblime.com>
Wed, 8 Apr 2009 17:30:22 +0000 (12:30 -0500)
Signed-off-by: Galen Charlton <galen.charlton@liblime.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 {