[Bug 24387] New: Rename News tool
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Bug ID: 24387 Summary: Rename News tool Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Tools Assignee: koha-bugs@lists.koha-community.org Reporter: caroline.cyr-la-rose@inlibro.com QA Contact: testopia@bugs.koha-community.org Now that the 'News' tool serves a larger purpose than just adding news, we should rename it. I suggest 'Content' or 'Custom content'. But it's just a suggestion. Feel free to change it to something else. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Maybe "News and content" ? It's technically redundant but I worry that people will wonder where News went. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- *** Bug 25001 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #3 from David Cook <dcook@prosentient.com.au> --- As I mention on https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25001, it seems the CMS functionality will use a heading of "Pages" with a description of "Create and edit additional content pages". I've asked one librarian and they suggested "Interface customization" or "Home page customization" or something like that. Martin suggested "Blocks" or "Content blocks", which I quite like, since it implies that it's chunks of content rather than whole pages (like the CMS), but I don't think librarians will understand. Maybe "HTML customization"? But that would only work for tech savvy librarians. Maybe "Web page customization" or "Page customization", but then I worry about the overlap with the CMS functionality. That said, maybe we should frame it all with a "Edit content" or "Content" heading and then have subheadings for "Pages" and "Sections"? -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Lisette Scheer <lisetteslatah@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lisetteslatah@gmail.com --- Comment #4 from Lisette Scheer <lisetteslatah@gmail.com> --- (In reply to Owen Leonard from comment #1)
Maybe "News and content" ?
It's technically redundant but I worry that people will wonder where News went.
+1 We still use this for news and I think it would confuse some of our folks who use that feature. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com --- Comment #5 from Lucas Gass <lucas@bywatersolutions.com> --- Some librarians use a lot of News items (both in slips and in the the OPAC ). That makes for a lot of clutter once we start adding the HTML preferences. What are the thoughts of separating these into separate 'Tools'? -News -Another section for "HTML customization" or whatever is decided to call it -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #6 from Lisette Scheer <lisetteslatah@gmail.com> --- (In reply to Lucas Gass from comment #5)
Some librarians use a lot of News items (both in slips and in the the OPAC ). That makes for a lot of clutter once we start adding the HTML preferences. What are the thoughts of separating these into separate 'Tools'?
-News -Another section for "HTML customization" or whatever is decided to call it
This is even better. Especially in consortium where different libraries might all be using the news for different things, it could be very clunky to have all the news + these content fields we are moving into the news. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rel_20_11_target -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=22544 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org Keywords|rel_20_11_target |rel_21_05_candidate -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Ed Veal <eveal@mckinneytexas.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eveal@mckinneytexas.org --- Comment #7 from Ed Veal <eveal@mckinneytexas.org> --- I support separating news and html customizations. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Margaret Hade <margaret@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |margaret@bywatersolutions.c | |om -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Séverine Queune <severine.queune@bulac.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |severine.queune@bulac.fr -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #8 from Séverine Queune <severine.queune@bulac.fr> --- (In reply to Lucas Gass from comment #5)
Some librarians use a lot of News items (both in slips and in the the OPAC ). That makes for a lot of clutter once we start adding the HTML preferences. What are the thoughts of separating these into separate 'Tools'?
-News -Another section for "HTML customization" or whatever is decided to call it
+1 to separate them ! -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Michael Adamyk <madamyk@ckls.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |madamyk@ckls.org --- Comment #9 from Michael Adamyk <madamyk@ckls.org> --- +1 to separating them. News is extremely cluttered now (as a consortium). -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also|https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=22544 | Depends on| |22544 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22544 [Bug 22544] Move C4:NewsChannels to Koha namespace -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #10 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Please help bug 22544 if you want to see this move forward. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_21_05_candidate |rel_21_11_candidate -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #11 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- I am suggesting: * Codebase will use "additional_contents", Koha::AdditionalContents * UI will split: Tools > News (same as now) Tools > HTML customization Would that work for everybody? -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #12 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Jonathan Druart from comment #11)
I am suggesting:
* Codebase will use "additional_contents", Koha::AdditionalContents
* UI will split: Tools > News (same as now) Tools > HTML customization
Would that work for everybody?
+1 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|koha-bugs@lists.koha-commun |jonathan.druart+koha@gmail. |ity.org |com -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #13 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 122737 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122737&action=edit Bug 24387: Rename "News" with "Additional contents" One big patch for one big move. The "News" feature (opac_news) has been hijacked to handle some system preferences (bug 26050). The goal was to take profit of the UI (editor) and the ability to translate the value. Disclaimer: This patch is NOT offering the best implementation but, as we still don't have bug 24975, it cannot be done now. And no, we don't want to wait for it to move forward here. This patch is going into the right direction anyway. This enhancement is going to rename the "News" with a more genertic "Additional contents". We have two different "categories" of content: "news" and "html customizations". What does it bring? - A split on the UI for disambigate the two types of content (news and syspref/html customizations) - A simplification of the edit form: all languages will be translatable on the same view (like the "notice templates") - Ground will be prepared for different types of content (if needed later) - Staff news can be translated How was the "News" area working before this patch? The opac_news DB table contained a (very inconsistent) 'lang' column. The different values were: - '' => news to display at the OPAC and staff interfaces - 'koha' => news for staff only - 'slip' => news for slip notices - $lang => news for OPAC only, translated in $lang ('en', 'es-ES', etc.) - "$location_$lang" => A syspref moved to this "news" area. The syspref is $location, and is translated in $lang. Eg. OpacLoginInstructions_en, OpacLoginInstructions_fr-FR, opacheader_es-ES This patch is improving the DB structure with the following changes: - renaming 'opac_news' with 'additional_contents' - new 'category' column => 'news' or 'html_customizations' - new 'location' column => For 'news': 'staff_and_opac', 'staff_only', 'slip' => For 'html_customizations': the old syspref name (eg. 'OpacLoginInstructions'). - new 'code' column (see later for more info) - the 'lang' column will only contain the language code ('en', 'es-ES', etc.). BUT a 'default' entry will ALWAYS exist for fallback behaviour. We are getting closer to the 'notice template' table structure because we want to match its UI. The 'code' column will bring us the ability to group the different 'additional_contents' rows. The code for a given news will be the same, but the (lang, title, content) will differ. Examples: News 1 will have, for each of the translated versions (category, code, location, branchcode) ('news', 'News1', $location, $branchcode||undef) And the 3 following columns will differ: (title, content, lang) ('title for news 1', 'content for news 1', 'default') ('titulo para 1', 'contenido para 1', 'es-ES') Note that the "category" is not strictely necessary, but it seems better to have the ability to split the different content by category/type easily. Additional changes: - Syspref 'NewsToolEditor' is renamed 'AdditionalContentsEditor' - Koha::NewItem => Koha::AdditionalContent - Koha::News => Koha::AdditionalContents - Script and template renamed from koha-news to additional-contents - Foreign keys have been renamed - Subpermission edit_news has been renamed edit_additional_contents - The UI can now be accessed via a "News" or "HTML customizations" link from the tools module. The related contents will then be displayed (both categories are now split) Changes not done here: - Primary key 'idnew' could be renamed 'id' Limitations of the upgrade: News cannot be grouped by a unique code for existing translations. => A given news will be now displayed several times on the translated interface Any ideas to improve the upgrade behaviour? We will have to add a warning in the release notes to tell libraries to review their news. Test plan: 0. Don't apply the patches 1. Translate the interfaces in some languages . Create some news for staff and OPAC . Create some content for different entry of HTML customizations Note that you are forced to define a 'default'. Also note that you are only forced to fill the title (not the content). This is certainly problematic (see FIXME in the code) as sometime only the content is displayed. . Play with the interface (edit, delete, filter) . Go to the different places the news are displayed, and confirm they are displayed correctly (staff home, opac home, opac rss) . Create 1+ news for 'slip', check an item out and 'print slip' (from the circulation page). You must see the news. . Go to the different places you are expecting the HTML customizations to be present and confirm that you see them. . Switch the lang of the interface and confirm that you now see the content in the translated version . Generate the templates in another language, don't translate the content . Use this language for the interface and confirm that the 'default' version is displauyed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #14 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 122738 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122738&action=edit Bug 24387: DBIC Schema changes DBIC update dbic update -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #15 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Some screenshots: https://snipboard.io/WspLi3.jpg https://snipboard.io/XRE3Mq.jpg https://snipboard.io/z3UY5q.jpg https://snipboard.io/oa7LQf.jpg https://snipboard.io/lYPyjw.jpg -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #16 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- I still prefer 'Blocks' or 'Content blocks' but am happy to be overruled there. However, this isn't working fully for me.. in the HTML Customisations screen if I attempt to edit an existing block the Display locations dropdown only shows the News options and not the Nav blocks etc. As later change, I'd love to see a more visual display on the blocks page highlighting where the blocks of content will actually appear rather than just a table.. but that's certainly a later enhancement. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #17 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- (In reply to Martin Renvoize from comment #16)
I still prefer 'Blocks' or 'Content blocks' but am happy to be overruled there.
Well, Katrin disagreed on that one, and that's why I've asked here before starting two days ago! :D Now it will be quite a nightmare to replace all the occurrences (script and template names, DB table, variables, modules...)
However, this isn't working fully for me.. in the HTML Customisations screen if I attempt to edit an existing block the Display locations dropdown only shows the News options and not the Nav blocks etc.
Indeed, patch on its way!
As later change, I'd love to see a more visual display on the blocks page highlighting where the blocks of content will actually appear rather than just a table.. but that's certainly a later enhancement.
Can you detail? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #18 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 122746 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122746&action=edit Bug 24387: Fix location options when editing HTML custom -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #19 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- And I finally forgot to write those tests for search_for_display! Will do next week if I don't forget. It does not prevent testing ;) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #20 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 122748 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122748&action=edit Dump data for opac_news to replay the db rev easily -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #122748|Dump data for opac_news to |Dump of dumb data for description|replay the db rev easily |opac_news to replay the db | |rev easily -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Bug 24387 depends on bug 22544, which changed state. Bug 22544 Summary: Move C4:NewsChannels to Koha namespace https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22544 What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to master |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |josef.moravec@gmail.com --- Comment #21 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- *** Bug 27451 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #22 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- *** Bug 22663 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #23 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- *** Bug 24766 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #122737|0 |1 is obsolete| | Attachment #122738|0 |1 is obsolete| | Attachment #122746|0 |1 is obsolete| | --- Comment #24 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 122872 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122872&action=edit Bug 24387: Rename "News" with "Additional contents" One big patch for one big move. The "News" feature (opac_news) has been hijacked to handle some system preferences (bug 26050). The goal was to take profit of the UI (editor) and the ability to translate the value. Disclaimer: This patch is NOT offering the best implementation but, as we still don't have bug 24975, it cannot be done now. And no, we don't want to wait for it to move forward here. This patch is going into the right direction anyway. This enhancement is going to rename the "News" with a more genertic "Additional contents". We have two different "categories" of content: "news" and "html customizations". What does it bring? - A split on the UI for disambigate the two types of content (news and syspref/html customizations) - A simplification of the edit form: all languages will be translatable on the same view (like the "notice templates") - Ground will be prepared for different types of content (if needed later) - Staff news can be translated How was the "News" area working before this patch? The opac_news DB table contained a (very inconsistent) 'lang' column. The different values were: - '' => news to display at the OPAC and staff interfaces - 'koha' => news for staff only - 'slip' => news for slip notices - $lang => news for OPAC only, translated in $lang ('en', 'es-ES', etc.) - "$location_$lang" => A syspref moved to this "news" area. The syspref is $location, and is translated in $lang. Eg. OpacLoginInstructions_en, OpacLoginInstructions_fr-FR, opacheader_es-ES This patch is improving the DB structure with the following changes: - renaming 'opac_news' with 'additional_contents' - new 'category' column => 'news' or 'html_customizations' - new 'location' column => For 'news': 'staff_and_opac', 'staff_only', 'slip' => For 'html_customizations': the old syspref name (eg. 'OpacLoginInstructions'). - new 'code' column (see later for more info) - the 'lang' column will only contain the language code ('en', 'es-ES', etc.). BUT a 'default' entry will ALWAYS exist for fallback behaviour. We are getting closer to the 'notice template' table structure because we want to match its UI. The 'code' column will bring us the ability to group the different 'additional_contents' rows. The code for a given news will be the same, but the (lang, title, content) will differ. Examples: News 1 will have, for each of the translated versions (category, code, location, branchcode) ('news', 'News1', $location, $branchcode||undef) And the 3 following columns will differ: (title, content, lang) ('title for news 1', 'content for news 1', 'default') ('titulo para 1', 'contenido para 1', 'es-ES') Note that the "category" is not strictely necessary, but it seems better to have the ability to split the different content by category/type easily. Additional changes: - Syspref 'NewsToolEditor' is renamed 'AdditionalContentsEditor' - Koha::NewItem => Koha::AdditionalContent - Koha::News => Koha::AdditionalContents - Script and template renamed from koha-news to additional-contents - Foreign keys have been renamed - Subpermission edit_news has been renamed edit_additional_contents - The UI can now be accessed via a "News" or "HTML customizations" link from the tools module. The related contents will then be displayed (both categories are now split) Changes not done here: - Primary key 'idnew' could be renamed 'id' Limitations of the upgrade: News cannot be grouped by a unique code for existing translations. => A given news will be now displayed several times on the translated interface Any ideas to improve the upgrade behaviour? We will have to add a warning in the release notes to tell libraries to review their news. Test plan: 0. Don't apply the patches 1. Translate the interfaces in some languages . Create some news for staff and OPAC . Create some content for different entry of HTML customizations Note that you are forced to define a 'default'. Also note that you are only forced to fill the title (not the content). This is certainly problematic (see FIXME in the code) as sometime only the content is displayed. . Play with the interface (edit, delete, filter) . Go to the different places the news are displayed, and confirm they are displayed correctly (staff home, opac home, opac rss) . Create 1+ news for 'slip', check an item out and 'print slip' (from the circulation page). You must see the news. . Go to the different places you are expecting the HTML customizations to be present and confirm that you see them. . Switch the lang of the interface and confirm that you now see the content in the translated version . Generate the templates in another language, don't translate the content . Use this language for the interface and confirm that the 'default' version is displauyed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #25 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 122873 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122873&action=edit Bug 24387: Fix location options when editing HTML custom -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #26 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 122874 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122874&action=edit Bug 24387: DBIC schema changes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #122872|0 |1 is obsolete| | --- Comment #27 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 122878 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122878&action=edit Bug 24387: Rename "News" with "Additional contents" One big patch for one big move. The "News" feature (opac_news) has been hijacked to handle some system preferences (bug 26050). The goal was to take profit of the UI (editor) and the ability to translate the value. Disclaimer: This patch is NOT offering the best implementation but, as we still don't have bug 24975, it cannot be done now. And no, we don't want to wait for it to move forward here. This patch is going into the right direction anyway. This enhancement is going to rename the "News" with a more genertic "Additional contents". We have two different "categories" of content: "news" and "html customizations". What does it bring? - A split on the UI for disambigate the two types of content (news and syspref/html customizations) - A simplification of the edit form: all languages will be translatable on the same view (like the "notice templates") - Ground will be prepared for different types of content (if needed later) - Staff news can be translated How was the "News" area working before this patch? The opac_news DB table contained a (very inconsistent) 'lang' column. The different values were: - '' => news to display at the OPAC and staff interfaces - 'koha' => news for staff only - 'slip' => news for slip notices - $lang => news for OPAC only, translated in $lang ('en', 'es-ES', etc.) - "$location_$lang" => A syspref moved to this "news" area. The syspref is $location, and is translated in $lang. Eg. OpacLoginInstructions_en, OpacLoginInstructions_fr-FR, opacheader_es-ES This patch is improving the DB structure with the following changes: - renaming 'opac_news' with 'additional_contents' - new 'category' column => 'news' or 'html_customizations' - new 'location' column => For 'news': 'staff_and_opac', 'staff_only', 'slip' => For 'html_customizations': the old syspref name (eg. 'OpacLoginInstructions'). - new 'code' column (see later for more info) - the 'lang' column will only contain the language code ('en', 'es-ES', etc.). BUT a 'default' entry will ALWAYS exist for fallback behaviour. We are getting closer to the 'notice template' table structure because we want to match its UI. The 'code' column will bring us the ability to group the different 'additional_contents' rows. The code for a given news will be the same, but the (lang, title, content) will differ. Examples: News 1 will have, for each of the translated versions (category, code, location, branchcode) ('news', 'News1', $location, $branchcode||undef) And the 3 following columns will differ: (title, content, lang) ('title for news 1', 'content for news 1', 'default') ('titulo para 1', 'contenido para 1', 'es-ES') Note that the "category" is not strictely necessary, but it seems better to have the ability to split the different content by category/type easily. Additional changes: - Syspref 'NewsToolEditor' is renamed 'AdditionalContentsEditor' - Koha::NewItem => Koha::AdditionalContent - Koha::News => Koha::AdditionalContents - Script and template renamed from koha-news to additional-contents - Foreign keys have been renamed - Subpermission edit_news has been renamed edit_additional_contents - The UI can now be accessed via a "News" or "HTML customizations" link from the tools module. The related contents will then be displayed (both categories are now split) Changes not done here: - Primary key 'idnew' could be renamed 'id' Limitations of the upgrade: News cannot be grouped by a unique code for existing translations. => A given news will be now displayed several times on the translated interface Any ideas to improve the upgrade behaviour? We will have to add a warning in the release notes to tell libraries to review their news. Test plan: 0. Don't apply the patches 1. Translate the interfaces in some languages . Create some news for staff and OPAC . Create some content for different entry of HTML customizations Note that you are forced to define a 'default'. Also note that you are only forced to fill the title (not the content). This is certainly problematic (see FIXME in the code) as sometime only the content is displayed. . Play with the interface (edit, delete, filter) . Go to the different places the news are displayed, and confirm they are displayed correctly (staff home, opac home, opac rss) . Create 1+ news for 'slip', check an item out and 'print slip' (from the circulation page). You must see the news. . Go to the different places you are expecting the HTML customizations to be present and confirm that you see them. . Switch the lang of the interface and confirm that you now see the content in the translated version . Generate the templates in another language, don't translate the content . Use this language for the interface and confirm that the 'default' version is displauyed. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #122873|0 |1 is obsolete| | --- Comment #28 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 122879 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122879&action=edit Bug 24387: Fix location options when editing HTML custom Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #122874|0 |1 is obsolete| | --- Comment #29 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 122880 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122880&action=edit Bug 24387: DBIC schema changes Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off --- Comment #30 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- This is a great improvement, the biggest bit to me being the 'default' fallback behaviour. I can't come up with a nicer way to do the DB update, but I think we can cover ourselves with release notes. We can certainly continue to iterate here on follow-up bugs.. I'm still keen to split the tables back out for different functions.. but that can certainly come later. Signing off. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |tomascohen@gmail.com |y.org | CC| |tomascohen@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #122880|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #122878|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #122879|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #31 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 123730 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123730&action=edit Bug 24387: Rename "News" with "Additional contents" One big patch for one big move. The "News" feature (opac_news) has been hijacked to handle some system preferences (bug 26050). The goal was to take profit of the UI (editor) and the ability to translate the value. Disclaimer: This patch is NOT offering the best implementation but, as we still don't have bug 24975, it cannot be done now. And no, we don't want to wait for it to move forward here. This patch is going into the right direction anyway. This enhancement is going to rename the "News" with a more genertic "Additional contents". We have two different "categories" of content: "news" and "html customizations". What does it bring? - A split on the UI for disambigate the two types of content (news and syspref/html customizations) - A simplification of the edit form: all languages will be translatable on the same view (like the "notice templates") - Ground will be prepared for different types of content (if needed later) - Staff news can be translated How was the "News" area working before this patch? The opac_news DB table contained a (very inconsistent) 'lang' column. The different values were: - '' => news to display at the OPAC and staff interfaces - 'koha' => news for staff only - 'slip' => news for slip notices - $lang => news for OPAC only, translated in $lang ('en', 'es-ES', etc.) - "$location_$lang" => A syspref moved to this "news" area. The syspref is $location, and is translated in $lang. Eg. OpacLoginInstructions_en, OpacLoginInstructions_fr-FR, opacheader_es-ES This patch is improving the DB structure with the following changes: - renaming 'opac_news' with 'additional_contents' - new 'category' column => 'news' or 'html_customizations' - new 'location' column => For 'news': 'staff_and_opac', 'staff_only', 'slip' => For 'html_customizations': the old syspref name (eg. 'OpacLoginInstructions'). - new 'code' column (see later for more info) - the 'lang' column will only contain the language code ('en', 'es-ES', etc.). BUT a 'default' entry will ALWAYS exist for fallback behaviour. We are getting closer to the 'notice template' table structure because we want to match its UI. The 'code' column will bring us the ability to group the different 'additional_contents' rows. The code for a given news will be the same, but the (lang, title, content) will differ. Examples: News 1 will have, for each of the translated versions (category, code, location, branchcode) ('news', 'News1', $location, $branchcode||undef) And the 3 following columns will differ: (title, content, lang) ('title for news 1', 'content for news 1', 'default') ('titulo para 1', 'contenido para 1', 'es-ES') Note that the "category" is not strictely necessary, but it seems better to have the ability to split the different content by category/type easily. Additional changes: - Syspref 'NewsToolEditor' is renamed 'AdditionalContentsEditor' - Koha::NewItem => Koha::AdditionalContent - Koha::News => Koha::AdditionalContents - Script and template renamed from koha-news to additional-contents - Foreign keys have been renamed - Subpermission edit_news has been renamed edit_additional_contents - The UI can now be accessed via a "News" or "HTML customizations" link from the tools module. The related contents will then be displayed (both categories are now split) Changes not done here: - Primary key 'idnew' could be renamed 'id' Limitations of the upgrade: News cannot be grouped by a unique code for existing translations. => A given news will be now displayed several times on the translated interface Any ideas to improve the upgrade behaviour? We will have to add a warning in the release notes to tell libraries to review their news. Test plan: 0. Don't apply the patches 1. Translate the interfaces in some languages . Create some news for staff and OPAC . Create some content for different entry of HTML customizations Note that you are forced to define a 'default'. Also note that you are only forced to fill the title (not the content). This is certainly problematic (see FIXME in the code) as sometime only the content is displayed. . Play with the interface (edit, delete, filter) . Go to the different places the news are displayed, and confirm they are displayed correctly (staff home, opac home, opac rss) . Create 1+ news for 'slip', check an item out and 'print slip' (from the circulation page). You must see the news. . Go to the different places you are expecting the HTML customizations to be present and confirm that you see them. . Switch the lang of the interface and confirm that you now see the content in the translated version . Generate the templates in another language, don't translate the content . Use this language for the interface and confirm that the 'default' version is displauyed. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #32 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 123731 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123731&action=edit Bug 24387: Fix location options when editing HTML custom Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #33 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 123732 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123732&action=edit Bug 24387: DBIC schema changes Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #34 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 123733 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123733&action=edit Bug 24387: (QA follow-up) Add missing filters Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #35 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 123734 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123734&action=edit Bug 24387: (QA follow-up) Fix method import issues Raised by the QA script, a couple issues carried by pre-17600 patches. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #36 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Some DB columns are missing default values (category, code and location): DBD::mysql::db do failed: Field 'code' doesn't have a default value at /kohadevbox/koha/C4/Installer.pm line 572. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #37 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 123795 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123795&action=edit Bug 24387: Fix sample_news.yml installer file -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #38 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 123796 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123796&action=edit Bug 24387: Remove sample_news.for other languages We shouldn't continue to update those files as we are going to remove them soon. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #39 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- (In reply to Tomás Cohen Arazi from comment #36)
Some DB columns are missing default values (category, code and location):
DBD::mysql::db do failed: Field 'code' doesn't have a default value at /kohadevbox/koha/C4/Installer.pm line 572.
It's the installer file that was missing values for those columns! Thx! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #123795|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #123796|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #40 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 123797 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123797&action=edit Bug 24387: Fix sample_news.yml installer file Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #41 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 123798 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123798&action=edit Bug 24387: Remove sample_news.for other languages We shouldn't continue to update those files as we are going to remove them soon. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA --- Comment #42 from Tomás Cohen Arazi <tomascohen@gmail.com> --- This action will erase all your data. Are you sure? (y/N) y Running [sudo koha-shell kohadev -p -c 'PERL5LIB=/kohadevbox/koha:/kohadevbox/koha/lib:/kohadevbox/qa-test-tools perl /kohadevbox/misc4dev/populate_db.pl -v --opac-base-url http://kohadev.myDNSname.org:8080 --intranet-base-url http://kohadev-intra.myDNSname.org:8081 --marcflavour MARC21']... C4::Installer::load_sql returned the following errors while attempting to load /kohadevbox/koha/installer/data/mysql/en/optional/sample_news.yml: DBD::mysql::db do failed: Field 'code' doesn't have a default value at /kohadevbox/koha/C4/Installer.pm line 572. Inserting koha db structure... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #43 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- With all the patches attached to the bug report right now: root@kohadevbox:koha(bug_24387)$ reset_all This action will erase all your data. Are you sure? (y/N) y Running [sudo koha-shell kohadev -p -c 'PERL5LIB=/kohadevbox/koha:/kohadevbox/koha/lib:/kohadevbox/qa-test-tools perl /kohadevbox/misc4dev/populate_db.pl -v --opac-base-url http://kohadev.myDNSname.org:8080 --intr anet-base-url http://kohadev-intra.myDNSname.org:8081 --marcflavour MARC21']... Inserting koha db structure... Inserting /kohadevbox/koha/installer/data/mysql/mandatory/sysprefs.sql... Inserting /kohadevbox/koha/installer/data/mysql/mandatory/subtag_registry.sql... Inserting /kohadevbox/koha/installer/data/mysql/mandatory/auth_val_cat.sql... Inserting /kohadevbox/koha/installer/data/mysql/mandatory/message_transport_types.sql... Inserting /kohadevbox/koha/installer/data/mysql/mandatory/sample_notices_message_attributes.sql... Inserting /kohadevbox/koha/installer/data/mysql/mandatory/sample_notices_message_transports.sql... Inserting /kohadevbox/koha/installer/data/mysql/mandatory/keyboard_shortcuts.sql... Inserting /kohadevbox/koha/installer/data/mysql/mandatory/userflags.sql... Inserting /kohadevbox/koha/installer/data/mysql/mandatory/userpermissions.sql... Inserting /kohadevbox/koha/installer/data/mysql/mandatory/audio_alerts.sql... Skipping /kohadevbox/koha/installer/data/mysql/account_offset_types.sql Inserting /kohadevbox/koha/installer/data/mysql/mandatory/account_credit_types.sql... Inserting /kohadevbox/koha/installer/data/mysql/mandatory/account_debit_types.sql... Inserting /kohadevbox/koha/installer/data/mysql/en/mandatory/auth_values.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/mandatory/class_sources.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/mandatory/sample_frequencies.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/mandatory/sample_notices.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/mandatory/sample_numberpatterns.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/auth_val.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/csv_profiles.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/marc21_holdings_coded_values.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/marc21_relatorterms.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/parameters.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/patron_atributes.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/patron_categories.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/sample_creator_data.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/sample_itemtypes.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/sample_libraries.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/sample_libraries_holidays.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/sample_news.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/sample_patrons.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/sample_quotes.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/optional/sample_z3950_servers.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/marcflavour/marc21/mandatory/authorities_normal_marc21.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/marcflavour/marc21/optional/marc21_default_matching_rules.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/marcflavour/marc21/optional/marc21_sample_fastadd_framework.yml... Inserting /kohadevbox/koha/installer/data/mysql/en/marcflavour/marc21/optional/marc21_simple_bib_frameworks.yml... Setting the MARC flavour on the sysprefs... Setting Koha version to 21.0600014... Can you double-check please? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #44 from Tomás Cohen Arazi <tomascohen@gmail.com> --- My setup is KTD, using master-buster and mariadb:10.3 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #123797|0 |1 is obsolete| | --- Comment #45 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 123803 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123803&action=edit Bug 24387: Fix sample_news.yml installer file -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #46 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- (In reply to Tomás Cohen Arazi from comment #44)
My setup is KTD, using master-buster and mariadb:10.3
Same here but with mariadb 10:1:48. The code was missing from yml, obvious mistake, sorry about that. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #47 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- [ We should docker up "d11" and have a D11 with dbms version brought by D11 We shouldn't have to explicitly tell that we need to up with docker-compose.mariadb_d11.yml Can this be fixed? is it worth opening a new ktd issue? ] -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #123803|0 |1 is obsolete| | --- Comment #48 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 123811 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123811&action=edit Bug 24387: Fix sample_news.yml installer file Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |release-notes-needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |21.11.00 released in| | Status|Passed QA |Pushed to master -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #49 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Pushed to master for 21.11, thanks to everybody involved! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #50 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 123854 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123854&action=edit Bug 24387: Fix one remaining occurrence of KohaNews -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #51 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 123855 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123855&action=edit Bug 24387: Fix AdditionalContents.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #52 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 123856 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123856&action=edit Bug 24387: Fix Letters/TemplateToolkit.t We must cast to date or the comparison does not work -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #53 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Last 3 patches pushed to master. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This enhancement is release notes| |renaming the "News" tool | |with a more generic | |"Additional contents". | |It | |creates two different | |"categories" of content: | |"news" and "html | |customizations". CC| |fridolin.somers@biblibre.co | |m Keywords|release-notes-needed | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|This enhancement is |This enhancement is release notes|renaming the "News" tool |renaming the "News" tool to |with a more generic |the more generic |"Additional contents". |"Additional contents". |It |It |creates two different |creates two different |"categories" of content: |"categories" of content: |"news" and "html |"news" and "HTML |customizations". |customizations". -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_21_11_candidate |additional_work_needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #54 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 124867 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124867&action=edit Bug 24387: Entries with parent are missing a code We executed the same 2 queries, we want to adjust the code for the parent and the language specific row. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29041 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29041 [Bug 29041] Improve specificity of breadcrumbs in Additional Contents -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29042 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29042 [Bug 29042] Improve formatting of entry form in Additional Contents -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #124867|0 |1 is obsolete| | --- Comment #55 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 125545 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=125545&action=edit Bug 24387: Entries with parent are missing a code We executed the same 2 queries, we want to adjust the code for the parent and the language specific row. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@bywatersolutions.com --- Comment #56 from Nick Clemens <nick@bywatersolutions.com> --- (In reply to Jonathan Druart from comment #54)
Created attachment 124867 [details] [review] Bug 24387: Entries with parent are missing a code
We executed the same 2 queries, we want to adjust the code for the parent and the language specific row.
(In reply to Nick Clemens from comment #55)
Created attachment 125545 [details] [review] Bug 24387: Entries with parent are missing a code
We executed the same 2 queries, we want to adjust the code for the parent and the language specific row.
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Read code, did not test, but the change makes logical sense -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #57 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- (In reply to Nick Clemens from comment #55)
Created attachment 125545 [details] [review] Bug 24387: Entries with parent are missing a code
We executed the same 2 queries, we want to adjust the code for the parent and the language specific row.
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Pushed to master. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|additional_work_needed | Blocks| |29113 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29113 [Bug 29113] Required new "code" field for additional contents appears unnecessary -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED CC| |kyle@bywatersolutions.com Status|Pushed to master |RESOLVED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29153 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29153 [Bug 29153] CodeMirror broken on additional-contents.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29263 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29263 [Bug 29263] Return to Additional Contents listview after editing such an item -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29424 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29424 [Bug 29424] Replace the table on 'HTML customisations' administration with a visual alternative. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29515 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29515 [Bug 29515] Don't require title for HTML customizations -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29528 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29528 [Bug 29528] Breadcrumbs on HTML customizations take you to news -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Michael Adamyk <madamyk@ckls.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|madamyk@ckls.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29717 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29717 [Bug 29717] Too many DateTime manipulation in tools/additional-contents.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29782 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29782 [Bug 29782] Missing entries for display locations in HTML customizations -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29805 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29805 [Bug 29805] Database update fails in MySQL 5.7 because it's missing REGEXP_REPLACE -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29828 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29828 [Bug 29828] If no content is added to default, but a translation, news/additional content entries don't show in list -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29778 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29778 [Bug 29778] Deleting additional_contents leaves entries for additional languages -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl --- Comment #58 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Tomás Cohen Arazi from comment #31)
Disclaimer: This patch is NOT offering the best implementation but, as we still don't have bug 24975, it cannot be done now. And no, we don't want to wait for it to move forward here. This patch is going into the right direction anyway.
24975 wasnt there in August 2021, but still in coma October 2022.. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #59 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- + $new_lang = "default" if $new_lang eq 'en'; # Assume that "en" is "default" Dont like this assumption after all ;) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #60 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Marcel de Rooy from comment #59)
+ $new_lang = "default" if $new_lang eq 'en'; # Assume that "en" is "default"
Dont like this assumption after all ;)
This dbrev made a mess of my news items. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #61 from Fridolin Somers <fridolin.somers@biblibre.com> --- Same for us french. We fixed manually after upgrade. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #62 from David Cook <dcook@prosentient.com.au> --- (In reply to Fridolin Somers from comment #61)
Same for us french. We fixed manually after upgrade.
I don't know if it was this change, but we've had a lot of issues with news/additional contents with upgrades where we have multiple languages enabled. Manually fixed after upgrade as well. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #63 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- What did you fix, and how? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #64 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Jonathan Druart from comment #63)
What did you fix, and how?
In short (but I spent a few hours): News goes fine, the non-News stuff goes wrong. If you have an EN and an NL record, it adds two Default records. The EN and NL are not connected anymore. This may lead to duplicating elements on the OPAC display too. Also EN became default iirc. I had to do a little bit more since I had customized news stuff too. So it made no sense to submit my fix. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #65 from Fridolin Somers <fridolin.somers@biblibre.com> --- (In reply to Jonathan Druart from comment #63)
What did you fix, and how?
Same for us. And before upgrade we looked where custom block is only 'fr-FR' to change it in 'en'. So that is becomes default after upgrade. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #66 from David Cook <dcook@prosentient.com.au> --- (In reply to Jonathan Druart from comment #63)
What did you fix, and how?
We ended up having to delete duplicated entries. I can't remember what conditions we used for the cleanup. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #67 from Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> --- I'm trying to figure out how to NOT have to do manual changes after the upgrade as we're about to upgrade ~60 installations from 21.05 to 22.05. I have an instance with 4 'OpacMainUserBlock' news, two in fr-CA and two in en. They each are the translation of the other (i.e. en #1 is the translation of fr-CA #1 and en #2 is the translation of fr-CA #2). Although It's not evident in the db and I don't think the dbrev can do anything about it. (And what's worse is that this particular library just copied the French text into the english news... but we won't take that into account.) select idnew, branchcode, title, lang, published_on, updated_on, expirationdate, number, borrowernumber from opac_news where lang like "%OpacMainUserBlock%"; +-------+------------+-------------------------+-------------------------+--------------+---------------------+----------------+--------+----------------+ | idnew | branchcode | title | lang | published_on | updated_on | expirationdate | number | borrowernumber | +-------+------------+-------------------------+-------------------------+--------------+---------------------+----------------+--------+----------------+ | 19 | NULL | OpacMainUserBlock_fr-CA | OpacMainUserBlock_fr-CA | 2021-02-01 | 2022-09-27 11:49:20 | NULL | 0 | NULL | | 20 | NULL | OpacMainUserBlock_en | OpacMainUserBlock_en | 2021-02-01 | 2022-09-27 11:49:20 | NULL | 0 | NULL | | 31 | NULL | Ouverture | OpacMainUserBlock_fr-CA | 2021-06-22 | 2022-08-10 10:08:52 | NULL | 1 | 1 | | 32 | NULL | Welcome | OpacMainUserBlock_en | 2021-06-22 | 2022-08-10 10:08:52 | NULL | 1 | 1 | +-------+------------+-------------------------+-------------------------+--------------+---------------------+----------------+--------+----------------+ 4 rows in set (0.000 sec) After the upgrade, I have six 'OpacMainUserBlock' contents, four defaults and two fr-CA. It seems like it doubled the fr-CA ones (one default and one fr-CA for each) and changed the en ones into default. select idnew, category, code, location, branchcode, title, lang, published_on, expirationdate, number, borrowernumber from additional_contents where location = 'OpacMainUserBlock' order by code; +-------+---------------------+---------+-------------------+------------+-------------------------+---------+--------------+----------------+--------+----------------+ | idnew | category | code | location | branchcode | title | lang | published_on | expirationdate | number | borrowernumber | +-------+---------------------+---------+-------------------+------------+-------------------------+---------+--------------+----------------+--------+----------------+ | 20 | html_customizations | News_20 | OpacMainUserBlock | NULL | OpacMainUserBlock_en | default | 2021-02-01 | NULL | 0 | NULL | | 32 | html_customizations | News_32 | OpacMainUserBlock | NULL | Welcome | default | 2021-06-22 | NULL | 1 | 1 | | 19 | html_customizations | News_49 | OpacMainUserBlock | NULL | OpacMainUserBlock_fr-CA | fr-CA | 2021-02-01 | NULL | 0 | NULL | | 49 | html_customizations | News_49 | OpacMainUserBlock | NULL | OpacMainUserBlock_fr-CA | default | 2021-02-01 | NULL | 0 | NULL | | 31 | html_customizations | News_55 | OpacMainUserBlock | NULL | Ouverture | fr-CA | 2021-06-22 | NULL | 1 | 1 | | 55 | html_customizations | News_55 | OpacMainUserBlock | NULL | Ouverture | default | 2021-06-22 | NULL | 1 | 1 | +-------+---------------------+---------+-------------------+------------+-------------------------+---------+--------------+----------------+--------+----------------+ 6 rows in set (0.000 sec) The contents are doubled everywhere in the OPAC, both in English and French. So I think default appears no matter which language were on? I'm wondering if it's necessary to create defaults? It was not possible to have that before with the news, it had to be in either language. So I don't think it makes sense to create a default in the course of the upgrade... (It's fine to use default after of course). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 --- Comment #68 from Blou <philippe.blouin@inlibro.com> --- Created attachment 142653 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142653&action=edit Bug 24387 - fixup to db_rev for non-english, multilingual Koha Without this patch, the update process duplicates all the news and content entries when they were non-english to start with. This patch keeps the same process, but new "default" "parent" entries are empty so there' no duplication in the OPAC display, while still being editable/deletable in the intranet. We came through that through many iterations. This was the least invasive while still providing satisfying results. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |additional_work_needed --- Comment #69 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Thanks Blou! I've marked this as "additional_work_needed" to get some attention, but as this bug has already been released and we don't want it to show up in release notes again, we should move the follow-up to a separate bug where we can also highlight it as a fix for a bad bug. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |32110 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32110 [Bug 32110] Duplicated additional content entries on DBRev 210600016 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|additional_work_needed | --- Comment #70 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Katrin Fischer from comment #69)
Thanks Blou! I've marked this as "additional_work_needed" to get some attention, but as this bug has already been released and we don't want it to show up in release notes again, we should move the follow-up to a separate bug where we can also highlight it as a fix for a bad bug.
Moved to bug 32110 to get proper QA on it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24387 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #142653|0 |1 is obsolete| | --- Comment #71 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Comment on attachment 142653 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142653 Bug 24387 - fixup to db_rev for non-english, multilingual Koha
From 559376aaf1c53efa1589a37e77769c6ffc41088d Mon Sep 17 00:00:00 2001 From: Blou <blou@inlibro.com> Date: Tue, 25 Oct 2022 14:55:52 -0400 Subject: [PATCH] Bug 24387 - fixup to db_rev for non-english, multilingual Koha
Without this patch, the update process duplicates all the news and content entries when they were non-english to start with.
This patch keeps the same process, but new "default" "parent" entries are empty so there' no duplication in the OPAC display, while still being editable/deletable in the intranet.
We came through that through many iterations. This was the least invasive while still providing satisfying results. --- installer/data/mysql/db_revs/210600016.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/installer/data/mysql/db_revs/210600016.pl b/installer/data/mysql/db_revs/210600016.pl index 8d66de86cb..6d03adc89d 100755 --- a/installer/data/mysql/db_revs/210600016.pl +++ b/installer/data/mysql/db_revs/210600016.pl @@ -111,7 +111,7 @@ return { # Now this is getting weird # We are adding an extra news with the same code when the lang is not "default" (/"en")
- $new_lang = "default" if $new_lang eq 'en'; # Assume that "en" is "default" +# $new_lang = "default" if $new_lang eq 'en'; # Assume that "en" is "default"
my $sth_update = $dbh->prepare(q| UPDATE additional_contents @@ -124,7 +124,7 @@ return { $dbh->do(q| INSERT INTO additional_contents(category, code, location, branchcode, title, content, lang, published_on, updated_on, expirationdate, number, borrowernumber) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - |, undef, $category, 'tmp_code', $location, $c->{branchcode}, $c->{title}, $c->{content}, 'default', $c->{published_on}, $c->{updated_on}, $c->{expirationdate}, $c->{number}, $c->{borrowernumber}); + |, undef, $category, 'tmp_code', $location, $c->{branchcode}, $c->{title}, '', 'default', $c->{published_on}, $c->{updated_on}, $c->{expirationdate}, $c->{number}, $c->{borrowernumber});
$parent_idnew = $dbh->last_insert_id(undef, undef, 'additional_contents', undef); } -- 2.34.1
-- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org