2 class PublicationsController < ApplicationController
5 @@source_file_field_id = 1
8 logger.info "Searching for issues with document name = " + params[:pub] + "."
9 joins = "JOIN issue_publications ON (issues.id = issue_publications.issue_id) JOIN publications ON (issue_publications.publication_id = publications.id)"
11 conditions = ['publications.source_file = ? ', params[:pub] ]
12 @issues = Issue.all(:joins => joins, :conditions => conditions)
13 respond_to do |format|
16 render :xml => @issues
20 headers['Content-Type'] = 'application/json'
21 render :json => @issues
26 def redirect_to_platform