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

(-)a/cataloguing/addbiblio.pl (-1 / +9 lines)
Lines 730-735 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
730
    }
730
    }
731
);
731
);
732
732
733
if ($biblionumber){
734
    my $does_bib_exist = Koha::Biblios->find($biblionumber);
735
    if (!defined $does_bib_exist){
736
        $biblionumber = undef;
737
        $template->param( bib_doesnt_exist => 1 );
738
    }
739
}
740
733
if ($frameworkcode eq 'FA'){
741
if ($frameworkcode eq 'FA'){
734
    # We need to grab and set some variables in the template for use on the additems screen
742
    # We need to grab and set some variables in the template for use on the additems screen
735
    $template->param(
743
    $template->param(
Lines 798-804 if ($parentbiblio) { Link Here
798
}
806
}
799
807
800
$is_a_modif = 0;
808
$is_a_modif = 0;
801
    
809
802
if ($biblionumber) {
810
if ($biblionumber) {
803
    $is_a_modif = 1;
811
    $is_a_modif = 1;
804
    my $title = C4::Context->preference('marcflavour') eq "UNIMARC" ? $record->subfield('200', 'a') : $record->title;
812
    my $title = C4::Context->preference('marcflavour') eq "UNIMARC" ? $record->subfield('200', 'a') : $record->title;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-1 / +13 lines)
Lines 18-23 Link Here
18
        $("#loading").hide();
18
        $("#loading").hide();
19
    });
19
    });
20
	 $(document).ready(function() {
20
	 $(document).ready(function() {
21
22
        [% IF bib_doesnt_exist %]
23
            $("#addbibliotabs").hide();
24
            $("#toolbar").hide();
25
        [% END %]
26
21
        $('#addbibliotabs').tabs().bind('show.ui-tabs', function(e, ui) {
27
        $('#addbibliotabs').tabs().bind('show.ui-tabs', function(e, ui) {
22
			$("#"+ui.panel.id+" input:eq(0)").focus();
28
			$("#"+ui.panel.id+" input:eq(0)").focus();
23
		});
29
		});
Lines 540-545 function Changefwk() { Link Here
540
    [% END %]
546
    [% END %]
541
</div>
547
</div>
542
548
549
[% IF bib_doesnt_exist %]
550
    <div class="dialog alert">
551
        The record you are trying to edit doesn't exist.<br>
552
        <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Add a new record</a> or <a href="/cgi-bin/koha/catalogue/search.pl">do a catalog search</a>.
553
    </div>
554
[% END %]
555
543
[% IF ( popup ) %]
556
[% IF ( popup ) %]
544
        <input type="hidden" name="mode" value="popup" />
557
        <input type="hidden" name="mode" value="popup" />
545
[% END %]
558
[% END %]
546
- 

Return to bug 16204