View | Details | Raw Unified | Return to bug 35126
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-addbybiblionumber.tt (-1 / +12 lines)
Lines 123-126 Link Here
123
    </div> <!-- / .main -->
123
    </div> <!-- / .main -->
124
124
125
[% INCLUDE 'opac-bottom.inc' is_popup=1 %]
125
[% INCLUDE 'opac-bottom.inc' is_popup=1 %]
126
[% BLOCK jsinclude %][% END %]
126
[% BLOCK jsinclude %]
127
<script>
128
         $(document).ready(function() {
129
            [% IF WINDOW_PARENT_RELOAD %]
130
                opener.location.reload();
131
            [% END %]
132
            [% IF WINDOW_CLOSE %]
133
                window.close();
134
            [% END %]
135
        });
136
</script>
137
[% END %]
(-)a/opac/opac-addbybiblionumber.pl (-11 / +7 lines)
Lines 70-81 if( $op && $op !~ /^cud-/ ) { Link Here
70
            for my $biblionumber (@biblionumbers) {
70
            for my $biblionumber (@biblionumbers) {
71
                $shelf->add_biblio( $biblionumber, $loggedinuser );
71
                $shelf->add_biblio( $biblionumber, $loggedinuser );
72
            }
72
            }
73
74
            #Reload the page where you came from
75
            print $query->header;
76
            print "<html><meta http-equiv=\"refresh\" content=\"0\" /><body onload=\"window.opener.location.reload(true);self.close();\"></body></html>";
77
            exit;
78
        }
73
        }
74
        $template->param(
75
            WINDOW_CLOSE         => 1,
76
            WINDOW_PARENT_RELOAD => 1,
77
        );
79
    }
78
    }
80
} elsif ($shelfnumber) {
79
} elsif ($shelfnumber) {
81
    my $shelfnumber = $query->param('shelfnumber');
80
    my $shelfnumber = $query->param('shelfnumber');
Lines 84-94 if( $op && $op !~ /^cud-/ ) { Link Here
84
        for my $biblionumber (@biblionumbers) {
83
        for my $biblionumber (@biblionumbers) {
85
            $shelf->add_biblio( $biblionumber, $loggedinuser );
84
            $shelf->add_biblio( $biblionumber, $loggedinuser );
86
        }
85
        }
87
86
        $template->param(
88
        #Close this page and return
87
            WINDOW_CLOSE         => 1,
89
        print $query->header;
88
        );
90
        print "<html><meta http-equiv=\"refresh\" content=\"0\" /><body onload=\"self.close();\"></body></html>";
91
        exit;
92
    } else {
89
    } else {
93
        $authorized = 0;
90
        $authorized = 0;
94
    }
91
    }
95
- 

Return to bug 35126