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.
- data/app/models/patron.rb +1 -0
- data/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +6 -0
- data/lib/enju_biblio/version.rb +1 -1
- data/spec/dummy/db/schema.rb +6 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/{_h.fdt → _j.fdt} +0 -0
- data/spec/dummy/solr/data/test/index/{_h.fdx → _j.fdx} +0 -0
- data/spec/dummy/solr/data/test/index/{_h.fnm → _j.fnm} +2 -2
- data/spec/dummy/solr/data/test/index/_j.frq +0 -0
- data/spec/dummy/solr/data/test/index/{_h.nrm → _j.nrm} +0 -0
- data/spec/dummy/solr/data/test/index/{_h.prx → _j.prx} +0 -0
- data/spec/dummy/solr/data/test/index/{_h.tii → _j.tii} +0 -0
- data/spec/dummy/solr/data/test/index/{_h.tis → _j.tis} +0 -0
- data/spec/dummy/solr/data/test/index/{_h_1.del → _j_1.del} +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/{segments_1e → segments_1g} +0 -0
- data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
- data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
- metadata +22 -21
- data/spec/dummy/solr/data/test/index/_h.frq +0 -0
data/app/models/patron.rb
CHANGED
@@ -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
|
data/lib/enju_biblio/version.rb
CHANGED
data/spec/dummy/db/schema.rb
CHANGED
@@ -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 => "
|
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"
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
File without changes
|
File without changes
|
@@ -1,5 +1,5 @@
|
|
1
|
-
|
1
|
+
����!idtype
|
2
2
|
class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
|
3
3
|
language_screated_at_dupdated_at_ddate_of_publication_dmsort_date_of_publication_drequired_role_id_irepository_content_bsort_title_speriodical_bperiodical_master_breservable_b
|
4
4
|
title_texttextbtitle_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_ipub_date_dmdate_of_publication_d
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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
|
+
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/
|
1139
|
-
- spec/dummy/solr/data/test/index/
|
1140
|
-
- spec/dummy/solr/data/test/index/
|
1141
|
-
- spec/dummy/solr/data/test/index/
|
1142
|
-
- spec/dummy/solr/data/test/index/
|
1143
|
-
- spec/dummy/solr/data/test/index/
|
1144
|
-
- spec/dummy/solr/data/test/index/
|
1145
|
-
- spec/dummy/solr/data/test/index/
|
1146
|
-
- spec/dummy/solr/data/test/index/
|
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/
|
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/
|
1576
|
-
- spec/dummy/solr/data/test/index/
|
1577
|
-
- spec/dummy/solr/data/test/index/
|
1578
|
-
- spec/dummy/solr/data/test/index/
|
1579
|
-
- spec/dummy/solr/data/test/index/
|
1580
|
-
- spec/dummy/solr/data/test/index/
|
1581
|
-
- spec/dummy/solr/data/test/index/
|
1582
|
-
- spec/dummy/solr/data/test/index/
|
1583
|
-
- spec/dummy/solr/data/test/index/
|
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/
|
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
|
Binary file
|