Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed breaking order by with large text blobs

  • Loading branch information...
commit 80919b9f910786a9af306380063d744679880af2 1 parent d945bef
Benjamin Rokseth bensinober authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/models/review.rb
8 app/models/review.rb
View
@@ -123,7 +123,7 @@ def find_by_user(user, options = {})
rev:reviewer <#{reviewer_id}> .
q
=end
- query = QUERY.select(:subject, :title, :abstract, :text, :book_id, :source_id, :publisher_id, :audience_id, :work_id, :issued)
+ query = QUERY.select(:subject, :text, :title, :abstract, :book_id, :source_id, :publisher_id, :audience_id, :work_id, :modified)
query.where(
[:subject, RDF.type, self.type],
[:subject, RDF::REV.title, :title],
@@ -154,7 +154,7 @@ def find_by_user(user, options = {})
query.optional([:subject, RDF::DC.publisher, :publisher_id])
query.optional([:subject, RDF::DC.audience, :audience_id])
query.optional([:subject, RDF::DC.subject, :work_id])
- query.order_by('DESC(?modified)')
+ #query.order_by('DESC(?modified)')
if limit = options[:limit]
query.limit(limit)
@@ -194,7 +194,7 @@ def find_by_subject(subject, conditions = {})
=end
subject = RDF::URI(subject)
- query = QUERY.select(:title, :abstract, :text, :book_id, :source_id, :publisher_id, :audience_id, :work_id, :reviewer_id, :issued)
+ query = QUERY.select(:title, :text, :abstract, :book_id, :source_id, :publisher_id, :audience_id, :work_id, :reviewer_id, :issued)
query.where(
[subject, RDF.type, self.type],
[subject, RDF::REV.title, :title],
@@ -248,7 +248,7 @@ def find_by_book_id(book_id)
q
=end
book_id = RDF::URI(book_id)
- query = QUERY.select(:subject, :title, :abstract, :text, :reviewer_id).where(
+ query = QUERY.select(:subject, :text, :title, :abstract, :reviewer_id).where(
[:work, RDF::FABIO.hasManifestation, book_id, :context => Book.graph],
[:work, RDF::REV.hasReview, :subject, :context => Book.graph])
query.where(
Please sign in to comment.
Something went wrong with that request. Please try again.