Page MenuHomePhabricator

Index pages no longer show elements on the "edit" page between "Pages" and "Categories" (Hebrew Wikisource)
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Open any "Index" page at Hebrew Wikisource, such as here.
  • Click "edit".

What happens?:

  • A form appears for entering details about a scanned book, but it is missing several elements that should appear between "Pages" and "Categories".
  • The strangest thing is that text which was entered into the now-missing elements in the past (before they disappeared), still appears on the Wiki Index page itself. But it cannot be edited since the elements no longer appear on the edit page.

What should have happened instead?:

  • The edit page (of the index page) should also include the following elements between "Pages" and "Categories": Volumes, Table of Contents, Scan resolution in edit mode, Css, Header, Footer.
  • These elements may be seen in an Index page from a different Wiki, such as in English Wikisource here.

Event Timeline

Dovi updated the task description. (Show Details)
Dovi updated the task description. (Show Details)

The general and default (!) values seem to come from the proofreadpage_index_attributes defined in the codebase at https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/ProofreadPage/+/refs/heads/master/i18n/he.json#70 as "proofreadpage_index_attributes": "מחבר\nכותרת\nשנה|שנת פרסום\nמוציא לאור\nמקור\nתמונה|תמונת עטיפה\nדפים||20\nהערות||10", (and that translation has not changed for many years, to rule that out).

Additional strings, such as Scan resolution in edit mode seen on English https://en.wikisource.org/w/index.php?title=Index:Philip_Birnbaum_-_ha-Siddur_ha-Shalem_(The_Daily_Prayer_Book,1949).pdf&action=edit , are not part of the general and default ProofreadPage codebase, but seem to be local on-wiki customizations coming from English https://en.wikisource.org/wiki/MediaWiki:Proofreadpage_index_attributes .

Looking at Hebrew https://he.wikisource.org/wiki/מדיה_ויקי:Proofreadpage_index_attributes it seems local on-wiki customizations have not existed here (no page history).

text which was entered into the now-missing elements in the past (before they disappeared), still appears on the Wiki Index page itself.

Could you please point out where to see e.g. the "Scan resolution in edit mode" on https://he.wikisource.org/wiki/מפתח:Philip_Birnbaum_-_ha-Siddur_ha-Shalem_(The_Daily_Prayer_Book,1949).pdf by pasting the Hebrew string which can be seen on the page? Thanks!

@Aklapper Thank you! Most of Wikisource now use that is an improved version of Mediawiki:Proofreadpage_index_attributes. MediaWiki:Proofreadpage_index_data_config is defined in the Hebrew Wikisource.

@Dovi The configuration of the Index: pages content is configured by each Wikisource. The one from the Hebrew Wikisource is here and does not seems to have changed since February. If you want to add new fields like the one already present on English Wikisource, you should add them in there. If there is a community concensus, I can easily add Volumes, Table of Contents, Scan resolution in edit mode, Css, Header, Footer fields for you if you give me the translations in Hebrew.

OK, thanks!
I was the editor of that page. I don't think I made use of "Scan resolution in edit mode".
But at the time I did make extensive use of "Table of Contents".

  1. I used it to include the full table of contents, which still appears to the left on the Index page.
  2. I also used that same element, before and after the actual table of contents, to include lengthy guidelines for editing the book, which were meant to be temporary. Since the book is now complete, I realized that I should delete those guidelines, but wasn't able to since the element "Table of Contents" no longer appears on the edit page.
  3. Here is part of the string in Hebrew that still appears towards the top of the page on the left before the Table of Contents: "נדפס בעמודים מקבילים בעברית (בצד ימין) ובאנגלית (בצד שמאל).".
  4. Here is the header of the table of contents: "הַתֹּֽכֶן" (also left towards top).
  5. Here is the header for "editing guidlines" (which begins below the table of contents on the left): "הוראות עריכה".

@Aklapper Thank you! Most of Wikisource now use that is an improved version of Mediawiki:Proofreadpage_index_attributes. MediaWiki:Proofreadpage_index_data_config is defined in the Hebrew Wikisource.

