Commits

Anonymous committed 083b05b

changed the book references in transform/rdf and fixed redirect bug in books controller

  • Participants
  • Parent commits d1d5b5e

Comments (0)

Files changed (2)

openletters/controllers/book.py

             abort(404)
             
         if correspondent is None:
-            return redirect (controller=book, action=view, author=author)
+            redirect_to(controller="book", action="view", author=author)
         
         else:
             books = model.Session.query(model.Book).filter(model.Book.url == author)

openletters/transform/transform_rdf.py

 
     def add_text (self, correspondence, textname):
         ''' function to add referred text to the graph'''
-        textid = base_uri + "book/resource/"+textname.replace("\n", "_").replace(" ", "_")
+        textid = base_uri + "book/resource/"+textname.replace("\n", "_").replace(" ", "_")+ "/rdf"
         return self.g.add((correspondence, letter_ns['textReferred'], URIRef(textid)))