Bugzilla – Attachment 58658 Details for
Bug 17855
New onboarding tool feature to guide users through setting up Koha, and minor web installer UI improvements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17855 - As with the last patch the updated web installers step 3 is showing bulletpoints for default data values which stops the user being able to unselect data neccisary to use Koha.
Bug-17855---As-with-the-last-patch-the-updated-web.patch (text/plain), 41.07 KB, created by
Alex Buckley
on 2017-01-08 23:25:41 UTC
(
hide
)
Description:
Bug 17855 - As with the last patch the updated web installers step 3 is showing bulletpoints for default data values which stops the user being able to unselect data neccisary to use Koha.
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2017-01-08 23:25:41 UTC
Size:
41.07 KB
patch
obsolete
>From 2ec76b3f4c1b7c73897713c117b031c6ced1fcee Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Fri, 9 Dec 2016 00:52:55 +0000 >Subject: [PATCH] Bug 17855 - As with the last patch the updated web installers > step 3 is showing bulletpoints for default data values which stops the user > being able to unselect data neccisary to use Koha. > >Both the optional and default data in installer step 3 are being >successfully inserted into the database. > >Unlike the previous patch the first three screens of the onboarding >tool are not working successfully, but are fixed in later patches. > >Bug 17855 - All web installer data >inserting successfully, along with >initial 3 screens of onboarding tool >which is not yet avaliable from web installer. > >In web installer step 3 MARC21 flavour selected >by default. >All web installer data inserting >successfully > >Working insertion of default and optional options > >Correctly selected default marc flavour of marc21 > >Initial 3 HTML screens of the onboarding tool and >the perl onboarding.pl script > >Removed test text > >Non working first 3 screens and perl script of >onboarding tool >--- > .../en/{optional => default}/patron_categories.sql | 0 > .../en/{optional => default}/patron_categories.txt | 0 > installer/onboarding.pl | 142 ++++++++++++++ > .../prog/en/modules/installer/step3.tt | 102 +++++----- > .../en/modules/onboarding/.onboardingstep1.tt.swp | Bin 0 -> 36864 bytes > .../en/modules/onboarding/.onboardingstep2.tt.swp | Bin 0 -> 20480 bytes > .../prog/en/modules/onboarding/onboardingstep1.tt | 109 +++++++++++ > .../prog/en/modules/onboarding/onboardingstep2.tt | 213 +++++++++++++++++++++ > 8 files changed, 518 insertions(+), 48 deletions(-) > rename installer/data/mysql/en/{optional => default}/patron_categories.sql (100%) > rename installer/data/mysql/en/{optional => default}/patron_categories.txt (100%) > create mode 100755 installer/onboarding.pl > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep1.tt.swp > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep2.tt.swp > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt > >diff --git a/installer/data/mysql/en/optional/patron_categories.sql b/installer/data/mysql/en/default/patron_categories.sql >similarity index 100% >rename from installer/data/mysql/en/optional/patron_categories.sql >rename to installer/data/mysql/en/default/patron_categories.sql >diff --git a/installer/data/mysql/en/optional/patron_categories.txt b/installer/data/mysql/en/default/patron_categories.txt >similarity index 100% >rename from installer/data/mysql/en/optional/patron_categories.txt >rename to installer/data/mysql/en/default/patron_categories.txt >diff --git a/installer/onboarding.pl b/installer/onboarding.pl >new file mode 100755 >index 0000000..8da3f6e >--- /dev/null >+++ b/installer/onboarding.pl >@@ -0,0 +1,142 @@ >+#!/usr/bin/perl >+#Recommended pragmas >+use strict; >+use warnings; >+use diagnostics; >+ >+ >+use C4::Koha; >+#Pragmas for creating library >+use Modern::Perl; >+use CGI qw (-utf8); >+use C4::Auth; >+use C4::Context; >+use C4::Output; >+use Koha::Patrons; >+use Koha::Items; >+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; >+ >+#Setting variables from install.pl origin >+my $query = new CGI; >+my $step = $query->param('step'); >+ >+my ( $template, $loggedinuser, $cookie) = get_template_and_user( >+ { >+ template_name => "/onboarding/onboardingstep" . ( $step ? $step : 1 ) . ".tt", >+ query => $query, >+ type => "intranet", >+ authnotrequired => 0, >+ debug => 1, >+ } >+); >+ >+#Check database connection >+my %info; >+$info{'dbname'} = C4::Context->config("database"); >+$info{'dbms'} = >+( C4::Context->config("db_scheme") >+ ? C4::Context->config("db_scheme") >+ : "mysql" ); >+ >+$info{'hostname'} = C4::Context->config("hostname"); >+$info{'port'} = C4::Context->config("port"); >+$info{'user'} = C4::Context->config("user"); >+$info{'password'} = C4::Context->config("pass"); >+my $dbh = DBI->connect( >+ "DBI:$info{dbms}:dbname=$info{dbname};host=$info{hostname}" >+ . ( $info{port} ? ";port=$info{port}" : "" ), >+ $info{'user'}, $info{'password'} >+); >+ >+ >+ >+ >+#Performing each step of the onboarding tool >+if ( $step && $step == 1 ) { >+#This is the Initial step of the onboarding tool to create a library >+ >+#store inputted parameters in variables >+ my $branchcode = $input->param('branchcode'); >+ my $categorycode = $input->param('categorycode'); >+ my $op = $input->param('op') || 'list'; >+ my @messages; >+ my $library; >+ >+#Find branchcode if it exists >+ if ( $op eq 'add_form' ) { >+ if ($branchcode) { >+ $library = Koha::Libraries->find($branchcode); >+ } >+ >+ $template->param( >+ library => $library, >+ categories => [ Koha::LibraryCategories->search( {}, { order_by => [ 'categorytype', 'categoryname' ] } ) ], >+ $library ? ( selected_categorycodes => [ map { $_->categorycode } $library->get_categories ] ) : (), >+ ); >+ } elsif ( $op eq 'add_validate' ) { >+ my @fields = qw( >+ branchname >+ ); >+ >+ my $is_a_modif = $input->param('is_a_modif'); >+ >+ my @categories; >+ for my $category ( Koha::LibraryCategories->search ) { >+ push @categories, $category >+ if $input->param( "selected_categorycode_" . $category->categorycode ); >+ } >+ if ($is_a_modif) { >+ my $library = Koha::Libraries->find($branchcode); >+ for my $field (@fields) { >+ $library->$field( scalar $input->param($field) ); >+ } >+ $library->update_categories( \@categories ); >+ >+ eval { $library->store; }; >+ >+ if ($@) { >+ push @messages, { type => 'alert', code => 'error_on_update' }; >+ } else { >+ push @messages, { type => 'message', code => 'success_on_update' }; >+ } >+ } else { >+ $branchcode =~ s|\s||g; >+ my $library = Koha::Library->new( >+ { branchcode => $branchcode, >+ ( map { $_ => scalar $input->param($_) || undef } @fields ) >+ } >+ ); >+ eval { $library->store; }; >+ $library->add_to_categories( \@categories ); >+ if ($@) { >+ push @messages, { type => 'alert', code => 'error_on_insert' }; >+ } else { >+ push @messages, { type => 'message', code => 'success_on_insert' }; >+ } >+ } >+ $op = 'list'; >+ } >+ >+ if ($op eq 'list'){ >+ print redirect(-url=>'koha/cgi-bin/koha/onboarding/onboarding.cgi?step=2'); >+ } >+ >+} >+ >+ >+ >+ >+ >+ >+ >+ >+ >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 47303ce..a601443 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >@@ -1,5 +1,5 @@ > [% INCLUDE 'doc-head-open.inc' %]<title>Koha › Web installer › Step 3</title> >-[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/mainpage.pl">[% END %] >+[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/installer/onboarding.pl">[% END %] > [% INCLUDE 'installer-doc-head-close.inc' %] > <div> > <h1 id="logo"><img alt="Koha" src="[% interface %]/[% theme %]/img/koha.org-logo.gif" /> Koha web installer › Step 3</h1> >@@ -64,7 +64,7 @@ > [% END %] > [% IF ( finish ) %] > <h1>Congratulations, installation complete</h1> >- <p>If this page does not redirect in 5 seconds, click <a href="/">here</a>.</p> >+ <p>If this page does not redirect in 5 seconds, click <a href="/cgi-bin/koha/installer/onboarding.pl">here</a>.</p> > [% END %] > [% IF ( choosemarc ) %] > <h2 align="center">Select your MARC flavor</h2> >@@ -75,10 +75,10 @@ > <p> > [% FOREACH flavourloo IN flavourloop %] > <div> >- [% IF ( flavourloo.checked ) %] >- <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked="checked" /> [% flavourloo.label %] <br/> >+ [% IF ( flavourloo.label == "Unimarc") %] >+ <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %] <br/> > [% ELSE %] >- <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %] <br/> >+ <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked="checked" /> [% flavourloo.label %] <br/> > [% END %] > </div> > [% END %] >@@ -100,49 +100,49 @@ > [% IF ( frameworksloop ) %] > <h2>MARC frameworks: [% marcflavour %]</h2> > [% IF ( en_marc_frameworks ) %] >- <h4><span class="error">No MARC frameworks are available for your language. Defaulting to the frameworks supplied for English (en)<span></h4> >+ <h4><span class="error">No MARC frameworks are available for your language. Defaulting to the frameworks supplied for English (en)<span></h4> > [% END %] > [% FOREACH frameworksloo IN frameworksloop %] >- <div> >- <h3>[% frameworksloo.label %]</h3> >- [% FOREACH framework IN frameworksloo.frameworks %] >- <table style="border:1px;vertical-align:top;"> >- <tr> >- <td style = "border:1px; vertical-align:top;"> >- [% IF (frameworksloo.label == "Default" ) %] >- <input type="hidden" name="framework" value="[% framework.fwkfile %]" id =="[%framework.fwkname%]" /> >+ <div> >+ <h3>[% frameworksloo.label %]</h3> >+ [% FOREACH framework IN frameworksloo.frameworks %] >+ <table style="border:1px;vertical-align:top;"> >+ <tr> >+ <td style = "border:1px; vertical-align:top;"> >+ [% IF (frameworksloo.label == "Default" ) %] >+ <input type="hidden" name="framework" value="[% framework.fwkfile %]" id =="[%framework.fwkname%]" /> >+ [% ELSE %] >+ <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id =="[%framework.fwkname%]" /> >+ [% END %] >+ </td> >+ <td> >+ [% IF (frameworksloo.label == "Default" ) %] >+ <ul> >+ <label for="[% framework.fwkname %]"> >+ <li> [% framework.fwkdescription %]</li> >+ <em>([% framework.fwkname %])</em> >+ </label> >+ </ul> >+ </td> > [% ELSE %] >- <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id =="[%framework.fwkname%]" /> >- [% END %] >- </td> >- <td> >- [% IF (frameworksloo.label == "Default" ) %] >- <ul> >- <label for="[% framework.fwkname %]"> >- <li>[% framework.fwkdescription %]</li> >- <em>([% framework.fwkname %])</em> >- </label> >- </ul> >- </td> >- [% ELSE %] >- <td> >- <label for= "[% framework.fwkname %]"> >- [% framework.fwkdescription %] >- <em>([% framework.fwkname %])</em> >- </label> >- </td> >- [% END %] >- </tr> >+ <td> >+ <label for= "[% framework.fwkname %]"> >+ [% framework.fwkdescription %] >+ <em>([% framework.fwkname %])</em> >+ </label> >+ </td> >+ [% END %] >+ </tr> > </table> >- [% END %] >- </div> >- [% END %] >+ [% END %] >+ </div> >+ [% END %] > <h2>Other data</h2> >- [% END %] >- [% IF ( en_sample_data ) %] >- <h4><span class="error">No sample data and settings ar e available for your language. >- 132 Defaulting to the samples supplied for English (en)<span></h4> >- [% END %] >+ [% END %] >+ [% IF ( en_sample_data ) %] >+ <h4><span class="error">No sample data and settings are available for your language. >+ Defaulting to the samples supplied for English (en)<span></h4> >+ [% END %] > [% FOREACH levelloo IN levelloop %] > <div> > <h3>[% levelloo.label %]</h3> >@@ -151,19 +151,24 @@ > <tr> > <td style="vertical-align:top;"> > [% IF (levelloo.label == "Default" ) %] >- <input type="hidden" name="framework" value= "[% framework.fwkfile %]" id="[%framework.fwkname %]" /> >+<<<<<<< HEAD >+ <input type="hidden" name="framework" value="[% framework.fwkfile %]" id="[%framework.fwkname %]" /> >+======= >+ <ul> >+ </ul> >+>>>>>>> 9e47b85... Removed test text > [% ELSE %] >- <input type="checkbox" name="framework" value="[%framework.fwk %]" id=="[%framework.fwkname%]"/> >+ <input type="checkbox" name="framework" value="[%framework.fwkfile %]" id=="[%framework.fwkname%]"/> > [% END %] > </td> > <td> > [% IF (levelloo.label == "Default") %] >- <ul> >+ <ul> > <label for="[% framework.fwkname %]"> > <li> [% framework.fwkdescription %]</li> > <em>([% framework.fwkname %])</em> > </label> >- </ul> >+ </ul> > </td> > [% ELSE %] > <td> >@@ -201,7 +206,8 @@ > <form name="finish"> > <input type="hidden" name="step" value="3" /> > <input type="hidden" name="op" value="finish" /> >- <input type="submit" value="Finish" /></form> >+ <input type="submit" value="Finish"/> >+ </form> > </p> > </p> > [% END %] >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 >new file mode 100644 >index 0000000000000000000000000000000000000000..f2938d7b8f1bb34842e4e0f3decf84858ce5e1fb >GIT binary patch >literal 36864 >zcmeHQeUKbSbsuBLHkQB2hJ+#&+!}xA4r_OHl7$^<Zx!Vv#j@p-?K{~dit3o%?b{t` >zc4nEGJ!vhAP%$>eSDZM7DT4h+Vmm+?3`K!MlBxt!5k(w3MY$>=2>}8DR~)B`1VU{5 >z0r|b2p4pz+nc2NNDZ*%`>UTRI-EUsM?&<FL`t`f|hTC@E#I7x0qv5z%)6W0N>{~zh >zfwQ#-O-)-eTCQRH^d$E<<g|?@U#dGta+7KAkOV7~p<y{T7iT5E)3qw5?c-(K53ahd >z)2eX0(s7zSi+dHvt~-X?H0_ph>iN7oRrW_Sn9o-6w2;7QB7qCEO&g~+P+>3E*Ro45 >z*>{?hyC`NMfkFa>1PTch5-224NT85FA%Q{yBmuvBmiAlteT@{y<?{E8#P2!s`fB<6 >z`o!~}lh?14zqclypCzx?$lnJto=={n=aOvkQ%InYKp}xb0)+$$2^112Bv448kU$}U >zLIQ;ZPD=?GO-+0GwVL+uc_=>C|3m%%Cl_hjkAZ	tS=LJO<ne90m3PuUx2UUk9E7 >z9tQRT6Lft6(gW`W=7DLT3cMb8`g~1$H!ur40%O1ua1(GD@CtbNHgFvHJn$Gmd_4rX >zz#Q-v;8Nhf!SlC(r+~izJirD12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Njv)T(nEM8aJcN|LBSi2p >z_><t~WJoD}GbF{QT}HWx;{>mv<dzp%R1`gw(lP?CihKzULTROza90q^cXeev@$GCi >z(vs!P*_b1w6#RjVR~C^qtRcmr4=Om3OAVeH`V3(sq6k*31b#&x)vm2DH*}gwK8Vd~ >X`J)RRI>`o3ZZTfMVDJeRVRZRF=$P)W > >literal 0 >HcmV?d00001 > >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 >new file mode 100644 >index 0000000000000000000000000000000000000000..6bf5a5aab8a177ae652336fe547df4e59adb405f >GIT binary patch >literal 20480 >zcmeHPS&SS<8SW6rkduV_vD_wENAb*fcWozG&kU?*$MKrIyhmaum~l^c?M!=nx|;5u >z-JM_q36X$DTO<$;B@ZY<LPA0uQXX(5P9Z=j0W8D=A_xT$aRkIA@c>^{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}<qB81wPnOMUIcnw_Olum{$uYCa6kF5H >zTIAMosWp;y`wQ4xtTZ)c;2L4zR%vu(_yBM0UU?6B^P85gk#?ueOc_WSNEt{ONEt{O >zNEt{ONEt{O;0(Cd_0orMeVtFow12%WcD>$zKI&g*W9hs6=VSi$Vl3T%OfM+|DFZ13 >zDFZ13DFZ13DFZ13DFZ13DFZ13DFgol1{6(_?m)c?H~8WI5A6T1y-|{$11<rN180E( >zK!EE23HbMIlJrmDCE!KiS>VIKF5tOaC20Z}175uaX}~kUCxNE`7uXB@>t;!M8Tbb9 >zG_Vew0PX_*c9SGs08Rim0l&CWl0FMu08Rm8z!30O;4Q%OZ$SM(0r>mt@jY-ExCER7 >z=73S)r@JNTFz}Zfa1Z<h_&V?~@FWg0=7EF2DDXDmt2q345V#HaAr4BKzzN{5;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=5_lED*XAYqa~yh1(5<o?dBc3< >zJb7o-9n(`Y?Tx@wbcdHvICiyOe1{j<ahNs`*s)}~x*^<u18no+HHsju_{(n3o7D<$ >zP&8m<D~j=U$?aTl`804L!nELo=D$d!7T#>=Dq>K^)rC{z9?JAmz0uB<=zCiwQQM$@ >zdgwDzmy>~0cMGaS=jjts7f78LViY6>*StY%@L=LJLHMBI8HW13S5lBC@fuDyy(hW$ >z@G%kNCKt=xQy+D6a~^uf`CXMT!(s`pX;kfyI$I<7*T&!>^;dca4r;2dFvJleki<nO >zCqY2X3bkC}Ts9Fm<t<$fVar~yNjN_cS$K@R9*PZw*=nHAZj^{mOvDhnP21crHWKo& >zz>~E?spW)13~hX~A%zK-0Jc3YMMMpGhzGs!05NQeWZyL)?-#CirNNqrcYt(31BCQw >z1$W4E!Vxrs2m<bwR}lbqj#V*ki&e!{>lI&Wc&RO%rRzmR*XU}UICa)E@Riu|U@ynN >zZ?UFLoED-y8rU&~J2GZx`{|JPBjnkM_-3ro!c|!GnI8NwLI~L&EPd78f{A_vUz>wV >Sidn61SXgA}#?HOEGxQ%)n?fuA > >literal 0 >HcmV?d00001 > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt >new file mode 100644 >index 0000000..936272c >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt >@@ -0,0 +1,109 @@ >+ >+ >+<!--Includes for creating library--> >+[% INCLUDE 'doc-head-open.inc' %] >+ >+<head> >+<title>Welcome › to › Koha</title> >+ >+<!--jQuery code for create library--> >+<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script> >+<script type="text/javascript"> >+ //<![CDATA[ >+ $(document).ready(function() { >+ $("#branchest").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, >+ ], >+ "iDisplayLength": 10, >+ "sPaginationType": "four_button" >+ })); >+ >+ [% UNLESS library %] >+ $("#Aform").on("submit", function( event ) { >+ if ( $("#branchcode").val().match(/\s/) ) { >+ event.preventDefault(); >+ alert(_("The library code entered contains whitespace characters. Please remove any whitespace characters from the library code")); >+ return false; >+ } else { >+ return true; >+ } >+ }); >+ [% END %].. >+ }); >+ //]]> >+</script> >+</head> >+ >+[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/mainpage.pl">[% END %] >+[% INCLUDE 'installer-doc-head-close.inc' %] >+<div> >+ <h1 align="center"> Welcome to Koha</h1> >+ <h1 id="logo"><img alt="Koha" src="[% interface %]/[% theme %]/img/koha.org-logo.gif"/></h1> >+ <form name="startonboarding" method="post" action="onboarding.pl"> >+ <input type="hidden" name="step" value="0"> >+ <a href="onboarding.pl?setupmyKoha=yes" <button>Set up my koha</button></a> >+</div> >+ >+<!--Onboarding tool step 1 - Create a new library screen 1--> >+[% IF (setupmyKoha) %] >+ <h1 align="left"> New Library</h2> >+ <form name="LibraryCreation" method="post" action="onboarding.pl"> >+ <fieldset class="rows"> >+ <input type="hidden" name="step" value="1"/> >+ <input type="hidden" name="op" value="add_validate" /> >+ <input type="hidden" name="op" value="createlibrary"/> >+ <ol> >+ <li> >+ <label for="branchcode" class="required">Library code: </label> >+ <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="[% library.branchcode |html %]" class="required" required="required" /> >+ <span class="required">Required</span> >+ </li> >+ <li> >+ <label for="branchname" class="required">Name: </label> >+ <input type="text" name="branchname" id="branchname" size="80" value="[% library.branchname |html %]" class=" required" required="required" /> >+ <span class="required">Required</span> >+ </li> >+ </ol> >+ </fieldset> >+ <fieldset class="action"> >+ <input type="submit" value="Create Library"/> >+ </fieldset> >+ </form> >+[% END %] >+ >+<!--Create a library screen 2--> >+[% IF (createlibrary) %] >+ [% IF (library) %] >+ <!--New Library created--> >+ <form name="createlibrary" method="post" action="onboarding.pl"> >+ <input type="hidden" name="step" value="1"/> >+ <input type="hidden" name="op" value="addpatroncategory"/> >+ <h1 align="left"> New Library</h1> >+ >+ <div> >+ <p> Success: Library created!</p><br> >+ <p> To add another library and for more settings, <br> >+ go to Tools->Administration->Libraries and Groups >+ </div> >+ Next up: >+ <input type="submit" value="Add a patron category"/> >+ </form> >+ [% ELSE %] <!-- Library not created successfully--> >+ <div> >+ <p> Library was not successfully created</p> >+ </div> >+ [% 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 >new file mode 100644 >index 0000000..33189b7 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt >@@ -0,0 +1,213 @@ >+<!--Pragmas for using and including packages for create patron category--> >+[% USE Koha %] >+[% USE KohaDates %] >+[% USE Price %] >+[% INCLUDE 'doc-head-open.inc' %] >+[% INCLUDE 'doc-head-close.inc' %] >+[% INCLUDE 'calendar.inc' %] >+[% INCLUDE 'datatables.inc' %] >+ >+ >+<head> >+<title> Add a patron category</title> >+ >+<!--JQuery scripts for create patron category--> >+<script type="text/javascript"> >+ var MSG_CATEGORYCODE_CHARS = _("Category code can only contain the following characters: letters, numbers, - and _."); >+ var MSG_BOTH_ENROLLMENTPERIODS = _("Please choose only one enrollment period setting."); >+ var MSG_ONE_ENROLLMENTPERIOD = ("Please choose an enrollment period in months OR by date."); >+</script> >+<script type="text/javascript" src="[% themelang %]/js/categories.js"></script> >+<style type="text/css">#enrolmentmessage.hint { display : none; }</style> >+ >+</head> >+ >+ [% IF (addpatroncategory) %] >+ <!--Onboarding tool step 2-Create a patron category screen 1-->........ >+ <div id="doc3" class="yui-t2"> >+ <div id="bd"> >+ <div id="yui-main"> >+ <div class="yui-b"> >+ [% FOR m IN messages %] >+ <div class="dialog [% m.type %]"> >+ [% 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 %] >+ </div> >+ [% END %] >+ >+ <form id="category_form" action="/cgi-bin/koha/admin/categories.pl" method="post"> >+ <input type="hidden" name="step" value="2"/> >+ <input type="hidden" name="op" value="add_validate" /> >+ <input type="hidden" name="op" value="addpatroncategory"/> >+ >+ <h1 align="left"> New Patron Category</h2> >+ <div style="border-width:5px;"> >+ <fieldset class="rows"> >+ <ol> >+ <li> >+ <label for="categorycode" class="required">Category code: </label> >+ <input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required" re quir ed="required" /> >+ <span class="required">Required</span> >+ </li> >+ >+ <li> >+ <label for="description" class="required">Description: </label> >+ <input type="text" name="description" id="description" size="40" maxlength="80" class="required" requ ired="re quired" value="[% category.description |html %]" /> >+ <span class="required">Required</span> >+ </li> >+ >+ <li> >+ <label for="overduenoticerequired">Overdue notice required: </label> >+ <select name="overduenoticerequired" id="overduenoticerequired"> >+ [% IF category.overduenoticerequired %] >+ <option value="0">No</option> >+ <option value="1" selected="selected">Yes</option> >+ [% ELSE %] >+ <option value="0" selected="selected">No</option> >+ <option value="1">Yes</option> >+ [% END %] >+ </select> >+ </li> >+ >+ <li> >+ <label for="category_type" class="required">Category type: </label> >+ <select name="category_type" id="category_type"> >+ [% UNLESS category %] >+ <option value="" selected="selected">Select a category type</option> >+ [% ELSE %] >+ <option value="">Select a category type</option> >+ [% END %] >+ >+ [% IF category and category.category_type == 'A' %] >+ <option value="A" selected="selected">Adult</ option> >+ [% ELSE %] >+ <option value="A">Adult</option> >+ [% END %] >+ >+ [% IF category and category.category_type == 'C' %] >+ <option value="C" selected="selected">Child</ option> >+ [% ELSE %] >+ <option value="C">Child</option>[% END %] >+ >+ [% IF category and category.category_type == 'S' %] >+ <option value="S" selected="selected">Staff</option> >+ [% ELSE %] >+ <option value="S">Staff</option> >+ [% END %] >+ >+ [% IF category and category.category_type == 'I' %] >+ <option value="I" selected="selected">Organization</option> >+ [% ELSE %] >+ <option value="I">Organization</option> >+ [% END %] >+ >+ [% IF category and category.category_type == 'P' %] >+ <option value="P" selected="selected">Professional</option> >+ [% ELSE %] >+ <option value="P">Professional</option> >+ [% END %] >+ >+ [% IF category and category.category_type == 'X' %] >+ <option value="X" selected="selected">Statistical</option> >+ [% ELSE %] >+ <option value="X">Statistical</option> >+ [% END %] >+ </select> >+ <span class="required">Required</span> >+ </li> >+ >+ <li> >+ <label for="default_privacy">Default privacy: </label> >+ <select id="default_privacy" name="default_privacy"> >+ [% SET default_privacy = 'default' %] >+ >+ [% IF category %] >+ [% SET default_privacy = category.default_privacy %] >+ [% END %] >+ >+ [% SWITCH default_privacy %] >+ [% CASE 'forever' %] >+ <option value="default">Default</option> >+ <option value="never">Never</option> >+ <option value="forever" selected="selected">Forever</option> >+ [% CASE 'never' %] >+ <option value="default">Default</option> >+ <option value="never" selected="selected">Never</option> >+ <option value="forever">Forever</option> >+ [% CASE %] >+ <option value="default" selected="selected">Default</option> >+ <option value="never">Never</option> >+ <option value="forever">Forever</option> >+ [% END %] >+ </select> >+ <span>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 <i>batch_anonymise.pl</i> which should be set up by your system administrator.</span> >+ </li> >+ >+ <li> >+ <span class="label">Enrollment period: </span> >+ <fieldset> >+ <legend>Choose one</legend> >+ <ol> >+ <li> >+ <label for="enrolmentperiod" style="width:6em;">In months: </label> >+ <input type="text" class="enrollmentperiod" name="enrolmentperiod" id="enrolmentperio d" size="3" maxlength="3" value="[% IF category.enrolmentperiod %][% category.enrolmentperiod %][% END %]" /> months >+ </li> >+ <li> >+ <label for="enrolmentperioddate" style="width:6em;">Until date: </label> >+ <input type="text" class="enrollmentperiod" name="enrolmentperioddate" id="enrolmentp erioddate" value="[% category.enrolmentperioddate | $KohaDates %]" /> >+ </li> >+ </ol> >+ </fieldset> >+ </li> >+ >+ <fieldset class="action"> >+ <input type="submit" value="Create Patron Category" /> >+ </fieldset> >+ </form> >+ [% END %] >+ >+ [% IF (addpatroncategory) %] >+ [% IF (categorycode) %] >+ <form name="createpatroncategory" method="post" action="onboarding.pl">... >+ <input type="hidden" name="op" value="addpatron"/> >+ <h1 align="left"> New patron category</h1> >+ <div style="border-width:5px;">. >+ <p> Success: Patron category created!</p> >+ <p> To add another patron category and for more settings<br> >+ go to More->Administration->Patrons & Circulation->Patron Categories</p> >+ </div> >+ Next up: >+ <input type="submit" value="Add a patron"> >+ >+ [% ELSE %] >+ <p> Patron category was not successfully created</p> >+ [% END %] >+ [% END %] >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17855
:
58657
|
58658
|
58659
|
58660
|
58661
|
58662
|
58663
|
58664
|
58665
|
58666
|
58667
|
58668
|
58669
|
58781
|
58782
|
58783
|
58784
|
58785
|
58792
|
58793
|
58794
|
58846
|
58860
|
58861
|
58862
|
58886
|
58892
|
58893
|
58894
|
58895
|
58896
|
58897
|
58898
|
58899
|
58900
|
58901
|
58902
|
58903
|
58904
|
58905
|
58906
|
58907
|
59037
|
59051
|
59140
|
59141
|
59174
|
59188
|
59277
|
59279
|
59280
|
59281
|
59628
|
59703
|
59705
|
59706
|
59707
|
59708
|
59709
|
59710
|
59711
|
59712
|
59742
|
59826
|
59830
|
59840
|
59841
|
59842
|
59856
|
59857
|
60092
|
61667
|
61668
|
61986
|
62186
|
62191
|
62192
|
62193
|
62220
|
62221
|
62222
|
62223
|
62231
|
62233
|
62234
|
62235
|
62236
|
62237
|
62238
|
62239
|
62240
|
62241
|
62242
|
62243
|
62251
|
62252
|
62253
|
62254
|
62255
|
62256
|
62257
|
62258
|
62259
|
62260
|
62261
|
62262
|
62263
|
62281
|
62282
|
62283
|
62284
|
62285
|
62286
|
62287
|
62288
|
62668
|
62669
|
62670
|
62671
|
62672
|
62673
|
62674
|
62675