From 1a69850bc96935dedb245b93c80b16415b18e5ad Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Mon, 12 Dec 2016 23:02:24 +0000 Subject: [PATCH] Bug 17855 - Finished front end of onboarding tool which user is redirected to (after authentication) after finishing the web installer. Finished and working front and backend of updated web installer, with basic and advanced setup modes. Bug 17855 - Finished updated web installer, onboarding tool displayed after installer finished. Front end of first two onboarding tool screens finished. Summary page available from Koha main page. Bug 17855 - Onboarding tool (not working yet) integrated with finished web installer. After finishing the web installer a login page will appear, enter the database administrator account credentials then the onboarding tool will appear. Working first screen of the onboarding tool accessed after web installer is finished Finished web installer with working first two screens of the onboarding tool with no database functionality backend Create a patron page is under way. Created a summary page of the onboarding tutorial. Link in More will take you to it. Visually working first 5 screens of the onboarding tool (no database functionality yet) and finished web installer Working visual front end of the first 7 screens of the onboarding tool working with a finished web installer Finished working front end of the onboarding tool and finished web installer --- installer/onboarding.pl | 64 ++++- .../intranet-tmpl/prog/en/includes/header.inc | 2 + .../prog/en/modules/installer/step3.tt | 4 +- .../intranet-tmpl/prog/en/modules/intranet-main.tt | 2 - .../en/modules/onboarding/.onboardingstep1.tt.swp | Bin 36864 -> 0 bytes .../en/modules/onboarding/.onboardingstep2.tt.swp | Bin 20480 -> 0 bytes .../prog/en/modules/onboarding/onboardingstep1.tt | 76 +++--- .../prog/en/modules/onboarding/onboardingstep2.tt | 301 +++++++++++---------- .../prog/en/modules/onboarding/onboardingstep3.tt | 122 +++++++++ .../prog/en/modules/onboarding/onboardingstep4.tt | 79 ++++++ .../prog/en/modules/onboarding/onboardingstep5.tt | 251 +++++++++++++++++ koha-tmpl/intranet-tmpl/prog/en/modules/summary.tt | 41 +++ summary.pl | 58 ++++ 13 files changed, 791 insertions(+), 209 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep1.tt.swp delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep2.tt.swp create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep4.tt create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/summary.tt create mode 100755 summary.pl diff --git a/installer/onboarding.pl b/installer/onboarding.pl index 8da3f6e..78cf2e5 100755 --- a/installer/onboarding.pl +++ b/installer/onboarding.pl @@ -5,10 +5,9 @@ use warnings; use diagnostics; -use C4::Koha; -#Pragmas for creating library use Modern::Perl; -use CGI qw (-utf8); +use CGI qw ( -utf8 ); +use C4::Koha; use C4::Auth; use C4::Context; use C4::Output; @@ -18,14 +17,14 @@ use Koha::Libraries; use Koha::LibraryCategories; -use POSIX; -use C4::Templates; -use C4::Languages qw(getAllLanguages getTranslatedLanguages); -use C4::Installer; -use Koha; -use installer::install.pl; +#use POSIX; +#use C4::Templates; +#use C4::Languages qw(getAllLanguages getTranslatedLanguages); +#use C4::Installer; +#use Koha; -#Setting variables from install.pl origin +#Setting variables +my $input = new CGI; my $query = new CGI; my $step = $query->param('step'); @@ -59,11 +58,24 @@ my $dbh = DBI->connect( + my $op = $query->param('op'); + $template->param('op'=>$op); + warn $op; + if ( $op && $op eq 'finish' ) { + print $query->redirect("/cgi-bin/koha/mainpage.pl"); + exit; + } + + #Performing each step of the onboarding tool if ( $step && $step == 1 ) { #This is the Initial step of the onboarding tool to create a library + + my $createlibrary = $query->param('createlibrary'); + $template->param('createlibrary'=>$createlibrary); + #store inputted parameters in variables my $branchcode = $input->param('branchcode'); my $categorycode = $input->param('categorycode'); @@ -126,10 +138,28 @@ if ( $step && $step == 1 ) { $op = 'list'; } - if ($op eq 'list'){ - print redirect(-url=>'koha/cgi-bin/koha/onboarding/onboarding.cgi?step=2'); - } +}elsif ( $step && $step == 2 ){ + + my $createpatroncategory = $query->param('createpatroncategory'); + $template->param('createpatroncategory'=>$createpatroncategory); + +}elsif ( $step && $step == 3 ){ + + my $createpatron = $query->param('createpatron'); + $template->param('createpatron'=>$createpatron); + +}elsif ( $step && $step == 4){ + + my $createitemtype = $query->param('createitemtype'); + $template->param('createitemtype'=>$createitemtype); + +}elsif ( $step && $step == 5){ + + my $createcirculationrule = $query->param('createcirculationrule'); + $template->param('createcirculationrule'=>$createcirculationrule); + + } @@ -138,5 +168,13 @@ if ( $step && $step == 1 ) { +output_html_with_http_headers $input, $cookie, $template->output; + + + + + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc index 193bcc1..9e56f71 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc @@ -42,6 +42,8 @@
  • Administration
  • [% END %]
  • About Koha
  • +
  • Summary
  • + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt index e4e5d1a..732c0a9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt @@ -65,8 +65,8 @@ function Hide(link) [% IF ( finish ) %] -

    Congratulations, installation complete

    -

    If this page does not redirect in 5 seconds, click here.

    +

    Congratulations, installation complete

    +

    If this page does not redirect in 5 seconds, click here.

    [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt index f1afe8e..0abe63c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -1,5 +1,3 @@ -[% USE Koha %] -[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha staff client diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep1.tt.swp b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep1.tt.swp deleted file mode 100644 index f2938d7b8f1bb34842e4e0f3decf84858ce5e1fb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 36864 zcmeHQeUKbSbsuBLHkQB2hJ+#&+!}xA4r_OHl7$^eSDZM7DT4h+Vmm+?3`K!MlBxt!5k(w3MY$>=2>}8DR~)B`1VU{5 z0r|b2p4pz+nc2NNDZ*%`>UTRI-EUsM?&{~zh zfwQ#-O-)-eTCQRH^d$E<iN7oRrW_Sn9o-6w2;7QB7qCEO&g~+P+>3E*Ro45 z*>{?hyC`NMfkFa>1PTch5-224NT85FA%Q{yBmuvBmiAlteT@{yC|3m%%Cl_hjkAZ tS=LJOY1ao~f%QD6a>19k&j zfi1vAz+-1?+C9Jy-~|{qz5#pzXabMIkkJNi07}3=ovCS81OE;K$`in+fct$lXcd-d8csj|h zJRojUt{IV%8B9K89`bUVZKS+m=AE-U!aRb3YGu)JI{|HRL;k^ilUq%X`@_#DN!7Hw zJ)imgE}z!DUcF=bI$JWVUUVtB&@00Psv&LGunfa|o!DEL(NK&l?VCQoo&Bkp~m!(MdCSPGdi2r2lrA0E~O!Us+Ljb7DKhi8In~I(W%XX z?=6t8NS`f%YMz9V`;^PS;WT6N53U3GPeJ}2%>$= zz}rw&>0uo7@iDvD1yjVlP1+G`)voGTi5aMDF%JZv|een%u?O7h1*%hXm)TK zd}!P&cP+d?8+<04e>wP8D(FMauG$A~zK))pmeYlz(5sRFjnP&5bHgn?j*&fRS|0Vp za+GIX!*?BwM)VZK`L?C^+7p#FL_OA;%^_F!pTjN`;c`< zJYG)m=`%bwxmBaz*nyrqnB|nqTI|8#A~oOOu{b-XC2kB~y4>%%HuK#cPvIkx{utwy z$Jx=b$u1g5KbkHxEbjUf3lsW$n}<^fCPpi6`y8_wT-d&0+8#UHHhqo>O@p&W+i=k} za@Q-fn=NjDHJ5jsCC&`HuO_5o3=*?N*Xb}n@g{vTts)Wv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A(V0mASh#vjs)5W!`~ZIy^dxn(Y*Z4TD{71LTngxG`!Ss2F;?hrxH zK5`Tg9tNV`!gzgf67mfT0Xs`k-d;3ojm|JO>z zm16z3fajsx|0!@6uo-v`di{HVeZV=u$Dz~j2Py#V*S`zc44eo28}$0ypvPYeOag0w zFF;rSFmM341~?nIAA0)((9J0xU1PTcxB|ziexQ99=Pek%O zvGGqMhVqw)qh#_Ve>R^?P1muB#%U24HIzb5U1F*;9LIJg0aC+v1uOm0RnAGeN|4A< zl_64>6E&4cL~46{y)!`_UPH?Nby->TR6%lB>Cuv}imu0KxkWHl5k~fu2U88|cC3i1 zBI#iE9MyK-Ny4K@29nfQ5L%VqlAyM-(3pbV1SJ`*EPdnNjv)T(nEM8aJcN|LBSi2p z_>mv`o3ZZTfMVDJeRVRZRF=$P)W diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep2.tt.swp b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep2.tt.swp deleted file mode 100644 index 6bf5a5aab8a177ae652336fe547df4e59adb405f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20480 zcmeHPS&SS<8SW6rkduV_vD_wENAb*fcWozG&kU?*$MKrIyhmaum~l^c?M!=nx|;5u z-JM_q36X$DTO<$;B@ZY^{AKTN@bL`?> zklYh}+ecMb{q_BI{q_HG^}vIZ)8yXlK?%RxCF#tcW=>sncS~0qlC-MSY{hhWO3&X4 zt1B8^t+Mr=*`yEp1?Kn%s=-Vu?lNw}GIF}$zKI&g*W9hs6=VSi$Vl3T%OfM+|DFZ13 zDFZ13DFZ13DFZ13DFZ13DFZ13DFgol1{6(_?m)c?H~8WI5A6T1y-|{$11VIKF5tOaC20Z}175uaX}~kUCxNE`7uXB@>t;!M8Tbb9 zG_Vew0PX_*c9SGs08Rim0l&CWl0FMu08Rm8z!30O;4Q%OZ$SM(0r>mt@jY-ExCER7 z=73S)r@JNTFz}Zfa1ZOraBf#UpV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@ynN zZ?UFLoED-y8rU&~J2GZx`{|JPBjnkM_-3ro!c|!GnI8NwLI~L&EPd78f{A_vUz>wV Sidn61SXgA}#?HOEGxQ%)n?fuA diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt index 936272c..36e31ba 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt @@ -1,8 +1,9 @@ - - [% INCLUDE 'doc-head-open.inc' %] +[% IF ( finish ) %][% END %] +[% INCLUDE 'installer-doc-head-close.inc' %] + Welcome › to › Koha @@ -35,24 +36,41 @@ -[% IF ( finish ) %][% END %] -[% INCLUDE 'installer-doc-head-close.inc' %]

    Welcome to Koha

    -

    Koha

    -
    - - Set up my koha +

    Koha

    +

    We're just going to set up a few things

    + + +[% IF (createlibrary) %] + + + +

    New Library

    - -[% IF (setupmyKoha) %] -

    New Library

    +
    +

    Success: Library created!

    +

    To add another library and for more settings,
    + go to Tools->Administration->Libraries and Groups +

    + Next up: + + + + +[% ELSE %] + +

    New Library

    - +
    1. @@ -61,41 +79,15 @@
    2. - + Required
    -
    - -
    +
    +
    -[% END %] - - -[% IF (createlibrary) %] - [% IF (library) %] - -
    - - -

    New Library

    - -
    -

    Success: Library created!


    -

    To add another library and for more settings,
    - go to Tools->Administration->Libraries and Groups -

    - Next up: - -
    - [% ELSE %] -
    -

    Library was not successfully created

    -
    - [% END %] - [% END %] - +[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt index 33189b7..52fb182 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt @@ -2,8 +2,11 @@ [% USE Koha %] [% USE KohaDates %] [% USE Price %] + [% INCLUDE 'doc-head-open.inc' %] -[% INCLUDE 'doc-head-close.inc' %] + +[% IF ( finish ) %][% END %] +[% INCLUDE 'installer-doc-head-close.inc' %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %] @@ -18,180 +21,178 @@ var MSG_ONE_ENROLLMENTPERIOD = ("Please choose an enrollment period in months OR by date."); - - [% IF (addpatroncategory) %] - ........ -
    -
    -
    -
    - [% FOR m IN messages %] -
    - [% SWITCH m.code %] - [% CASE 'error_on_insert' %] - An error occurred when inserting this patron category. The patron category might already exist. - [% CASE 'success_on_insert' %] - Patron category inserted successfully. - [% CASE 'already_exists' %] - This patron category already exists. - [% CASE %] - [% m.code %] - [% END %] -
    - [% END %] - -
    +
    +

    Welcome to Koha

    +

    Koha

    +
    + + +[% IF (createpatroncategory) %] + + + +

    New patron category

    +
    +

    Success: Patron category created!

    +

    To add another patron category and for more settings
    + go to More->Administration->Patrons & Circulation->Patron Categories

    +
    + Next up:
    + +
    + +[% ELSE %] +

    New Patron Category

    + +
    +
    - - -

    New Patron Category

    -
    -
    -
      -
    1. - - - Required -
    2. - -
    3. - - - Required -
    4. - -
    5. - - -
    6. - -
    7. - - +
        +
      1. + + + Required +
      2. + +
      3. + + + Required +
      4. + +
      5. + + +
      6. + +
      7. + + - Required -
      8. - -
      9. - - - Controls how long a patrons checkout history is kept for new patrons of this category. "Never" anonymizes checkouts on return, and "Forever" keeps a patron's checkout history indefinitely. When set to "Default", the amount of history kept is controlled by the cronjob batch_anonymise.pl which should be set up by your system administrator. -
      10. - -
      11. - Enrollment period: -
        - Choose one -
          -
        1. - - months -
        2. -
        3. - - -
        4. -
        -
        -
      12. - -
        - -
        - - [% END %] - - [% IF (addpatroncategory) %] - [% IF (categorycode) %] -
        ... - -

        New patron category

        -
        . -

        Success: Patron category created!

        -

        To add another patron category and for more settings
        - go to More->Administration->Patrons & Circulation->Patron Categories

        -
        - Next up: - - - [% ELSE %] -

        Patron category was not successfully created

        + [% END %] + + Required + + +
      13. + + +

        Controls how long a patrons checkout history is kept for new patrons of this category. "Never" anonymizes checkouts on return, and "Forever" keeps a patron's checkout history indefinitely. When set to "Default", the amount of history kept is controlled by the cronjob batch_anonymise.pl which should be set up by your system administrator.

        +
      14. + + Enrollment period: +
        + Choose one +
          +
        1. + + months +
        2. +
        3. + + +
        4. +
        +
        +
        + +
        +[% END %] + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt new file mode 100644 index 0000000..0ed1886 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt @@ -0,0 +1,122 @@ + +[% INCLUDE 'doc-head-open.inc' %] + +[% IF ( finish ) %][% END %] +[% INCLUDE 'installer-doc-head-close.inc' %] + + +Create Patron + + + + + + + +
        +

        Welcome to Koha

        +

        Koha

        +
        + + +[% IF (createpatron) %] + +
        + +

        New Patron

        + +
        +

        Success: New patron created!

        +

        To create another patron, go to Patrons > New Patron.
        + More > Set Permissions in a user page to gain superlibrarian permissions. +

        + Next up: + +
        +
        +

        Oh no! Patron was not created

        +
        +[% ELSE %] + +

        New Patron

        +
        +
        + + + +
          +

          Patron Identity

          +
        1. + + + Required +
        2. +
        3. + + + Required +
        4. +
        +
          +

          Library Management

          +
        1. + + + Required +
        2. +
        3. + +
        4. +
        5. + +
        6. +
        +
          +

          OPAC/Staff Login

          +
        1. + + + Required +
        2. +
        3. + + + Required +
        4. +
        5. + + + Required +
        6. +
        +
        +
        + +
        +
        +[% END %] + + + + + + + + + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep4.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep4.tt new file mode 100644 index 0000000..914d66a --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep4.tt @@ -0,0 +1,79 @@ + +[% INCLUDE 'doc-head-open.inc' %] + +[% IF ( finish ) %][% END %] +[% INCLUDE 'installer-doc-head-close.inc' %] + + +Create item type + + + + + + + +
        +

        Welcome to Koha

        +

        Koha

        +
        + + +[% IF (createitemtype) %] + +
        + + +

        New Item type

        + +
        +

        Success: New item type created!

        +

        To create another item type later and for more setttings
        + go to More->Administration->Item types +

        + Next up: + +
        + Or: + +
        +
        +

        Oh no! Patron was not created

        +
        +[% ELSE %] + +

        New Item type

        +
        +
        + + + +
          +
        1. + + + Required +
        2. +
        3. + + + Required +
        4. +
        +
        +
        + +
        +
        +[% END %] + + + + + + + + + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt new file mode 100644 index 0000000..856437e --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt @@ -0,0 +1,251 @@ + +[% INCLUDE 'doc-head-open.inc' %] + +[% IF ( finish ) %][% END %] +[% INCLUDE 'installer-doc-head-close.inc' %] + + +Create Circulation rule + + + + + + + +
        +

        Welcome to Koha

        +

        Koha

        +
        + +[% IF (finish) %] +

        Congratulations you have finished and ready to use Koha

        +Start using Koha + +[% END %] + + +[% IF (createcirculationrule) %] + +
        + + +

        New Item type

        + +
        +

        Success: New circulation rule created!

        +

        To create circulation rule, go to
        + More->Administration->Circulation and Fine Rules +

        + Next up: + +
        +
        +

        Oh no! Circulation Rule was not created

        +
        + + +[% ELSE %] + +

        New Circulation rule

        +
        +
        + + + +
          +
        1. + + + Required +
        2. + +
        3. + + + Required +
        4. + +
        5. + + + Required +
        6. + +
        7. + + + Required +
        8. + +
        9. + + +
        10. + +
        11. + + + Required +
        12. + +
        13. + + + Required +
        14. + +
        15. + + +
        16. +
        +
        +
        + +
        +
        +[% END %] + + + + + + + + + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/summary.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/summary.tt new file mode 100644 index 0000000..a4ef904 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/summary.tt @@ -0,0 +1,41 @@ +[% USE Koha %] +[% INCLUDE 'doc-head-open.inc' %] +Koha Tutorial Summary +[% INCLUDE 'doc-head-close.inc' %] + + +[% INCLUDE 'header.inc' %] +[% INCLUDE 'cat-search.inc' %] + + + +
        +
        +
        +

        Tutorial Summary Page

        +
        +

        Library

        +

        To add another library and for more settings, go to
        + More > Administration > Libraries and Groups

        + +

        Patron Category

        +

        To add another patron category and for more settings, go to
        + More > Administration > Patrons and Circulation > Patron Categories

        + +

        Patron

        +

        To create another patron, go to Patrons > New Patron. To set the
        + permissions of the patron, go to the patron's page and More > Set Permissions

        + +

        Item Type

        +

        To create another item type and for more settings, go to
        + More > Administration > Item types

        + +

        Circulation Rule

        +

        To create another circulation rule, go to
        + More > Administration > Circulation and Fine Rules + +

        +
        +
        +[% INCLUDE 'intranet-bottom.inc' %] diff --git a/summary.pl b/summary.pl new file mode 100755 index 0000000..992e487 --- /dev/null +++ b/summary.pl @@ -0,0 +1,58 @@ +#!/usr/bin/perl + +# Copyright Pat Eyler 2003 +# Copyright Biblibre 2006 +# Parts Copyright Liblime 2008 +# Parts Copyright Chris Nighswonger 2010 +# +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# Koha is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . + +use Modern::Perl; + +use CGI qw ( -utf8 ); +use List::MoreUtils qw/ any /; +use LWP::Simple; +use XML::Simple; +use Config; + +use C4::Output; +use C4::Auth; +use C4::Context; +use C4::Installer; + +use Koha; +use Koha::Acquisition::Currencies; +use Koha::Patrons; +use Koha::Caches; +use Koha::Config::SysPrefs; +use C4::Members::Statistics; + +#use Smart::Comments '####'; + +my $query = new CGI; +my ( $template, $loggedinuser, $cookie ) = get_template_and_user( + { + template_name => "summary.tt", + query => $query, + type => "intranet", + authnotrequired => 0, + flagsrequired => { catalogue => 1 }, + debug => 1, + } +); + + +output_html_with_http_headers $query, $cookie, $template->output; -- 2.1.4