View | Details | Raw Unified | Return to bug 17855
Collapse All | Expand All

(-)a/installer/data/mysql/en/mandatory/class_sources.sql (-3 / +3 lines)
Lines 1-4 Link Here
1
-- 
1
--
2
-- Default classification sources and filing rules
2
-- Default classification sources and filing rules
3
-- for Koha.
3
-- for Koha.
4
--
4
--
Lines 10-20 Link Here
10
-- terms of the GNU General Public License as published by the Free Software
10
-- terms of the GNU General Public License as published by the Free Software
11
-- Foundation; either version 2 of the License, or (at your option) any later
11
-- Foundation; either version 2 of the License, or (at your option) any later
12
-- version.
12
-- version.
13
-- 
13
--
14
-- Koha is distributed in the hope that it will be useful, but WITHOUT ANY
14
-- Koha is distributed in the hope that it will be useful, but WITHOUT ANY
15
-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15
-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16
-- A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
16
-- A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
17
-- 
17
--
18
-- You should have received a copy of the GNU General Public License along
18
-- You should have received a copy of the GNU General Public License along
19
-- with Koha; if not, write to the Free Software Foundation, Inc.,
19
-- with Koha; if not, write to the Free Software Foundation, Inc.,
20
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
(-)a/installer/data/mysql/en/optional/csv_profiles.sql (-1 / +1 lines)
Lines 1-2 Link Here
1
INSERT IGNORE INTO export_format( profile, description, content, csv_separator, type ) 
1
INSERT IGNORE INTO export_format( profile, description, content, csv_separator, type )
2
VALUES ( "issues to claim", "default CSV export for serial issue claims", "SUPPLIER=aqbooksellers.name|TITLE=subscription.title|ISSUE NUMBER=serial.serialseq|LATE SINCE=serial.planneddate", ",", "sql" );
2
VALUES ( "issues to claim", "default CSV export for serial issue claims", "SUPPLIER=aqbooksellers.name|TITLE=subscription.title|ISSUE NUMBER=serial.serialseq|LATE SINCE=serial.planneddate", ",", "sql" );
(-)a/installer/data/mysql/en/optional/csv_profiles.txt (-2 lines)
Lines 1-3 Link Here
1
CSV profiles
2
3
Default CSV export profiles; including one for exporting serial claims.
1
Default CSV export profiles; including one for exporting serial claims.
(-)a/installer/data/mysql/en/mandatory/message_transport_types.txt (-1 lines)
Lines 1-2 Link Here
1
Defines default message transports for email and sms.
1
Defines default message transports for email and sms.
2
(-)a/installer/data/mysql/en/default/patron_attributes.txt (+1 lines)
Line 0 Link Here
1
Patron attributes
(-)a/installer/data/mysql/en/optional/patron_categories.sql (-1 / +1 lines)
Lines 1-4 Link Here
1
INSERT INTO `categories` (`categorycode`, `description`, `enrolmentperiod`, `upperagelimit`, `dateofbirthrequired`, `finetype`, `bulk`, `enrolmentfee`, `overduenoticerequired`, `issuelimit`, `reservefee`, `category_type`) VALUES 
1
INSERT INTO `categories` (`categorycode`, `description`, `enrolmentperiod`, `upperagelimit`, `dateofbirthrequired`, `finetype`, `bulk`, `enrolmentfee`, `overduenoticerequired`, `issuelimit`, `reservefee`, `category_type`) VALUES
2
2
3
-- Adult Patrons
3
-- Adult Patrons
4
('PT','Patron',99,999,18,NULL,NULL,'0.000000',1,NULL,'0.000000','A'),
4
('PT','Patron',99,999,18,NULL,NULL,'0.000000',1,NULL,'0.000000','A'),
(-)a/installer/data/mysql/en/optional/patron_categories.txt (-5 / +1 lines)
Lines 1-6 Link Here
1
Sample patron types and categories: 
1
Sample patron types and categories. Types are currently hardcoded but you can manage categories after installation from the administration module.
2
3
Type:           Categories:
4
2
5
Adult patron - default patron type
3
Adult patron - default patron type
6
                PT  - Patron
4
                PT  - Patron
Lines 21-25 Professional - a member of an organization (organization is guarantor) Link Here
21
                T   - Teacher
19
                T   - Teacher
22
                S   - Staff
20
                S   - Staff
23
                B   - Board
21
                B   - Board
