bin/marc2solr in marc2solr-0.2.2 vs bin/marc2solr in marc2solr-0.2.3
- old
+ new
@@ -268,10 +268,12 @@
doc = ss.doc_from_marc(r, opts[:benchmark])
# Send it to solr
unless opts[:dryrun]
- suss << doc
+ unless doc['id'] == nil
+ suss << doc
+ end
end
# Print out the record and/or the document
opts[:debugfile].puts r if opts[:printmarc]
opts[:debugfile].puts doc if opts[:printdoc]