Используйте BallotSelection, чтобы определить варианты выбора в бюллетене, например когда вы связываете кандидатов и партии с количеством голосов.
В этом документе рассматривается BallotSelection и его дочерние объекты:
BallotSelectionCandidateSelectionPartySelectionBallotMeasureSelectionSpecialBallotSelection
Выберите один из типов фидов, чтобы узнать, как использовать в нем атрибут BallotSelection и его элементы.
SpecialBallotSelection
Этот тип BallotSelection используется для агрегирования подсчета голосов (например, объединения нескольких кандидатов в категорию "Другие") и разных видов неголосования (например, пустых, недействительных или испорченных бюллетеней и голосов "против всех").
SpecialBallotSelection не следует использовать в общем дочернем элементе BallotSelection элемента Contest. Вместо этого у него есть собственные отдельные поля в Contest, а именно AggregateBallotSelection, BlankBallotSelection, NoneOfTheAboveBallotSelection и NullBallotSelection. Подробную информацию вы найдете в разделе Элементы Contest.
Элементы
В таблице ниже описаны элементы для SpecialBallotSelection.
| Элемент | Множество | Тип | Описание |
|---|---|---|---|
CountedInTotal |
0 или 1 | boolean |
Учитываются ли голоса, отданные за выбранный объект, при подсчете общего количества голосов, которые считаются значимыми. Если значение не указано, по умолчанию используется true.
|
ExternalIdentifiers |
0 или 1 | ExternalIdentifiers |
Связывает идентификатор с выбранным гражданским законодательным предложением. Требуется стабильный идентификатор. |
Selection |
1 | InternationalizedText |
Название варианта, например "Другое" или "Ничего из перечисленного выше". |
Примеры
XML
<AggregateBallotSelection objectId="sbs-3"> <Selection> <Text language="en">Other Candidates</Text> </Selection> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>sbs-3</Value> </ExternalIdentifier> </ExternalIdentifiers> </AggregateBallotSelection> <!-- Counts of ballots left blank --> <BlankBallotSelection objectId="sbs-4"> <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>sbs-4</Value> </ExternalIdentifier> </ExternalIdentifiers> </BlankBallotSelection> <!-- Votes for "None of the above" option on the ballot --> <NoneOfTheAboveBallotSelection objectId="sbs-5"> <!-- 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>sbs-5</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="sbs-6"> <!-- 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>sbs-6</Value> </ExternalIdentifier> </ExternalIdentifiers> </NullBallotSelection>