ใช้ BallotSelection เพื่อระบุตัวเลือกในบัตรลงคะแนนในการแข่งขัน เช่น
เมื่อคุณลิงก์ผู้สมัครรับเลือกตั้งและพรรคการเมืองกับจำนวนคะแนนเสียง
เอกสารนี้จะกล่าวถึง BallotSelection และเอนทิตีย่อยของ BallotSelection ดังนี้
BallotSelectionCandidateSelectionPartySelectionBallotMeasureSelectionSpecialBallotSelection
เลือกประเภทฟีดต่อไปนี้เพื่อดูข้อมูลเพิ่มเติมเกี่ยวกับวิธีใช้
BallotSelection และองค์ประกอบที่มีอยู่ในฟีดประเภทนั้น
SpecialBallotSelection
BallotSelectionประเภทนี้ใช้สำหรับการรวบรวมจำนวนคะแนนเสียง (เช่น
การรวบรวมผู้สมัครรับเลือกตั้งหลายคนเป็น "อื่นๆ") และคะแนนเสียงประเภทต่างๆ ที่ไม่ใช่คะแนนเสียง
(เช่น บัตรลงคะแนนเปล่า บัตรลงคะแนนที่เป็นโมฆะหรือบัตรลงคะแนนที่เสีย และคะแนนเสียง "ไม่มีตัวเลือกข้างต้น")
ไม่ควรใช้ SpecialBallotSelection ในองค์ประกอบย่อย BallotSelection
ทั่วไปของ Contest แต่ควรมีฟิลด์ที่แตกต่างกันของตัวเองใน Contest
ได้แก่ AggregateBallotSelection, BlankBallotSelection, NoneOfTheAboveBallotSelection และ NullBallotSelection ดูรายละเอียดเพิ่มเติมได้ที่
Contest elements
องค์ประกอบ
ตารางต่อไปนี้จะอธิบายองค์ประกอบสำหรับ SpecialBallotSelection
| องค์ประกอบ | ความหลากหลาย | ประเภท | คำอธิบาย |
|---|---|---|---|
CountedInTotal |
0 หรือ 1 | boolean |
ไม่ว่าจะนับคะแนนโหวตของการเลือกเอนทิตีในคะแนนโหวตทั้งหมด
ที่ถือว่าน่าสนใจหรือไม่ ระบบจะถือว่าเป็น true หากไม่ได้ระบุ
|
ExternalIdentifiers |
0 หรือ 1 | ExternalIdentifiers |
เชื่อมโยงรหัสกับการเลือกมาตรการลงคะแนน ต้องมี ตัวระบุที่เสถียร |
Selection |
1 | InternationalizedText |
ระบุชื่อสำหรับการเลือกบัตรลงคะแนนนี้ เช่น "อื่นๆ" หรือ "ไม่มี ตัวเลือกข้างต้น" |
ตัวอย่าง
XML
<AggregateBallotSelection objectId="selection3"> <Selection> <Text language="en">Other Candidates</Text> </Selection> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>selection3</Value> </ExternalIdentifier> </ExternalIdentifiers> </AggregateBallotSelection> <!-- Counts of ballots left blank --> <BlankBallotSelection objectId="selection4"> <Selection> <Text language="en">Blank ballots</Text> </Selection> <!-- These ballots count in the total and can affect majorities --> <CountedInTotal>true</CountedInTotal> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>selection4</Value> </ExternalIdentifier> </ExternalIdentifiers> </BlankBallotSelection> <!-- Votes for "None of the above" option on the ballot --> <NoneOfTheAboveBallotSelection objectId="selection5"> <!-- The NOTA selection optiona as it appears on the ballot, often "None of the above", "None", or "Uncommitted" --> <Selection> <Text language="en">None</Text> </Selection> <!-- These ballots count in the total and can affect majorities --> <CountedInTotal>true</CountedInTotal> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>selection5</Value> </ExternalIdentifier> </ExternalIdentifiers> </NoneOfTheAboveBallotSelection> <!-- Counts of null or spoiled ballots, i.e. ballots that have been marked in a way that the vote cannot be counted --> <NullBallotSelection objectId="selection5"> <!-- How these ballots are often called in a given country, often "null" or "spoiled" --> <Selection> <Text language="en">Spoiled ballots</Text> </Selection> <!-- These ballots do count in the total and are treated as the same as if this vote did not happen at all --> <CountedInTotal>false</CountedInTotal> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>selection5</Value> </ExternalIdentifier> </ExternalIdentifiers> </NullBallotSelection>
JSON
"AggregateBallotSelection": { "objectId": "selection3", "Selection": { "Text": { "@language": "en", "#text": "Other Candidates" } }, "ExternalIdentifiers": { "ExternalIdentifier": { "Type": "other", "OtherType": "stable", "Value": "selection3" } }, }, "BlankBallotSelection": { "objectId": "selection4", "Selection": { "Text": { "@language": "en", "#text": "Blank Ballots" } }, "CountedInTotal": true, "ExternalIdentifiers": { "ExternalIdentifier": { "Type": "other", "OtherType": "stable", "Value": "selection4" } } }, "NoneOfTheAboveBallotSelection": { "objectId": "selection5", "Selection": { "Text": { "@language": "en", "#text": "None" } }, "CountedInTotal": true, "ExternalIdentifiers": { "ExternalIdentifier": { "Type": "other", "OtherType": "stable", "Value": "selection5" } } }, "NullBallotSelection": { "objectId": "selection5", "Selection": { "Text": { "@language": "en", "#text": "Spoiled ballots" } }, "CountedInTotal": false, "ExternalIdentifiers": { "ExternalIdentifier": { "Type": "other", "OtherType": "stable", "Value": "selection5" } } }