Lines 1051-1066
This is meant to be used for display purpose only.
Link Here
|
1051 |
|
1051 |
|
1052 |
sub columns_to_str { |
1052 |
sub columns_to_str { |
1053 |
my ( $self ) = @_; |
1053 |
my ( $self ) = @_; |
|
|
1054 |
my $frameworkcode = C4::Biblio::GetFrameworkCode($self->biblionumber); |
1055 |
my $tagslib = C4::Biblio::GetMarcStructure( 1, $frameworkcode, { unsafe => 1 } ); |
1056 |
my $mss = C4::Biblio::GetMarcSubfieldStructure( $frameworkcode, { unsafe => 1 } ); |
1054 |
|
1057 |
|
1055 |
my $frameworkcode = $self->biblio->frameworkcode; |
|
|
1056 |
my $tagslib = C4::Biblio::GetMarcStructure(1, $frameworkcode); |
1057 |
my ( $itemtagfield, $itemtagsubfield) = C4::Biblio::GetMarcFromKohaField( "items.itemnumber" ); |
1058 |
my ( $itemtagfield, $itemtagsubfield) = C4::Biblio::GetMarcFromKohaField( "items.itemnumber" ); |
1058 |
|
1059 |
|
1059 |
my $columns_info = $self->_result->result_source->columns_info; |
|
|
1060 |
|
1061 |
my $mss = C4::Biblio::GetMarcSubfieldStructure( $frameworkcode, { unsafe => 1 } ); |
1062 |
my $values = {}; |
1060 |
my $values = {}; |
1063 |
for my $column ( keys %$columns_info ) { |
1061 |
for my $column ( @{$self->_columns}) { |
1064 |
|
1062 |
|
1065 |
next if $column eq 'more_subfields_xml'; |
1063 |
next if $column eq 'more_subfields_xml'; |
1066 |
|
1064 |
|
Lines 2098-2107
or staff client strings.
Link Here
|
2098 |
|
2096 |
|
2099 |
sub strings_map { |
2097 |
sub strings_map { |
2100 |
my ( $self, $params ) = @_; |
2098 |
my ( $self, $params ) = @_; |
2101 |
|
2099 |
my $frameworkcode = C4::Biblio::GetFrameworkCode($self->biblionumber); |
2102 |
my $columns_info = $self->_result->result_source->columns_info; |
2100 |
my $tagslib = C4::Biblio::GetMarcStructure( 1, $frameworkcode, { unsafe => 1 } ); |
2103 |
my $frameworkcode = $self->biblio->frameworkcode; |
|
|
2104 |
my $tagslib = C4::Biblio::GetMarcStructure( 1, $frameworkcode ); |
2105 |
my $mss = C4::Biblio::GetMarcSubfieldStructure( $frameworkcode, { unsafe => 1 } ); |
2101 |
my $mss = C4::Biblio::GetMarcSubfieldStructure( $frameworkcode, { unsafe => 1 } ); |
2106 |
|
2102 |
|
2107 |
my ( $itemtagfield, $itemtagsubfield ) = C4::Biblio::GetMarcFromKohaField("items.itemnumber"); |
2103 |
my ( $itemtagfield, $itemtagsubfield ) = C4::Biblio::GetMarcFromKohaField("items.itemnumber"); |
Lines 2116-2122
sub strings_map {
Link Here
|
2116 |
# Handle not null and default values for integers and dates |
2112 |
# Handle not null and default values for integers and dates |
2117 |
my $strings = {}; |
2113 |
my $strings = {}; |
2118 |
|
2114 |
|
2119 |
foreach my $col ( keys %{$columns_info} ) { |
2115 |
foreach my $col ( @{$self->_columns} ) { |
2120 |
|
2116 |
|
2121 |
# By now, we are done with known columns, now check the framework for mappings |
2117 |
# By now, we are done with known columns, now check the framework for mappings |
2122 |
my $field = $self->_result->result_source->name . '.' . $col; |
2118 |
my $field = $self->_result->result_source->name . '.' . $col; |