Open main menu

Gramps β

Changes

He:מדרג מיקום

588 bytes added, 06:51, 1 November 2025
m
no edit summary
{{languages/he|Hierarchical_Place_Structure}}
<div dir="rtl" lang="he" class="mw-content-rtl">
{{man note|תכונה שנוספה בגרמפס גרסת 4.1|אוביידטי אובייקטי מקום מאוגדים במדרג החל מגרסת גרמפס 4.1}}
== מבנה מיקומים חדש ==
מקום מקושר למקום-הורה על ידי אובייקטי PlaceRef. אלה מכילים קישור למקום-הורה ולתאריך. למקום מסויים יכולים להיות מספר מקומות-הורה, או, במידה והמקום הוא ברמה העליונה (הוא ההורה) ללא הורים כלל. הערך הראשון ברשימה נחשב כהורה העיקרי.
The type of a place is stored in a GrampsType called סוג המקום מאוחסן ב־GrampsType שנקרא PlaceType.
The code field is provided to store a code associated with the placeשדה הקוד מועבר לאחסון קוד המשויך למקום. This could be a country codeהקוד יכול להיות קוד מדינה, state abbreviationקיצור מדינה, Chapman county code etcקוד מחוז דרום וכו '... The database upgrade will assign the postal code andשדרוג מסד הנתונים יקצה את המיקוד ו/or phone number to this fieldאו מספר הטלפון לשדה זה.
=== פעולות כלים ===
 To obtain a location description for a placeלקבלת תיאור המיקום של '''מקום''', a path to a topנדרש לעבור דרך המקום שברמה העליונה ביותר במדרג. קיימות כמה פונקציות שירות ב-level place must be traversed. There are a few utility functions in gen.utils.location for this purposeלמטרה זו:<div> dir="ltr"> '''get_location_list(db, place)'''
</div>
Traverses the hierarchy following the primary parent and returns a list of place namesהפונקציה חוצה את מדרג המקומות בעקבות ההורה הראשי ומחזירה את רשימת שמות המקומות. לאחר מכן ניתן לעצב את הרשימה תוך שימוש This can then be formatted using the בשיטת 'join method'.<div dir="ltr">
', '.join(get_location_list(db, place))
</div><div dir="ltr"> '''get_main_location(db, place)'''</div>This also traverses the hierarchy following the primary parentגם פונקציה זו חוצה את המדרג בעקבות ההורה הראשי, but returns a dictionary of place types and namesאך מחזיר מילון סוגי מקומות ושמות. This can be used to extract a particular place typeשימושי מאוד לחלוץ מקום על פי סוג מסוים.<div dir="ltr">
get_main_location(db, place).get(PlaceType.CITY)
</div><div dir="ltr"> '''get_locations(db, place)'''</div>Determines each possible route up the place hierarchy, and returns a list containing dictionaries of place types and namesחישוב מסלול אפשרי במעלה מדרג המקומות ומחזיר רשימה המכילה מילון סוגי מקומות ושמות. Each list element represents a separate path up the hierarchyכל רכיב רשימה מייצג נתיב נפרד במעלה המדרג.
=== מסד נתונים ===
The Place tree view displays the place hierarchy using primary parentsמצג '''מדרג מקום''' משתמש ב''הורים ראשיים'' לאחזור מדרג המקום. A new tree cursor provides the view with place records in top-down orderסמן עץ חדש מספק למצג את רשומות המקום בסדר יורד, which greatly simplifies the codeדבר שמפשט מאוד את הקוד. Every node in the tree view represents a Gramps placeכל צומת במצג העץ מייצג מקום בגרמפס.
To find the children of a placeכדי למצוא צאצאים במדרג המקום, the existing ניתן להשתמש בשיטת מסד הנתונים הקיימת ''find_backlink_handles'' database method can be used. If only primary parents should be followed a new אם רק מקפידים להשתמש בשיטת ''find_place_child_handles'' method has been providedהחדשה ב'הורים ראשיים'.
Both the place tree cursor and גם סמן עץ המקום וגם שיטת ''find_place_child_handles'' method use an index on the primary parent called משתמשים במיפתח ההורה הראשי הנקרא ''place_parent''.
=== ללא שינוי ===
The place object still contains a title fieldאובייקט המקום עדיין מכיל שדה כותרת. שדה שמכיל תיאור מלא של המקום ומשמש This contains a full description of the place and is used in most reportsגם ברוב הדוחות.
Alternate locations have not been converted into new places in the hierarchyמקומות חלופיים לא הומרו למקומות חדשים במדרג.
=== מה הלאה? ===
* Should we support Gedcom 5.5EL? See Feature Request:{{bug|688}}
== ראו גם לקריאה נוספת ==
* [[GEPS 006: Better Place handling]]
* [[Gramps_{{Version manualman version}}_Wiki_Manual_-_Settings#Place_Format_Editor]]
[[Category:GEPS|P]]
[[Category:He:פתוח/עצוב]]