Skip to content

Commit a035b9d

Browse files
committed
Merge branch 'master' into 5.2-devel
* master: Update 3- IMPORT.rdoc Update Apache configuration to 2.4 Update 3- IMPORT.rdoc Fix rism-digital#752, make the new groups properly identified # Conflicts: # 2- INSTALL.rdoc
2 parents 3cc0507 + 2b96ab0 commit a035b9d

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

2- INSTALL.rdoc

+4-8
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,14 @@ With MySQL 64 bit binaries, add:
147147

148148
Example Apache configuration:
149149

150-
# create /usr/local/etc/apache22/Includes/default.conf
150+
# create /usr/local/etc/apache/Includes/default.conf
151151
# and add default site:
152152
<VirtualHost *:80>
153153
# ServerName www..org
154154
DocumentRoot /var/rails/rism-ch/public
155155
<Directory "/var/rails/rism-ch/public">
156-
Options All -Indexes +ExecCGI -Includes +MultiViews
157-
AllowOverride All
158-
Order allow,deny
159-
Allow from all
156+
Options All -Indexes +ExecCGI -Includes +MultiViewsny
157+
Require all granted
160158
</Directory>
161159
RailsEnv production
162160
</VirtualHost>
@@ -183,6 +181,4 @@ Also it is goot to block access to SOLR:
183181

184182
== Add clean up in crontab for blacklight
185183

186-
0 2 * * * cd $PATH_TO && $PATH_TO/bin/rake blacklight:delete_old_searches[7] RAILS_ENV=production
187-
188-
184+
0 2 * * * cd $PATH_TO && $PATH_TO/bin/rake blacklight:delete_old_searches[7] RAILS_ENV=production

3- IMPORT.rdoc

+2-10
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
Marc records can be imported into muscat. They can be fed and imported using the command line script:
44

5-
./script/runner housekeeping/import/import_from_marc.rb $FILE $MODEL
5+
rails runner housekeeping/import/import_from_marc.rb $FILE $MODEL
66

77
Records for thesaurus models like Places, StandardTerms etc., which are not related to marc, should be imported first with:
8-
./script/runner housekeeping/import/import_thesaurus_from_marc.rb $File
8+
rails runner housekeeping/import/import_thesaurus_from_marc.rb $File
99

1010
<tt>$FILE</tt> contains all the Marc records in MarcXML format.
1111
<tt>$MODEL</tt> refers to the model of the records (e.g. Source, Person etc.)
@@ -27,14 +27,6 @@ For imported fields without $0, a match will be search on the other fields (name
2727

2828
For the StandardTitle authority, fields without a $0 (e.g., 740) can create problems during the import if a StandardTitle without $0 (740) is imported before a value with a $0 (e.g., 240). The first one will cause a new ext_id to be generated which will then cause a duplicates validation error with the one with the ext_id. The fix is either to temporarily allow duplicates in the StandardTitle class, or to add a $0 value to the 740 field to the data to be imported.
2929

30-
== Source count
31-
Many object, like Person, Library, StandardTitle, ... cointain a field <tt>src_count</tt> which caches the total Sources
32-
related to any of them. This field is not updated during import, and a separate script needs to be run afterwards:
33-
34-
rails r housekeeping/correct/01_update_src_count.rb
35-
36-
It will update all the ms_counts for each class.
37-
3830
== Importing from XML data
3931

4032
XML data can be converted to text MARC using an xsl2 stylesheet in housekeeping/import/housekeeping/import/marcxml2marctxt.xsl. In this example Saxon HE version 9 is used (http://sourceforge.net/projects/saxon/files/Saxon-HE/), which requires a java runtime to be installed:

0 commit comments

Comments
 (0)