24
25
Types are currently hardcoded, but you can add/edit/delete categories after installation from the administration module.
(-)a/installer/data/mysql/en/mandatory/sample_notices_message_attributes.sql (-1 lines)
Lines 6-9 values Link Here
6
(4, 'Hold_Filled', 0),
6
(4, 'Hold_Filled', 0),
7
(5, 'Item_Check_in', 0),
7
(5, 'Item_Check_in', 0),
8
(6, 'Item_Checkout', 0);
8
(6, 'Item_Checkout', 0);
9
(-)a/installer/data/mysql/en/marcflavour/marc21/default/authorities_normal_marc21.txt (+9 lines)
Line 0 Link Here
1
Default MARC21 Standard Authority types:
2
	Personal Name
3
	Corporate Name
4
	Meeting Name
5
	Uniform Title
6
	Chronological Term
7
	Topical Term
8
	Geographic Name
9
	Genre/Form Term
(-)a/installer/data/mysql/en/marcflavour/marc21/optional/marc21_default_matching_rules.sql (-9 / +9 lines)
Lines 1-4 Link Here
1
-- 
1
--
2
-- Default MARC matching rules for Koha
2
-- Default MARC matching rules for Koha
3
--
3
--
4
-- Copyright (C) 2007 LiblimeA
4
-- Copyright (C) 2007 LiblimeA
Lines 9-39 Link Here
9
-- terms of the GNU General Public License as published by the Free Software
9
-- terms of the GNU General Public License as published by the Free Software
10
-- Foundation; either version 2 of the License, or (at your option) any later
10
-- Foundation; either version 2 of the License, or (at your option) any later
11
-- version.
11
-- version.
12
-- 
12
--
13
-- Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13
-- Koha is distributed in the hope that it will be useful, but WITHOUT ANY
14
-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14
-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15
-- A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
15
-- A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
16
-- 
16
--
17
-- You should have received a copy of the GNU General Public License along
17
-- You should have received a copy of the GNU General Public License along
18
-- with Koha; if not, write to the Free Software Foundation, Inc.,
18
-- with Koha; if not, write to the Free Software Foundation, Inc.,
19
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
20
21
INSERT INTO marc_matchers (code, description, record_type, threshold) 
21
INSERT INTO marc_matchers (code, description, record_type, threshold)
22
    VALUES ('ISBN', '020$a', 'biblio', 1000);
22
    VALUES ('ISBN', '020$a', 'biblio', 1000);
23
INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'isbn', 1000 FROM marc_matchers;
23
INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'isbn', 1000 FROM marc_matchers;
24
INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints;
24
INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints;
25
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) 
25
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields)
26
    SELECT MAX(matchpoint_id), 1, '020', 'a' FROM matchpoints;
26
    SELECT MAX(matchpoint_id), 1, '020', 'a' FROM matchpoints;
27
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) 
27
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine)
28
    SELECT MAX(matchpoint_component_id), 1, 'ISBN' FROM matchpoint_components;
28
    SELECT MAX(matchpoint_component_id), 1, 'ISBN' FROM matchpoint_components;
29
29
30
INSERT INTO marc_matchers (code, description, record_type, threshold) 
30
INSERT INTO marc_matchers (code, description, record_type, threshold)
31
    VALUES ('ISSN', '022$a', 'biblio', 1000);
31
    VALUES ('ISSN', '022$a', 'biblio', 1000);
32
INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'issn', 1000 FROM marc_matchers;
32
INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'issn', 1000 FROM marc_matchers;
33
INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints;
33
INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints;
34
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) 
34
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields)
35
    SELECT MAX(matchpoint_id), 1, '022', 'a' FROM matchpoints;
35
    SELECT MAX(matchpoint_id), 1, '022', 'a' FROM matchpoints;
36
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) 
36
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine)
37
    SELECT MAX(matchpoint_component_id), 1, 'ISSN' FROM matchpoint_components;
37
    SELECT MAX(matchpoint_component_id), 1, 'ISSN' FROM matchpoint_components;
