changeset 661:6246ad0f9e98 feature_36

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
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 09 Sep 2011 16:20:11 +0100
parents e40cd3570ebc
children ad6874c5c651 865d079e5fa0
files vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb vendor/plugins/redmine_bibliography/assets/stylesheets/bibliography.css vendor/plugins/redmine_bibliography/config/locales/en.yml
diffstat 3 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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" }
 
--- 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;
 }
 
--- 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."