Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'bug_7368' into 3.12-master

  • Loading branch information...
commit 5d7b5533f1565a55ff269fd82690a71a697901f1 2 parents ab59c08 + 86fa020
Jared Camins-Esakov jcamins authored

Showing 3 changed files with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  C4/Biblio.pm
  2. +1 0  C4/ImportBatch.pm
  3. +1 1  tools/export.pl
2  C4/Biblio.pm
@@ -1288,7 +1288,7 @@ sub GetMarcBiblio {
1288 1288 my $marcxml = GetXmlBiblio($biblionumber);
1289 1289
1290 1290 Returns biblioitems.marcxml of the biblionumber passed in parameter.
1291   -The XML contains both biblio & item datas
  1291 +The XML should only contain biblio information (item information is no longer stored in marcxml field)
1292 1292
1293 1293 =cut
1294 1294
1  C4/ImportBatch.pm
@@ -621,6 +621,7 @@ sub BatchCommitRecords {
621 621
622 622 # remove item fields so that they don't get
623 623 # added again if record is reverted
  624 + # FIXME: GetXmlBiblio output should not contain item info any more! So the next foreach should not be needed. Does not hurt either; may remove old 952s that should not have been there anymore.
624 625 my $old_marc = MARC::Record->new_from_xml(StripNonXmlChars($oldxml), 'UTF-8', $rowref->{'encoding'}, $marc_type);
625 626 foreach my $item_field ($old_marc->field($item_tag)) {
626 627 $old_marc->delete_field($item_field);
2  tools/export.pl
@@ -22,7 +22,7 @@
22 22 use CGI;
23 23 use C4::Auth;
24 24 use C4::AuthoritiesMarc; # GetAuthority
25   -use C4::Biblio; # GetMarcBiblio GetXmlBiblio
  25 +use C4::Biblio; # GetMarcBiblio
26 26 use C4::Branch; # GetBranches
27 27 use C4::Csv;
28 28 use C4::Koha; # GetItemTypes

0 comments on commit 5d7b553

Please sign in to comment.
Something went wrong with that request. Please try again.