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

(-)a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css (-1 lines)
Lines 135-141 a.tagnum { Link Here
135
.linktools a:first-child { border-bottom: 1px solid #DDD; }
135
.linktools a:first-child { border-bottom: 1px solid #DDD; }
136
.linktools a:hover { background-color: #FFC; }
136
.linktools a:hover { background-color: #FFC; }
137
.subfield_controls { margin : 0 .5em; }
137
.subfield_controls { margin : 0 .5em; }
138
.readonly { border-width : 1px; border-style: inset; padding-left : 15px; background: #EEE url(../img/locked.png) center left no-repeat; width:29em; }
139
138
140
#cataloguing_additem_itemlist {
139
#cataloguing_additem_itemlist {
141
	margin-bottom : 1em;
140
	margin-bottom : 1em;
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-7 / +21 lines)
Lines 343-348 th { Link Here
343
    font-weight: bold;
343
    font-weight: bold;
344
    text-align: center;
344
    text-align: center;
345
345
346
    &[scope="row"] {
347
        text-align: right;
348
    }
349
346
    &.data {
350
    &.data {
347
        font-family: $font-monospace;
351
        font-family: $font-monospace;
348
        text-align: right;
352
        text-align: right;
Lines 1019-1025 fieldset { Link Here
1019
1023
1020
        div {
1024
        div {
1021
            &.hint {
1025
            &.hint {
1022
                margin-bottom: .4em;
1026
                margin: .5em 0;
1023
                margin-left: 10.5em;
1027
                margin-left: 10.5em;
1024
            }
1028
            }
1025
        }
1029
        }
Lines 1074-1079 fieldset { Link Here
1074
            }
1078
            }
1075
1079
1076
            &.radio {
1080
            &.radio {
1081
                margin: 0;
1077
                padding-left: 9em;
1082
                padding-left: 9em;
1078
                width: auto;
1083
                width: auto;
1079
1084
Lines 1893-1898 dd { Link Here
1893
    }
1898
    }
1894
}
1899
}
1895
1900
1901
.readonly,
1902
input[type='text']:read-only {
1903
    background: #EEE url("../img/locked.png") center left no-repeat;
1904
    border-style: inset;
1905
    border-width: 1px;
1906
    cursor: default;
1907
    padding-left: 15px;
1908
}
1909
1910
.readonly:focus,
1911
input[type='text']:read-only:focus {
1912
    border-color: unset;
1913
    border-radius: unset;
1914
}
1915
1896
.checkedout {
1916
.checkedout {
1897
    color: #999999;
1917
    color: #999999;
1898
    font-style: italic;
1918
    font-style: italic;
Lines 2439-2450 li { Link Here
2439
    font-style: italic;
2459
    font-style: italic;
2440
}
2460
}
2441
2461
2442
#displayexample {
2443
    background-color: #CCCCCC;
2444
    margin-bottom: 10px;
2445
    padding: 5px;
2446
}
2447
2448
#irregularity_summary {
2462
#irregularity_summary {
2449
    vertical-align: top;
2463
    vertical-align: top;
2450
}
2464
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/showpredictionpattern.tt (+4 lines)
Lines 84-87 Link Here
84
  </tbody>
84
  </tbody>
85
</table>
85
</table>
86
86
87
<fieldset class="action">
88
    <button class="btn btn-default btn-sm" id="hidepredictionpattern">Done</button>
89
</fieldset>
90
87
[% END %]
91
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (-56 / +70 lines)
Lines 14-19 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
14
/* Prevents Bootstrap menus from being hidden inside modal */
14
/* Prevents Bootstrap menus from being hidden inside modal */
15
#mana_search_result .modal { overflow: visible; }
15
#mana_search_result .modal { overflow: visible; }
16
#mana_search_result .modal-body { overflow-y: visible; }
16
#mana_search_result .modal-body { overflow-y: visible; }
17
fieldset.rows table { clear: none; margin: 0; }
17
</style>
18
</style>
18
</head>
19
</head>
19
20
Lines 32-66 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
32
33
33
<div class="main container-fluid">
34
<div class="main container-fluid">
34
    <div class="row">
35
    <div class="row">
35
            <div class="col-sm-12">
36
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
36
                <h1>[% IF ( modify ) %] Modify subscription for <i>[% bibliotitle | html %]</i>[% ELSE %]Add a new subscription[% END %] (<span id="page_number">1/2</span>)</h1>
37
            <h1>[% IF ( modify ) %] Modify subscription for <i>[% bibliotitle | html %]</i>[% ELSE %]Add a new subscription[% END %] (<span id="page_number">1/2</span>)</h1>
37
            </div>
38
        </div>
38
            <form method="post" id="subscription_add_form" name="f" action="/cgi-bin/koha/serials/subscription-add.pl" class="validated">
39
    </div>
39
                [% IF ( modify ) %]
40
    <form method="post" id="subscription_add_form" name="f" action="/cgi-bin/koha/serials/subscription-add.pl" class="validated">
40
                    <input type="hidden" name="op" value="modsubscription" />
41
                <div class="row" id="page_1">
41
                    <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
42
                    <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
42
                [% ELSE %]
43
                        [% IF ( modify ) %]
43
                        <input type="hidden" name="op" value="addsubscription" />
44
                            <input type="hidden" name="op" value="modsubscription" />
44
                [% END %]
45
                            <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
45
                <input type="hidden" name="user" value="[% logged_in_user.userid | html %]" />
46
                        [% ELSE %]
46
                <input type="hidden" name="irreg_check" value="0" />
47
                                <input type="hidden" name="op" value="addsubscription" />
47
48
                        [% END %]
48
                <div id="page_1">
49
                        <input type="hidden" name="user" value="[% logged_in_user.userid | html %]" />
49
                    <div class="col-md-6">
50
                        <input type="hidden" name="irreg_check" value="0" />
50
                        <fieldset id="subscription_add_information" class="rows">
51
                        <fieldset id="subscription_add_information" class="rows">
51
                            <legend>Subscription details</legend>
52
                            <legend>Subscription details</legend>
52
                            <ol>
53
                            <ol>
53
                                [% IF ( subscriptionid ) %]
54
                                [% IF ( subscriptionid ) %]
54
                                    <li><span class="label">Subscription #</span> [% subscriptionid | html %]</li>
55
                                    <li><span class="label">Subscription number: </span> [% subscriptionid | html %]</li>
55
                                [% END %]
56
                                [% END %]
56
                                <li>
57
                                <li>
57
                                    <label for="aqbooksellerid">Vendor: </label>
58
                                    <label for="aqbooksellerid">Vendor: </label>
58
                                    <input type="text" name="aqbooksellerid" id="aqbooksellerid" value="[% aqbooksellerid | html %]" size="8" /> (<input type="text" name="aqbooksellername" id="aqbooksellername" value="[% aqbooksellername | html %]" disabled="disabled" readonly="readonly" />) <a href="#" id="vendor_search"><i class="fa fa-search"></i> Search for a vendor</a>
59
                                    <input type="text" name="aqbooksellerid" id="aqbooksellerid" value="[% aqbooksellerid | html %]" size="8" /> (<input type="text" name="aqbooksellername" id="aqbooksellername" value="[% aqbooksellername | html %]" disabled="disabled" readonly="readonly" />) <a href="#" id="vendor_search"><i class="fa fa-search"></i> Search for a vendor</a>
59
                                </li>
60
                                </li>
60
                                <li>
61
                                <li>
61
                                    <label for="biblionumber" class="required" title="Subscriptions must be associated with a bibliographic record">Record:</label>
62
                                    <label for="biblionumber" class="required">Record:</label>
62
                                    <input type="text" name="biblionumber" id="biblionumber" value="[% bibnum | html %]" size="8" />
63
                                    <input type="text" name="biblionumber" id="biblionumber" value="[% bibnum | html %]" size="8" />
63
                                    (<input type="text" name="title" value="[% bibliotitle | html %]" disabled="disabled" readonly="readonly" />) <span class="required" title="Subscriptions must be associated with a bibliographic record">Required</span>
64
                                    (<input type="text" name="title" value="[% bibliotitle | html %]" disabled="disabled" readonly="readonly" />) <span class="required" title="Subscriptions must be associated with a bibliographic record">Required</span>
65
                                    <div class="hint">Subscriptions must be associated with a bibliographic record</div>
64
                                    <div class="inputnote"> <a href="#" id="record_search"><i class="fa fa-search"></i> Search for record</a>
66
                                    <div class="inputnote"> <a href="#" id="record_search"><i class="fa fa-search"></i> Search for record</a>
65
                                        [% IF ( CAN_user_editcatalogue ) %]
67
                                        [% IF ( CAN_user_editcatalogue ) %]
66
                                            [% IF ( modify ) %]
68
                                            [% IF ( modify ) %]
Lines 73-83 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
73
                                </li>
75
                                </li>
74
                                <li class="radio">
76
                                <li class="radio">
75
                                    [% IF ( serialsadditems ) %]
77
                                    [% IF ( serialsadditems ) %]
76
                                        <p><input type="radio" id="serialsadditems-yes" name="serialsadditems" value="1" checked="checked" /><label class="widelabel" for="serialsadditems-yes">create an item record when receiving this serial</label></p>
78
                                        <p><input type="radio" id="serialsadditems-yes" name="serialsadditems" value="1" checked="checked" /><label class="widelabel" for="serialsadditems-yes"> Create an item record when receiving this serial</label></p>
77
                                        <p><input type="radio" id="serialsadditems-no" name="serialsadditems" value="0" /><label class="widelabel" for="serialsadditems-no">do not create an item record when receiving this serial </label></p>
79
                                        <p><input type="radio" id="serialsadditems-no" name="serialsadditems" value="0" /><label class="widelabel" for="serialsadditems-no"> Do not create an item record when receiving this serial </label></p>
78
                                    [% ELSE %]
80
                                    [% ELSE %]
79
                                        <p><input type="radio" id="serialsadditems-yes" name="serialsadditems" value="1"/><label class="widelabel" for="serialsadditems-yes">create an item record when receiving this serial</label></p>
81
                                        <p><input type="radio" id="serialsadditems-yes" name="serialsadditems" value="1"/><label class="widelabel" for="serialsadditems-yes"> Create an item record when receiving this serial</label></p>
80
                                        <p><input type="radio" id="serialsadditems-no" name="serialsadditems" value="0" checked="checked" /><label class="widelabel" for="serialsadditems-no">do not create an item record when receiving this serial</label></p>
82
                                        <p><input type="radio" id="serialsadditems-no" name="serialsadditems" value="0" checked="checked" /><label class="widelabel" for="serialsadditems-no"> Do not create an item record when receiving this serial</label></p>
81
                                    [% END %]
83
                                    [% END %]
82
                                </li>
84
                                </li>
83
                                <li class="radio">
85
                                <li class="radio">
Lines 116-122 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
116
                                </li>
118
                                </li>
117
                                <li>
119
                                <li>
118
                                    <label for="branchcode">Library:</label>
120
                                    <label for="branchcode">Library:</label>
119
                                    <select name="branchcode" id="branchcode" style="width: 20em;">
121
                                    <select name="branchcode" id="branchcode">
120
                                        [% UNLESS ( Independentbranches ) %]
122
                                        [% UNLESS ( Independentbranches ) %]
121
                                            <option value="">None</option>
123
                                            <option value="">None</option>
122
                                        [% END %]
124
                                        [% END %]
Lines 125-131 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
125
                                        [% ELSE %]
127
                                        [% ELSE %]
126
                                            [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
128
                                            [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
127
                                        [% END %]
129
                                        [% END %]
128
                                    </select> (select a library)
130
                                    </select>
129
                                </li>
131
                                </li>
130
                                <li>
132
                                <li>
131
                                    <label for="notes">Public note:</label>
133
                                    <label for="notes">Public note:</label>
Lines 210-222 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
210
                            </ol>
212
                            </ol>
211
                        </fieldset>
213
                        </fieldset>
212
                        <fieldset class="action">
214
                        <fieldset class="action">
213
                            <input type="button" value="Next &gt;&gt;" id="subscription_add_next" style="float:right;" />
215
                            <button type="button" id="subscription_add_next" style="float:right;">Next <i class="fa fa-long-arrow-right"></i></button>
214
                        </fieldset>
216
                        </fieldset>
215
                    </div>
217
                    </div> <!-- /.col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2 -->
216
                </div>
218
                </div> <!-- /.row#page_1 -->
217
219
                <div class="row" id="page_2">
218
                <div id="page_2">
220
                    <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
219
                    <div class="col-md-6">
220
                [% IF ( Koha.Preference('Mana') == 1) && !mana_url %]
221
                [% IF ( Koha.Preference('Mana') == 1) && !mana_url %]
221
                    <fieldset>
222
                    <fieldset>
222
                        <p><center>The Mana Knowledge Base can be used to import subscription patterns submitted by other libraries and save you extra work. Ask your system administrator to configure this service and complete the configuration, or remove this message by disabling the system preference
223
                        <p><center>The Mana Knowledge Base can be used to import subscription patterns submitted by other libraries and save you extra work. Ask your system administrator to configure this service and complete the configuration, or remove this message by disabling the system preference
Lines 235-242 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
235
                                          <input type="text" size="10" id="acqui_date" name="firstacquidate" value="[% firstacquidate | $KohaDates %]" class="datepicker required" required="required" />
236
                                          <input type="text" size="10" id="acqui_date" name="firstacquidate" value="[% firstacquidate | $KohaDates %]" class="datepicker required" required="required" />
236
                                        [% ELSE %]
237
                                        [% ELSE %]
237
                                          [% firstacquidate | $KohaDates %]
238
                                          [% firstacquidate | $KohaDates %]
238
                                          <input type="hidden" size="10" id="acqui_date" name="firstacquidate" value="[% firstacquidate | $KohaDates %]"/>
239
                                          <input type="hidden" id="acqui_date" name="firstacquidate" value="[% firstacquidate | $KohaDates %]"/>
239
                                        [% END %]
240
                                        [% END %]
241
                                        <span class="required">Required</span>
240
                                    </li>
242
                                    </li>
241
                                    [% IF (more_than_one_serial) %]
243
                                    [% IF (more_than_one_serial) %]
242
                                      <li>
244
                                      <li>
Lines 315-320 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
315
                                                </option>
317
                                                </option>
316
                                            [% END %]
318
                                            [% END %]
317
                                        </select>
319
                                        </select>
320
                                        <span class="required">Required</span>
318
                                    </li>
321
                                    </li>
319
                                    <li>
322
                                    <li>
320
                                        <label for="locale">Locale:</label>
323
                                        <label for="locale">Locale:</label>
Lines 328-336 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
328
                                                [% END %]
331
                                                [% END %]
329
                                            [% END %]
332
                                            [% END %]
330
                                        </select>
333
                                        </select>
331
                                        <span class="hint">If empty, English is used</span>
334
                                        <div class="hint">If empty, English is used</div>
332
                                    </li>
335
                                    </li>
333
                                    <li id="more_options">
336
                                    <li id="more_options">
337
                                        <span class="label">&nbsp;</span>
334
                                        <table id="moreoptionst">
338
                                        <table id="moreoptionst">
335
                                            <thead>
339
                                            <thead>
336
                                                <tr>
340
                                                <tr>
Lines 342-360 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
342
                                            </thead>
346
                                            </thead>
343
                                            <tbody>
347
                                            <tbody>
344
                                                <tr>
348
                                                <tr>
345
                                                    <td>
349
                                                    <th scope="row">
346
                                                      [% IF (more_than_one_serial) %]
350
                                                      [% IF (more_than_one_serial) %]
347
                                                        Last value
351
                                                        Last value:
348
                                                      [% ELSE %]
352
                                                      [% ELSE %]
349
                                                        Begins with
353
                                                        Begins with:
350
                                                      [% END %]
354
                                                      [% END %]
351
                                                    </td>
355
                                                    </th>
352
                                                    <td id="beginsX"><input type="text" id="lastvaluetemp1" name="lastvaluetemp1" value="[% lastvalue1 | html %]" /></td>
356
                                                    <td id="beginsX"><input type="text" id="lastvaluetemp1" name="lastvaluetemp1" value="[% lastvalue1 | html %]" /></td>
353
                                                    <td id="beginsY"><input type="text" id="lastvaluetemp2" name="lastvaluetemp2" value="[% lastvalue2 | html %]" /></td>
357
                                                    <td id="beginsY"><input type="text" id="lastvaluetemp2" name="lastvaluetemp2" value="[% lastvalue2 | html %]" /></td>
354
                                                    <td id="beginsZ"><input type="text" id="lastvaluetemp3" name="lastvaluetemp3" value="[% lastvalue3 | html %]" /></td>
358
                                                    <td id="beginsZ"><input type="text" id="lastvaluetemp3" name="lastvaluetemp3" value="[% lastvalue3 | html %]" /></td>
355
                                                </tr>
359
                                                </tr>
356
                                                <tr>
360
                                                <tr>
357
                                                    <td>Inner counter</td>
361
                                                    <th scope="row">Inner counter:</th>
358
                                                    <td id="innerX"><input type="text" id="innerlooptemp1" name="innerlooptemp1" value="[% innerloop1 | html %]" /></td>
362
                                                    <td id="innerX"><input type="text" id="innerlooptemp1" name="innerlooptemp1" value="[% innerloop1 | html %]" /></td>
359
                                                    <td id="innerY"><input type="text" id="innerlooptemp2" name="innerlooptemp2" value="[% innerloop2 | html %]" /></td>
363
                                                    <td id="innerY"><input type="text" id="innerlooptemp2" name="innerlooptemp2" value="[% innerloop2 | html %]" /></td>
360
                                                    <td id="innerZ"><input type="text" id="innerlooptemp3" name="innerlooptemp3" value="[% innerloop3 | html %]" /></td>
364
                                                    <td id="innerZ"><input type="text" id="innerlooptemp3" name="innerlooptemp3" value="[% innerloop3 | html %]" /></td>
Lines 363-386 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
363
                                        </table>
367
                                        </table>
364
                                    </li>
368
                                    </li>
365
                                    <li>
369
                                    <li>
370
                                        <span class="label">&nbsp;</span>
366
                                        <a href="#" class="toggle_advanced_pattern show_advanced_pattern"><i class="fa fa-plus-square"></i> Show advanced pattern</a>
371
                                        <a href="#" class="toggle_advanced_pattern show_advanced_pattern"><i class="fa fa-plus-square"></i> Show advanced pattern</a>
367
                                        <a href="#" style="display:none;" class="toggle_advanced_pattern hide_advanced_pattern"><i class="fa fa-minus-square"></i> Hide advanced pattern</a>
372
                                        <a href="#" style="display:none;" class="toggle_advanced_pattern hide_advanced_pattern"><i class="fa fa-minus-square"></i> Hide advanced pattern</a>
368
                                    </li>
373
                                    </li>
374
                                </ol>
375
369
                                    <div id="advancedpredictionpattern" style="display:none">
376
                                    <div id="advancedpredictionpattern" style="display:none">
377
                                        <ol>
370
                                      <li>
378
                                      <li>
371
                                        <label for="patternname" class="required">Pattern name:</label>
379
                                        <label for="patternname" class="required">Pattern name:</label>
372
                                        <input id="patternname" name="patternname" type="text" readonly="readonly" class="required" required="required" />
380
                                        <input id="patternname" name="patternname" type="text" readonly="readonly" class="required" required="required" />
381
                                        <span class="required">Required</span>
373
                                      </li>
382
                                      </li>
374
                                      <li>
383
                                      <li>
375
                                        <label for="numberingmethod">Numbering formula:</label>
384
                                        <label for="numberingmethod">Numbering formula:</label>
376
                                        <input readonly="readonly" type="text" name="numberingmethod" id="numberingmethod" size="50" value="[% numberingmethod | html %]" />
385
                                        <input readonly="readonly" type="text" name="numberingmethod" id="numberingmethod" size="50" value="[% numberingmethod | html %]" />
377
                                      </li>
386
                                      </li>
387
                                      <li>
388
                                        <span class="label">Advanced prediction pattern: </span>
378
                                        <table id="advancedpredictionpatternt">
389
                                        <table id="advancedpredictionpatternt">
379
                                            <thead>
390
                                            <thead>
380
                                                <tr>
391
                                                <tr>
381
                                                    <th colspan="4">Advanced prediction pattern</th>
382
                                                </tr>
383
                                                <tr>
384
                                                    <th>&nbsp;</th>
392
                                                    <th>&nbsp;</th>
385
                                                    <th>X</th>
393
                                                    <th>X</th>
386
                                                    <th>Y</th>
394
                                                    <th>Y</th>
Lines 389-431 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
389
                                            </thead>
397
                                            </thead>
390
                                            <tbody>
398
                                            <tbody>
391
                                                <tr>
399
                                                <tr>
392
                                                    <td>Label</td>
400
                                                    <th scope="row">Label: </th>
393
                                                    <td><input type="text" readonly="readonly" id="label1" name="label1" /></td>
401
                                                    <td><input type="text" readonly="readonly" id="label1" name="label1" /></td>
394
                                                    <td><input type="text" readonly="readonly" id="label2" name="label2" /></td>
402
                                                    <td><input type="text" readonly="readonly" id="label2" name="label2" /></td>
395
                                                    <td><input type="text" readonly="readonly" id="label3" name="label3" /></td>
403
                                                    <td><input type="text" readonly="readonly" id="label3" name="label3" /></td>
396
                                                </tr>
404
                                                </tr>
397
                                                <tr>
405
                                                <tr>
398
                                                    <td>Begins with</td>
406
                                                    <th scope="row">Begins with: </th>
399
                                                    <td><input type="text" readonly="readonly" id="lastvalue1" name="lastvalue1" /></td>
407
                                                    <td><input type="text" readonly="readonly" id="lastvalue1" name="lastvalue1" /></td>
400
                                                    <td><input type="text" readonly="readonly" id="lastvalue2" name="lastvalue2" /></td>
408
                                                    <td><input type="text" readonly="readonly" id="lastvalue2" name="lastvalue2" /></td>
401
                                                    <td><input type="text" readonly="readonly" id="lastvalue3" name="lastvalue3" /></td>
409
                                                    <td><input type="text" readonly="readonly" id="lastvalue3" name="lastvalue3" /></td>
402
                                                </tr>
410
                                                </tr>
403
                                                <tr>
411
                                                <tr>
404
                                                    <td>Add</td>
412
                                                    <th scope="row">Add: </th>
405
                                                    <td><input type="text" readonly="readonly" id="add1" name="add1" /></td>
413
                                                    <td><input type="text" readonly="readonly" id="add1" name="add1" /></td>
406
                                                    <td><input type="text" readonly="readonly" id="add2" name="add2" /></td>
414
                                                    <td><input type="text" readonly="readonly" id="add2" name="add2" /></td>
407
                                                    <td><input type="text" readonly="readonly" id="add3" name="add3" /></td>
415
                                                    <td><input type="text" readonly="readonly" id="add3" name="add3" /></td>
408
                                                </tr>
416
                                                </tr>
409
                                                <tr>
417
                                                <tr>
410
                                                    <td>Every</td>
418
                                                    <th scope="row">Every: </th>
411
                                                    <td><input type="text" readonly="readonly" id="every1" name="every1" /></td>
419
                                                    <td><input type="text" readonly="readonly" id="every1" name="every1" /></td>
412
                                                    <td><input type="text" readonly="readonly" id="every2" name="every2" /></td>
420
                                                    <td><input type="text" readonly="readonly" id="every2" name="every2" /></td>
413
                                                    <td><input type="text" readonly="readonly" id="every3" name="every3" /></td>
421
                                                    <td><input type="text" readonly="readonly" id="every3" name="every3" /></td>
414
                                                </tr>
422
                                                </tr>
415
                                                <tr>
423
                                                <tr>
416
                                                    <td>Set back to</td>
424
                                                    <th scope="row">Set back to: </th>
417
                                                    <td><input type="text" readonly="readonly" id="setto1" name="setto1" /></td>
425
                                                    <td><input type="text" readonly="readonly" id="setto1" name="setto1" /></td>
418
                                                    <td><input type="text" readonly="readonly" id="setto2" name="setto2" /></td>
426
                                                    <td><input type="text" readonly="readonly" id="setto2" name="setto2" /></td>
419
                                                    <td><input type="text" readonly="readonly" id="setto3" name="setto3" /></td>
427
                                                    <td><input type="text" readonly="readonly" id="setto3" name="setto3" /></td>
420
                                                </tr>
428
                                                </tr>
421
                                                <tr>
429
                                                <tr>
422
                                                    <td>When more than</td>
430
                                                    <th scope="row">When more than: </th>
423
                                                    <td><input type="text" readonly="readonly" id="whenmorethan1" name="whenmorethan1" /></td>
431
                                                    <td><input type="text" readonly="readonly" id="whenmorethan1" name="whenmorethan1" /></td>
424
                                                    <td><input type="text" readonly="readonly" id="whenmorethan2" name="whenmorethan2" /></td>
432
                                                    <td><input type="text" readonly="readonly" id="whenmorethan2" name="whenmorethan2" /></td>
425
                                                    <td><input type="text" readonly="readonly" id="whenmorethan3" name="whenmorethan3" /></td>
433
                                                    <td><input type="text" readonly="readonly" id="whenmorethan3" name="whenmorethan3" /></td>
426
                                                </tr>
434
                                                </tr>
427
                                                <tr>
435
                                                <tr>
428
                                                    <td>Inner counter</td>
436
                                                    <th scope="row">Inner counter: </th>
429
                                                    <td><input type="text" readonly="readonly" id="innerloop1" name="innerloop1" /></td>
437
                                                    <td><input type="text" readonly="readonly" id="innerloop1" name="innerloop1" /></td>
430
                                                    <td><input type="text" readonly="readonly" id="innerloop2" name="innerloop2" /></td>
438
                                                    <td><input type="text" readonly="readonly" id="innerloop2" name="innerloop2" /></td>
431
                                                    <td><input type="text" readonly="readonly" id="innerloop3" name="innerloop3" /></td>
439
                                                    <td><input type="text" readonly="readonly" id="innerloop3" name="innerloop3" /></td>
Lines 442-459 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
442
                                                            <option value="seasonabrv">Name of season (abbreviated)</option>
450
                                                            <option value="seasonabrv">Name of season (abbreviated)</option>
443
                                                        </select>
451
                                                        </select>
444
                                                    [% END %]
452
                                                    [% END %]
445
                                                    <td>Formatting</td>
453
                                                    <th scope="row">Formatting:</th>
446
                                                    <td>[% PROCESS numbering_select name="numbering1" %]</td>
454
                                                    <td>[% PROCESS numbering_select name="numbering1" %]</td>
447
                                                    <td>[% PROCESS numbering_select name="numbering2" %]</td>
455
                                                    <td>[% PROCESS numbering_select name="numbering2" %]</td>
448
                                                    <td>[% PROCESS numbering_select name="numbering3" %]</td>
456
                                                    <td>[% PROCESS numbering_select name="numbering3" %]</td>
449
                                                </tr>
457
                                                </tr>
450
                                            </tbody>
458
                                            </tbody>
451
                                        </table>
459
                                        </table>
452
                                        <input id="modifyadvancedpatternbutton" type="button" value="Modify pattern" />
460
                                    </li>
453
                                        <input id="restoreadvancedpatternbutton" type="button" value="Cancel modifications" style="display:none" />
461
                                    <li>
454
                                        <input id="saveadvancedpatternbutton" type="button" value="Save as new pattern" style="display:none" />
462
                                        <span class="label">&nbsp;</span>
455
                                    </div>
463
                                        <a href="#" id="modifyadvancedpatternbutton"><i class="fa fa-pencil"></i> Modify pattern</a>
456
                                </ol>
464
                                        <button type="button" class="btn btn-default btn-xs" id="saveadvancedpatternbutton" style="display:none"><i class="fa fa-save"></i> Save as new pattern</button>
465
                                        <a class="cancel" href="#" id="restoreadvancedpatternbutton" style="display:none">Cancel modifications</a>
466
                                    </li>
467
                                    </ol>
468
                                </div> <!-- /#advancedpredictionpattern -->
469
                                <fieldset class="action">
470
                                    <button type="button" id="testpatternbutton" class="btn btn-default btn-sm"><i class="fa fa-play"></i> Test prediction pattern</a>
471
                                </fieldset>
457
                            </fieldset>
472
                            </fieldset>
458
473
459
                            [% IF additional_fields %]
474
                            [% IF additional_fields %]
Lines 469-484 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
469
                            <input type="hidden" id="unitsperissue"  name="unitsperissue" value=""/>
484
                            <input type="hidden" id="unitsperissue"  name="unitsperissue" value=""/>
470
                            <input type="hidden" id="issuesperunit"  name="issuesperunit" value=""/>
485
                            <input type="hidden" id="issuesperunit"  name="issuesperunit" value=""/>
471
                            <fieldset class="action">
486
                            <fieldset class="action">
472
                                <input type="button" id="subscription_add_previous" value="&lt;&lt; Previous" style="float:left;"/>
487
                                <button type="button" id="subscription_add_previous" style="float:left"><i class="fa fa-long-arrow-left"></i> Previous</button>
473
                                <input id="testpatternbutton" type="button" value="Test prediction pattern" />
474
                                <input id="save-subscription" type="submit" value="Save subscription" style="float:right;" accesskey="w"/>
488
                                <input id="save-subscription" type="submit" value="Save subscription" style="float:right;" accesskey="w"/>
475
                            </fieldset>
489
                            </fieldset>
476
                        </div>
490
                        </div>
477
                    </div>
491
                    </div>
478
                    <div class="col-md-6">
492
                    <div class="col-md-6">
479
                        <li id="displayexample"></li>
493
                        <fieldset id="displayexample"></fieldset>
480
                    </div>
494
                    </div>
481
                </div>
495
                </div> <!-- /.row#page_2 -->
482
            </form>
496
            </form>
483
        </div>
497
        </div>
484
498
(-)a/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js (-3 / +17 lines)
Lines 210-216 function displaymoreoptions() { Link Here
210
}
210
}
211
211
212
function modifyAdvancedPattern() {
212
function modifyAdvancedPattern() {
213
    $("#patternname").prop('readOnly', false).val('');
213
    $("#patternname").prop('readOnly', false).val('').focus();
214
    $("#numberingmethod").prop('readOnly', false);
214
    $("#numberingmethod").prop('readOnly', false);
215
215
216
    $("#advancedpredictionpatternt input").each(function() {
216
    $("#advancedpredictionpatternt input").each(function() {
Lines 318-324 function testPredictionPattern() { Link Here
318
        url:"/cgi-bin/koha/serials/showpredictionpattern.pl",
318
        url:"/cgi-bin/koha/serials/showpredictionpattern.pl",
319
        data: ajaxData,
319
        data: ajaxData,
320
        success: function(data) {
320
        success: function(data) {
321
            $("#displayexample").html(data).show();
321
            showPredictionPatternTest( data );
322
            patternneedtobetested = 0;
322
            patternneedtobetested = 0;
323
        }
323
        }
324
    });
324
    });
Lines 519-524 function mana_comment_close(){ Link Here
519
    $("#new_mana_comment").hide();
519
    $("#new_mana_comment").hide();
520
}
520
}
521
521
522
function showPredictionPatternTest( data ){
523
    $("#displayexample").html(data).show();
524
    $("#page_2 > div").attr("class","col-xs-6");
525
}
526
527
function hidePredcitionPatternTest(){
528
    $("#displayexample").hide();
529
    $("#page_2 > div").attr("class","col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2");
530
}
531
522
$(document).ready(function() {
532
$(document).ready(function() {
523
    if ( mana_enabled == 1 ) {
533
    if ( mana_enabled == 1 ) {
524
        mana_search();
534
        mana_search();
Lines 679-682 $(document).ready(function() { Link Here
679
        var subscription_id = $(this).data("subscription_id");
689
        var subscription_id = $(this).data("subscription_id");
680
        mana_use( subscription_id );
690
        mana_use( subscription_id );
681
    });
691
    });
692
693
    $("#displayexample").on("click", "#hidepredictionpattern", function(e){
694
        e.preventDefault();
695
        hidePredcitionPatternTest();
696
    });
682
});
697
});
683
- 

Return to bug 22408