= How to Publish CAP Messages = [[TOC]] == Overview == * '''Alerts''' -- The qualifiers of the alert message. Includes alert identifier, sender, message type, scope (audience), references to other cap alerts and other fields. * '''Alert information''' -- An alert can contain more than one information element, the primary purpose of this is to annotate the alert message in multiple languages. An information part of the alert contains fields that are pertinent to the actual subject and characters of the alert. Fields include: language, category of the alert, a short description of the event, expected response type, priority, urgency, severity, certainty, target audience, auxiliary codes and parameters as metadata to the event, time of effectiveness, onset and expiry, name of the sender, headline of the event, a url, contact information etc. * '''Resource''' -- One or more files attached to the information (could be things like a map of the affected area, documents containing instructions etc.) * '''Area''' -- Each alert information item may contain one or more area fields which describe the affected geographical area and optionally provide data to place it on a map. == Work Flow == === Create a CAP Message === The workflow for creation of a CAP alert is as below. Here we will be creating a CAP Alert for the Earthquake and authorize it. || 1 || In your browser, open up the SAMBRO system || || || 2 || Once you have opened the system, depending upon [http://eden.sahanafoundation.org/wiki/BluePrint/CAPBroker#Roles your role], various menu options are available on the top. Least there will be '''Alerting''' option.|| [[Image(http://i.imgur.com/TK6Z81D.png)]] || || 3 || Click on the '''Alerting''' menu. This opens up the table with the alert. You can also see the options to create alert. There are two ways to create alert:[[br]]a) There is '''Create Alert''' Button on the top of list of alerts.[[br]]b) On the side menu, under ALERTS, there is an option to '''Create'''.[[br]]Click on any of them. || [[Image(http://i.imgur.com/pq9tzVM.png)]] || || 4 || After clicking on any of them, a form appears to fill in the ''Alert'' section of ''CAP Message.''[[br]]Next you will need to select a template (recommended). The value from the template are copied into this alert. Since I am creating message for Earthquake, I will select ''Earthquake Template''.[[br]]Then fill in the other values that are not in the templates (like Recipients, etc.) || [[Image(http://i.imgur.com/cW8H4RP.png)]] || || 5 || After you fill out necessary information and click on '''Save and edit information''' button at the bottom of the form I mentioned above, you can now see different tabs ['''''Information''''', '''''Predefined Areas''''', '''''Area''''', '''''Resource Files'''''][[br]]Also if the template that you choose, has ''information'' associated with it, those are shown in the '''''Information''''' tab. || [[Image(http://i.imgur.com/BmpOTKi.png)]] || || 6 || Now go to the '''''Information''''' tab and begin to fill the information. To add information, you can see '''Add Alert Information''' on the right side of your screen as you saw for alert above.[[br]]If you see record already, then that is from the alert. In that case, open that record and begin editing and filling the information.[[br]]NB: As you begin to fill information, you can see that when you select '''Event''' field from the available dropdown, it triggers '''Priority''' field and that '''Priority''' field selects options in the '''Urgency''', '''Severity''' and '''Certainty''' field. This is because '''Event''' has '''Priority''' associated with them and every '''Priority''' has the predefined '''Urgency''', '''Severity''' and '''Certainty''' value associated with it || [[Image(http://i.imgur.com/Zv5BdKT.png)]] [[Image(http://i.imgur.com/T4D4qdm.png)]] || || 7 || After filling all the information, click on save at the bottom of the form. You will be redirected to the place where you started.[[br]]a) If you wish to edit further, just click '''Open''' button against the information row.[[br]]b) To add another '''Information''' to the alert, click on '''Add alert information''' at the right side of the screen. || [[Image(http://i.imgur.com/GKAfkGJ.png)]] || || 8 || Now you can begin to create area. Area can be created in two ways:[[br]]a) You can select from the [# predefined areas] under '''''Predefined Areas''''' tab according to Event and Priority. Location for this area will be the same as defined for this predefined area.[[br]]Click on '''Assign''' button(circled in image) to finish creating the area || [[Image(http://i.imgur.com/Kynjiiu.png)]] || || 8 ||b) You can also create area from the '''''Area''''' tab. Click on the '''''Area''''' tab, where you can see '''Add Area''' button on the right side of the screen. Click there and you will see a form to fill the area information for the alert. [[br]]Select for which information segment this area is because an alert can have multiple info segment.[[br]]- If you have [http://eden.sahanafoundation.org/wiki/UserGuidelines/GIS/Data GIS Data] for country, then you can choose from the hierarchy and then click '''Draw on Map''' button. This places the center and zoom of the map according to the selected hierarchy.[[br]]- If you don't have hierarchy data, simply select the Country and then click '''Draw on Map''' button and began drawing on it. || [[Image(http://i.imgur.com/RflGTeg.png)]] || || 8 || In any event, successively click then move the mouse, drawing a polygon with vertices at each click. Double-clicking ends the polygon.[[br]] Click on '''Save''' button at the end of page and area is added to the alert || [[Image(http://i.imgur.com/kggp0Bs.png)]] || || 9 || You can now add resource (photos, documents, etc) to the alert by going to the '''''Resource Files''''' tab and click on '''Add Resource''' button in the right side of the screen. In the '''Information Segment''' field, choose to which information segment you want to attach file. Then Click '''Choose File''' and browse through your computer to upload the file || [[Image(http://i.imgur.com/Yjxcu0a.png)]] || === Authorize a CAP Message === Any CAP Message must be authorize before publishing, posting or dissemination. Normally people with 'Alert Editor' role will create the CAP message and then send for approval to the people with 'Alert Approver' role.[[br]] After you (people with Alert Editor role) [#CreateaCAPMessage Create a CAP Message] , you can see 'Submit for Approval' button at the top. When clicked, it will send Email and SMS to the people with the 'Alert Approver' with a link to approve or reject the message. [[Image(http://i.imgur.com/jJaWV6B.png)]]