Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

**The following guide assumes familiarity with the MarineLMS and use of the Client tool on /Pages/Dev, as well as the /wiki/spaces/CMD/pages/5432378246 system**

...

  • /Root/Carnival/CCL

  • /Root/Carnival/HAG

  • /Root/Carnival/CMG

  • /Root/CUK


Files located at Carnival EO PDRs

Setup Batch Size for importCarnivalUsers

...

Use pages/dev file upload to upload the VesselLocations and RankBasedValues files for the specific org path.

JSON Files for VesselLocations and RankBasedValues

RankBasedValuesByRank ([OrgName]).json

VesselLocations ([OrgName]).json

Import NavPageAttributes

Page attributes for CUK org page:

...

You will need a repository to get the PDR Generator (GIT repository: psdev/CUK/PdrGenerator) http://gitlab.docker.marinels.local/marinels/psdev  (ssh://git@gitlab.docker.marinels.local:222230100/marinels/psdev.git)

PDR Generator configuration

Open the PDR Generator solution in Visual Studio

Program.cs

In the  function Main in the Program.cs; set the following variables:

Code Block
languagec#
titleProgram.cs
var targetFolder = @”D:\temp\EO”;     // Generated PDR files will be put here
var rank = “EO”;                      // Short Rank title
var title = “Environmental Officer”;  // Full Rank title
var noVesselPDR = false;              // Flag to NOT generate any vessel PDRs


RankPdrLevels = new List<int>() {2, 3};  // Specify the Rank PDR levels
VesselPdrLevels = new List<int>() {3};   // must be a sub-set of RankPdrLevels

 

App.Config

In the App.config you will find a list of all the vessels by OL.  Note if sections are not commented out, this will generate for all the uncommented OLs.


Code Block
languagexml
titleApp.Config
<configuration>
	<appSettings>
		<add key="OrgUserName" value="[OrgName]-Users"/>
		<add key="organizationPath" value="[OrgPath]"/>
		<add key="PDRLocationPath" value="[PDR Location Path]"/>
	</appSettings>
	<Vessels>
		<!-- vessel names -->
		<add key="[Vessel 1]" value="[Vessel 1]" />
		<add key="[Vessel 2]" value="[Vessel 2]"/>
		...
	</Vessels>
</configuration>

...

Note: style.css must be in org’s file collection folder /PDRs/AssessmentGuidelines

Org NavPage Attributes (Rule Mapping Variables)

The PDR generator created a file which client commands to add NavPage attributes.

setNavPageAttributesCommandLines.txt

Org Link Attributes

The PDR generator created a file with client commands for permissions attributes at [OrgPath]

setLinkAttributesCommandLines.txt

CanView Permissions for Sign Off

The PDR generator created a file with client commands for CanView link attributes. Those will be added at the level of the PDR location [PDR Location Path].

canViewPermissionsForSignOffLinkAttributesCommandLines.txt

Course Registration Rules

The PDR generator created a file with client commands with all registration rules

regCompletionRuleCommandLines.txt

Course Completion Rules

The PDR generator created a file with client commands with all course completion rules

...

Note:For release version 3.0, this command will error out but Mike has fixed the bug; so if on version 3.0 the offering registration rule will be inputted using the User Interface Edit Page Attribute function

Example Completion Rule:

KeyValue
System.SetOfferingRole.RuleSetOfferingRole(Instructor,/Root/Carnival/CCL/PDRs/$CanAssessRank$/$EOCourseLevel$):ProfileNameMatch(Can Assess Rank[\s]*[2-4]*$,$CanAssessRank$)

Import Questions

Import to Question Repository using the command client tool or User Interface:

...

           use the import Question tool on the page.

Create Assessments      

Create an Assessment in the Assessment Repository using the User Interface.

...

  1. Copy the notification template StudentEvaluationFinishedFull.cshtml to the '/NotificationTemplates' folder in MarineLMS.Service.Main project
  2. Add SShoreside user with email address
    1. Note the user name if multiple Orgs exist in the same instance (user names will be unique and may have numbers at the end if the same user gets created - e.g. SShoreside1)
  3. Create user group [OL-Name]-Notification-Users
    1. createGroup [OrgPath] [OL-Name]-Notifcation-Users
  4. Add all Captain Notification users to group ‘[OL-Name]-Notification-Users’ so they get notified:
    1. Set Vessel for which the Captain Notification user should be notified for
    2. Set Rank to Captain
  5. Add SIR Mapping
    1. addNavPageAttribute [OrgPath] Customer.CUK.SIRMapping “EO:Captain”
    2. example: addNavPageAttribute /Root/Carnival/ExampleCCL Customer.CUK.SIRMapping “EO: Captain”
  6. Execute the following command to add notification rule
    1. addOrgNotificationRule [OrgPath] IsCategory(Exam,StudentEvaluationCompleted);LinkAttributeIsEqualTo(Customer.Course.Assessment,SignOff);AssessmentGradeGreaterOrEqual(99) User([SShoreside user name]) Email
    2. example: addOrgNotificationRule [OrgPath] "Root/CUK" IsCategory(Exam,StudentEvaluationCompleted);LinkAttributeIsEqualTo(Customer.Course.Assessment,Assess);AssessmentGradeGreaterOrEqual(99) SignOffUser([OL-Name]-Notification-Users) Email

...

  1. Make sure a course offering exists for the selected PDR level 
    1. e.g PDR level : EO Rank PDR2
  2. Add user to the required PDR level. Go to Manage user and edit user properties.
    1. e.g Set User’s rank : EO ; Rank PDR Level : 2

...

  • CCL-Notification-Users:CaptainBreeze,CaptainDream

  • SIRMapping:EO:Captain

Notifications

  • Complete ‘Assess Criteria’ for Rank PDR

...