(bug #3363) do not reload parent if you add a biblio in shelf
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Thu, 25 Jun 2009 10:44:11 +0000 (12:44 +0200)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 29 Jun 2009 19:19:08 +0000 (14:19 -0500)
this patch make the script not reloading the parent if the user add a biblio in a already existing shelf(useless).

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
opac/opac-addbybiblionumber.pl

index c1ebacf..9e67b12 100755 (executable)
@@ -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><meta http-equiv=\"refresh\" content=\"0;url=opac-shelves.pl?display=privateshelves\" /><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=\"self.close();\"></body></html>";
        exit;
 }
 else {