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 503-508
sub edit_form {
Link Here
|
503 |
my $branch_limit = $params->{branch_limit}; |
504 |
my $branch_limit = $params->{branch_limit}; |
504 |
my $default_branches_empty = $params->{default_branches_empty}; |
505 |
my $default_branches_empty = $params->{default_branches_empty}; |
505 |
my $ignore_invisible_subfields = $params->{ignore_invisible_subfields} || 0; |
506 |
my $ignore_invisible_subfields = $params->{ignore_invisible_subfields} || 0; |
|
|
507 |
my $holding_id = $params->{holding_id}; |
506 |
|
508 |
|
507 |
my $libraries = |
509 |
my $libraries = |
508 |
Koha::Libraries->search( {}, { order_by => ['branchname'] } )->unblessed; |
510 |
Koha::Libraries->search( {}, { order_by => ['branchname'] } )->unblessed; |
Lines 520-525
sub edit_form {
Link Here
|
520 |
my $biblionumber = $self->{biblionumber}; |
522 |
my $biblionumber = $self->{biblionumber}; |
521 |
my $frameworkcode = $biblionumber ? GetFrameworkCode($biblionumber) : q{}; |
523 |
my $frameworkcode = $biblionumber ? GetFrameworkCode($biblionumber) : q{}; |
522 |
my $marc_record = $biblionumber ? GetMarcBiblio( { biblionumber => $biblionumber } ) : undef; |
524 |
my $marc_record = $biblionumber ? GetMarcBiblio( { biblionumber => $biblionumber } ) : undef; |
|
|
525 |
|
526 |
# Overlay/add holdings defaults: |
527 |
if ( C4::Context->preference('SummaryHoldings') && $holding_id ) { |
528 |
my $holdings_fields = Koha::Holdings->get_embeddable_marc_fields({ biblionumber => $biblionumber, holding_id => $holding_id }); |
529 |
$marc_record->append_fields(@$holdings_fields) if @$holdings_fields; |
530 |
} |
531 |
|
532 |
|
523 |
my @subfields; |
533 |
my @subfields; |
524 |
my $tagslib = GetMarcStructure( 1, $frameworkcode ); |
534 |
my $tagslib = GetMarcStructure( 1, $frameworkcode ); |
525 |
foreach my $tag ( keys %{$tagslib} ) { |
535 |
foreach my $tag ( keys %{$tagslib} ) { |