lib/buhos/controller_review.rb
# helper function that init tags related methods
helper function that init tags related methods
helper function that init tags related methods
def sr_tags_prev(sr_id)
      halt_unless_auth('review_analyze')
      @cd_ids=params['cd_id'].split(",").map(&:to_i).delete_if {|v| v==0}.sort
      @url_back=params['url_back']
      @user_id=params['user_id']
      @review=SystematicReview[sr_id]
      raise Buhos::NoReviewIdError, sr_id if !@review
      @user=User[@user_id]
      raise Buhos::NoUserIdError, @user_id if !@user
      @cds=CanonicalDocument.where(:id=>@cd_ids).order(:id)
      add_message(I18n::t(:List_of_cd_not_compatible)) unless @cds.count==@cd_ids.length
    end
def sr_tags_prev ( sr_id ) halt_unless_auth ( 'review_analyze' ) @cd_ids = params [ 'cd_id' ] . split ( "," ) . map ( & :to_i ) . delete_if { | v | v == 0 } . sort @url_back = params [ 'url_back' ] @user_id = params [ 'user_id' ] @review = SystematicReview [ sr_id ] raise Buhos :: NoReviewIdError , sr_id if ! @review @user = User [ @user_id ] raise Buhos :: NoUserIdError , @user_id if ! @user @cds = CanonicalDocument . where ( :id => @cd_ids ) . order ( :id ) add_message ( I18n :: t ( :List_of_cd_not_compatible ) ) unless @cds . count == @cd_ids . length end
helper function that init tags related methods
helper function that init tags related methods
sr_id