annotate .svn/pristine/70/70dfef569a65ef5db9a25ad36d19a3ee38afe71d.svn-base @ 947:be4106d14a35 bibplugin_bibtex

Parses a pasted bibtex entry and correctly adds its fields *except* the author names/institutions. Todo: Parse the author names/institutions and show the errors (flashing on the top of the page).
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 18 Jul 2012 16:57:54 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 class CopyRepositoriesLogEncoding < ActiveRecord::Migration
Chris@909 2 def self.up
Chris@909 3 encoding = Setting.commit_logs_encoding.to_s.strip
Chris@909 4 encoding = encoding.blank? ? 'UTF-8' : encoding
Chris@909 5 Repository.find(:all).each do |repo|
Chris@909 6 scm = repo.scm_name
Chris@909 7 case scm
Chris@909 8 when 'Subversion', 'Mercurial', 'Git', 'Filesystem'
Chris@909 9 repo.update_attribute(:log_encoding, nil)
Chris@909 10 else
Chris@909 11 repo.update_attribute(:log_encoding, encoding)
Chris@909 12 end
Chris@909 13 end
Chris@909 14 end
Chris@909 15
Chris@909 16 def self.down
Chris@909 17 end
Chris@909 18 end