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

(-)a/cataloguing/addbiblio.pl (-2 / +4 lines)
Lines 909-915 if ( $op eq "addbiblio" ) { Link Here
909
909
910
    }
910
    }
911
    elsif ($redirect eq "just_save"){
911
    elsif ($redirect eq "just_save"){
912
        print $input->redirect("/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=$biblionumber&framework=$frameworkcode");
912
        my $tab = $input->param('current_tab');
913
        print $input->redirect("/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=$biblionumber&framework=$frameworkcode&tab=$tab");
913
    }
914
    }
914
    else {
915
    else {
915
          $template->param(
916
          $template->param(
Lines 990-996 $template->param( Link Here
990
    popup => $mode,
991
    popup => $mode,
991
    frameworkcode => $frameworkcode,
992
    frameworkcode => $frameworkcode,
992
    itemtype => $frameworkcode,
993
    itemtype => $frameworkcode,
993
    borrowernumber => $loggedinuser, 
994
    borrowernumber => $loggedinuser,
995
    tab => $input->param('tab')
994
);
996
);
995
997
996
output_html_with_http_headers $input, $cookie, $template->output;
998
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-3 / +10 lines)
Lines 13-18 Link Here
13
			$("#"+ui.panel.id+" input:eq(0)").focus();
13
			$("#"+ui.panel.id+" input:eq(0)").focus();
14
		});
14
		});
15
15
16
        [% IF tab %]
17
          $('#addbibliotabs').tabs('option', 'selected', "#[% tab %]");
18
        [% END %]
19
16
		/* check cookie to hide/show marcdocs*/
20
		/* check cookie to hide/show marcdocs*/
17
		if($.cookie("marcdocs_[% borrowernumber %]") == 'false'){
21
		if($.cookie("marcdocs_[% borrowernumber %]") == 'false'){
18
			hideMARCdocLinks();
22
			hideMARCdocLinks();
Lines 55-61 Link Here
55
        });
59
        });
56
        $("#saveandcontinue").click(function(){
60
        $("#saveandcontinue").click(function(){
57
            $(".btn-group").removeClass("open");
61
            $(".btn-group").removeClass("open");
58
            redirect("just_save");
62
            var tab = $("#addbibliotabs li.ui-tabs-selected:first a").attr('href');
63
            tab = tab.replace('#', '');
64
            $("#current_tab").val(tab);
65
            redirect("just_save", tab);
59
            return false;
66
            return false;
60
        });
67
        });
61
68
Lines 352-358 function Changefwk(FwkList) { Link Here
352
[% ELSE %]
359
[% ELSE %]
353
    <form method="post" name="f" id="f" action="/cgi-bin/koha/cataloguing/addbiblio.pl" onsubmit="return Check();">
360
    <form method="post" name="f" id="f" action="/cgi-bin/koha/cataloguing/addbiblio.pl" onsubmit="return Check();">
354
    <input type="hidden" value="[% IF ( biblionumber ) %]view[% ELSE %]items[% END %]" id="redirect" name="redirect" />
361
    <input type="hidden" value="[% IF ( biblionumber ) %]view[% ELSE %]items[% END %]" id="redirect" name="redirect" />
355
	<input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
362
    <input type="hidden" value="" id="current_tab" name="current_tab" />
363
    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
356
[% END %]
364
[% END %]
357
365
358
<div id="toolbar" class="btn-toolbar">
366
<div id="toolbar" class="btn-toolbar">
359
- 

Return to bug 10182