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

(-)a/cataloguing/addbiblio.pl (-2 / +5 lines)
Lines 872-878 if ( $op eq "addbiblio" ) { Link Here
872
        else {
872
        else {
873
            ( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode );
873
            ( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode );
874
        }
874
        }
875
        if ($redirect eq "items" || ($mode ne "popup" && !$is_a_modif && $redirect ne "view")){
875
        if ($redirect eq "items" || ($mode ne "popup" && !$is_a_modif && $redirect ne "view" && $redirect ne "just_save")){
876
	    if ($frameworkcode eq 'FA'){
876
	    if ($frameworkcode eq 'FA'){
877
		print $input->redirect(
877
		print $input->redirect(
878
            '/cgi-bin/koha/cataloguing/additem.pl?'
878
            '/cgi-bin/koha/cataloguing/additem.pl?'
Lines 893-899 if ( $op eq "addbiblio" ) { Link Here
893
		exit;
893
		exit;
894
	    }
894
	    }
895
        }
895
        }
896
	elsif($is_a_modif || $redirect eq "view"){
896
	elsif(($is_a_modif || $redirect eq "view") && $redirect ne "just_save"){
897
            my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
897
            my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
898
            my $views = { C4::Search::enabled_staff_search_views };
898
            my $views = { C4::Search::enabled_staff_search_views };
899
            if ($defaultview eq 'isbd' && $views->{can_view_ISBD}) {
899
            if ($defaultview eq 'isbd' && $views->{can_view_ISBD}) {
Lines 908-913 if ( $op eq "addbiblio" ) { Link Here
908
            exit;
908
            exit;
909
909
910
	}
910
	}
911
	elsif ($redirect eq "just_save"){
912
	    print $input->redirect("/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=$biblionumber&framework=$frameworkcode"); 	
913
	}
911
	else {
914
	else {
912
          $template->param(
915
          $template->param(
913
            biblionumber => $biblionumber,
916
            biblionumber => $biblionumber,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-1 / +7 lines)
Lines 53-58 Link Here
53
            redirect("items");
53
            redirect("items");
54
            return false;
54
            return false;
55
        });
55
        });
56
        $("#saveandcontinue").click(function(){
57
            $(".btn-group").removeClass("open");
58
            redirect("just_save");
59
            return false;
60
        });
61
56
	});
62
	});
57
63
58
function redirect(dest){
64
function redirect(dest){
Lines 361-366 function Changefwk(FwkList) { Link Here
361
                <ul class="dropdown-menu">
367
                <ul class="dropdown-menu">
362
                    <li><a id="saveandview" href="#">Save and view record</a></li>
368
                    <li><a id="saveandview" href="#">Save and view record</a></li>
363
                    <li><a id="saveanditems" href="#">Save and edit items</a></li>
369
                    <li><a id="saveanditems" href="#">Save and edit items</a></li>
370
                    <li><a id="saveandcontinue" href="#">Save and continue editing</a></li>
364
                </ul>
371
                </ul>
365
            </div>
372
            </div>
366
        [% END %]
373
        [% END %]
367
- 

Return to bug 7883