[Koha-bugs] [Bug 7131] way to overlay items in in marc import

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 7 14:07:19 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7131

--- Comment #12 from Kyle M Hall <kyle at bywatersolutions.com> ---
Comment on attachment 14475
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14475
Patch adds the ability to overlay items when Staging

Review of attachment 14475:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=7131&attachment=14475)
-----------------------------------------------------------------

::: C4/ImportBatch.pm
@@ +696,5 @@
>      $sth->execute();
>      while (my $row = $sth->fetchrow_hashref()) {
>          my $item_marc = MARC::Record->new_from_xml(StripNonXmlChars($row->{'marcxml'}), 'UTF-8', $row->{'encoding'});
> +	#delete date_due subfield as to not accidentally delete item checkout due dates
> +	$item_marc->field('952')->delete_subfield(code => 'q');

This is a problem. Not all frameworks will have items.onloan mapped to 952$q.
We need to look up the problem tag/subtag here using
C4::Biblio::GetMarcFromKohaField or get the value via
C4::Biblio::GetRecordValue.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list