Skip to content
Browse files

Fixed to be ht only

  • Loading branch information...
1 parent f03fbc3 commit 3891eeb986ce1e13257c86bc5cc201bd86a2ecfa @billdueber committed Mar 30, 2012
Showing with 190 additions and 8 deletions.
  1. +3 −3 ht/devrun.m2s
  2. +173 −0 ht/five_only_four_hathi.seq
  3. +2 −1 ht/ht.m2s
  4. +6 −0 ht/index.dsl
  5. +6 −4 ht/lib/umich_custom.rb
View
6 ht/devrun.m2s
@@ -1,3 +1,3 @@
-threads 1
-logbatchsize 25000
-sussthreads 1
+threads 3
+logbatchsize 10000
+sussthreads 3
View
173 ht/five_only_four_hathi.seq
@@ -0,0 +1,173 @@
+000000205 LDR L ^^^^^nam^a22002891^^4500
+000000205 001 L 000000205
+000000205 003 L MiU
+000000205 005 L 19880715000000.0
+000000205 006 L m^^^^^^^^d^^^^^^^^
+000000205 007 L cr^bn^---auaua
+000000205 008 L 880715s1969^^^^enka^^^^^b^^^|00100^eng^^
+000000205 010 L $$a77402206
+000000205 015 L $$aB69-09503
+000000205 020 L $$a0416281206$$c25/-
+000000205 035 L $$a(RLIN)MIUG0019025-B
+000000205 035 L $$a(CaOTULAS)159818252
+000000205 035 L $$a(OCoLC)ocm00019025
+000000205 035 L $$asdr-nrlf.b169050269
+000000205 040 L $$aDLC$$cDLC$$dMiU
+000000205 050 4 L $$aHC502$$b.S441
+000000205 082 L $$a330
+000000205 1001 L $$aSeidman, Ann.
+000000205 24513 L $$aAn economics textbook for Africa.
+000000205 260 L $$aLondon,$$bMethuen,$$c1969.
+000000205 300 L $$axv, 327 p.$$billus.$$c22 cm.
+000000205 504 L $$aBibliography: p. [313]-318.
+000000205 538 L $$aMode of access: Internet.
+000000205 650 0 L $$aEconomics
+000000205 650 0 L $$aEconomic policy
+000000205 651 0 L $$aAfrica$$xEconomic conditions$$y1945-1960.
+000000205 8520 L $$aMiU$$bBUHR$$cGRAD$$hHC502 .S441
+000000205 970 L $$aBK$$bBook
+000000205 971 L $$aMiU
+000000205 972 L $$c20040625
+000000205 973 L $$aHT$$bavail_ht
+000000205 973 L $$aAC$$bavail_circ
+000000205 974 L $$umdp.39015005179794$$ric$$d20120229
+000000205 998 L $$s9665
+000000398 LDR L ^^^^^nam^a22002411^^4500
+000000398 001 L 000000398
+000000398 003 L MiU
+000000398 005 L 19880715000000.0
+000000398 006 L m^^^^^^^^d^^^^^^^^
+000000398 007 L cr^bn^---auaua
+000000398 008 L 880715s1968^^^^onca^^^^^^^^^|00000^eng^^
+000000398 010 L $$a76366569
+000000398 015 L $$aC***
+000000398 035 L $$a(RLIN)MIUG0041801-B
+000000398 035 L $$a(CaOTULAS)159818485
+000000398 035 L $$a(OCoLC)ocm00041801
+000000398 040 L $$aDLC$$cDLC$$dMiU
+000000398 0500 L $$aPR6068.O73$$bW5
+000000398 082 L $$a811/.5/4
+000000398 1001 L $$aRosenblatt, Joe,$$d1933-
+000000398 24510 L $$aWinter of the luna moth.
+000000398 260 L $$a[Toronto,$$bHouse of Anasi,$$c1968]
+000000398 300 L $$a78 p.$$billus.$$c22 cm.
+000000398 500 L $$aPoems.
+000000398 538 L $$aMode of access: Internet.
+000000398 8521 L $$aMiU$$bBUHR$$cGRAD$$h828 R8134wi
+000000398 970 L $$aBK$$bBook
+000000398 971 L $$aMiU
+000000398 972 L $$c20040625
+000000398 973 L $$aHT$$bavail_ht
+000000398 973 L $$aAC$$bavail_circ
+000000398 974 L $$umdp.39015014856705$$ric$$d20120229
+000000398 998 L $$s9665
+000001364 LDR L ^^^^^nam^a22002771^^4500
+000001364 001 L 000001364
+000001364 003 L MiU
+000001364 005 L 19880715000000.0
+000001364 006 L m^^^^^^^^d^^^^^^^^
+000001364 007 L cr^bn^---auaua
+000001364 008 L 880715r19701957nyu^^^^^^b^^^|00000^eng^^
+000001364 010 L $$a72104161
+000001364 020 L $$a0670003069$$c$2.75
+000001364 035 L $$a(RLIN)MIUG0099558-B
+000001364 035 L $$a(CaOTULAS)159819606
+000001364 035 L $$a(OCoLC)ocm00099558
+000001364 040 L $$aDLC$$cDLC$$dMiU
+000001364 0500 L $$aAC8$$b.M174 1970
+000001364 082 L $$a320.5/08
+000001364 1001 L $$aMacdonald, Dwight.
+000001364 24000 L $$aMemoirs of a revolutionist
+000001364 24510 L $$aPolitics past;$$bessays in political criticism.
+000001364 260 L $$aNew York,$$bViking Press$$c[1970, c1957]
+000001364 300 L $$avii, 376 p.$$c20 cm.
+000001364 4900 L $$aA Viking compass book
+000001364 500 L $$a1957 ed. published under title: Memoirs of a revolutionist.
+000001364 504 L $$aIncludes bibliographical references.
+000001364 538 L $$aMode of access: Internet.
+000001364 8520 L $$aMiU$$bBUHR$$cGRAD$$hAC 8 .M126 1970$$xtr. from UGL 7-9-99
+000001364 970 L $$aBK$$bBook
+000001364 971 L $$aMiU
+000001364 972 L $$c20040625
+000001364 973 L $$aHT$$bavail_ht
+000001364 973 L $$aAC$$bavail_circ
+000001364 974 L $$umdp.39015006241114$$ric$$d20120229
+000001364 998 L $$s9665
+000001439 LDR L ^^^^^nam^a22002891^^4500
+000001439 001 L 000001439
+000001439 003 L MiU
+000001439 005 L 20010205000000.0
+000001439 006 L m^^^^^^^^d^^^^^^^^
+000001439 007 L cr^bn^---auaua
+000001439 008 L 880715s1970^^^^ilu^^^^^^b^^^|00000^eng^^
+000001439 010 L $$a70136618
+000001439 020 L $$a841009155 (pbk.)
+000001439 035 L $$a(RLIN)MIUG0104049-B
+000001439 035 L $$a(CaOTULAS)159819690
+000001439 035 L $$a(OCoLC)ocm00104049
+000001439 035 L $$asdr-nrlfGLAD100760998-B
+000001439 040 L $$aDLC$$cDLC$$dMiU
+000001439 043 L $$an-us---
+000001439 050 4 L $$aHT151$$b.D74
+000001439 082 L $$a309.2/6/0973
+000001439 1001 L $$aDowns, Anthony.
+000001439 24510 L $$aUrban problems and prospects.
+000001439 260 L $$aChicago,$$bMarkham Pub. Co.$$c[1970]
+000001439 300 L $$a293 p.$$c23 cm.
+000001439 4900 L $$aMarkham series in public policy analysis
+000001439 504 L $$aIncludes bibliographies.
+000001439 538 L $$aMode of access: Internet.
+000001439 650 0 L $$aCities and towns$$zUnited States
+000001439 650 0 L $$aAfrican Americans$$xHousing.
+000001439 8520 L $$aMiU$$bHATCH$$cGRAD$$hHT151 .D74
+000001439 8520 L $$aMiU$$bAAEL$$cBKS$$hHT151 .D74
+000001439 8520 L $$aMiU$$bHATCH$$cGRAD$$hHT151 .D74
+000001439 8520 L $$aMiU$$bHATCH$$cGRAD$$hHT151 .D74
+000001439 8520 L $$aMiU$$bHATCH$$cGRAD$$hHT151 .D74
+000001439 8520 L $$aMiU$$bBUHR$$cAAEL$$hHT151 .D74
+000001439 852 L $$auc1$$bSDR$$cNRLF
+000001439 970 L $$aBK$$bBook
+000001439 971 L $$aMiU
+000001439 972 L $$c20040625
+000001439 972 L $$c20040625
+000001439 972 L $$c20040625
+000001439 972 L $$c20040625
+000001439 972 L $$c20040625
+000001439 972 L $$c20040625
+000001439 973 L $$aAC$$bavail_circ
+000001439 998 L $$s9665
+000001767 LDR L ^^^^^nam^a22002771^^4500
+000001767 001 L 000001767
+000001767 003 L MiU
+000001767 005 L 19880715000000.0
+000001767 006 L m^^^^^^^^d^^^^^^^^
+000001767 007 L cr^bn^---auaua
+000001767 008 L 880715s1970^^^^dcua^^^^^^^^^^00010^eng^^
+000001767 010 L $$a79267489
+000001767 035 L $$a(RLIN)MIUG0124021-B
+000001767 035 L $$a(CaOTULAS)159820070
+000001767 035 L $$a(OCoLC)ocm00124021
+000001767 035 L $$asdr-nrlfGLAD167848314-B
+000001767 040 L $$aDLC$$cDLC$$d*OCL*$$dMiU
+000001767 043 L $$an-us-ct
+000001767 050 4 L $$aHD7304.N37$$bM451
+000001767 082 L $$a301.5/4/097468
+000001767 1001 L $$aMermin, Alvin A.
+000001767 24510 L $$aRelocating families;$$bthe New Haven experience, 1956 to 1966,$$cby Alvin A. Mermin.
+000001767 260 L $$aWashington,$$bNational Association of Housing and Redevelopment Officials,$$c1970.
+000001767 300 L $$axviii, 138 p.$$billus.$$c23 cm.
+000001767 500 L $$a"NAHRO publication no. N540."
+000001767 538 L $$aMode of access: Internet.
+000001767 61020 L $$aNew Haven Redevelopment Agency.$$bFamily Relocation Office.
+000001767 650 0 L $$aRelocation (Housing)$$zConnecticut$$zNew Haven.
+000001767 7102 L $$aNational Association of Housing and Redevelopment Officials.
+000001767 8520 L $$aMiU$$bAAEL$$cBKS$$hHD7304.N37 M451
+000001767 852 L $$auc1$$bSDR$$cNRLF
+000001767 970 L $$aBK$$bBook
+000001767 971 L $$aMiU
+000001767 972 L $$c20040625
+000001767 973 L $$aHT$$bavail_ht
+000001767 973 L $$aAC$$bavail_circ
+000001767 974 L $$umdp.39015010979188$$ric$$d20120229
+000001767 974 L $$uuc1.b4211952$$ric$$d20090803
+000001767 998 L $$s9665
View
3 ht/ht.m2s
@@ -1,4 +1,5 @@
-htdir = "/Users/dueberb/devel/ruby/jruby/marc2solr_example/ht"
+#htdir = "/Users/dueberb/devel/ruby/jruby/marc2solr_example/ht"
+htdir = "/l/solrs/bin/marc2solr_example/ht"
indexfile "#{htdir}/index.dsl"
tmapdir "#{htdir}/translation_maps"
customdir "#{htdir}/lib"
View
6 ht/index.dsl
@@ -45,6 +45,12 @@ end
######## Local Data ##########
+field("format") do
+ mapname 'format_map_umich'
+ spec("970a")
+end
+
+
custom("cat_date") do
function(:most_recent_cat_date) {
mod mcu
View
10 ht/lib/umich_custom.rb
@@ -4,9 +4,9 @@
require 'jlogger'
require 'java'
require 'pp'
-# require 'jdbc-helper'
-# require 'mysql-connector-java-5.1.17-bin.jar'
-# require 'secure_data.rb'
+require 'jdbc-helper'
+#require 'mysql-connector-java-5.1.17-bin.jar'
+#require 'secure_data.rb'
module MARC2Solr
module Custom
@@ -252,10 +252,12 @@ def self.fillHathi doc, r, tmaps
# How many of them are there?
ht_count = fields.size
+#puts "HT_COUNT is #{ht_count}"
# If zero, just set HTSO to false and bail. Nothing to do
if ht_count == 0
doc['ht_searchonly'] = false
doc['ht_searchonly_intl'] = false
+ doc['id'] = nil
return nil
end
@@ -422,7 +424,7 @@ def self.record_level_htso r
def self.fromHTID htids
Thread.current[:phdbdbh] ||= JDBCHelper::Connection.new(
:driver=>'com.mysql.jdbc.Driver',
- :url=>'jdbc:mysql://mysql-sdr.umdl.umich.edu/mdp_holdings',
+ :url=>'jdbc:mysql://' + MDP_DB_MACHINE + '/mdp_holdings',
:user => MDP_USER,
:password => MDP_PASSWORD
)

0 comments on commit 3891eeb

Please sign in to comment.
Something went wrong with that request. Please try again.