Bug 35154 - Convert StaffLoginInstructions system preference to additional contents
Summary: Convert StaffLoginInstructions system preference to additional contents
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 26050
  Show dependency treegraph
 
Reported: 2023-10-25 17:29 UTC by Owen Leonard
Modified: 2025-01-16 16:41 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
This enhancement moves the StaffLoginInstructions system preference into HTML customizations, making it possible to have language-specific content.
Version(s) released in:
25.05.00
Circulation function:


Attachments
Bug 35154: Convert StaffLoginInstructions system preference to additional contents (9.28 KB, patch)
2023-11-21 18:30 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 35154: Convert StaffLoginInstructions system preference to additional contents (9.33 KB, patch)
2023-12-06 13:10 UTC, David Nind
Details | Diff | Splinter Review
Bug 35154: Convert StaffLoginInstructions system preference to additional contents (9.38 KB, patch)
2023-12-22 15:37 UTC, Pedro Amorim
Details | Diff | Splinter Review
Bug 35154: Convert StaffLoginInstructions system preference to additional contents (9.24 KB, patch)
2024-06-24 13:48 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 35154: Convert StaffLoginInstructions system preference to additional contents (9.25 KB, patch)
2024-08-26 12:31 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 35154: Convert StaffLoginInstructions system preference to additional contents (9.22 KB, patch)
2025-01-10 20:23 UTC, Owen Leonard
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Leonard 2023-10-25 17:29:55 UTC
Building on 22318, the StaffLoginInstructions system preference should be converted to an HTML customization option.
Comment 1 Owen Leonard 2023-11-21 18:30:08 UTC Comment hidden (obsolete)
Comment 2 David Nind 2023-12-06 13:10:54 UTC Comment hidden (obsolete)
Comment 3 David Nind 2023-12-06 13:23:39 UTC
Testing notes (using KTD):

1. Something I noticed before applying the patch (so not related to this bug), is that bullet points don't display correctly on the login screen if you have these in StaffLoginInstructions. But unordered lists do. This is the same after the change in this bug.

2. Translations since 23.11 (after .po files now in separate l10n repository) - quick instructions for KTD:
   . Before starting up KTD, cd misc/translator/po:
     . git checkout master
     . git reset --hard origin/master
     . git pull
   . When in KTD, after it has started successfully (used es-ES here):
     . gulp po:update --lang es-ES
     . Install language: koha-translate --install es-ES --dev kohadev
   . To reset everything:
     . your koha clone - as normal: git checkout master, git branch -D bzXXXXX, git reset --hard origin/master
     . the l10n repository (change to misc/translator/po):
       . git checkout master (you should already be on master for the l10n repository, so normally not necessary)
       . git status (check that there are no stray files or directories, remove them if required)
       . git reset --hard origin/master
       . Remove the installed language: koha-translate --remove es-ES --dev kohadev
     . reset_all
Comment 4 Pedro Amorim 2023-12-22 15:37:02 UTC
Created attachment 160252 [details] [review]
Bug 35154: Convert StaffLoginInstructions system preference to additional contents

This patch moves the StaffLoginInstructions system preference into HTML
customizations, making it possible to have language-specific content.

To test you should have some content in the StaffLoginInstructions
system preference before applying the patch. Apply the patch and run
the database update process.

- In the staff client, go to Tools -> HTML customizations and verify
  that the content from StaffLoginInstructions is now stored there.
- The HTML customization entry form should offer StaffLoginInstructions
  as a choice under "Display location."
- Update and reinstall active translations (for instance fr-FR):
  - perl misc/translator/translate update fr-FR
  - perl misc/translator/translate install fr-FR
- Enable the translation if necessary under Administration -> System
  preferences -> language.
- Edit the StaffLoginInstructions HTML customization and add unique
  content to the "fr-FR" tab.

- View the staff interface login page. You should see the
  content you added to the StaffLoginInstructions HTML customization.
- Switch to your updated translation and confirm that the content you
  added for your translation shows up correctly.
- Go to Administration -> System preferences and search for
  "StaffLoginInstructions." It should return no results.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Comment 5 Katrin Fischer 2024-01-31 11:56:48 UTC
