diff --git a/Common/Enums/PositionTitle.cs b/Common/Enums/PositionTitle.cs
index 7a5a3688..1daaca0b 100644
--- a/Common/Enums/PositionTitle.cs
+++ b/Common/Enums/PositionTitle.cs
@@ -11,10 +11,15 @@ namespace Swarmops.Common.Enums
Unknown = 0,
///
- /// Use the default title for the position type (commercial titles).
+ /// Use the default title for the position type (kind-of-commercial titles).
///
Default,
+ ///
+ /// Use titles that are typical of a commercial corporation.
+ ///
+ Commercial,
+
///
/// Use titles that are customized for nonprofit organizations ("secretary general" instead of "ceo", etc).
///
diff --git a/Logic/Resources/Logic.Swarm.Position.Designer.cs b/Logic/Resources/Logic.Swarm.Position.Designer.cs
index c73f15c4..ddcd4caa 100644
--- a/Logic/Resources/Logic.Swarm.Position.Designer.cs
+++ b/Logic/Resources/Logic.Swarm.Position.Designer.cs
@@ -339,6 +339,24 @@ namespace Swarmops.Logic.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Deputy Secretary General.
+ ///
+ internal static string Position_Executive_VicePresident_Nonprofit {
+ get {
+ return ResourceManager.GetString("Position_Executive_VicePresident_Nonprofit", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Deputies Secretary General.
+ ///
+ internal static string Position_Executive_VicePresident_Nonprofit_Plural {
+ get {
+ return ResourceManager.GetString("Position_Executive_VicePresident_Nonprofit_Plural", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Vice Presidents.
///
diff --git a/Logic/Resources/Logic.Swarm.Position.resx b/Logic/Resources/Logic.Swarm.Position.resx
index d1af6616..e6b3def1 100644
--- a/Logic/Resources/Logic.Swarm.Position.resx
+++ b/Logic/Resources/Logic.Swarm.Position.resx
@@ -210,6 +210,12 @@
Vice President
+
+ Deputy Secretary General
+
+
+ Deputies Secretary General
+
Vice Presidents
diff --git a/Logic/Swarm/Person.cs b/Logic/Swarm/Person.cs
index d880caff..3cbcd53d 100644
--- a/Logic/Swarm/Person.cs
+++ b/Logic/Swarm/Person.cs
@@ -430,7 +430,7 @@ namespace Swarmops.Logic.Swarm
return null;
}
- return Image.FromFile (@"C:\Data\Uploads\PirateWeb\" + docs[0].ServerFileName);
+ return Image.FromFile (@"/usr/share/swarmops/upload/" + docs[0].ServerFileName);
}
}
@@ -615,10 +615,6 @@ namespace Swarmops.Logic.Swarm
// Note "for writing". Intentional. Queries master db and bypasses replication lag.
}
- public Authority GetDefaultAuthority()
- {
- throw new NotImplementedException();
- }
public Memberships GetMemberships (bool includeTerminated)
{
diff --git a/Logic/Swarm/Position.cs b/Logic/Swarm/Position.cs
index 5a691862..628931f3 100644
--- a/Logic/Swarm/Position.cs
+++ b/Logic/Swarm/Position.cs
@@ -184,13 +184,23 @@ namespace Swarmops.Logic.Swarm
public static string Localized(PositionType type, PositionTitle title, bool plural = false)
{
- string titleString = type.ToString();
+ string titleStringUntyped = type.ToString();
+ string titleStringTyped = titleStringUntyped + "_" + title.ToString();
+
if (plural)
{
- titleString += "_Plural";
+ titleStringUntyped += "_Plural";
+ titleStringTyped += "_Plural";
}
- return Logic_Swarm_Position.ResourceManager.GetString("Position_" + titleString);
+ string testResult = Logic_Swarm_Position.ResourceManager.GetString("Position_" + titleStringTyped);
+
+ if (!String.IsNullOrEmpty (testResult))
+ {
+ return testResult;
+ }
+
+ return Logic_Swarm_Position.ResourceManager.GetString("Position_" + titleStringUntyped);
}
@@ -203,6 +213,8 @@ namespace Swarmops.Logic.Swarm
throw new ArgumentNullException ("access", @"Access requested must always be specified. Use AccessAspect.Null if null access is desired (and access should always be true).");
}
+
+
return false;
}
}
diff --git a/Site5/App_GlobalResources/Pages.Admin.resx b/Site5/App_GlobalResources/Pages.Admin.resx
index cb81f429..45c2f2fb 100644
--- a/Site5/App_GlobalResources/Pages.Admin.resx
+++ b/Site5/App_GlobalResources/Pages.Admin.resx
@@ -150,6 +150,15 @@
The new organization has been created. You have been given an initial two-year {0} in the organization, so you can work with it and set it up properly. To switch to working with your new organization, use the control panel top right.
The {0} is membership, employment, citizenship, residence, etc.
+
+ Default position titles at start
+
+
+ Commercial
+
+
+ Nonprofit
+
<strong>WORK IN PROGRESS.</strong> Most of these options don't save yet.
diff --git a/Site5/Pages/v5/Admin/CreateOrganization.aspx b/Site5/Pages/v5/Admin/CreateOrganization.aspx
index 175f1eff..5533eb9e 100644
--- a/Site5/Pages/v5/Admin/CreateOrganization.aspx
+++ b/Site5/Pages/v5/Admin/CreateOrganization.aspx
@@ -1,5 +1,4 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" CodeFile="CreateOrganization.aspx.cs" Inherits="Swarmops.Frontend.Pages.v5.Admin.CreateOrganization" %>
-<%@ Register TagPrefix="Swarmops5" TagName="DropDown" Src="~/Controls/v5/Base/DropDown.ascx" %>