[Koha-bugs] [Bug 22430] importing from a UNIMARC backup will import biblio records but not items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 6 21:59:22 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22430

--- Comment #4 from Giuseppe Ciaccio <giuseppe.ciaccio at unige.it> ---
(In reply to Jonathan Druart from comment #1)
> What is a backup in this context?

Backup is: saving data away, and use them to restore a service after a
catastrophic failure.  In koha I would export records to a file, and import
them again in case the original archive is lost.

> I have exported the records then imported them in a fresh DB.
> I got:
> MARC staging results :
>     Processing bibliographic records
>     1 records in file
>     0 records not staged because of MARC error
>     1 records staged
>     Did not check for matches with existing records in catalog
>     5 item records found and staged
> 
> then:
> MariaDB [koha_kohadev]> select count(*) from items;
> +----------+
> | count(*) |
> +----------+
> |        5 |
> +----------+
> 
> All looks good for me (items are displayed on the detail page of the
> bibliographic record).
> 
> Tested with UNIMARC.

Could you also search the OPAC interface and see the items from there too?

I tried the import of the UNIMARC batch now attached to this bugreport. From
the admin interface, Home -> Tools -> Stage MARC records for import.  Leaving
all settings to default.  Output is:

MARC staging results :

    Processing bibliographic records
    10 records in file
    0 records not staged because of MARC error
    10 records staged
    Did not check for matches with existing records in catalog
    21 item records found and staged

(consistent with the content of batch)

Then I click on "Manage staged records" and, in the subsequent page, leave all
settings to default and click on "Import this batch into the catalog".  Output
is:

Completed import of records

Number of records added 10
Number of records updated       0
Number of records ignored       0
Number of items added   0
Number of items replaced        0
Number of items ignored because of duplicate barcode    0

Clearly the items have been ignored; confirmed by searching the OPAC: it finds
the biblio records but no items.

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


More information about the Koha-bugs mailing list