[Koha-patches] [PATCH] (bug #3363) do not reload parent if you add a biblio in shelf

Nahuel ANGELINETTI nahuel.angelinetti at biblibre.com
Thu Jun 25 12:44:11 CEST 2009


this patch make the script not reloading the parent if the user add a biblio in a already existing shelf(useless).
---
 opac/opac-addbybiblionumber.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opac/opac-addbybiblionumber.pl b/opac/opac-addbybiblionumber.pl
index c1ebacf..9e67b12 100755
--- a/opac/opac-addbybiblionumber.pl
+++ b/opac/opac-addbybiblionumber.pl
@@ -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><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 {
-- 
1.6.0.4




More information about the Koha-patches mailing list