38
38
39
INSERT INTO marc_matchers (code, description, record_type, threshold)
39
INSERT INTO marc_matchers (code, description, record_type, threshold)
(-)a/installer/data/mysql/en/marcflavour/marc21/optional/marc21_default_matching_rules.txt (-4 / +1 lines)
Lines 1-5 Link Here
1
Selected matching rules for MARC 21 bibliographic
1
Selected matching rules for MARC 21 bibliographic
2
records, including:
2
records, including: ISBN, ISSN
3
4
ISBN
5
ISSN
(-)a/installer/data/mysql/en/marcflavour/marc21/optional/marc21_simple_bib_frameworks.txt (-1 lines)
Lines 1-5 Link Here
1
Simple MARC 21 bibliographic frameworks for some common types of bibliographic material.  Frameworks are used to define the structure of your MARC records and the behavior of the integrated MARC editor. You can change these at any time after installation. The frameworks in this optional default setting include:
1
Simple MARC 21 bibliographic frameworks for some common types of bibliographic material.  Frameworks are used to define the structure of your MARC records and the behavior of the integrated MARC editor. You can change these at any time after installation. The frameworks in this optional default setting include:
2
3
BKS	Books, Booklets, Workbooks
2
BKS	Books, Booklets, Workbooks
4
CF	CD-ROMs, DVD-ROMs, General Online Resources
3
CF	CD-ROMs, DVD-ROMs, General Online Resources
5
SR	Audio Cassettes, CDs
4
SR	Audio Cassettes, CDs
(-)a/installer/data/mysql/en/marcflavour/marc21/mandatory/authorities_normal_marc21.txt (-11 lines)
Lines 1-11 Link Here
1
Default MARC21 Standard Authority types:
2
3
	Personal Name 
4
	Corporate Name 
5
	Meeting Name 
6
	Uniform Title 
7
	Chronological Term 
8
	Topical Term 
9
	Geographic Name 
10
	Genre/Form Term 
