Lines 1127-1142
sub GetItemsByBiblioitemnumber {
Link Here
|
1127 |
|
1127 |
|
1128 |
=head2 GetItemsInfo |
1128 |
=head2 GetItemsInfo |
1129 |
|
1129 |
|
1130 |
@results = GetItemsInfo($biblionumber, $type); |
1130 |
@results = GetItemsInfo($biblionumber); |
1131 |
|
1131 |
|
1132 |
Returns information about books with the given biblionumber. |
1132 |
Returns information about items with the given biblionumber. |
1133 |
|
|
|
1134 |
C<$type> may be either C<intra> or anything else. If it is not set to |
1135 |
C<intra>, then the search will exclude lost, very overdue, and |
1136 |
withdrawn items. |
1137 |
|
1133 |
|
1138 |
C<GetItemsInfo> returns a list of references-to-hash. Each element |
1134 |
C<GetItemsInfo> returns a list of references-to-hash. Each element |
1139 |
contains a number of keys. Most of them are table items from the |
1135 |
contains a number of keys. Most of them are attributes from the |
1140 |
C<biblio>, C<biblioitems>, C<items>, and C<itemtypes> tables in the |
1136 |
C<biblio>, C<biblioitems>, C<items>, and C<itemtypes> tables in the |
1141 |
Koha database. Other keys include: |
1137 |
Koha database. Other keys include: |
1142 |
|
1138 |
|
Lines 1172-1178
If this is set, it is set to C<One Order>.
Link Here
|
1172 |
=cut |
1168 |
=cut |
1173 |
|
1169 |
|
1174 |
sub GetItemsInfo { |
1170 |
sub GetItemsInfo { |
1175 |
my ( $biblionumber, $type ) = @_; |
1171 |
my ( $biblionumber ) = @_; |
1176 |
my $dbh = C4::Context->dbh; |
1172 |
my $dbh = C4::Context->dbh; |
1177 |
# note biblioitems.* must be avoided to prevent large marc and marcxml fields from killing performance. |
1173 |
# note biblioitems.* must be avoided to prevent large marc and marcxml fields from killing performance. |
1178 |
my $query = " |
1174 |
my $query = " |