Revision 424:b601a9e472f3 vendor/plugins/redmine_bibliography/app

View differences:

vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb
22 22
    bibtex_entry = params[:bibtex_entry]
23 23

  
24 24
    # method for creating "pasted" bibtex entries
25
    if bibtex_entry      
25
    if bibtex_entry
26
      logger.error "ANTES PARSE"      
26 27
      parse_bibtex_list bibtex_entry    
28
      logger.error "DEPOIS PARSE"
27 29
    end
28 30

  
29 31
    # form's flow control
......
110 112
    @publication.bibtex_entry = @bentry
111 113
    @publication.save
112 114

  
113
    @created_publications << @publication.id
115
    # what is this for??? 
116
    # @created_publications << @publication.id
114 117

  
115 118
    # need to save all authors
116 119
    #   and establish the author-publication association 
vendor/plugins/redmine_bibliography/app/views/publications/index.html.erb
1 1
<h2>Publications#index</h2>
2 2

  
3

  
4
<table>
5
  <tr>
6
    <th>Number</th>
7
    <th>Title</th> 
8
  </tr>
9

  
3 10
<% @publications.each do |publication| %>
4
	
5
	<p><%= publication.id %>: <%=publication.title %></p>
11
	<tr>
12
	  <td><%= publication.id %></td>
13
	  <td><%= publication.title %></td>
14
	 	</tr>
6 15
	
7 16
<% end %>

Also available in: Unified diff