Lines 85-90
sub generate_subfield_form {
Link Here
|
85 |
my $branch_limit = $params->{branch_limit}; |
85 |
my $branch_limit = $params->{branch_limit}; |
86 |
my $default_branches_empty = $params->{default_branches_empty}; |
86 |
my $default_branches_empty = $params->{default_branches_empty}; |
87 |
my $readonly = $params->{readonly}; |
87 |
my $readonly = $params->{readonly}; |
|
|
88 |
my $holding_id = $params->{holding_id}; |
88 |
|
89 |
|
89 |
my $item = $self->{item}; |
90 |
my $item = $self->{item}; |
90 |
my $subfield = $tagslib->{$tag}{$subfieldtag}; |
91 |
my $subfield = $tagslib->{$tag}{$subfieldtag}; |
Lines 496-501
sub edit_form {
Link Here
|
496 |
my $prefill_with_default_values = $params->{prefill_with_default_values}; |
497 |
my $prefill_with_default_values = $params->{prefill_with_default_values}; |
497 |
my $branch_limit = $params->{branch_limit}; |
498 |
my $branch_limit = $params->{branch_limit}; |
498 |
my $default_branches_empty = $params->{default_branches_empty}; |
499 |
my $default_branches_empty = $params->{default_branches_empty}; |
|
|
500 |
my $holding_id = $params->{holding_id}; |
499 |
|
501 |
|
500 |
my $libraries = |
502 |
my $libraries = |
501 |
Koha::Libraries->search( {}, { order_by => ['branchname'] } )->unblessed; |
503 |
Koha::Libraries->search( {}, { order_by => ['branchname'] } )->unblessed; |
Lines 513-518
sub edit_form {
Link Here
|
513 |
my $biblionumber = $self->{biblionumber}; |
515 |
my $biblionumber = $self->{biblionumber}; |
514 |
my $frameworkcode = $biblionumber ? GetFrameworkCode($biblionumber) : q{}; |
516 |
my $frameworkcode = $biblionumber ? GetFrameworkCode($biblionumber) : q{}; |
515 |
my $marc_record = $biblionumber ? GetMarcBiblio( { biblionumber => $biblionumber } ) : undef; |
517 |
my $marc_record = $biblionumber ? GetMarcBiblio( { biblionumber => $biblionumber } ) : undef; |
|
|
518 |
|
519 |
# Overlay/add holdings defaults: |
520 |
if ( C4::Context->preference('SummaryHoldings') && $holding_id ) { |
521 |
my $holdings_fields = Koha::Holdings->get_embeddable_marc_fields({ biblionumber => $biblionumber, holding_id => $holding_id }); |
522 |
$marc_record->append_fields(@$holdings_fields) if @$holdings_fields; |
523 |
} |
524 |
|
525 |
|
516 |
my @subfields; |
526 |
my @subfields; |
517 |
my $tagslib = GetMarcStructure( 1, $frameworkcode ); |
527 |
my $tagslib = GetMarcStructure( 1, $frameworkcode ); |
518 |
foreach my $tag ( keys %{$tagslib} ) { |
528 |
foreach my $tag ( keys %{$tagslib} ) { |