From 462e2395531c61d9fa60cdc66fd771c2be52ee6e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 5 Jan 2023 12:59:10 +0000 Subject: [PATCH] Bug 32571: (follow-up) Implement abstracted tabs on About page This patch implements the proposed system for building tabs on the About page. To test, apply the patch and view the About page. It should look the same as before and all tabs should function correctly. Signed-off-by: David Nind Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/modules/about.tt | 81 ++++++++----------- 1 file changed, 32 insertions(+), 49 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index bff9993b44..ed58c59371 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -1,3 +1,4 @@ +[% USE raw %] [% USE HtmlTags %] [% USE Koha %] [% USE KohaDates %] @@ -29,37 +30,20 @@

About Koha

-
- - -
-
- + [% WRAPPER tabs id= "abouttabs" %] + [% WRAPPER tabs_nav %] + [% WRAPPER tab_item tabname= "about" active= 1 %] Server information [% END %] + [% WRAPPER tab_item tabname= "perl" %] Perl modules [% END %] + [% WRAPPER tab_item tabname= "sysinfo" %] System information [% END %] + [% WRAPPER tab_item tabname= "team" %] Koha team [% END %] + [% WRAPPER tab_item tabname= "licenses" %] Licenses [% END %] + [% WRAPPER tab_item tabname= "translations" %] Translations [% END %] + [% WRAPPER tab_item tabname= "history" %] Timeline [% END %] + [% WRAPPER tab_item tabname= "dedications" %] Dedications [% END %] + [% END %] + + [% WRAPPER tab_panels %] + [% WRAPPER tab_panel tabname= "about" active= 1 %] @@ -230,9 +214,9 @@
Server information
-
+ [% END # /WRAPPER tab_item about %] -
+ [% WRAPPER tab_panel tabname= "perl" %] [% FOREACH tabl IN table %] @@ -280,9 +264,9 @@ [% END # /FOREACH tabl %]
Perl modules
-
+ [% END # /WRAPPER tab_item perl %] -
+ [% WRAPPER tab_panel tabname= "sysinfo" %] [% IF warnRequireChoosingExistingAuthority || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnPrefKohaAdminEmailAddress || warnPrefOpacHiddenItems || invalid_yesno.count || warnNoActiveCurrency || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || has_ai_issues || oauth2_missing_deps || bad_yaml_prefs || warnRelationships || log4perl_errors || config_bcrypt_settings_no_set || warnHiddenBiblionumbers.size || warnConnectBroker || elasticsearch_has_missing %] [% IF (warnIsRootUser) %]

Warning regarding current user

@@ -707,9 +691,9 @@ [% ELSE %]

No warnings.

[% END # /IF warnRequireChoosingExistingAuthority... %] -
+ [% END # /WRAPPER tab_item sysinfo %] -
+ [% WRAPPER tab_panel tabname= "team" %]

Special thanks to the following organizations

  • @@ -894,9 +878,9 @@
  • Nicholas Rosasco (Documentation Compiler)
  • Regula Sebastiao
-
+ [% END # /WRAPPER tab_item team %] - + [% END # /WRAPPER tab_item licenses %] -
+ [% WRAPPER tab_panel tabname= "translations" %]

Translation

  • العربية (Arabic) Version 3.2 to 3.4, 3.16 & 3.18 by KnowledgeWare Technologies; Versions 3.6 to 3.14 by Arabic Koha support team: Karam Qubsi, Kouider Bounama, Sham Bajaa, Ghofran Alshami, Chrestian Aboud, Fatema Salem and Duaa Bazzazi. @@ -1153,10 +1137,9 @@
  • اردو(Urdu) Ata ur Rehman
  • Українська (Ukrainian) Victor Titarchuk and Serhij Dubyk
+ [% END # /WRAPPER tab_item translations %] -
- -
+ [% WRAPPER tab_panel tabname= "history" %]

Koha history timeline

[% IF ! timeline_read_error %] @@ -1180,9 +1163,9 @@ Could not read the history.txt file. Please make sure <docdir> is correctly defined in koha-conf.xml. [% END %] - + [% END # /WRAPPER tab_item history %] -
+ [% WRAPPER tab_panel tabname= "dedications" %]

22.11

The Koha Community would like to dedicate the release of Koha 22.11 to Rosalie Blake. @@ -1197,9 +1180,9 @@ She was also a practicing Justice of the Peace, a stalwart of the Levin Pottery Club and much loved mother of Simon and Jeremy, and grandmother of Ben, Toby, Anna, Charlotte and Billy.

-
- - + [% END # /WRAPPER tab_item dedications %] + [% END %] + [% END # /WRAPPER abouttabs %] -- 2.30.2