בחירת פתק

אפשר להשתמש ב-BallotSelection כדי לזהות את האפשרויות בפתק ההצבעה, למשל כשמקשרים בין מועמדים ומפלגות לבין מספר הקולות שקיבלו.

במסמך הזה נדון ב-BallotSelection ובישויות המשנה שלו:

  • BallotSelection
    • CandidateSelection
    • PartySelection
    • BallotMeasureSelection
    • SpecialBallotSelection

כדי לקבל מידע נוסף על השימוש ב-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>