Revision 444:b461f84ed41a vendor/plugins/redmine_bibliography/app/controllers

View differences:

vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb
5 5
  unloadable
6 6

  
7 7
  def new
8
    # we always try to create at least one publication
9
    @publication = Publication.new
8
    @publication = Publication.new      
10 9

  
11 10
    # the step we're at in the form
12 11
    @publication.current_step = session[:publication_step]
13 12

  
14 13
    @new_publications = []
15 14
    session[:publications] ||= {}
16
      
17 15
  end
18 16

  
19 17
  def create
......
53 51
  end
54 52

  
55 53
  def edit
54
    
56 55
    @publication = Publication.find(params[:id])
57 56
    
58 57
  end
......
145 144
      end
146 145

  
147 146
      author.authorships.create!(
148
      :publication => @publication,
149
      :institution => institution,
150
      :email => email,
151
      :order => idx)
147
        :publication => @publication,
148
        :institution => institution,
149
        :email => email,
150
        :order => idx)
152 151

  
153 152
    end
154 153
  end
......
158 157

  
159 158
  end
160 159

  
160
  def import
161
    @publication = Publication.new
162
    
163
    
164
  end
161 165

  
162 166
  def review_new_entries
163 167

  

Also available in: Unified diff