enju_biblio 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -236,6 +236,7 @@ class Patron < ActiveRecord::Base
236
236
  patron = Patron.new(
237
237
  :full_name => name_and_role[0],
238
238
  :full_name_transcription => patron_list[:full_name_transcription],
239
+ :patron_identifier => patron_list[:patron_identifier],
239
240
  :language_id => 1
240
241
  )
241
242
  patron.required_role = Role.where(:name => 'Guest').first
@@ -0,0 +1,6 @@
1
+ class AddPatronIdentifierToPatron < ActiveRecord::Migration
2
+ def change
3
+ add_column :patrons, :patron_identifier, :string
4
+ add_index :patrons, :patron_identifier
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module EnjuBiblio
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -687,7 +687,7 @@ ActiveRecord::Schema.define(:version => 20120602141129) do
687
687
  t.text "title", :null => false
688
688
  t.text "body", :null => false
689
689
  t.integer "position"
690
- t.string "locale", :default => "ja"
690
+ t.string "locale", :default => "en"
691
691
  t.datetime "created_at", :null => false
692
692
  t.datetime "updated_at", :null => false
693
693
  end
@@ -739,6 +739,7 @@ ActiveRecord::Schema.define(:version => 20120602141129) do
739
739
 
740
740
  create_table "patron_import_files", :force => true do |t|
741
741
  t.integer "parent_id"
742
+ t.string "filename"
742
743
  t.string "content_type"
743
744
  t.integer "size"
744
745
  t.integer "user_id"
@@ -846,11 +847,13 @@ ActiveRecord::Schema.define(:version => 20120602141129) do
846
847
  t.text "full_name_alternative_transcription"
847
848
  t.string "birth_date"
848
849
  t.string "death_date"
850
+ t.string "patron_identifier"
849
851
  end
850
852
 
851
853
  add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
852
854
  add_index "patrons", ["full_name"], :name => "index_patrons_on_full_name"
853
855
  add_index "patrons", ["language_id"], :name => "index_patrons_on_language_id"
856
+ add_index "patrons", ["patron_identifier"], :name => "index_patrons_on_patron_identifier"
854
857
  add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
855
858
  add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
856
859
 
@@ -859,6 +862,7 @@ ActiveRecord::Schema.define(:version => 20120602141129) do
859
862
  t.string "picture_attachable_type"
860
863
  t.string "content_type"
861
864
  t.text "title"
865
+ t.text "filename"
862
866
  t.string "thumbnail"
863
867
  t.integer "position"
864
868
  t.datetime "created_at", :null => false
@@ -978,6 +982,7 @@ ActiveRecord::Schema.define(:version => 20120602141129) do
978
982
 
979
983
  create_table "resource_import_files", :force => true do |t|
980
984
  t.integer "parent_id"
985
+ t.string "filename"
981
986
  t.string "content_type"
982
987
  t.integer "size"
983
988
  t.integer "user_id"
Binary file
@@ -1,5 +1,5 @@
1
- ����idtype
1
+ ����!idtype
2
2
  class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
3
3
  language_s created_at_d updated_at_ddate_of_publication_dmsort_date_of_publication_drequired_role_id_irepository_content_b sort_title_s periodical_bperiodical_master_b reservable_b
4
4
  title_texttext btitle_text isbn_textvolume_number_imissue_number_impatron_type_id_i name_text
5
- position_imanifestation_ids_imseries_statement_id_i
5
+ position_imanifestation_ids_imseries_statement_id_i pub_date_dmdate_of_publication_d
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_biblio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -923,6 +923,7 @@ files:
923
923
  - db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb
924
924
  - db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb
925
925
  - db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb
926
+ - db/migrate/20120511072422_add_patron_identifier_to_patron.rb
926
927
  - db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb
927
928
  - lib/enju_biblio/biblio_helper.rb
928
929
  - lib/enju_biblio/engine.rb
