= How to Publish CAP Messages = [[TOC]] == Overview == This section of the guide is intended for authorized users with permissions to author alerts and approve for dissemination. The cycle of authoring and issuing an alert has several work flow combinations. These combinations are [wiki:BluePrint/CAPBroker/GUIDesign#msgType illustrated as state transitions in the blueprint]. In the subsequent sections we discuss the activities of: * [wiki:UserGuidelines/SAMBRO/Publish#CreateaCAPMessage How to CREATE an alert message?] The first step when an event of interest is declared as an event that should be notified. * [# How to UPDATE an alert message?] Execute this step when an alert that was issued needs to be updates with the current status * [# How to CANCEL an alert message"] Any alert that was issued erroneously must be followed by a message to cancel the previous message * [# How to CLEAR an alert message?] Issue an ALL CLEAR after the authorities have declared to pose no threat any longer == Work Flow == === Create a New Message === ||='''QUICK METHOD''' :: =||=Navigate to http://YOUR-DOMAIN/eden/cap/alert/create =|| ==== Select Template and Edit the ALERT Segment ==== [[Image(http://eden.sahanafoundation.org/raw-attachment/wiki/UserGuidelines/SAMBRO/Publish/sambro_create_alert.png, align=right, width=480px)]] 1. With your web browser, navigate to the SAMBRO website hosted by your National or Local NDMO (e.g. SAMBRO demo hosted at http://sambro.geoinfo.ait.ac.th/) 1. To create a new alert message click on the main menu '''Alerting''' and then in the sub menu item Alert select '''Create''' 1. You will be presented with first page with the option to select a '''Template''' and then edit the '''Alert Qualifier''' elements. 1. Once you select the relevant template, from the drop down list at the top, all relevant alert qualifier elements will be populated. You will have very little to edit. '''IMPORTANT''' that the Status is changed from '''''Draft''''' to another value based on your intention: Exercise, Test, System, or Actual. 1. Click the Save and Edit Information button at the bottom of the list, which will navigate you to edit the alert '''INFORMATION''' segment ==== Edit INFORMATION segment ==== [[br]] ''''NB: If you see the pair of square bracket, then those are most probably created following [wiki:UserGuidelines/SAMBRO/Implement#CreateMessageTemplate this technique]. These are actually the place holders for the actual information. Now replace those placeholders with the actual information'''' ['''''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)]] ==== Adding Information Segment ==== || 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 already see the record under the '''''Information''''' tab, then those are from the alert template that you selected in step 4. 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 [[br]] ''''NB: If you see the pair of square bracket, then those are most probably created following [http://eden.sahanafoundation.org/wiki/UserGuidelines/SAMBRO/Implement#CreateMessageTemplate this technique]. These are actually the place holders for the actual information. Now replace those placeholders with the actual information''''|| [[Image(http://i.imgur.com/Zv5BdKT.png)]] [[Image(http://i.imgur.com/T4D4qdm.png)]] || || 7. || After filling all the information, click on '''Save''' button 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)]] || ==== Copying Info Segment for Multiple Language ==== [[BR]] 7 c) To copy the same info segment for in different language, open up a specific information segment.[[BR]][[BR]] [[Image(http://i.imgur.com/Gy5WsUH.png)]][[BR]][[BR]] 7 c) At the top of the form you can see the copy button, click on that. [[BR]][[BR]] [[Image(http://i.imgur.com/9DjFZsh.png)]] [[BR]][[BR]] 7 c) You can now see the form with exactly the same information as you filled in. Change the language in the language dropdown and save it.[[BR]][[BR]] ==== Assigning Predefined Area ==== || 8 a) || 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)]] || || b) || If you click on '''''Area''''' tab, you can see the area from you just assigned. You can also see that the Information Segment for that area is not given (-). We need to tell for which information segment this area belongs to || [[Image(http://i.imgur.com/t5IXbnU.png)]] || || c) || This can be done by clicking '''Open''' button in the picture above. Then in the '''Information Segment''' field, choose to which this area is for. || [[Image(http://i.imgur.com/0RpktvD.png)]] || ==== Drawing Alert Area Polygon ==== || d) || 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[[br]]To learn more about GIS in Sahana, see [http://eden.sahanafoundation.org/wiki/UserGuidelines/GIS here]|| [[Image(http://i.imgur.com/kggp0Bs.png)]] || ==== Adding Resource Files to Alert ==== 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 [[br]] [[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/6DQ3L6i.png)]] ---- === Update, Cancel or Clear a CAP Message === This process follows the state transition and allowable sequences discussed in the [http://eden.sahanafoundation.org/wiki/BluePrint/CAPBroker/GUIDesign#msgType SAMBRO GUI Blueprint for MsgType] [[br]] [[br]] 1. To update, cancel or clear a CAP message, first navigate to the table listing of alerts by clicking on the '''''Alert''''' submenu. 2. Then click the '''''Open''''' button for the respective alert message, from the list of alerts in table, you wish to alter the msgType; as shown in the image below. [[br]] [[Image(http://eden.sahanafoundation.org/raw-attachment/wiki/UserGuidelines/SAMBRO/Publish/alert_table_list.png)]] [[br]] 3. In the alert edit form, change the '''''Message Type''''' to a value from the dropdown. 4. Change the necessary information, in the alert message, and save for publishing. [[br]] [[Image(http://i.imgur.com/vnzydDc.png)]] [[br]]