From a9bec6203a81a73cadc3ab130b372c8543d335e2 Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Mon, 30 Jan 2017 18:04:51 +1300 Subject: [PATCH] Bug 17956 - Added a new template onboardingstep6.tt (which is integrated with the final screen of the onboarding tool) for the user to learn about services SIP/LDAP and to click the link to visit the admin screen for configuring z-targets --- installer/onboarding.pl | 22 ++++++++-- .../prog/en/modules/onboarding/onboardingstep5.tt | 12 ++++-- .../prog/en/modules/onboarding/onboardingstep6.tt | 49 ++++++++++++++++++++++ 3 files changed, 76 insertions(+), 7 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep6.tt diff --git a/installer/onboarding.pl b/installer/onboarding.pl index 1239ac8..c3d718e 100755 --- a/installer/onboarding.pl +++ b/installer/onboarding.pl @@ -95,7 +95,7 @@ my $dbh = DBI->connect( my $op = $input->param('op') || ""; $template->param( 'op' => $op ); -if ( $op && $op eq 'finish' ) +if ( $op && $op eq 'Finish' ) { #If the value of $op equals 'finish' then redirect user to /cgi-bin/koha/mainpage.pl print $input->redirect("/cgi-bin/koha/mainpage.pl"); exit; @@ -242,8 +242,8 @@ elsif ( $step && $step == 2 ) { #Create a patron } elsif ( $step && $step == 3 ) { - my $firstpassword = $input->param('password') || ""; - my $secondpassword = $input->param('password2') || ""; + my $firstpassword = $input->param('password') || ''; + my $secondpassword = $input->param('password2') || ''; #Find all patron records in the database and hand them to the template @@ -683,5 +683,21 @@ elsif ( $step && $step == 5 ) { } } } +elsif ( $step && $step == 6 ){ +# my ( $template, $loggedinuser, $cookie ) = +# C4::InstallAuth::get_template_and_user( +# { +# template_name => "/onboarding/onboardingstep6.tt", +# query => $input, +# type => "intranet", +# authnotrequired => 0, +# flagsrequired => { parameters => 'manage_circ_rules' }, +# debug => 1, +# } +# ); + my $service = $input->param('service'); + $template->param( service => $service ); +} + output_html_with_http_headers $input, $cookie, $template->output; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt index 1142124..1105516 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt @@ -1,6 +1,5 @@ [% INCLUDE 'doc-head-open.inc' %] Create Circulation rule -[% IF ( finish ) %][% END %] [% INCLUDE 'installer-doc-head-close.inc' %]
@@ -17,15 +16,20 @@ [% IF op == "add_validate" %]
- +

New circulation rule

Success: circulation rule created!

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

- Next up: - + +

Next steps

+ To learn more about the services you can use with Koha click here:
+ +

+ To login to Koha:
+
[% ELSE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep6.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep6.tt new file mode 100644 index 0000000..d36b805 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep6.tt @@ -0,0 +1,49 @@ +[% INCLUDE 'doc-head-open.inc' %] +Learn about LDAP service +[% IF ( finish ) %][% END %] +[% INCLUDE 'installer-doc-head-close.inc' %] + +
+

Koha Welcome to Koha

+
+ +[% IF op == "Learn more" %] +
+ + +

What service are you using?

+
+ LDAP
+ SIP
+
+ +
+[% END %] +[% IF (op == "learnservice") && (service == "LDAP") %] + +

Important information regarding setting up LDAP service

+

What is LDAP?

+ LDAP is a service that provides another way for users (both staff and patrons) to log into Koha by integrating in your institutions current authentication system with yourt Koha instance. LDAP can be used to log into both the Koha staff interface and OPAC. + +

What are the benefits of setting up LDAP on my Koha instance

+ If your institution has a central database of users which it uses for authentication then by setting up LDAP in your Koha instance your users will be able to log into Koha with their existing account credentials, therefore saving users from having to create another username and password to remember. +

Learn how to set up LDAP at:

+ LDAP in the manual + +[% ELSIF (op == "learnservice") && (service == "SIP") %] +

Important information regarding setting up SIP server

+ SIP is a service where you can type commands into the + +

Important security notice about using SIP

+ To ensure your SIP traffic (the request and response messages sent between you and the SIP server) are secure you must use a stunnel or VPN. + +[% END %] + +

Configure z-targets

+z-targets are simply the servers you will query when looking for a sepcific MARC record (bibliographic record). Often these are set to the z39.50 servers run by the Library of Congress. +Click here:
+ Visit the z-target configuration page