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

Caroline Cyr La Rose <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA

--- Comment #58 from Caroline Cyr La Rose <[email protected]> ---
I might run into problems doing migrations because of this. I don't know if
we're the only ones who do things this way, but sometimes we get bibliographic
records as a MARC file, but the items come as a CSV file. So we create
barebones bibliographic records with just either the 035$a or the 001 from the
record and a 952 containing the item information (whatever can be used to match
the records and items). I use the stage marc files tool to import the item
records and ignore the records only to import the items. 

One of the patches here checks the incoming records' 245$a. But our barebones
records don't have 245$a. Only some sort of control number (001 or 035$a
usually) and a 952. (Like I said, maybe we're the only ones doing this, but the
check on 245$a is new and changes the current behaviour.)

I took an example from a migration I'm currently doing to recreate:

1. Import the record 1record_bz21272.mrc (either using the staff interface or
bulkmarcimport.pl)
2. Create a record matching rule to check 001
   2.1. Go to Administration > Record matching rules
   2.2. Click "New record matching rule"
   2.3. Fill out the form
        - Matching rule code: 001
        - Description: Control number (001)
        - Match threshold: 1000
        - Record type: Bibliographic records
        - Match point 1:
          - Search index: control-number
          - Score: 1000
          - Matchpoint components:
            - Tag: 001
            - Subfields: (leave empty)
            - Offset: (leave empty)
            - Length: (leave empty)
            - Normalization rule: None
   2.3. Click "Save"
3. Import the item using the staff interface (I haven't found the correct
combination of parameters to only import items using bulkmarcimport)
   3.1. Go to Cataloging > Stage records for import
   3.2. Choose the file 1item_bz21272.mrc
   3.3. Click "Upload file"
   3.4. Fill out the form
        - Profile: Do not use profile
        - Comments about this file: (fill out if needed)
        - Record type: Bibliographic
        - Character encoding: UTF-8
        - Format: MARC
        - Record matching rule: 001 (Control number (001))
        - Action if matching record found: Ignore incoming record (its items
may still be processed)
        - Action if no match is found: Ignore incoming record
        - Check for embedded item record data? Yes
        - How to process items: Add item only if matching bib was found
        - Profile name: (leave empty)
   3.4. Click "Stage for import"
   3.5. Click "View batch"
        --> In the "Citation" column, there is no title because there is no
title in the item record (normal)
        --> The item record should have matched the bibliographic record
"Fundamentalisms and the state"
   3.6. Click "Import this batch into the catalog"
   3.7. Click "View detail of the enqueued job"
   3.8. If needed, refresh the page until the job is marked as finished (mine
is marked as failed, but the item was added... I'll file another bug for this)

Without the patches, the item is processed and added. With the patches, I get
an error at step 3.5.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to