enju_subject 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,7 +56,7 @@ class SubjectsController < ApplicationController
56
56
  flash[:page_info] = {:page => page, :query => query}
57
57
 
58
58
  respond_to do |format|
59
- format.html # index.rhtml
59
+ format.html # index.html.erb
60
60
  format.json { render :json => @subjects }
61
61
  format.rss
62
62
  format.atom
@@ -87,7 +87,7 @@ class SubjectsController < ApplicationController
87
87
  @works = search.execute!.results
88
88
 
89
89
  respond_to do |format|
90
- format.html # show.rhtml
90
+ format.html # show.html.erb
91
91
  format.json { render :json => @subject }
92
92
  format.js
93
93
  end
@@ -4,11 +4,11 @@ xml.rss('version' => "2.0",
4
4
  'xmlns:atom' => "http://www.w3.org/2005/Atom"){
5
5
  xml.channel{
6
6
  xml.title t('page.listing', :model => t('activerecord.models.subject')) + " (#{@library_group.display_name.localize})"
7
- xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(:format => nil))}"
7
+ xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(:format => nil, :only_path => true))}"
8
8
  xml.description "Next-L Enju, an open source integrated library system developed by Project Next-L"
9
9
  xml.language @locale.to_s
10
10
  xml.ttl "60"
11
- xml.tag! "atom:link", :rel => 'self', :href => "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(:format => :rss))}"
11
+ xml.tag! "atom:link", :rel => 'self', :href => "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(:format => :rss, :only_path => true))}"
12
12
  xml.tag! "atom:link", :rel => 'alternate', :href => subjects_url
13
13
  xml.tag! "atom:link", :rel => 'search', :type => 'application/opensearchdescription+xml', :href => page_opensearch_url
14
14
  unless params[:query].blank?
@@ -1,3 +1,3 @@
1
1
  module EnjuSubject
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_subject
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-01 00:00:00.000000000 Z
12
+ date: 2012-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails