# HG changeset patch # User Chris Cannam # Date 1315581611 -3600 # Node ID 6246ad0f9e98b79d58d209233b4ddc886253dca0 # Parent e40cd3570ebcfaf975ff8b32e4ebd1472f206d30 More adjustments to ensure search results box is empty when editing, and to ensure it has a minimum width in both new and edit modes. Also a text update diff -r e40cd3570ebc -r 6246ad0f9e98 vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb --- a/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Fri Sep 09 16:00:34 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Fri Sep 09 16:20:11 2011 +0100 @@ -25,7 +25,7 @@ def create @project = Project.find(params[:project_id]) - @author_options = [["#{User.current.name} (#{User.current.mail})", "#{User.current.class.to_s}_#{User.current.id.to_s}"]] + @author_options = [] @publication = Publication.new(params[:publication]) @publication.projects << @project unless @project.nil? @@ -75,7 +75,6 @@ @edit_view = true; - @options = [["#{User.current.name} (#{User.current.mail})", "#{User.current.class.to_s}_#{User.current.id.to_s}"]] @publication = Publication.find(params[:id]) @selected_bibtex_entry_type_id = @publication.bibtex_entry.entry_type @@ -85,8 +84,7 @@ def update @publication = Publication.find(params[:id]) - # todo: should be removed? - @author_options = [["#{User.current.name} (#{User.current.mail})", "#{User.current.class.to_s}_#{User.current.id.to_s}"]] + @author_options = [] logger.error { "INSIDE THE UPDATE ACTION IN THE PUBLICATION CONTROLLER" } diff -r e40cd3570ebc -r 6246ad0f9e98 vendor/plugins/redmine_bibliography/assets/stylesheets/bibliography.css --- a/vendor/plugins/redmine_bibliography/assets/stylesheets/bibliography.css Fri Sep 09 16:00:34 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/assets/stylesheets/bibliography.css Fri Sep 09 16:20:11 2011 +0100 @@ -28,7 +28,7 @@ margin-right: 18px; } -.edit_publication select { +#authors select { min-width: 150px; } diff -r e40cd3570ebc -r 6246ad0f9e98 vendor/plugins/redmine_bibliography/config/locales/en.yml --- a/vendor/plugins/redmine_bibliography/config/locales/en.yml Fri Sep 09 16:00:34 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/config/locales/en.yml Fri Sep 09 16:20:11 2011 +0100 @@ -61,7 +61,7 @@ label_publication_index: "View all publications" label_publication_other_details: "Details" - text_external_url: "Link to the publication itself." + text_external_url: "Link to the publication or to an external page about it." text_author_name_on_paper: "Author's name as it appears on the paper." text_author_institution: "Author's institution as on the paper." text_author_email: "Author's email address as on the paper."