BallotSelection का इस्तेमाल करके, किसी चुनाव में बैलेट के विकल्पों की पहचान करें. जैसे, जब आपको उम्मीदवारों और पार्टियों को उनके वोटों की संख्या से लिंक करना हो.
इस दस्तावेज़ में BallotSelection और इसकी सब-इकाईयों के बारे में बताया गया है:
BallotSelectionCandidateSelectionPartySelectionBallotMeasureSelectionSpecialBallotSelection
BallotSelection और उसके एलिमेंट को किसी फ़ीड टाइप के साथ इस्तेमाल करने के बारे में ज़्यादा जानने के लिए, यहां दिए गए फ़ीड टाइप में से कोई एक चुनें.
SpecialBallotSelection
इस तरह के BallotSelection का इस्तेमाल, वोटों की गिनती को एग्रीगेट करने के लिए किया जाता है. उदाहरण के लिए, कई उम्मीदवारों को "अन्य" में एग्रीगेट करना. साथ ही, इसका इस्तेमाल अलग-अलग तरह के नॉन-वोट के लिए भी किया जाता है. जैसे, खाली बैलेट, अमान्य बैलेट, और "इनमें से कोई नहीं" वोट.
SpecialBallotSelection का इस्तेमाल, Contest के सामान्य BallotSelection सब-एलिमेंट में नहीं किया जाना चाहिए. इसके बजाय, Contest में इसके अपने अलग-अलग फ़ील्ड होते हैं. जैसे, AggregateBallotSelection, BlankBallotSelection, NoneOfTheAboveBallotSelection, और NullBallotSelection. ज़्यादा जानकारी के लिए, Contest एलिमेंट देखें.
एलिमेंट
इस टेबल में, SpecialBallotSelection के एलिमेंट के बारे में बताया गया है:
| एलिमेंट | गुणनफल | टाइप | ब्यौरा |
|---|---|---|---|
CountedInTotal |
0 या 1 | boolean |
क्या इकाई चुनने के लिए डाले गए वोटों की संख्या को, कुल वोटों में गिना जाता है. अगर true की वैल्यू नहीं दी गई है, तो इसे 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" } } }