@Dovi The configuration of the Index: pages content is configured by each Wikisource. The one from the Hebrew Wikisource is here and does not seems to have changed since February. If you want to add new fields like the one already present on English Wikisource, you should add them in there. If there is a community concensus, I can easily add Volumes, Table of Contents, Scan resolution in edit mode, Css, Header, Footer fields for you if you give me the translations in Hebrew.

This still doesn't explain how the fields were there earlier, as the current text shows (which cannot be edited).

This still doesn't explain how the fields were there earlier, as the current text shows (which cannot be edited).

They seem to have been introduced at some point then removed from the configuration.

Thanks! In the meantime I'll turn to the editor who made that change. Now that we know what it is, maybe we can fix it ourselves.

After discussion, as an experiment, the above change to "Mediawiki:Proofreadpage index data config" was reverted by one of the beaurocrats. Now the Index pages all show the "missing" fields. However, they are still empty, and the text which appears on the Wiki Index page still cannot be edited. Is there any way to get to the text that is being shown? Where is it "stored"?

The page appears to have a field called הערות that stores most of the data after the pagelist field (based on a quick look at the API). Did you guys have such a field at some point (maybe defined in MediaWiki:Proofreadpag_index_attributes)

Thanks! The word הערות means "notes". Perhaps there was such a field. How is the API viewed?

You can see the generated wikitext of the page via the API at this page after clicking Make request. The JSON representation is a bit garbled so this is what I was able to get after rendering it in the browser console:

