When creating new resources, author and owner middle initials are ignored
My profile includes my middle initial. It should be used in any resources I create or that I am an author of. But, when I create a new resource now, I only see my first and last name. I don't know if this is just a display issue (e.g., on the resource landing page the middle initial is not shown) or if it has also been lost from the resourcemetadata.xml file as well.

This is a regression. It used to work correctly.
diff --git a/hs_core/autocomplete_light_registry.py b/hs_core/autocomplete_light_registry.py
index 6a9476a41..41e20d667 100755
--- a/hs_core/autocomplete_light_registry.py
+++ b/hs_core/autocomplete_light_registry.py
@@ -1,6 +1,7 @@
 from autocomplete_light import shortcuts as autocomplete_light
 from django.contrib.auth.models import User, Group
 
+
 class UserAutocomplete(autocomplete_light.AutocompleteModelBase):
     search_fields = ['username', 'first_name', 'last_name']
     split_words = True
@@ -10,15 +11,7 @@ class UserAutocomplete(autocomplete_light.AutocompleteModelBase):
         return super(UserAutocomplete, self).choices_for_request()
 
     def choice_label(self, choice):
-        label = ""
-
-        if choice.first_name:
-            label += choice.first_name
-
-        if choice.last_name:
-            if choice.first_name:
-                label += " "
-            label += choice.last_name
+        label = " ".join([choice.first_name or "", choice.userprofile.middle_name or "", choice.last_name or ""])
 
         if choice.userprofile.organization:
             if choice.first_name or choice.last_name:
diff --git a/hs_core/templatetags/hydroshare_tags.py b/hs_core/templatetags/hydroshare_tags.py
index 126844b80..7c96b10b2 100755
--- a/hs_core/templatetags/hydroshare_tags.py
+++ b/hs_core/templatetags/hydroshare_tags.py
@@ -82,10 +82,17 @@ def contact(content):
     if not content.is_authenticated():
         content = "Anonymous"
     elif content.first_name:
-        content = format_html("<a href='/user/{uid}/'>{fn} {ln}</a>",
-                              fn=content.first_name,
-                              ln=content.last_name,
-                              uid=content.pk)
+        if content.userprofile.middle_name:
+            content = format_html("<a href='/user/{uid}/'>{fn} {mn} {ln}</a>",
+                                  fn=content.first_name,
+                                  mn=content.userprofile.middle_name,
+                                  ln=content.last_name,
+                                  uid=content.pk)
+        else:
+            content = format_html("<a href='/user/{uid}/'>{fn} {ln}</a>",
+                                  fn=content.first_name,
+                                  ln=content.last_name,
+                                  uid=content.pk)
     else:
         content = format_html("<a href='/user/{uid}/'>{un}</a>",
                               uid=content.pk,
@@ -104,8 +111,12 @@ def best_name(content):
     if not content.is_authenticated():
         content = "Anonymous"
     elif content.first_name:
-        content = """{fn} {ln}""".format(fn=content.first_name, ln=content.last_name,
-                                         un=content.username)
+        if content.userprofile.middle_name:
+            content = "{fn} {mn} {ln}".format(fn=content.first_name,
+                                              mn=content.userprofile.middle_name,
+                                              ln=content.last_name)
+        else:
+            content = "{fn} {ln}".format(fn=content.first_name, ln=content.last_name)
     else:
         content = content.username
 
diff --git a/theme/templates/includes/profile-link.html b/theme/templates/includes/profile-link.html
index 65552759e..1839e2a80 100644
--- a/theme/templates/includes/profile-link.html
+++ b/theme/templates/includes/profile-link.html
@@ -1,11 +1,8 @@
+{% load hydroshare_tags %}
+
 <a class="profile-preview" data-toggle="dropdown"
    href="#"
-   data-name="{% if user.first_name or user.last_name %}
-    {{ user.first_name }} {% if user.middle_name %}
-    {{ user.middle_name }}{% endif %} {{ user.last_name }}
-    {% else %}
-    {{ user.username }}
-    {% endif %}"
+   data-name="{{ user|best_name }}"
    data-email="{{ user.email }}"
    data-organization="{{ user.userprofile.organization|default:"" }}"
    data-title="{{ user.userprofile.title|default:"" }}"
@@ -20,10 +17,5 @@
    data-profile-picture="{{ user.userprofile.picture.url }}"
         {% endif %}
    data-profile-url="/user/{{ user.id }}">
-    {% if user.first_name or user.last_name %}
-        {{ user.first_name }} {% if user.middle_name %}
-        {{ user.middle_name }}{% endif %} {{ user.last_name }}
-    {% else %}
-        {{ user.username }}
-    {% endif %}
+    {{ user|best_name }}
 </a>
\ No newline at end of file
['hs_core/autocomplete_light_registry.py', 'hs_core/templatetags/hydroshare_tags.py', 'theme/templates/includes/profile-link.html']