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

(-)a/C4/Biblio.pm (-1 / +1 lines)
Lines 164-170 Biblio.pm contains functions for managing storage and editing of bibliographic d Link Here
164
164
165
=back
165
=back
166
166
167
In the 3.0 version of Koha, the authoritative record-level information is in biblioitems.marcxml
167
In the 3.0 version of Koha, the authoritative record-level information is in biblio_metadata.metadata
168
168
169
Because the data isn't completely normalized there's a chance for information to get out of sync. The design choice to go with a un-normalized schema was driven by performance and stability concerns. However, if this occur, it can be considered as a bug : The API is (or should be) complete & the only entry point for all biblio/items managements.
169
Because the data isn't completely normalized there's a chance for information to get out of sync. The design choice to go with a un-normalized schema was driven by performance and stability concerns. However, if this occur, it can be considered as a bug : The API is (or should be) complete & the only entry point for all biblio/items managements.
170
170
(-)a/C4/Items.pm (-2 / +2 lines)
Lines 323-329 embedded item fields. This routine is suitable for batch jobs. Link Here
323
323
324
This API assumes that the bib record has already been
324
This API assumes that the bib record has already been
325
saved to the C<biblio> and C<biblioitems> tables.  It does
325
saved to the C<biblio> and C<biblioitems> tables.  It does
326
not expect that C<biblioitems.marcxml> are populated, but it
326
not expect that C<biblio_metadata.metadata> is populated, but it
327
will do so via a call to ModBibiloMarc.
327
will do so via a call to ModBibiloMarc.
328
328
329
The goal of this API is to have a similar effect to using AddBiblio
329
The goal of this API is to have a similar effect to using AddBiblio
Lines 2650-2656 sub _SearchItems_build_where_fragment { Link Here
2650
                    $column = $kohafield;
2650
                    $column = $kohafield;
2651
                } else {
2651
                } else {
2652
                    # MARC field is not linked to a DB field so we need to use
2652
                    # MARC field is not linked to a DB field so we need to use
2653
                    # ExtractValue on biblioitems.marcxml or
2653
                    # ExtractValue on marcxml from biblio_metadata or
2654
                    # items.more_subfields_xml, depending on the MARC field.
2654
                    # items.more_subfields_xml, depending on the MARC field.
2655
                    my $xpath;
2655
                    my $xpath;
2656
                    my $sqlfield;
2656
                    my $sqlfield;
(-)a/C4/Record.pm (-3 / +3 lines)
Lines 228-234 EXAMPLE Link Here
228
    my dcxml = marc2dcxml (undef, undef, 1, "oaidc");
228
    my dcxml = marc2dcxml (undef, undef, 1, "oaidc");
229
229
230
Convert MARC or MARCXML to Dublin Core metadata (XSLT Transformation),
230
Convert MARC or MARCXML to Dublin Core metadata (XSLT Transformation),
231
optionally can get an XML directly from database (biblioitems.marcxml)
231
optionally can get an XML directly from biblio_metadata
232
without item information. This method take into consideration the syspref
232
without item information. This method take into consideration the syspref
233
'marcflavour' (UNIMARC, MARC21 and NORMARC).
233
'marcflavour' (UNIMARC, MARC21 and NORMARC).
234
Return an XML file with the format defined in C<$format>
234
Return an XML file with the format defined in C<$format>
Lines 237-243 C<$marc> - an ISO-2709 scalar or MARC::Record object Link Here
237
237
238
C<$xml> - a MARCXML file
238
C<$xml> - a MARCXML file
239
239
240
C<$biblionumber> - obtain the record directly from database (biblioitems.marcxml)
240
C<$biblionumber> - biblionumber for database access
241
241
242
C<$format> - accept three type of DC formats (oaidc, srwdc, and rdfdc )
242
C<$format> - accept three type of DC formats (oaidc, srwdc, and rdfdc )
243
243
Lines 258-264 sub marc2dcxml { Link Here
258
        # no need to catch errors or warnings marc2marcxml do it instead
258
        # no need to catch errors or warnings marc2marcxml do it instead
259
        $marcxml = C4::Record::marc2marcxml( $marc );
259
        $marcxml = C4::Record::marc2marcxml( $marc );
260
    } elsif ( not defined $xml and defined $biblionumber ) {
260
    } elsif ( not defined $xml and defined $biblionumber ) {
261
        # get MARCXML biblio directly from biblioitems.marcxml without item information
261
        # get MARCXML biblio directly without item information
262
        $marcxml = C4::Biblio::GetXmlBiblio( $biblionumber );
262
        $marcxml = C4::Biblio::GetXmlBiblio( $biblionumber );
263
    } else {
263
    } else {
264
        $marcxml = $xml;
264
        $marcxml = $xml;
(-)a/Koha/BiblioUtils/Iterator.pm (-4 / +4 lines)
Lines 25-33 Koha::BiblioUtils::Iterator - iterates over biblios provided by a DBIx::Class::R Link Here
25
25
26
=head1 DESCRIPTION
26
=head1 DESCRIPTION
27
27
28
This provides an iterator that gives the MARC::Record of each biblio that's
28
This provides an iterator over a L<DBIx::Class::ResultSet> that contains a
29
returned by a L<DBIx::Class::ResultSet> that provides a C<biblionumber>, and
29
biblionumber column.
30
C<marcxml> column from the biblioitems table.
30
Returns a MARC::Record in scalar context.
31
Returns biblionumber and marc in list context.
31
32
32
=head1 SYNOPSIS
33
=head1 SYNOPSIS
33
34
34
- 

Return to bug 17196