{{:MediaWiki:Proofreadpage_index_template\n|מחבר=[[מחבר:פלטיאל בירנבוים|פלטיאל בירנבוים]]\n|כותרת=הסדור השלם\n|שנה=תש\"ט (1949)\n|מוציא לאור=בית ההוצאה העברי (היברו פובלישינג קומפני), ניו יורק, ארה\"ב\n|מקור=[https://archive.org/details/PhilipBirnbaumHaSiddurHaShalemTheDailyPrayerBook1949/page/n2 ארכיון האינטרנט]\n|תמונה=2\n|דפים=<pagelist\n  1=-\n  2=\" עמוד_השער_בעברית\"\n  3=\"עמוד_השער_באנגלית\"\n  4=הדפסה\n  5=\"הקדשה\"\n  6=\"הַתֹּֽכֶן\"\n  7=\"התוכן_באנגלית\"\n  8=-\n  9=\"שלמי_תודה\"\n  10=-\n  11=9\n  11to25=\"highroman\"\n  26=1\n/>\n\n==ראו גם:==\n*[[:מפתח:Birnbaum Haggadah.pdf|'''סדר הגדה של פסח''' מאת פלטיאל בירנבוים (מפתח לעמודי הספר)]]\n|הערות=[[הסידור השלם (בירנבוים)|'''הַסִּדּוּר הַשָּׁלֵם''' של פלטיאל בירנבוים]] נדפס בעמודים מקבילים בעברית (בצד ימין) ובאנגלית (בצד שמאל). מהדורת ויקיטקסט מיועדת להיות מהדורה עברית וישראלית של הסידור: ההוראות למתפלל מתורגמות לעברית, ונוספו בו מנהגי ארץ ישראל (ראו להלן '''[[#הוראות עריכה|הוראות עריכה]]''').\n{{עמוד:Philip Birnbaum - ha-Siddur ha-Shalem (The Daily Prayer Book,1949).pdf/6}}\n\n==הוראות עריכה==\n*כל העמודים בגוף הסידור במספר '''אי-זוגי''' (1-789) הם '''בעברית''', ויש לערוך אותם '''כאן'''.\n*ואילו כמעט כל העמודים בגוף הסידור במספר '''זוגי''' (2-790) הם '''באנגלית'''. אין עלרוך כאן את מספרי העמודים הזוגיים המופיעים במפתח ב'''צבע אפור''' אלא בתוך [[:EN:Index:Philip Birnbaum - ha-Siddur ha-Shalem (The Daily Prayer Book,1949).pdf|ויקיטקסט אנגלית]].\n\n'''קוד שימושי:'''\n*<nowiki>{{סידור בירנבוים ש\"ץ}}</nowiki>\n*<nowiki>{{סידור בירנבוים הוראה|}}</nowiki>\n*<nowiki>{{סידור בירנבוים מקור|}}</nowiki>\n*<nowiki>{{פסקה חדשה בתחילת העמוד}}</nowiki>\n*<nowiki><קטע התחלה=שם הקטע/></nowiki>\n*<nowiki><קטע סוף=שם הקטע/></nowiki>\n*<nowiki>{{#קטע:עמוד:Philip Birnbaum - ha-Siddur ha-Shalem (The Daily Prayer Book,1949).pdf/000|שם הקטע}}</nowiki>\n*<nowiki>{{כותרת רצה|000|תפילת שחרית|}}{{סידור בירנבוים תפילה|</nowiki>\n*<nowiki><noinclude></nowiki>\n*<nowiki></noinclude></nowiki>\n*להשוואה: '''[https://hdl.handle.net/2027/hvd.hwnm6k סידור תפארת יהודה (ניו יורק, תרע\"ב)]''' וגם '''[https://babel.hathitrust.org/cgi/pt?id=mdp.39015058609879 כאן]'''\n\n'''הקלדת הטקסט בעמודים העבריים:'''\n*'''אותיות וניקוד לפסוקים שלמים המובאים בסידור''' יהיו לפי [[מקרא על פי המסורה]] (בלי טעמי המקרא). הנוסח המוקלד יהיה לפי ה'''קרי''' (ולא לפי הכתיב), כולל תיבות כגון \"יְרוּשָׁלַֽיִם\" (מלא יו\"ד לפי ה'''קרי'''). שם הוי\"ה יהיה \"יְיָ\" (וכן בַּייָ, בַייָ, וַייָ, כַּייָ, כַייָ, לַייָ, מֵייָ, שֶׁיְיָ), בדיוק כמו שמופיע אצל בירנבוים בסריקה. גם ה'''פיסוק''' יהיה לפי בירנבוים (כמו שמופיע בסריקה). במקרים חריגים יש לתעד את האותיות והניקוד של בירנבוים ע\"י השימוש ב[[תבנית:נוסח]]. יש להוסיף על הניקוד של בירנבוים את התווים המיוחדים לניקודם של '''קמץ קטן''' (כגון כָּל, כׇל, רׇב) ושל '''חולם בוי\"ו עיצורית''' (כגון בתיבה \"מִצְ'''וֺ'''תֶֽיךָ\"). גם תהיינה שתי נקודות לחולם לפני נקודת שי\"ן ימנית.{{הערה|כגון: \"יֹשְׁבֵי\" בעמ' 67, והשווה שם לסרקיה של בירנבוים בסוף העמוד).}} לגבי המקפים שבינרנוים השאיר בטקסט, אנחנו משאירים אותם בהקלדה.{{הערה|סידורו של בירנבוים מבוסס על '''[[מפתח:Seligman Baer - Seder Avodat Yisroel (1901 ed.).pdf|עבודת ישראל]]''' ליצחק בער. בסידורו של בער יש הקפדה לשמור על כל המקפים במקרא אף בפסוקים המובאים בסידור בלי טעמי המקרא. בירנבוים מחק את רוב המקפים בסידורו, אך השאיר אחדים מהם, חלקם במקומות שכנראה חשב שהמקף תורם קצת להגייה נכונה (כגון \"שֶׁתִּזְכָּר־לָֽנוּ\", \"וְקַיֶם־לָֽנוּ\" בעמ' 23) וחלקם במקומות שהמקף תורם קצת להבנת העניין (כגון \"מִבֶּן־יְחִידוֹ\" עמ' 23; \"בְּבֶן־אָדָם\" עמ' 59). אמנם לעתים יש מקומות נוספים שבהם בירנבוים לא שמר על מקף במקרא שהקורא היה יכול להעזר בו לפי שיטתו, ובהם הוספנו את המקף אבל הקפדנו גם לתעד את נוסחו של בירנבוים.<br>בתיבה אחת בלבד, \"הַלְלוּ־יָהּ\", יהיה מקף בהקלדה הדיגיטלית אף במקומות שהמקף אינו קיים במקרא. זה מכיוון שאצל בירנבוים וברוב הסידורים התיבה מחוברת (\"הַלְלוּיָהּ\"), ואילו במסורה של כתר ארם צובה מדובר על שתי תיבות (שלעתים הן מוקפות), ולהשאירן בלי מקף ברווח פשוט (\"הַלְלוּ יָהּ\") יהיה מוזר למתפלל ושונה באופן בולט מהטקסט של בירנבוים (כך אמנם עשו בסידור המופיע בסוף חמישה חומשי תורה מהדורת חורב [ירושלים, תשנ\"ו] והתוצאה אינה משביעה רצון).}}\n*'''שאר כל הברכות והתפילות והכותרות בסידור''' (כל מה שאינו מבוסס על פסוקים שלמים) יהיה לפי '''האותיות והניקוד והפיסוק של בירנבוים''', למעט הוספת ניקוד מיוחד לקמץ קטן ולחולם בוי\"ו עיצורית (באופן עקבי ולכן אין צורך לציין את השינוי).\n\n'''ביאורים בתחתית הדף:''' יש ביאורים לתפילות בשפה האנגלית שמופיעים בתחתית הדף (רובם מתחילים ב\"דיבור המתחיל\" בעברית מתוך נוסח התפילה). את הביאורים האלה יש להקליד אך ורק בדף המקביל באנגלית, גם אם הם מתחילים בתחתית הדף בצד העברי (וגם אם לעתים הם מופיעים בצד העברי לגמרי).\n\n'''הוראות למתפלל, כותרות, וציון מקורות:''' הוראות למתפלל מופיעים '''במקביל''' בצד העברי ובצד האנגלי, ובשני הצדדים הם נדפסו '''באנגלית'''. בהקלדה כאן, לדפים בצד העברי, יש '''לתרגם''' אותם לעברית. יש לשים לב שהוראותיו של בירנבוים קצרים ודרך כלל בהירים, אבל לא תמיד מושלמים. כך על תרגומם להיות קצר ובהיר, אבל ניתן לשנות ולשפר כשצריך. יש להעדיף '''קיצור ובהירות''' בתרגום לעברית על פני תרגום מילולי של ההוראות. לדוגמה: יש לתרגום את \"Between ''Rosh Hashanah'' and ''Yom Kippur''\" פשוט כך: \"בעשרת ימי תשובה\" ולא באופן מילולי. וכן אם ההוראה לא ברורה מבחינה מעשית אפשר לשנות. העיקר שיהיו הוראות ברורות וקצרות שמתאימים לסידור תפילה עברי, ובדרך כלל מקבילים להוראותיו של בירנבוים.\n*רוב ההוראות נמצאות בשורה לפני התפילה עצמה במרכז, ויש להקליד את הטקסט שלהם בתוך [[תבנית:סידור בירנבוים הוראה]].\n*אך יש גם הוראות למתפלל שמופיעות בתוך רצף הטקסט (בעיקר \"Reader\"=ש\"ץ). יש להשתמש בשבילם ב[[תבנית:סידור בירנבוים ש\"ץ]].\n*'''ציון מקורות:''' לפעמים יש ציון ממורכז של מקור (לפני התפילה) באות קטנה. יש להשתמש ב[[תבנית:סידור בירנבוים מקור]] בשבילם.\n'''עימוד''': אין להעתיק מהסריקה עימוד שדורש שימוש בטבלה, כגון בברכות השחר (עמ' 17) או ביעלה ויבוא (עמ' 89), אלא להשתמש בשיטה פשוטה (כמו שנעשה באותם עמודים). וכן לגבי טקסט שמופיע בשני טורים (כגון \"אדון עולם\" ו\"יגדל\" בעמ' 11-13), עדיף להמיר את הרווח בשורות חדשות של צורת השיר. השימוש בטבלאות יקשה על השימוש בטקסט לצרכים נוספים בעתיד, ולכן יש להימנע ממנו.\n\n[[קטגוריה:הסידור השלם (בירנבוים)]]\n\n[[en:Index:Philip Birnbaum - ha-Siddur ha-Shalem (The Daily Prayer Book,1949).pdf]]\n}}

For context, the way the wikitext is generated and stored server-side is {{:MediaWiki:Proofreadpage_index_template\n|title=<everything you put in the title field>\n|author=<everything you put in the author field>}}

Thanks, this is all very helpful.
I now see the change where the "Notes" field was removed from "Mediawiki:Proofreadpage index data config". I'm thinking of reverting to that, or to the earliest edit on the page, which was copied from the parallel page at en.wikisource (according to the edit description).

However, before doing so I noticed something strange: All of my edits to that Index page were finished earlier, i.e. well before another user created "Mediawiki:Proofreadpage index data config" at he.wikisource. Before that, "Mediawiki:Proofreadpage index data config" didn't even exist. So would reverting solve the problem?

Did the experiment. The field "notes" now exists, but it is blank, like almost all of the fields on the edit page...
I guess that reverting "Mediawiki:Proofreadpage index data config" so that it includes all the relevant fields doesn't solve the problem.

@Dovi Can you try the following config? It's based on the config hewikisource had before + some guesses based on the MediaWiki:Proofreadpage index attributes page (which is the old configuration syntax)

(edited to move the huge config file into a paste)

Thanks. I have to leave now, but will get back to this next week.

Back from a weekend without Internet :-)
Thanks Soda, there is a user at he.wikisource who is dealing with translation of this page. We will use yours as an aid too :-)

