(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)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:19:15 +0000 (23:19 +0200)
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>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
opac/opac-addbybiblionumber.pl

index 7d18949..b1ed05b 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 {