I think Tuan's suggestion that the on-screen values displayed by SolrMarc may not correspond with the indexed values is a good one.  A couple extra "sanity check" thoughts:

 

1.) Try deleting your solr/biblio/index folder (just in case there's any unwanted junk floating around), reindex some records, and then do a "*:*" search in the Solr panel at http://localhost:8080/solr/biblio/admin (server/port may need to be changed for your local configuration).  This is the most directly way to inspect the id and ctrlnum field values.

 

2.) It's unlikely, but you might want to check your marc_local.properties file to be sure there's nothing in there that's overriding your changes in marc.properties.  The "local" configuration file was introduced with the last SolrMarc update as a way of easily separating your local configurations from the defaults supplied with VuFind.  However, if you're not aware of its existence and it has some settings in it, it could easily cause some confusion!

 

In any case, let us know if you still need help after trying this stuff.

 

- Demian

 

From: Cornelison, Lee - 1150 - MITLL [mailto:cornelison@ll.mit.edu]
Sent: Friday, December 11, 2009 4:52 PM
To: 'vufind-tech@lists.sourceforge.net'
Cc: Cornelison, Lee - 1150 - MITLL
Subject: [VuFind-Tech] Sirsi record IDs -- part 2

 

Still not getting my Sirsi MARC data to load into Solr as desired.

Our ILS catalogdump database tool gives me the ability to write out the Sirsi catalog key number anywhere I want in the MARC record.

I am stashing the key number into the unused MARC 011 tag , with a prepending letter ‘u’ + the key number  --   011  $au321234,  so that the output data looks like this:

.000. |aamIa

.008. |a040520n9999    mau           000 0 eng d

.011.   |au363038

.035.   |a31287004755167

I tried some variations on pattern_map for the 011 field to get the ID to be the 011, and even the ctrlnum value to be the 011 data…

###############################################################################

# marc.properties -- standard VuFind MARC mappings.  If you wish to customize #

#                    these settings, it is recommended that you edit          #

#                    marc_local.properties to make upgrades simpler.          #

###############################################################################

id = 011a, (pattern_map.id)

lccn = 010a

#ctrlnum = 035a, (pattern_map.ctrl)

ctrlnum = 011a, (pattern_map.id)

pattern_map.id.pattern_0 = u(.*)=>$1

pattern_map.ctrl.pattern_0 = a\\(Sirsi\\)(.*)=>$1

collection = "Unclassified Materials"

institution = "Lincoln Laboratory Books and Journals"

building = "Open Stacks"

Despite this, the marc_import.sh keeps ignoring the 011 data – and/or choosing the 001  OCLC values as record ID’s  -- even though I took this choice away altogether in the marc.properties rules (above)

INFO [main] (MarcImporter.java:244) - Added record 1337 read from file: ocn310395869

 INFO [main] (MarcImporter.java:244) - Added record 1338 read from file: ocn430497910

 INFO [main] (MarcImporter.java:244) - Added record 1339 read from file: ocn401154045

 INFO [main] (MarcImporter.java:244) - Added record 1340 read from file: ocn229033668

 INFO [main] (MarcImporter.java:244) - Added record 1341 read from file: null

 INFO [main] (MarcImporter.java:244) - Added record 1342 read from file: null

 INFO [main] (MarcImporter.java:244) - Added record 1343 read from file: null

 INFO [main] (MarcImporter.java:244) - Added record 1344 read from file: null

 INFO [main] (MarcImporter.java:244) - Added record 1345 read from file: null

 INFO [main] (MarcImporter.java:244) - Added record 1346 read from file: null

 INFO [main] (MarcImporter.java:244) - Added record 1347 read from file: null

 INFO [main] (MarcImporter.java:244) - Added record 1348 read from file: null

 INFO [main] (MarcImporter.java:244) - Added record 1349 read from file: ocn297147114

 INFO [main] (MarcImporter.java:244) - Added record 1350 read from file: ocn298671033

 INFO [main] (MarcImporter.java:244) - Added record 1351 read from file: ocn298668998









What gives here?!?!

Thanks,

Lee Cornelison
Library Database Administrator

MIT Lincoln Laboratory

244 Wood Street SM-730F

Lexington, MA 02420-9176

cornelison@ll.mit.edu

voice: 1.781.981.7176