There has been community discussion of this at Hebrew Wikisource, and here is what we have learned:

  1. 1. The "Pagelist Widget" was installed in January of this year, after a community vote.
  2. 2. After installation, the page "Mediawiki:Proofreadpage index data config" was created, by a user. It initially had all of the fields. The page underwent revisions for translation and some fields were removed. But all fields in previously existing pages are blank!
  3. 3. Is this a bug?? I.e. does the installation of the "Pagelist Widget" or the creation of "Mediawiki:Proofreadpage index data config" lead to lack of access to text in previously existing fields?
  1. 1. The "Pagelist Widget" was installed in January of this year, after a community vote.
  2. 2. After installation, the page "Mediawiki:Proofreadpage index data config" was created, by a user. It initially had all of the fields. The page underwent revisions for translation and some fields were removed. But all fields in previously existing pages are blank!
  3. 3. Is this a bug?? I.e. does the installation of the "Pagelist Widget" or the creation of "Mediawiki:Proofreadpage index data config" lead to lack of access to text in previously existing fields?

@Dovi Enabling the PagelistWidget itself shouldn't cause any loss/hiding of data (it's a 1 line change in MediaWiki:Proofreadpage index data config and it's designed not to do anything to any field unless it is specifically clicked on/activated by the user).

Wrt to migrating to MediaWiki:Proofreadpage index data config from MediaWIki:Proofreadpage index data attributes there might be some loss/hiding of data if the names/ids of field are not the same.

So if you (say) had a field called খণ্ড (volume in bengali) on bn.wikisource.org in MediaWiki:Proofreadpage index data attributes and while migrating you decided to define the field like this in MediaWiki:Proofreadpage index data config:

"volume": {
    "type": "number",
    "size": 1,
    "default": ""
}

then you will lose the data in the খণ্ড field (since according to ProofreadPage খণ্ড and volume are different names even tho they refer to the same thing), instead, you need to define field like:

"খণ্ড": {
    "type": "number",
    "size": 1,
    "default": ""
}

to retain the data in the field in that field.

Thank you. So maybe that is what caused the problem.
If the data is hidden, is there a way to find it? To delete it from the "hidden" place and paste it into one of the current fields?
Or would changing the name of the field (as in your example) solve the problem?
As it is, the "hidden" data appears on the Wiki page but cannot be edited.

I tried it and it worked! The text is recovered. It is now possible to edit.
Thanks so very very much!

Is there anything left to do in this task?

Soda provided the solution to the problem.
It works now.
I am very grateful to all of you for your assistance.

Closing per last comment.