We have an unresolved dependency with bug 35153 in NSO here. Moving to BLOCKED; please unlock!
Comment 6 Owen Leonard 2024-06-24 13:48:45 UTC
Created attachment 168012 [details] [review]
Bug 35154: Convert StaffLoginInstructions system preference to additional contents

This patch moves the StaffLoginInstructions system preference into HTML
customizations, making it possible to have language-specific content.

To test you should have some content in the StaffLoginInstructions
system preference before applying the patch. Apply the patch and run
the database update process.

- In the staff client, go to Tools -> HTML customizations and verify
  that the content from StaffLoginInstructions is now stored there.
- The HTML customization entry form should offer StaffLoginInstructions
  as a choice under "Display location."
- Update and reinstall active translations (for instance fr-FR):
  - perl misc/translator/translate update fr-FR
  - perl misc/translator/translate install fr-FR
- Enable the translation if necessary under Administration -> System
  preferences -> language.
- Edit the StaffLoginInstructions HTML customization and add unique
  content to the "fr-FR" tab.

- View the staff interface login page. You should see the
  content you added to the StaffLoginInstructions HTML customization.
- Switch to your updated translation and confirm that the content you
  added for your translation shows up correctly.
- Go to Administration -> System preferences and search for
  "StaffLoginInstructions." It should return no results.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Comment 7 Katrin Fischer 2024-06-25 15:16:48 UTC
The dependent bug 35152 is in Signed off. Moving to BLOCKED.
Comment 8 Owen Leonard 2024-08-26 12:31:20 UTC
Created attachment 170718 [details] [review]
Bug 35154: Convert StaffLoginInstructions system preference to additional contents

This patch moves the StaffLoginInstructions system preference into HTML
customizations, making it possible to have language-specific content.

To test you should have some content in the StaffLoginInstructions
system preference before applying the patch. Apply the patch and run
the database update process.

- In the staff client, go to Tools -> HTML customizations and verify
  that the content from StaffLoginInstructions is now stored there.
- The HTML customization entry form should offer StaffLoginInstructions
  as a choice under "Display location."
- Update and reinstall active translations (for instance fr-FR):
  - perl misc/translator/translate update fr-FR
  - perl misc/translator/translate install fr-FR
- Enable the translation if necessary under Administration -> System
  preferences -> language.
- Edit the StaffLoginInstructions HTML customization and add unique
  content to the "fr-FR" tab.

- View the staff interface login page. You should see the
  content you added to the StaffLoginInstructions HTML customization.
- Switch to your updated translation and confirm that the content you
  added for your translation shows up correctly.
- Go to Administration -> System preferences and search for
  "StaffLoginInstructions." It should return no results.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Comment 9 Owen Leonard 2025-01-10 20:23:58 UTC
Created attachment 176393 [details] [review]
Bug 35154: Convert StaffLoginInstructions system preference to additional contents

This patch moves the StaffLoginInstructions system preference into HTML
customizations, making it possible to have language-specific content.

To test you should have some content in the StaffLoginInstructions
system preference before applying the patch. Apply the patch and run
the database update process.

- In the staff client, go to Tools -> HTML customizations and verify
  that the content from StaffLoginInstructions is now stored there.
- The HTML customization entry form should offer StaffLoginInstructions
  as a choice under "Display location."
- Update and reinstall active translations (for instance fr-FR):
  - perl misc/translator/translate update fr-FR
  - perl misc/translator/translate install fr-FR
- Enable the translation if necessary under Administration -> System
  preferences -> language.
- Edit the StaffLoginInstructions HTML customization and add unique
  content to the "fr-FR" tab.

- View the staff interface login page. You should see the
  content you added to the StaffLoginInstructions HTML customization.
- Switch to your updated translation and confirm that the content you
  added for your translation shows up correctly.
- Go to Administration -> System preferences and search for
  "StaffLoginInstructions." It should return no results.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Comment 10 Katrin Fischer 2025-01-16 16:41:51 UTC
Pushed for 25.05!

Well done everyone, thank you!