Permalink
Browse files

getting all changes in, preparing for refactor

  • Loading branch information...
1 parent b9c9023 commit 2670b1efa87603a090a57884e9f8e22b5341ca2c @mwmitchell committed Nov 24, 2009
Showing with 6 additions and 9 deletions.
  1. +3 −0 TODO.txt
  2. BIN web/.DS_Store
  3. +1 −1 web/config/routes.rb
  4. +1 −7 web/lib/saxon.rb
  5. +1 −1 web/lib/tasks/solr.rake
View
3 TODO.txt
@@ -12,6 +12,9 @@ DONE - Implement richer navigation model
-- handle this logic in view helper?
+Improved multi-valued faceting?
+ https://issues.apache.org/jira/browse/SOLR-475
+
Check out - http://www.railsinside.com/plugins/164-7-tree-data-structure-plugins-for-rails.html
DocMeta.find(:document_id=>'swinburne').each{|d|d.destroy}
View
BIN web/.DS_Store
Binary file not shown.
View
2 web/config/routes.rb
@@ -5,7 +5,7 @@
map.root :controller=>'documents', :action=>'index'
# The priority is based upon order of creation: first created -> highest priority.
-
+
# Sample of regular route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
View
8 web/lib/saxon.rb
@@ -3,18 +3,12 @@
module Saxon
- def self.transform(stylesheet_file, source_file, output_file, params={})
- #import javax.xml.transform.TransformerFactory
- #import javax.xml.transform.stream.StreamSource
- #import javax.xml.transform.stream.StreamResult
-
+ def transform(stylesheet_file, source_file, output_file, params={})
tfactory = javax.xml.transform.TransformerFactory.newInstance
-
params.each_pair {|k,v|tfactory.setAttribute(k,v)}
transformer = tfactory.newTransformer(
javax.xml.transform.stream.StreamSource.new(stylesheet_file)
)
-
transformer.transform(
javax.xml.transform.stream.StreamSource.new(source_file),
javax.xml.transform.stream.StreamResult.new(output_file)
View
2 web/lib/tasks/solr.rake
@@ -1,7 +1,7 @@
namespace :solr do
task :start do
- `cd ../solr && java -jar start.jar`
+ `cd ../solr && java -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl -jar start.jar`
end
end

0 comments on commit 2670b1e

Please sign in to comment.