@@ -1135,17 +1136,17 @@ files:
1135
1136
  - spec/dummy/solr/conf/spellings.txt
1136
1137
  - spec/dummy/solr/conf/stopwords.txt
1137
1138
  - spec/dummy/solr/conf/synonyms.txt
1138
- - spec/dummy/solr/data/test/index/_h.fdt
1139
- - spec/dummy/solr/data/test/index/_h.fdx
1140
- - spec/dummy/solr/data/test/index/_h.fnm
1141
- - spec/dummy/solr/data/test/index/_h.frq
1142
- - spec/dummy/solr/data/test/index/_h.nrm
1143
- - spec/dummy/solr/data/test/index/_h.prx
1144
- - spec/dummy/solr/data/test/index/_h.tii
1145
- - spec/dummy/solr/data/test/index/_h.tis
1146
- - spec/dummy/solr/data/test/index/_h_1.del
1139
+ - spec/dummy/solr/data/test/index/_j.fdt
1140
+ - spec/dummy/solr/data/test/index/_j.fdx
1141
+ - spec/dummy/solr/data/test/index/_j.fnm
1142
+ - spec/dummy/solr/data/test/index/_j.frq
1143
+ - spec/dummy/solr/data/test/index/_j.nrm
1144
+ - spec/dummy/solr/data/test/index/_j.prx
1145
+ - spec/dummy/solr/data/test/index/_j.tii
1146
+ - spec/dummy/solr/data/test/index/_j.tis
1147
+ - spec/dummy/solr/data/test/index/_j_1.del
1147
1148
  - spec/dummy/solr/data/test/index/segments.gen
1148
- - spec/dummy/solr/data/test/index/segments_1e
1149
+ - spec/dummy/solr/data/test/index/segments_1g
1149
1150
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1150
1151
  - spec/dummy/solr/data/test/spellchecker/segments_1
1151
1152
  - spec/dummy/tmp/cache/4F7/F90/default_role
@@ -1572,17 +1573,17 @@ test_files:
1572
1573
  - spec/dummy/solr/conf/spellings.txt
1573
1574
  - spec/dummy/solr/conf/stopwords.txt
1574
1575
  - spec/dummy/solr/conf/synonyms.txt
1575
- - spec/dummy/solr/data/test/index/_h.fdt
1576
- - spec/dummy/solr/data/test/index/_h.fdx
1577
- - spec/dummy/solr/data/test/index/_h.fnm
1578
- - spec/dummy/solr/data/test/index/_h.frq
1579
- - spec/dummy/solr/data/test/index/_h.nrm
1580
- - spec/dummy/solr/data/test/index/_h.prx
1581
- - spec/dummy/solr/data/test/index/_h.tii
1582
- - spec/dummy/solr/data/test/index/_h.tis
1583
- - spec/dummy/solr/data/test/index/_h_1.del
1576
+ - spec/dummy/solr/data/test/index/_j.fdt
1577
+ - spec/dummy/solr/data/test/index/_j.fdx
1578
+ - spec/dummy/solr/data/test/index/_j.fnm
1579
+ - spec/dummy/solr/data/test/index/_j.frq
1580
+ - spec/dummy/solr/data/test/index/_j.nrm
1581
+ - spec/dummy/solr/data/test/index/_j.prx
1582
+ - spec/dummy/solr/data/test/index/_j.tii
1583
+ - spec/dummy/solr/data/test/index/_j.tis
1584
+ - spec/dummy/solr/data/test/index/_j_1.del
1584
1585
  - spec/dummy/solr/data/test/index/segments.gen
1585
- - spec/dummy/solr/data/test/index/segments_1e
1586
+ - spec/dummy/solr/data/test/index/segments_1g
1586
1587
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1587
1588
  - spec/dummy/solr/data/test/spellchecker/segments_1
1588
1589
  - spec/dummy/tmp/cache/4F7/F90/default_role