11
(-)a/installer/data/mysql/en/marcflavour/unimarc/mandatory/authorities_normal_unimarc.sql (-2 lines)
Lines 819-823 INSERT INTO `auth_subfield_structure` (`authtypecode`, `tagfield`, `tagsubfield` Link Here
819
		('', '886', '2', 'System Code', 'System Code', 0, 0, 8, '', '', '', 0, -5, 0, '', ''),
819
		('', '886', '2', 'System Code', 'System Code', 0, 0, 8, '', '', '', 0, -5, 0, '', ''),
820
		('', '886', 'a', 'Tag of the Source Format Field', 'Tag of the Source Format Field', 1, 0, 8, '', '', '', 0, -5, 0, '', ''),
820
		('', '886', 'a', 'Tag of the Source Format Field', 'Tag of the Source Format Field', 1, 0, 8, '', '', '', 0, -5, 0, '', ''),
821
		('', '886', 'b', 'Indicators and Subfields of the Source Format Field', 'Indicators and Subfields of the Source Format Field', 1, 0, 8, '', '', '', 0, -5, 0, '', '');
821
		('', '886', 'b', 'Indicators and Subfields of the Source Format Field', 'Indicators and Subfields of the Source Format Field', 1, 0, 8, '', '', '', 0, -5, 0, '', '');
822
823
(-)a/installer/data/mysql/en/marcflavour/unimarc/default/authorities_normal_unimarc.txt (+1 lines)
Line 0 Link Here
1
 Authority structure for UNIMARC in English.
(-)a/installer/data/mysql/en/marcflavour/unimarc/mandatory/unimarc_framework_DEFAULT.sql (-5 / +5 lines)
Lines 23-29 Link Here
23
23
24
-- From Zeno Tajoli (2010-08-12):
24
-- From Zeno Tajoli (2010-08-12):
25
--
25
--
26
-- Improved default id Koha field (090) and koha date field (099). 
26
-- Improved default id Koha field (090) and koha date field (099).
27
-- Insert link to sql coloum biblio.biblionumber in tag 001
27
-- Insert link to sql coloum biblio.biblionumber in tag 001
28
-- Insert the use of 942, local data
28
-- Insert the use of 942, local data
29
-- Insert a standard minimun on 995 (holding field)
29
-- Insert a standard minimun on 995 (holding field)
Lines 72-78 Link Here
72
insert  into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values
72
insert  into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values
73
	('090','System Control Numbers (Koha)','System Control Numbers (Koha)',0,0,'','');
73
	('090','System Control Numbers (Koha)','System Control Numbers (Koha)',0,0,'','');
74
74
75
insert  into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values 
75
insert  into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values
76
	('090','a','Koha biblioitem number (autogenerated)','Koha biblioitem number (autogenerated)',0,0,'biblioitems.biblioitemnumber',9,'','','',0,-5,'',NULL,'','');
76
	('090','a','Koha biblioitem number (autogenerated)','Koha biblioitem number (autogenerated)',0,0,'biblioitems.biblioitemnumber',9,'','','',0,-5,'',NULL,'','');
77
77
78
-- Local date field/Subfields (099)
78
-- Local date field/Subfields (099)
Lines 80-88 insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,` Link Here
80
insert  into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values
80
insert  into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values
81
	('099','local dates','',0,0,'','');
81
	('099','local dates','',0,0,'','');
82
82
83
insert  into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values 
83
insert  into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values
84
	('099','c','Date of creation (bib. record)','Date of creation (bib. record)',0,0,'biblio.datecreated',0,'','','',0,-5,'',NULL,'','');
84
	('099','c','Date of creation (bib. record)','Date of creation (bib. record)',0,0,'biblio.datecreated',0,'','','',0,-5,'',NULL,'','');
85
 
85
86
insert  into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values
86
insert  into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values
87
	('099','d','Last modified date (bib. record)','Last modified data (bib. record)',0,0,'biblio.timestamp',0,'','','',0,-5,'',NULL,'','');
87
	('099','d','Last modified date (bib. record)','Last modified data (bib. record)',0,0,'biblio.timestamp',0,'','','',0,-5,'',NULL,'','');
88
88
Lines 151-157 INSERT INTO `marc_subfield_structure` (`tagfield`, `tagsubfield`, `liblibrarian` Link Here
151
		('995', 'r', 'Type of item and material', 'Type of item and material', 0, 1, 'items.itype', 10, 'itemtypes', '', '', 0, 0, '', '', '', NULL),
151
		('995', 'r', 'Type of item and material', 'Type of item and material', 0, 1, 'items.itype', 10, 'itemtypes', '', '', 0, 0, '', '', '', NULL),
152
		('995', 'u', 'Copy note', 'Copy note', 0, 0, 'items.itemnotes', 10, '', '', '', 0, 0, '', '', '', NULL),
152
		('995', 'u', 'Copy note', 'Copy note', 0, 0, 'items.itemnotes', 10, '', '', '', 0, 0, '', '', '', NULL),
153
		('995', 'v', 'Serial Enumeration / chronology', 'Serial Enumeration / chronology', 0, 0, 'items.enumchron', 10, '', '', '', 0, -1, '', '', '', NULL);
153
		('995', 'v', 'Serial Enumeration / chronology', 'Serial Enumeration / chronology', 0, 0, 'items.enumchron', 10, '', '', '', 0, -1, '', '', '', NULL);
154
 
154
155
155
156
156
157
-- *******************************************************
157
-- *******************************************************
(-)a/installer/data/mysql/en/marcflavour/unimarc/mandatory/authorities_normal_unimarc.txt (-1 lines)
Line 1 Link Here
1
Authority structure for UNIMARC in English.
(-)a/installer/data/mysql/en/optional/sample_holidays.txt (-4 / +1 lines)
Lines 1-4 Link Here
1
Sample holidays:
1
Sample holidays: Sunday, Christmas, New Year's
2
	Sundays
3
	Christmas
4
	New Year's
(-)a/installer/data/mysql/en/optional/sample_libraries.txt (-1 / +1 lines)
Line 1 Link Here
1
A few sample libraries.
1
Sample libraries.
(-)a/installer/data/mysql/en/optional/sample_z3950_servers.txt (+1 lines)
Lines 1-3 Link Here
1
Allow access to the following servers to search and download record information:
1
LIBRARY OF CONGRESS
2
LIBRARY OF CONGRESS
2
LIBRARY OF CONGRESS NAMES (authority records)
3
LIBRARY OF CONGRESS NAMES (authority records)
3
LIBRARY OF CONGRESS SUBJECTS (authority records)
4
LIBRARY OF CONGRESS SUBJECTS (authority records)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/Backupstep3.tt (+257 lines)
Line 0 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Web installer &rsaquo; Step 3</title>
2
[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/mainpage.pl">[% END %]
3
[% INCLUDE 'installer-doc-head-close.inc' %]
4
<div>
5
<h1 id="logo"><img alt="Koha" src="[% interface %]/[% theme %]/img/koha.org-logo.gif" /> Koha web  installer &rsaquo; Step 3</h1>
6
7
[% IF ( selectframeworks ) %]
8
    <script type="text/javascript">
9
    //<![CDATA[
10
11
    var surl = unescape(window.location.pathname);
12
13
    function doLoad()
14
    {
15
        // the timeout value should be the same as in the "refresh" meta-tag
16
        setTimeout( "refresh()", 2*1000 );
17
    }
18
19
    function refresh(value)
20
    {
21
        //  The argument to the location.reload function determines
22
        //  if the browser should retrieve the document from the
23
        //  web-server.  In our example all we need to do is cause
24
        //  the JavaScript block in the document body to be
25
        //  re-evaluated.  If we needed to pull the document from
26
        //  the web-server again (such as where the document contents
27
        //  change dynamically) we would pass the argument as 'true'.
28
        //
29
        surl=surl+'?step=3&op=selectframeworks&fwklanguage='+value;
30
31
        window.location.replace( surl );
32
    }
33
34
    function selectAllFrameworks()
35
    {
36
        //  A handy short link that selects all available checkboxes
37
        //  on the page.
38
        //
39
        var checkboxes = document.getElementsByTagName("input");
40
        for (var i = 0; i < checkboxes.length; i++)
41
        {
42
            if (checkboxes[i].type == 'checkbox')
43
            {
44
                checkboxes[i].checked = true;
45
            }
46
        }
47
48
        //  Prevent event propergation.
49
        return false;
50
    }
51
52
    function Hide(link)
53
    {
54
        //  Toggle the display of a given element on the page.
55
        //
56
        subfield = document.getElementById('bloc'+link);
57
        var initstyle = subfield.style.display;
58
        if (initstyle == 'block') subfield.style.display = 'none' ;
59
        if (initstyle == 'none') subfield.style.display = 'block' ;
60
    }
61
62
    //]]>
63
    </script>
64
[% END %]
65
[% IF ( finish ) %]
66
    <h1>Congratulations, installation complete</h1>
67
    <p>If this page does not redirect in 5 seconds, click <a href="/">here</a>.</p>
68
[% END %]
69
[% IF ( choosemarc ) %]
70
    <h2 align="center">Select your MARC flavor</h2>
71
    <form name="frameworkselection" method="post" action="install.pl">
72
    <input type="hidden" name="step" value="3" />
73
    <input type="hidden" name="op" value="selectframeworks"/>
74
    <p>
75
    [% FOREACH flavourloo IN flavourloop %]
76
    <div>
77
            [% IF ( flavourloo.checked ) %]
78
                <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked="checked" /> [% flavourloo.label %] <br/>
79
            [% ELSE %]
80
                <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %] <br/>
81
            [% END %]
82
    </div>
83
    [% END %]
84
    </p>
85
    <p> Click 'Next' to continue <input value="Next &gt;&gt;" type="submit" /></p>
86
    </form>
87
[% END %]
88
89
[% IF ( selectframeworks ) %]
90
    <h2 align="center">Selecting Default Settings</h2>
91
    <script type="text/javascript">
92
        var linklabel = _("Select all sample data");
93
        document.write('<p><a href="#" onclick="return selectAllFrameworks();">'+linklabel+'</a></p>');
94
    </script>
95
    <form name="frameworkselection" method="post" action="install.pl">
96
    <input type="hidden" name="step" value="3" />
97
    <input type="hidden" name="op" value="addframeworks" />
98
99
    [% IF ( frameworksloop ) %]
100
    <h2>MARC frameworks: [% marcflavour %]</h2>
101
    [% IF ( en_marc_frameworks ) %]
102
        <h4><span class="error">No MARC frameworks are available for your language.
103
                Defaulting to the frameworks supplied for English (en)<span></h4>
104
    [% END %]
105
    [% FOREACH frameworksloo IN frameworksloop %]
106
    <div>
107
    <h3>[% frameworksloo.label %]</h3>
108
    [% FOREACH framework IN frameworksloo.frameworks %]
109
        <table style="border:1px;vertical-align:top;">
110
        <tr>
111
        <td style="vertical-align:top;">
112
         [% IF ( framework.checked ) %]
113
         <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" checked="checked" />
114
         [% ELSE %]
115
             <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
116
         [% END %]
117
         </td>
118
         <td>
119
            <label for="[% framework.fwkname %]">
120
                [% framework.fwkdescription %]
121
                <em>([% framework.fwkname %])</em>
122
            </label>
123
        </td>
124
        </table>
125
    [% END %]
126
    </div>
127
    [% END %]
128
    <h2>Other data</h2>
129
    [% END %]
130
    [% IF ( en_sample_data ) %]
131
        <h4><span class="error">No sample data and settings are available for your language.
132
                Defaulting to the samples supplied for English (en)<span></h4>
133
    [% END %]
134
    [% FOREACH levelloo IN levelloop %]
135
    <div>
136
    <h3>[% levelloo.label %]</h3>
137
    [% FOREACH framework IN levelloo.frameworks %]
138
        <table style="border:1px;vertical-align:top;">
139
        <tr>
140
        <td style="vertical-align:top;">
141
            [% IF ( framework.checked ) %]
142
                <input type="checkbox" name="framework" value="[% framework.fwkfile %]"  id="[% framework.fwkname %]" />
143
            [% ELSE %]
144
                <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
145
            [% END %]
146
        </td>
147
        <td>
148
            <label for="[% framework.fwkname %]">
149
                [% framework.fwkdescription %]
150
                <em>([% framework.fwkname %])</em>
151
            </label>
152
        </td>
153
        </table>
154
    [% END %]
155
    </div>
156
    [% END %]
157
    <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete,
158
    please be patient.</p>
159
    <p><input type="submit" value="Import &gt;&gt;" />
160
    </p>
161
    </form>
162
[% END %]
163
164
165
[% IF ( addframeworks ) %]
166
    [% FOREACH lis IN list %]
167
    <h3>[% lis.level %] data added</h3>
168
    <ul>
169
    [% FOREACH fwklis IN lis.fwklist %]
170
        <li>[% fwklis.fwkname %][% IF ( fwklis.error ) %]<br /><span class="error">[% fwklis.error %]</span>[% END %] </li>
171
    [% END %]
172
    </ul>
173
    [% END %]
174
    <h3>All done!</h3>
175
    <p>Installation complete.<br />
176
        <p>Click on 'Finish' to complete and load the Koha Staff Interface.
177
        <form name="finish">
178
        <input type="hidden" name="step" value="3" />
179
        <input type="hidden" name="op" value="finish" />
180
        <input type="submit" value="Finish" /></form>
181
        </p>
182
    </p>
183
[% END %]
184
185
186
[% IF ( importdatastructure ) %]
187
    [% IF ( error ) %]
188
        <p>The following error occurred while importing the database structure:</p>
189
        <p class="error">[% error %] </p>
190
        <p>Please contact your system administrator</p>
191
    [% ELSE %]
192
        <h2 align="center">Success</h2>
193
        <ul>
194
        <li>Database tables created</li>
195
        </ul>
196
        <form action="install.pl">
197
        <input type="hidden" name="step" value="3" />
198
            <p> Click 'Next' to continue <input value="Next &gt;&gt;" type="submit" /></p>
199
        </form>
200
    [% END %]
201
[% END %]
202
203
204
[% IF ( proposeimport ) %]
205
    <p>Now we're ready to create the database tables and fill them with some default data.</p>
206
    <form action="install.pl">
207
    <input type="hidden" name="step" value="3" />
208
    <input type="hidden" name="op" value="importdatastructure" />
209
    <p> Click 'Next' to continue <input value="Next &gt;&gt;" type="submit" /></p>
210
    </form>
211
[% END %]
212
213
214
[% IF ( default ) %]
215
    [% IF ( upgrading ) %]
216
        <p>
217
            We are upgrading from Koha [% dbversion %] to [% kohaversion %], you must <a href="install.pl?step=3&amp;op=updatestructure" class="button">update your database</a>
218
        </p>
219
    [% ELSE %]
220
        <p>We are ready to do some basic configuration. Please install some basic configuration settings to continue the installation:
221
        <br>
222
        <br>
223
            <a href="install.pl?step=3&amp;op=choosemarc" class="button"><button>Install basic configuration settings</button></a>
224
        </p>
225
    [% END %]
226
[% END %]
227
228
229
230
[% IF ( updatestructure ) %]
231
  <div><h2 align="center">Updating database structure</h2>
232
  [% IF ( has_update_succeeds ) %]
233
  <p>Update report :</p>
234
    <ul>
235
      [% FOREACH update_repor IN update_report %]
236
          <li>[% update_repor.line |html %]</li>
237
      [% END %]
238
    </ul>
239
  [% END %]
240
  [% IF ( has_update_errors ) %]
241
  <p>Update errors :</p>
242
    <ul>
243
      [% FOREACH update_error IN update_errors %]
244
          <li class="update_error">[% update_error.line |html %]</li>
245
      [% END %]
246
    </ul>
247
  [% END %]
248
 [% UNLESS ( has_update_errors ) %]
249
    <p>Everything went OK, update done.</p>
250
  [% END %]
251
<a href="install.pl?step=3&amp;op=finished" class="button">Continue to log in to Koha</a>
252
  </div>
253
[% END %]
254
255
</div>
256
</body>
257
</html>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt (-26 / +55 lines)
Lines 2-8 Link Here
2
[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/mainpage.pl">[% END %]
2
[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/mainpage.pl">[% END %]
3
[% INCLUDE 'installer-doc-head-close.inc' %]
3
[% INCLUDE 'installer-doc-head-close.inc' %]
4
<div>
4
<div>
5
<h1 id="logo"><img alt="Koha" src="[% interface %]/[% theme %]/img/koha.org-logo.gif" /> Web installer &rsaquo; Step 3</h1>
5
<h1 id="logo"><img alt="Koha" src="[% interface %]/[% theme %]/img/koha.org-logo.gif" /> Koha web  installer &rsaquo; Step 3</h1>
6
6
7
[% IF ( selectframeworks ) %]
7
[% IF ( selectframeworks ) %]
8
    <script type="text/javascript">
8
    <script type="text/javascript">
Lines 68-83 Link Here
68
[% END %]
68
[% END %]
69
[% IF ( choosemarc ) %]
69
[% IF ( choosemarc ) %]
70
    <h2 align="center">Select your MARC flavor</h2>
70
    <h2 align="center">Select your MARC flavor</h2>
71
    <p>MARC stands for Machine Readable Cataloging, containing information about a bibliographic record. MARC21 is more commonly used globally, whereas UNIMARC tends to be used in Europe. </p>
71
    <form name="frameworkselection" method="post" action="install.pl">
72
    <form name="frameworkselection" method="post" action="install.pl">
72
    <input type="hidden" name="step" value="3" />
73
    <input type="hidden" name="step" value="3" />
73
    <input type="hidden" name="op" value="selectframeworks" />
74
    <input type="hidden" name="op" value="selectframeworks"/>
74
    <p>
75
    <p>
75
    [% FOREACH flavourloo IN flavourloop %]
76
    [% FOREACH flavourloo IN flavourloop %]
76
    <div>
77
    <div>
77
            [% IF ( flavourloo.checked ) %]
78
            [% IF ( flavourloo.label == "Unimarc") %]
78
                <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked /> [% flavourloo.label %] <br/>
79
                 <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %]                 <br/>
79
            [% ELSE %]
80
            [% ELSE %]
80
                <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %] <br/>
81
                 <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked="checked" /> [% flavourloo.label %] <br/>
81
            [% END %]
82
            [% END %]
82
    </div>
83
    </div>
83
    [% END %]
84
    [% END %]
Lines 89-96 Link Here
89
[% IF ( selectframeworks ) %]
90
[% IF ( selectframeworks ) %]
90
    <h2 align="center">Selecting Default Settings</h2>
91
    <h2 align="center">Selecting Default Settings</h2>
91
    <script type="text/javascript">
92
    <script type="text/javascript">
92
        var linklabel = _("Select all sample data");
93
        var linklabel = _("Select all options");
93
        document.write('<p><a href="#" onclick="return selectAllFrameworks();">'+linklabel+'</a></p>');
94
        document.write('<p><a href="#" onclick="return selectAllFrameworks();"><button>'+linklabel+'</button></a></p>');
94
    </script>
95
    </script>
95
    <form name="frameworkselection" method="post" action="install.pl">
96
    <form name="frameworkselection" method="post" action="install.pl">
96
    <input type="hidden" name="step" value="3" />
97
    <input type="hidden" name="step" value="3" />
Lines 108-126 Link Here
108
    [% FOREACH framework IN frameworksloo.frameworks %]
109
    [% FOREACH framework IN frameworksloo.frameworks %]
109
        <table style="border:1px;vertical-align:top;">
110
        <table style="border:1px;vertical-align:top;">
110
        <tr>
111
        <tr>
111
        <td style="vertical-align:top;">
112
         <td style = "border:1px; vertical-align:top;">
112
            [% IF ( framework.checked ) %]
113
         [% IF (frameworksloo.label == "Default" ) %]
113
                <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
114
            <ul>
114
            [% ELSE %]
115
            </ul>
115
                <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
116
         [% ELSE %]
116
            [% END %]
117
            <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id =="[%framework.fwkname%]" />
118
         [% END %]
117
        </td>
119
        </td>
118
        <td>
120
        <td>
121
        [% IF (frameworksloo.label == "Default" ) %]
122
        <ul>
119
            <label for="[% framework.fwkname %]">
123
            <label for="[% framework.fwkname %]">
124
               <li> [% framework.fwkdescription %]</li>
125
                 <em>([% framework.fwkname %])</em>
126
            </label>
127
            </ul>
128
         </td>
129
        [% ELSE %]
130
        <td>
131
            <label for= "[% framework.fwkname %]">
120
                [% framework.fwkdescription %]
132
                [% framework.fwkdescription %]
121
                <em>([% framework.fwkname %])</em>
133
                <em>([% framework.fwkname %])</em>
122
            </label>
134
            </label>
123
        </td>
135
        </td>
136
        [% END %]
137
        </tr>
124
        </table>
138
        </table>
125
    [% END %]
139
    [% END %]
126
    </div>
140
    </div>
Lines 138-155 Link Here
138
        <table style="border:1px;vertical-align:top;">
152
        <table style="border:1px;vertical-align:top;">
139
        <tr>
153
        <tr>
140
        <td style="vertical-align:top;">
154
        <td style="vertical-align:top;">
141
            [% IF ( framework.checked ) %]
155
        [% IF (levelloo.label == "Default" ) %]
142
                <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
156
             <input type="hidden" name="framework" value="[% framework.fwkfile %]" id="[%framework.fwkname %]" />
143
            [% ELSE %]
157
        [% ELSE %]
144
                <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
158
             <input type="checkbox" name="framework" value="[%framework.fwkfile %]" id=="[%framework.fwkname%]"/>
145
            [% END %]
159
        [% END %]
146
        </td>
160
        </td>
147
        <td>
161
        <td>
162
        [% IF (levelloo.label == "Default") %]
163
            <ul>
148
            <label for="[% framework.fwkname %]">
164
            <label for="[% framework.fwkname %]">
149
                [% framework.fwkdescription %]
165
               <li> [% framework.fwkdescription %]</li>
150
                <em>([% framework.fwkname %])</em>
166
                <em>([% framework.fwkname %])</em>
151
            </label>
167
            </label>
168
            </ul>
169
        </td>
170
        [% ELSE %]
171
        <td>
172
            <label for= "[% framework.fwkname %]">
173
            [% framework.fwkdescription %]
174
            <em>([% framework.fwkname %])</em>
175
            </label>
152
        </td>
176
        </td>
177
        [% END %]
178
        </tr>
153
        </table>
179
        </table>
154
    [% END %]
180
    [% END %]
155
    </div>
181
    </div>
Lines 177-183 Link Here
177
        <form name="finish">
203
        <form name="finish">
178
        <input type="hidden" name="step" value="3" />
204
        <input type="hidden" name="step" value="3" />
179
        <input type="hidden" name="op" value="finish" />
205
        <input type="hidden" name="op" value="finish" />
180
        <input type="submit" value="Finish" /></form>
206
        <input type="submit" value="Finish"/>
207
        </form>
181
        </p>
208
        </p>
182
    </p>
209
    </p>
183
[% END %]
210
[% END %]
Lines 214-225 Link Here
214
[% IF ( default ) %]
241
[% IF ( default ) %]
215
    [% IF ( upgrading ) %]
242
    [% IF ( upgrading ) %]
216
        <p>
243
        <p>
217
            We are upgrading from Koha [% dbversion %] to [% kohaversion %], you must <a href="install.pl?step=3&amp;op=updatestructure" class="button">update your database</a>
244
            We are upgrading from Koha [% dbversion %] to [% kohaversion %], you must update your database.
245
        <br>
246
        <a href="install.pl?step=3&amp;op=updatestructure" class="button"><button>Update Database</button></a>
218
        </p>
247
        </p>
219
    [% ELSE %]
248
    [% ELSE %]
220
        <p>We are ready to do some basic configuration. Please
249
        <p>We are ready to do some basic configuration. Please install some basic configuration settings to continue the installation:
221
            <a href="install.pl?step=3&amp;op=choosemarc" class="button">install basic configuration settings</a>
250
        <br>
222
            to continue the installation.
251
        <br>
252
            <a href="install.pl?step=3&amp;op=choosemarc" class="button"><button>Install Basic Configuration Settings</button></a>
223
        </p>
253
        </p>
224
    [% END %]
254
    [% END %]
225
[% END %]
255
[% END %]
Lines 247-253 Link Here
247
 [% UNLESS ( has_update_errors ) %]
277
 [% UNLESS ( has_update_errors ) %]
248
    <p>Everything went OK, update done.</p>
278
    <p>Everything went OK, update done.</p>
249
  [% END %]
279
  [% END %]
250
<a href="install.pl?step=3&amp;op=finished" class="button">Continue to log in to Koha</a>
280
<a href="install.pl?step=3&amp;op=choosemarc" class="button"><button>Back to Installation</button></a>
251
  </div>
281
  </div>
252
[% END %]
282
[% END %]
253
283
254
- 

Return to bug 17855