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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tt (-10 / +11 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Serials &rsaquo; Select vendor</title>
4
<title>[% t('Koha › Serials › Select vendor') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 8-40 Link Here
8
9
9
<div class="main container-fluid">
10
<div class="main container-fluid">
10
11
11
<h1>Vendor search results</h1>
12
<h1>[% t('Vendor search results') %]</h1>
12
[% UNLESS count %]
13
[% UNLESS count %]
13
    <h2>Your search returned no results.</h2>
14
    <h2>[% t('Your search returned no results.') %]</h2>
14
[% ELSIF ( supplier.length < 1 ) %]
15
[% ELSIF ( supplier.length < 1 ) %]
15
    <h2>Vendor search: [% count %] result(s) found</h2>
16
    <h2>[% t('Vendor search:') %] [% count %] [% t('result(s) found') %]</h2>
16
[% ELSE %]
17
[% ELSE %]
17
    <h2>Vendor search: [% count %] result(s) found for '[% supplier %]'</h2>
18
    <h2>[% t('Vendor search:') %] [% count %] [% t('result(s) found for \'') %][% supplier %]'</h2>
18
[% END %]
19
[% END %]
19
20
20
[% IF ( loop_suppliers ) %]
21
[% IF ( loop_suppliers ) %]
21
<table>
22
<table>
22
	<tr>
23
	<tr>
23
		<th>Vendor</th>
24
		<th>[% t('Vendor') %]</th>
24
		<th>Select</th>
25
		<th>[% t('Select') %]</th>
25
	</tr>
26
	</tr>
26
	[% FOREACH loop_supplier IN loop_suppliers %]
27
	[% FOREACH loop_supplier IN loop_suppliers %]
27
        <tr>
28
        <tr>
28
            <td>[% loop_supplier.name |html %]</td>
29
            <td>[% loop_supplier.name |html %]</td>
29
            <td><a class="btn btn-default btn-xs select_vendor" href="#" data-vendorid="[% loop_supplier.aqbooksellerid %]" data-vendorname="[% loop_supplier.name |html%]">Choose</a></td>
30
            <td><a class="btn btn-default btn-xs select_vendor" href="#" data-vendorid="[% loop_supplier.aqbooksellerid %]" data-vendorname="[% loop_supplier.name |html%]">[% t('Choose') %]</a></td>
30
		</tr>
31
		</tr>
31
	[% END %]
32
	[% END %]
32
</table>
33
</table>
33
[% END %]
34
[% END %]
34
35
35
    <p><a href="/cgi-bin/koha/serials/acqui-search.pl">Perform a new search</a></p>
36
    <p><a href="/cgi-bin/koha/serials/acqui-search.pl">[% t('Perform a new search') %]</a></p>
36
37
37
    <div id="closewindow"><a href="#" class="btn btn-default btn-default close">Cancel</a></div>
38
    <div id="closewindow"><a href="#" class="btn btn-default btn-default close">[% t('Cancel') %]</a></div>
38
39
39
[% MACRO jsinclude BLOCK %]
40
[% MACRO jsinclude BLOCK %]
40
  <script type="text/javascript">
41
  <script type="text/javascript">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search.tt (-4 / +5 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Serials &rsaquo; Search for vendor</title>
3
<title>[% t('Koha › Serials › Search for vendor') %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
5
6
Lines 7-16 Link Here
7
8
8
<div class="container-fluid">
9
<div class="container-fluid">
9
10
10
<h1>Serial subscription: search for vendor </h1>
11
<h1>[% t('Serial subscription: search for vendor') %] </h1>
11
    <form action="/cgi-bin/koha/serials/acqui-search-result.pl" method="post">
12
    <form action="/cgi-bin/koha/serials/acqui-search-result.pl" method="post">
12
        <label for="text">Vendor name: </label>
13
        <label for="text">[% t('Vendor name:') %] </label>
13
        <input id="text" type="text"  size="25" name="supplier" />
14
        <input id="text" type="text" size="25" name="supplier" />
14
        <input type="submit" class="button" value="OK" />
15
        <input type="submit" class="button" value="OK" />
15
    </form>
16
    </form>
16
17
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/add_fields.tt (-31 / +32 lines)
Lines 1-12 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Serials &rsaquo; Manage new fields for subscriptions
6
<title>[% t('Koha › Serials › Manage new fields for subscriptions') %]
6
  [% IF op == "list" %] &rsaquo; List of fields
7
  [% IF op == "list" %] [% t('› List of fields') %]
7
  [% ELSIF op == "add_form" %]
8
  [% ELSIF op == "add_form" %]
8
    [% IF field %] &rsaquo; Modify field
9
    [% IF field %] [% t('› Modify field') %]
9
    [% ELSE %] &rsaquo; Add field
10
    [% ELSE %] [% t('› Add field') %]
10
    [% END %]
11
    [% END %]
11
  [% END %]
12
  [% END %]
12
</title>
13
</title>
Lines 19-25 Link Here
19
  [% INCLUDE 'serials-search.inc' %]
20
  [% INCLUDE 'serials-search.inc' %]
20
21
21
  <div id="breadcrumbs">
22
  <div id="breadcrumbs">
22
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Manage new fields for subscriptions
23
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> [% t('› Manage new fields for subscriptions') %]
23
  </div>
24
  </div>
24
25
25
  <div id="doc3" class="yui-t2">
26
  <div id="doc3" class="yui-t2">
Lines 28-34 Link Here
28
  <div class="yui-b">
29
  <div class="yui-b">
29
  [% IF op == 'list' %]
30
  [% IF op == 'list' %]
30
    <div id="toolbar" class="btn-toolbar">
31
    <div id="toolbar" class="btn-toolbar">
31
      <a class="btn btn-default btn-sm" id="newfields" href="/cgi-bin/koha/serials/add_fields.pl?op=add_form"><i class="fa fa-plus"></i> New fields</a>
32
      <a class="btn btn-default btn-sm" id="newfields" href="/cgi-bin/koha/serials/add_fields.pl?op=add_form"><i class="fa fa-plus"></i> [% t('New fields') %]</a>
32
    </div>
33
    </div>
33
  [% END %]
34
  [% END %]
34
35
Lines 36-72 Link Here
36
    [% FOR message IN messages %]
37
    [% FOR message IN messages %]
37
      [% IF message.code == 'insert' %]
38
      [% IF message.code == 'insert' %]
38
        [% IF message.number > 0 %]
39
        [% IF message.number > 0 %]
39
          <div class="dialog message">Field created.</div>
40
          <div class="dialog message">[% t('Field created.') %]</div>
40
        [% ELSE %]
41
        [% ELSE %]
41
          <div class="dialog alert">The field could not be created. Perhaps the name already exists?</div>
42
          <div class="dialog alert">[% t('The field could not be created. Perhaps the name already exists?') %]</div>
42
        [% END %]
43
        [% END %]
43
      [% ELSIF message.code == 'update' %]
44
      [% ELSIF message.code == 'update' %]
44
        [% IF message.number > 0 %]
45
        [% IF message.number > 0 %]
45
          <div class="dialog message">Field updated.</div>
46
          <div class="dialog message">[% t('Field updated.') %]</div>
46
        [% ELSE %]
47
        [% ELSE %]
47
          <div class="dialog alert">The field could not be updated. Perhaps the name already exists?</div>
48
          <div class="dialog alert">[% t('The field could not be updated. Perhaps the name already exists?') %]</div>
48
        [% END %]
49
        [% END %]
49
      [% ELSIF message.code == 'delete' %]
50
      [% ELSIF message.code == 'delete' %]
50
        [% IF message.number > 0 %]
51
        [% IF message.number > 0 %]
51
          <div class="dialog message">Field deleted.</div>
52
          <div class="dialog message">[% t('Field deleted.') %]</div>
52
        [% ELSE %]
53
        [% ELSE %]
53
          <div class="dialog alert">The field could not be deleted. Check the log for errors.</div>
54
          <div class="dialog alert">[% t('The field could not be deleted. Check the log for errors.') %]</div>
54
        [% END %]
55
        [% END %]
55
      [% END %]
56
      [% END %]
56
    [% END %]
57
    [% END %]
57
  [% END %]
58
  [% END %]
58
59
59
  [% IF op == 'list' %]
60
  [% IF op == 'list' %]
60
    <h3>Additional fields for subscriptions</h3>
61
    <h3>[% t('Additional fields for subscriptions') %]</h3>
61
    [% IF fields %]
62
    [% IF fields %]
62
      <table id="fieldst">
63
      <table id="fieldst">
63
        <thead>
64
        <thead>
64
          <tr>
65
          <tr>
65
            <th>Name</th>
66
            <th>[% t('Name') %]</th>
66
            <th>Authorised value category</th>
67
            <th>[% t('Authorised value category') %]</th>
67
            <th>Marc field</th>
68
            <th>[% t('Marc field') %]</th>
68
            <th>Searchable</th>
69
            <th>[% t('Searchable') %]</th>
69
            <th>Actions</th>
70
            <th>[% t('Actions') %]</th>
70
          </tr>
71
          </tr>
71
        </thead>
72
        </thead>
72
        <tbody>
73
        <tbody>
Lines 76-121 Link Here
76
              <td>[% field.authorised_value_category %]</td>
77
              <td>[% field.authorised_value_category %]</td>
77
              <td>[% field.marcfield %]</td>
78
              <td>[% field.marcfield %]</td>
78
              <td>
79
              <td>
79
                [% IF field.searchable %]Yes[% ELSE %]No[% END %]
80
                [% IF field.searchable %][% t('Yes') %][% ELSE %][% t('No') %][% END %]
80
              </td>
81
              </td>
81
              <td class="actions">
82
              <td class="actions">
82
                <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/add_fields.pl?op=add_form&amp;field_id=[% field.id %]"><i class="fa fa-pencil"></i> Edit</a>
83
                <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/add_fields.pl?op=add_form&field_id=[% field.id %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
83
                <a class="confirmdelete btn btn-default btn-xs" href="/cgi-bin/koha/serials/add_fields.pl?op=delete&amp;field_id=[% field.id %]"><i class="fa fa-trash"></i> Delete</a>
84
                <a class="confirmdelete btn btn-default btn-xs" href="/cgi-bin/koha/serials/add_fields.pl?op=delete&field_id=[% field.id %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
84
              </td>
85
              </td>
85
            </tr>
86
            </tr>
86
          [% END %]
87
          [% END %]
87
        </tbody>
88
        </tbody>
88
      </table>
89
      </table>
89
    [% ELSE %]
90
    [% ELSE %]
90
      There is no field defined.
91
      [% t('There is no field defined.') %]
91
    [% END %]
92
    [% END %]
92
  [% ELSIF op == 'add_form' %]
93
  [% ELSIF op == 'add_form' %]
93
    [% IF field %]
94
    [% IF field %]
94
      <h3>Modify field</h3>
95
      <h3>[% t('Modify field') %]</h3>
95
    [% ELSE %]
96
    [% ELSE %]
96
      <h3>Add field</h3>
97
      <h3>[% t('Add field') %]</h3>
97
    [% END %]
98
    [% END %]
98
    <form action="/cgi-bin/koha/serials/add_fields.pl" name="add_form" id="add_field" method="post">
99
    <form action="/cgi-bin/koha/serials/add_fields.pl" name="add_form" id="add_field" method="post">
99
      <fieldset class="rows">
100
      <fieldset class="rows">
100
        <ol>
101
        <ol>
101
          <li>
102
          <li>
102
            <label for="name" class="required">Name: </label>
103
            <label for="name" class="required">[% t('Name:') %] </label>
103
            <input type="text" name="name" id="name" value="[% field.name | html %]" class="required" required="required" />
104
            <input type="text" name="name" id="name" value="[% field.name | html %]" class="required" required="required" />
104
            <span class="required">Required</span>
105
            <span class="required">[% t('Required') %]</span>
105
          </li>
106
          </li>
106
          <li>
107
          <li>
107
            <label for="av">Authorised value category: </label>
108
            <label for="av">[% t('Authorised value category:') %] </label>
108
            <select name="authorised_value_category">
109
            <select name="authorised_value_category">
109
              <option value="">None</option>
110
              <option value="">[% t('None') %]</option>
110
              [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => field.authorised_value_category ) %]
111
              [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => field.authorised_value_category ) %]
111
            </select>
112
            </select>
112
          </li>
113
          </li>
113
          <li>
114
          <li>
114
            <label for="marcfield">Marc field: </label>
115
            <label for="marcfield">[% t('Marc field:') %] </label>
115
            <input type="text" name="marcfield" id="marcfield" value="[% field.marcfield| html %]" />
116
            <input type="text" name="marcfield" id="marcfield" value="[% field.marcfield| html %]" />
116
          </li>
117
          </li>
117
          <li>
118
          <li>
118
            <label for="searchable">Searchable: </label>
119
            <label for="searchable">[% t('Searchable:') %] </label>
119
            [% IF field.searchable %]
120
            [% IF field.searchable %]
120
              <input type="checkbox" name="searchable" id="searchable" checked="checked" />
121
              <input type="checkbox" name="searchable" id="searchable" checked="checked" />
121
            [% ELSE %]
122
            [% ELSE %]
Lines 130-136 Link Here
130
        [% END %]
131
        [% END %]
131
        <input type="hidden" name="op" value="add" />
132
        <input type="hidden" name="op" value="add" />
132
        <input type="submit" value="Save" />
133
        <input type="submit" value="Save" />
133
        <a href="/cgi-bin/koha/serials/add_fields.pl" class="cancel">Cancel</a>
134
        <a href="/cgi-bin/koha/serials/add_fields.pl" class="cancel">[% t('Cancel') %]</a>
134
      </fieldset>
135
      </fieldset>
135
    </form>
136
    </form>
136
  [% END %]
137
  [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt (-29 / +30 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Branches %]
2
[% USE Branches %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Serials &rsaquo; Check expiration</title>
6
<title>[% t('Koha › Serials › Check expiration') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
9
Lines 10-16 Link Here
10
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'serials-search.inc' %]
12
[% INCLUDE 'serials-search.inc' %]
12
13
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Check expiration </div>
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> [% t('› Check expiration') %] </div>
14
15
15
<div id="doc3" class="yui-t2">
16
<div id="doc3" class="yui-t2">
16
   
17
   
Lines 18-47 Link Here
18
	<div id="yui-main">
19
	<div id="yui-main">
19
	<div class="yui-b">
20
	<div class="yui-b">
20
21
21
<h1>Check expiration</h1>
22
<h1>[% t('Check expiration') %]</h1>
22
23
23
    <form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="get" class="validated">
24
    <form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="get" class="validated">
24
<fieldset class="rows">
25
<fieldset class="rows">
25
    <legend>Filter results:</legend>
26
    <legend>[% t('Filter results:') %]</legend>
26
    
27
    
27
         <ol>
28
         <ol>
28
        <li><label for="title">Title:</label>
29
        <li><label for="title">[% t('Title:') %]</label>
29
        <input id="title" type="text" name="title" size="15" value="[% title | html %]" /></li>
30
        <input id="title" type="text" name="title" size="15" value="[% title | html %]" /></li>
30
31
31
        <li><label for="issn">ISSN:</label>
32
        <li><label for="issn">[% t('ISSN:') %]</label>
32
        <input id="issn" type="text" name="issn" size="15" value="[% issn | html %]" /></li>
33
        <input id="issn" type="text" name="issn" size="15" value="[% issn | html %]" /></li>
33
        [% IF can_change_library %]
34
        [% IF can_change_library %]
34
        <li><label for="branch">Library:</label>
35
        <li><label for="branch">[% t('Library:') %]</label>
35
        <select id="branch" name="branch">
36
        <select id="branch" name="branch">
36
            <option value="">All</option>
37
            <option value="">[% t('All') %]</option>
37
            [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
38
            [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
38
        </select>
39
        </select>
39
        </li>
40
        </li>
40
        [% END %]
41
        [% END %]
41
42
42
        <li><label for="date" class="required">Expiring before:</label>
43
        <li><label for="date" class="required">[% t('Expiring before:') %]</label>
43
            <input id="date" type="text" name="date" size="10" value="[% date | $KohaDates %]" class="required focus datepicker" required="required" />
44
            <input id="date" type="text" name="date" size="10" value="[% date | $KohaDates %]" class="required focus datepicker" required="required" />
44
        <span class="required">Required</span>
45
        <span class="required">[% t('Required') %]</span>
45
			<div class="hint">[% INCLUDE 'date-format.inc' %]</div></li>
46
			<div class="hint">[% INCLUDE 'date-format.inc' %]</div></li>
46
			</ol>
47
			</ol>
47
        
48
        
Lines 51-73 Link Here
51
52
52
[% IF ( subscriptions_loop ) %]
53
[% IF ( subscriptions_loop ) %]
53
<p>
54
<p>
54
    <b>[% numsubscription %]</b> subscription(s)
55
    <b>[% numsubscription %]</b> [% t('subscription(s)') %]
55
        [% IF ( title ) %]
56
        [% IF ( title ) %]
56
        with title matching <span class="title">[% title | html %]</class>
57
        [% t('with title matching') %] <span class="title">[% title | html %]</class>
57
        [% IF ( issn ) %]and [% END %]
58
        [% IF ( issn ) %][% t('and') %] [% END %]
58
    [% END %]
59
    [% END %]
59
    [% IF ( issn ) %]
60
    [% IF ( issn ) %]
60
        with ISSN matching <b>[% issn | html %]</b>
61
        [% t('with ISSN matching') %] <b>[% issn | html %]</b>
61
    [% END %]
62
    [% END %]
62
        will expire before <b>[% date | $KohaDates %]</b>
63
        [% t('will expire before') %] <b>[% date | $KohaDates %]</b>
63
</p>
64
</p>
64
65
65
<div class="checkexpiration-table_table_controls">
66
<div class="checkexpiration-table_table_controls">
66
    <a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> |
67
    <a href="#" class="SelectAll"><i class="fa fa-check"></i> [% t('Select all') %]</a> |
67
    <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a>
68
    <a href="#" class="ClearAll"><i class="fa fa-remove"></i> [% t('Clear all') %]</a>
68
    <span class="itemselection_actions">
69
    <span class="itemselection_actions">
69
      | Actions:
70
      [% t('| Actions:') %]
70
          <a class="itemselection_action_renew" title="Renew selected subscriptions"><i class="fa fa-refresh"></i> Renew selected subscriptions</a>
71
          <a class="itemselection_action_renew" title="[% t('Renew selected subscriptions') %]"><i class="fa fa-refresh"></i> [% t('Renew selected subscriptions') %]</a>
71
    </span>
72
    </span>
72
</div>
73
</div>
73
74
Lines 75-87 Link Here
75
<table>
76
<table>
76
        <tr>
77
        <tr>
77
            <th></th>
78
            <th></th>
78
            <th>ISSN</th>
79
            <th>[% t('ISSN') %]</th>
79
            <th>Title</th>
80
            <th>[% t('Title') %]</th>
80
            [% IF can_change_library %]<th>Library</th>[% END %]
81
            [% IF can_change_library %]<th>[% t('Library') %]</th>[% END %]
81
            <th>OPAC note</th>
82
            <th>[% t('OPAC note') %]</th>
82
            <th>Nonpublic note</th>
83
            <th>[% t('Nonpublic note') %]</th>
83
            <th>Expiration date</th>
84
            <th>[% t('Expiration date') %]</th>
84
            <th>Actions</th>
85
            <th>[% t('Actions') %]</th>
85
        </tr>
86
        </tr>
86
    [% FOREACH subscriptions_loo IN subscriptions_loop %]
87
    [% FOREACH subscriptions_loo IN subscriptions_loop %]
87
        <tr>
88
        <tr>
Lines 111-124 Link Here
111
                [% subscriptions_loo.expirationdate | $KohaDates %]
112
                [% subscriptions_loo.expirationdate | $KohaDates %]
112
            </td>
113
            </td>
113
            <td class="actions">
114
            <td class="actions">
114
                <a href="/cgi-bin/koha/serials/subscription-add.pl?op=modify&amp;subscriptionid=[% subscriptions_loo.subscriptionid %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
115
                <a href="/cgi-bin/koha/serials/subscription-add.pl?op=modify&subscriptionid=[% subscriptions_loo.subscriptionid %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
115
                <a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscriptions_loo.subscriptionid %]" data-subscriptionid="[% subscriptions_loo.subscriptionid %]" class="btn btn-default btn-xs renew_subscription"><i class="fa fa-refresh"></i> Renew</a>
116
                <a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscriptions_loo.subscriptionid %]" data-subscriptionid="[% subscriptions_loo.subscriptionid %]" class="btn btn-default btn-xs renew_subscription"><i class="fa fa-refresh"></i> [% t('Renew') %]</a>
116
            </td>
117
            </td>
117
        </tr>
118
        </tr>
118
    [% END %]
119
    [% END %]
119
    </table>
120
    </table>
120
[% ELSIF searched %]
121
[% ELSIF searched %]
121
    <p>No results for your query</p>
122
    <p>[% t('No results for your query') %]</p>
122
[% END %]
123
[% END %]
123
124
124
</div>
125
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt (-48 / +49 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
    <title>Koha &rsaquo; Serials &rsaquo; Claims</title>
7
    <title>[% t('Koha › Serials › Claims') %]</title>
7
    [% INCLUDE 'doc-head-close.inc' %]
8
    [% INCLUDE 'doc-head-close.inc' %]
8
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("css/datatables.css") %]
9
</head>
10
</head>
Lines 12-18 Link Here
12
    [% INCLUDE 'header.inc' %]
13
    [% INCLUDE 'header.inc' %]
13
    [% INCLUDE 'serials-search.inc' %]
14
    [% INCLUDE 'serials-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Claims</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> [% t('› Claims') %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
   
19
   
Lines 20-53 Link Here
20
	<div id="yui-main">
21
	<div id="yui-main">
21
	<div class="yui-b">
22
	<div class="yui-b">
22
23
23
    <h1>Claims</h1>
24
    <h1>[% t('Claims') %]</h1>
24
25
25
    [% IF error_claim %]
26
    [% IF error_claim %]
26
        [% IF error_claim == 'no_vendor_email' %]
27
        [% IF error_claim == 'no_vendor_email' %]
27
            <div class="dialog alert">This vendor has no email defined for late issues.</div>
28
            <div class="dialog alert">[% t('This vendor has no email defined for late issues.') %]</div>
28
        [% ELSIF error_claim == 'bad_or_missing_sender' %]
29
        [% ELSIF error_claim == 'bad_or_missing_sender' %]
29
            <div class="dialog alert">Bad or missing sender address; check your branch email address or preference KohaAdminEmailAddress.</div>
30
            <div class="dialog alert">[% t('Bad or missing sender address; check your branch email address or preference KohaAdminEmailAddress.') %]</div>
30
        [% ELSE %]
31
        [% ELSE %]
31
            <div class="dialog alert">[% error_claim %]</div>
32
            <div class="dialog alert">[% error_claim %]</div>
32
        [% END %]
33
        [% END %]
33
    [% END %]
34
    [% END %]
34
    [% IF info_claim %]
35
    [% IF info_claim %]
35
        <div class="dialog message">Email has been sent.</div>
36
        <div class="dialog message">[% t('Email has been sent.') %]</div>
36
    [% END %]
37
    [% END %]
37
38
38
[% IF letters %][% UNLESS ( missingissues ) %][% IF ( supplierid ) %] <div class="dialog alert">No missing issues found.</div>[% ELSE %]<div class="dialog message">Please choose a vendor.</div>[% END %][% END %][% END %]
39
[% IF letters %][% UNLESS ( missingissues ) %][% IF ( supplierid ) %] <div class="dialog alert">[% t('No missing issues found.') %]</div>[% ELSE %]<div class="dialog message">[% t('Please choose a vendor.') %]</div>[% END %][% END %][% END %]
39
	
40
	
40
	     [% IF ( SHOWCONFIRMATION ) %]
41
	     [% IF ( SHOWCONFIRMATION ) %]
41
     <div class="dialog alert">Your notification has been sent.</div>
42
     <div class="dialog alert">[% t('Your notification has been sent.') %]</div>
42
     [% END %]
43
     [% END %]
43
[% UNLESS letters %]<div class="dialog alert">No claims notice defined. <a href="/cgi-bin/koha/tools/letter.pl">Please define one</a>.</div>[% END %]
44
[% UNLESS letters %]<div class="dialog alert">[% t('No claims notice defined.') %] <a href="/cgi-bin/koha/tools/letter.pl">[% t('Please define one') %]</a>.</div>[% END %]
44
    <form id="claims" name="claims" action="claims.pl" method="post">
45
    <form id="claims" name="claims" action="claims.pl" method="post">
45
    <fieldset>
46
    <fieldset>
46
	    <label for="supplierid">Vendor: </label>
47
	    <label for="supplierid">[% t('Vendor:') %] </label>
47
	    <select id="supplierid" name="supplierid">
48
	    <select id="supplierid" name="supplierid">
48
	        [% FOREACH suploo IN suploop %]
49
	        [% FOREACH suploo IN suploop %]
49
	            [% IF ( suploo.selected ) %]
50
	            [% IF ( suploo.selected ) %]
50
	            <option value="[% suploo.id %]" selected="selected" >
51
	            <option value="[% suploo.id %]" selected="selected">
51
	            [% ELSE %]
52
	            [% ELSE %]
52
	            <option value="[% suploo.id %]">
53
	            <option value="[% suploo.id %]">
53
	            [% END %]
54
	            [% END %]
Lines 61-80 Link Here
61
</form>
62
</form>
62
63
63
   [% IF ( missingissues ) %]	
64
   [% IF ( missingissues ) %]	
64
    <h3>Missing issues</h3>
65
    <h3>[% t('Missing issues') %]</h3>
65
    <form action="claims.pl" id="filter_claims_form">
66
    <form action="claims.pl" id="filter_claims_form">
66
	<fieldset class="rows">
67
	<fieldset class="rows">
67
	<legend>Filters :</legend>
68
	<legend>[% t('Filters :') %]</legend>
68
	
69
	
69
	<ol>
70
	<ol>
70
	<li>
71
	<li>
71
        <label for="from">From:</label>
72
        <label for="from">[% t('From:') %]</label>
72
        <input type="text" name="begindate" id="from" value="[% begindate %]" size="10" maxlength="10" class="datepickerfrom" />
73
        <input type="text" name="begindate" id="from" value="[% begindate %]" size="10" maxlength="10" class="datepickerfrom" />
73
        <label for="to" style="float:none;">To:</label>
74
        <label for="to" style="float:none;">[% t('To:') %]</label>
74
        <input type="text" name="enddate" id="to" value="[% enddate %]" size="10" maxlength="10" class="datepickerto" />
75
        <input type="text" name="enddate" id="to" value="[% enddate %]" size="10" maxlength="10" class="datepickerto" />
75
        <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
76
        <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
76
        <input id="filterByDate" type="button" value="OK" />
77
        <input id="filterByDate" type="button" value="OK" />
77
        <a href="#" id="clearfilter"><i class="fa fa-remove"></i> Clear filter</a>
78
        <a href="#" id="clearfilter"><i class="fa fa-remove"></i> [% t('Clear filter') %]</a>
78
    </li>
79
    </li>
79
	</ol>
80
	</ol>
80
	</fieldset>
81
	</fieldset>
Lines 86-100 Link Here
86
                <thead>
87
                <thead>
87
                    <tr>
88
                    <tr>
88
                        <th><input type="checkbox" id="CheckAll"></th>
89
                        <th><input type="checkbox" id="CheckAll"></th>
89
                        <th>Vendor</th>
90
                        <th>[% t('Vendor') %]</th>
90
                        <th>Library</th>
91
                        <th>[% t('Library') %]</th>
91
                        <th class="anti-the">Title</th>
92
                        <th class="anti-the">[% t('Title') %]</th>
92
                        <th>ISSN</th>
93
                        <th>[% t('ISSN') %]</th>
93
                        <th>Issue number</th>
94
                        <th>[% t('Issue number') %]</th>
94
                        <th>Status</th>
95
                        <th>[% t('Status') %]</th>
95
                        <th class="title-string">Since</th>
96
                        <th class="title-string">[% t('Since') %]</th>
96
                        <th>Claims count</th>
97
                        <th>[% t('Claims count') %]</th>
97
                        <th class="title-string">Claim date</th>
98
                        <th class="title-string">[% t('Claim date') %]</th>
98
                        [% FOR field IN additional_fields_for_subscription %]
99
                        [% FOR field IN additional_fields_for_subscription %]
99
                          <th>[% field.name %]</th>
100
                          <th>[% field.name %]</th>
100
                        [% END %]
101
                        [% END %]
Lines 103-119 Link Here
103
                <tfoot>
104
                <tfoot>
104
                  <tr>
105
                  <tr>
105
                    <td></td>
106
                    <td></td>
106
                    <td><input type="text" class="filter" data-column_num="1" placeholder="Search vendor" /></td>
107
                    <td><input type="text" class="filter" data-column_num="1" placeholder="[% t('Search vendor') %]" /></td>
107
                    <td><input type="text" class="filter" data-column_num="2" placeholder="Search library" /></td>
108
                    <td><input type="text" class="filter" data-column_num="2" placeholder="[% t('Search library') %]" /></td>
108
                    <td><input type="text" class="filter" data-column_num="3" placeholder="Search title" /></td>
109
                    <td><input type="text" class="filter" data-column_num="3" placeholder="[% t('Search title') %]" /></td>
109
                    <td><input type="text" class="filter" data-column_num="4" placeholder="Search ISSN" /></td>
110
                    <td><input type="text" class="filter" data-column_num="4" placeholder="[% t('Search ISSN') %]" /></td>
110
                    <td><input type="text" class="filter" data-column_num="5" placeholder="Search issue number" /></td>
111
                    <td><input type="text" class="filter" data-column_num="5" placeholder="[% t('Search issue number') %]" /></td>
111
                    <td><input type="text" class="filter" data-column_num="6" placeholder="Search status" /></td>
112
                    <td><input type="text" class="filter" data-column_num="6" placeholder="[% t('Search status') %]" /></td>
112
                    <td><input type="text" class="filter" data-column_num="7" placeholder="Search since" /></td>
113
                    <td><input type="text" class="filter" data-column_num="7" placeholder="[% t('Search since') %]" /></td>
113
                    <td><input type="text" class="filter" data-column_num="8" placeholder="Search claim count" /></td>
114
                    <td><input type="text" class="filter" data-column_num="8" placeholder="[% t('Search claim count') %]" /></td>
114
                    <td><input type="text" class="filter" data-column_num="9" placeholder="Search claim date" /></td>
115
                    <td><input type="text" class="filter" data-column_num="9" placeholder="[% t('Search claim date') %]" /></td>
115
                    [% FOR field IN additional_fields_for_subscription %]
116
                    [% FOR field IN additional_fields_for_subscription %]
116
                      <td><input type="text" class="filter" data-column_num="[% loop.count + 9 %]" placeholder="Search [% field.name %]" /></td>
117
                      <td><input type="text" class="filter" data-column_num="[% loop.count + 9 %]" placeholder="[% t('Search') %] [% field.name %]" /></td>
117
                    [% END %]
118
                    [% END %]
118
                  </tr>
119
                  </tr>
119
                </tfoot>
120
                </tfoot>
Lines 134-153 Link Here
134
                        <td>[% missingissue.issn %]</td>
135
                        <td>[% missingissue.issn %]</td>
135
                        <td>[% missingissue.serialseq %]</td>
136
                        <td>[% missingissue.serialseq %]</td>
136
                        <td>
137
                        <td>
137
                            [% IF ( missingissue.status1 ) %]<span class="status-expected">Expected</span>[% END %]
138
                            [% IF ( missingissue.status1 ) %]<span class="status-expected">[% t('Expected') %]</span>[% END %]
138
                            [% IF ( missingissue.status3 ) %]<span class="status-late">Late</span>[% END %]
139
                            [% IF ( missingissue.status3 ) %]<span class="status-late">[% t('Late') %]</span>[% END %]
139
                            [% IF ( missingissue.status4 ) %]<span class="status-missing">Missing</span>[% END %]
140
                            [% IF ( missingissue.status4 ) %]<span class="status-missing">[% t('Missing') %]</span>[% END %]
140
                            [% IF ( missingissue.status41 ) %]<span class="status-missing_never_received">Missing (never received)</span>[% END %]
141
                            [% IF ( missingissue.status41 ) %]<span class="status-missing_never_received">[% t('Missing (never received)') %]</span>[% END %]
141
                            [% IF ( missingissue.status42 ) %]<span class="status-missing_sold_out">Missing (sold out)</span>[% END %]
142
                            [% IF ( missingissue.status42 ) %]<span class="status-missing_sold_out">[% t('Missing (sold out)') %]</span>[% END %]
142
                            [% IF ( missingissue.status43 ) %]<span class="status-missing_damaged">Missing (damaged)</span>[% END %]
143
                            [% IF ( missingissue.status43 ) %]<span class="status-missing_damaged">[% t('Missing (damaged)') %]</span>[% END %]
143
                            [% IF ( missingissue.status44 ) %]<span class="status-missing_lost">Missing (lost)</span>[% END %]
144
                            [% IF ( missingissue.status44 ) %]<span class="status-missing_lost">[% t('Missing (lost)') %]</span>[% END %]
144
                            [% IF ( missingissue.status7 ) %]<span class="status-claimed">Claimed</span>[% END %]
145
                            [% IF ( missingissue.status7 ) %]<span class="status-claimed">[% t('Claimed') %]</span>[% END %]
145
                        </td>
146
                        </td>
146
                        <td class="planneddate">
147
                        <td class="planneddate">
147
                            [% IF ( missingissue.planneddate ) %]
148
                            [% IF ( missingissue.planneddate ) %]
148
                                <span title="[% missingissue.planneddateISO %]">[% missingissue.planneddate %]</span>
149
                                <span title="[% missingissue.planneddateISO %]">[% missingissue.planneddate %]</span>
149
                            [% ELSE %]
150
                            [% ELSE %]
150
                                <span title="0000-00-00"></span>
151
                                <span title="[% t('0000-00-00') %]"></span>
151
                            [% END %]
152
                            [% END %]
152
                        </td>
153
                        </td>
153
                        <td>[% missingissue.claims_count %]</td>
154
                        <td>[% missingissue.claims_count %]</td>
Lines 155-161 Link Here
155
                            [% IF ( missingissue.claimdate ) %]
156
                            [% IF ( missingissue.claimdate ) %]
156
                                <span title="[% missingissue.claimdateISO %]">[% missingissue.claimdate %]</span>
157
                                <span title="[% missingissue.claimdateISO %]">[% missingissue.claimdate %]</span>
157
                            [% ELSE %]
158
                            [% ELSE %]
158
                                <span title="0000-00-00"></span>
159
                                <span title="[% t('0000-00-00') %]"></span>
159
                            [% END %]
160
                            [% END %]
160
                        </td>
161
                        </td>
161
                        [% FOR field IN additional_fields_for_subscription %]
162
                        [% FOR field IN additional_fields_for_subscription %]
Lines 171-188 Link Here
171
172
172
            [% IF csv_profiles %]
173
            [% IF csv_profiles %]
173
              <fieldset class="action">
174
              <fieldset class="action">
174
                <label for="csv_code">Select CSV profile:</label>
175
                <label for="csv_code">[% t('Select CSV profile:') %]</label>
175
                <select id="csv_profile_for_export">
176
                <select id="csv_profile_for_export">
176
                  [% FOR csv IN csv_profiles %]
177
                  [% FOR csv IN csv_profiles %]
177
                    <option value="[% csv.export_format_id %]">[% csv.profile %]</option>
178
                    <option value="[% csv.export_format_id %]">[% csv.profile %]</option>
178
                   [% END %]
179
                   [% END %]
179
                </select>
180
                </select>
180
                <span class="exportSelected"><a id="ExportSelected" href="/cgi-bin/koha/serials/claims.pl">Download selected claims</a></span>
181
                <span class="exportSelected"><a id="ExportSelected" href="/cgi-bin/koha/serials/claims.pl">[% t('Download selected claims') %]</a></span>
181
            [% END %]
182
            [% END %]
182
183
183
            [% IF letters %]
184
            [% IF letters %]
184
                <fieldset class="action">
185
                <fieldset class="action">
185
                    <label for="letter_code">Select notice:</label>
186
                    <label for="letter_code">[% t('Select notice:') %]</label>
186
                    <select name="letter_code" id="letter_code">
187
                    <select name="letter_code" id="letter_code">
187
                        [% FOREACH letter IN letters %]
188
                        [% FOREACH letter IN letters %]
188
                            <option value="[% letter.code %]">[% letter.name %]</option>
189
                            <option value="[% letter.code %]">[% letter.name %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/result.tt (-14 / +15 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Serials &rsaquo; Search results</title>
4
<title>[% t('Koha › Serials › Search results') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 9-23 Link Here
9
<div class="main container-fluid">
10
<div class="main container-fluid">
10
11
11
[% IF ( total ) %]
12
[% IF ( total ) %]
12
<h1>Search results from [% from %] to [% to %] of [% total %]</h1>
13
<h1>[% t('Search results from') %] [% from %] [% t('to') %] [% to %] [% t('of') %] [% total %]</h1>
13
<table>
14
<table>
14
    <tr>
15
    <tr>
15
       <th>Title</th>
16
       <th>[% t('Title') %]</th>
16
       <th>Author</th>
17
       <th>[% t('Author') %]</th>
17
       <th>Publisher</th>
18
       <th>[% t('Publisher') %]</th>
18
       <th>Publication year</th>
19
       <th>[% t('Publication year') %]</th>
19
       <th>ISSN</th>
20
       <th>[% t('ISSN') %]</th>
20
	   <th>&nbsp;</th>
21
	   <th> </th>
21
    </tr>
22
    </tr>
22
    [% FOREACH resultsloo IN resultsloop %]
23
    [% FOREACH resultsloo IN resultsloop %]
23
        <tr>
24
        <tr>
Lines 35-64 Link Here
35
            <td>
36
            <td>
36
                [% resultsloo.issn |html %]
37
                [% resultsloo.issn |html %]
37
            </td>
38
            </td>
38
            <td><a class="btn btn-default btn-xs select_title" data-biblionumber="[% resultsloo.biblionumber %]" href="#" title="Choose this record">Choose</a></td>
39
            <td><a class="btn btn-default btn-xs select_title" data-biblionumber="[% resultsloo.biblionumber %]" href="#" title="[% t('Choose this record') %]">[% t('Choose') %]</a></td>
39
        </tr>
40
        </tr>
40
    [% END %]
41
    [% END %]
41
    </table>
42
    </table>
42
[% ELSE %]
43
[% ELSE %]
43
44
44
    <div class="dialog message">
45
    <div class="dialog message">
45
        <p>No results found for <b>[% query %]</b></p>
46
        <p>[% t('No results found for') %] <b>[% query %]</b></p>
46
    </div>
47
    </div>
47
48
48
[% END %]
49
[% END %]
49
50
50
<div class="pages">
51
<div class="pages">
51
    [% IF ( displayprev ) %]
52
    [% IF ( displayprev ) %]
52
        <a class="nav" href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&amp;type=intranet&amp;startfrom=[% startfromprev |url %]&amp;q=[% query |url %]">&lt;&lt; Previous</a>
53
        <a class="nav" href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&type=intranet&startfrom=[% startfromprev |url %]&q=[% query |url %]">[% t('&lt;&lt; Previous') %]</a>
53
    [% END %]
54
    [% END %]
54
    [% IF ( displaynext ) %]
55
    [% IF ( displaynext ) %]
55
        <a class="nav" href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&amp;type=intranet&amp;startfrom=[% startfromnext |url %]&amp;q=[% query |url %]">Next  &gt;&gt;</a>
56
        <a class="nav" href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&type=intranet&startfrom=[% startfromnext |url %]&q=[% query |url %]">[% t('Next') %]  >></a>
56
    [% END %]
57
    [% END %]
57
</div>
58
</div>
58
59
59
<p><a href="subscription-bib-search.pl">Search for another record</a></p>
60
<p><a href="subscription-bib-search.pl">[% t('Search for another record') %]</a></p>
60
61
61
<div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
62
<div id="closewindow"><a class="btn btn-default btn-default close" href="#">[% t('Close') %]</a></div>
62
63
63
[% MACRO jsinclude BLOCK %]
64
[% MACRO jsinclude BLOCK %]
64
    <script type="text/javascript">
65
    <script type="text/javascript">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt (-6 / +7 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Serials  &rsaquo; Routing slip preview</title>
4
<title>[% t('Koha › Serials') %]  [% t('› Routing slip preview') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
<style media="print">
6
<style media="print">
6
     #ser_routing-preview-slip { min-width:0; width:auto; }
7
     #ser_routing-preview-slip { min-width:0; width:auto; }
Lines 15-30 Link Here
15
        <td colspan="2"><h3>[% libraryname %]</h3></td>
16
        <td colspan="2"><h3>[% libraryname %]</h3></td>
16
    </tr>
17
    </tr>
17
    <tr>
18
    <tr>
18
        <td colspan="2"><b>Title:</b> [% title |html %]<br />[% issue %]</td>
19
        <td colspan="2"><b>[% t('Title:') %]</b> [% title |html %]<br />[% issue %]</td>
19
    </tr>
20
    </tr>
20
    <tr>
21
    <tr>
21
        <td><b>Name</b></td>
22
        <td><b>[% t('Name') %]</b></td>
22
        <td><b>Date due</b></td>
23
        <td><b>[% t('Date due') %]</b></td>
23
    </tr>
24
    </tr>
24
    [% FOREACH memberloo IN memberloop %]
25
    [% FOREACH memberloo IN memberloop %]
25
    <tr>
26
    <tr>
26
        <td>[% memberloo.name %]</td>
27
        <td>[% memberloo.name %]</td>
27
        <td>&nbsp;</td>
28
        <td> </td>
28
    </tr>
29
    </tr>
29
    [% END %]
30
    [% END %]
30
</table>
31
</table>
Lines 34-40 Link Here
34
    <p id="routingnote">[% routingnotes %]</p>
35
    <p id="routingnote">[% routingnotes %]</p>
35
</div>
36
</div>
36
37
37
    <div id="closewindow" class="noprint"><a class="btn btn-default btn-default" id="print_slip" href="#"><i class="fa fa-print"></i> Print</a> <a class="btn btn-default btn-default close" href="#">Close</a></div>
38
    <div id="closewindow" class="noprint"><a class="btn btn-default btn-default" id="print_slip" href="#"><i class="fa fa-print"></i> [% t('Print') %]</a> <a class="btn btn-default btn-default close" href="#">[% t('Close') %]</a></div>
38
39
39
[% MACRO jsinclude BLOCK %]
40
[% MACRO jsinclude BLOCK %]
40
    <script type="text/javascript">
41
    <script type="text/javascript">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview.tt (-7 / +8 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Serials &rsaquo; Preview routing list</title>
4
<title>[% t('Koha › Serials › Preview routing list') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 8-14 Link Here
8
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'serials-search.inc' %]
10
[% INCLUDE 'serials-search.inc' %]
10
11
11
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptionid %]"><i>[% title |html %]</i></a> &rsaquo; Preview routing list</div>
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> › <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptionid %]"><i>[% title |html %]</i></a> [% t('› Preview routing list') %]</div>
12
13
13
<div id="doc3" class="yui-t2">
14
<div id="doc3" class="yui-t2">
14
   
15
   
Lines 16-36 Link Here
16
	<div id="yui-main">
17
	<div id="yui-main">
17
	<div class="yui-b">
18
	<div class="yui-b">
18
19
19
<h2>Preview routing list for <i>[% title |html %]</i></h2>
20
<h2>[% t('Preview routing list for') %] <i>[% title |html %]</i></h2>
20
21
21
<form method="post" action="routing-preview.pl">
22
<form method="post" action="routing-preview.pl">
22
<input type="hidden" id="subscriptionid" name="subscriptionid" value="[% subscriptionid %]" />
23
<input type="hidden" id="subscriptionid" name="subscriptionid" value="[% subscriptionid %]" />
23
    <input type="hidden" id="issue_escaped" name="issue_escaped" value="[% issue_escaped %]" />
24
    <input type="hidden" id="issue_escaped" name="issue_escaped" value="[% issue_escaped %]" />
24
<fieldset class="rows">
25
<fieldset class="rows">
25
	<ol>
26
	<ol>
26
		<li><span class="label">Issue:</span>[% issue %]</li>
27
		<li><span class="label">[% t('Issue:') %]</span>[% issue %]</li>
27
		<li><span class="label">List member:</span><table style="clear:none;margin:0;">
28
		<li><span class="label">[% t('List member:') %]</span><table style="clear:none;margin:0;">
28
        <tr><th>Name</th></tr>
29
        <tr><th>[% t('Name') %]</th></tr>
29
[% FOREACH memberloo IN memberloop %]
30
[% FOREACH memberloo IN memberloop %]
30
        <tr><td>[% memberloo.surname %], [% memberloo.firstname %]</td></tr>
31
        <tr><td>[% memberloo.surname %], [% memberloo.firstname %]</td></tr>
31
[% END %]
32
[% END %]
32
        </table></li>
33
        </table></li>
33
		<li><span class="label">Notes:</span>[% routingnotes %]</li>
34
		<li><span class="label">[% t('Notes:') %]</span>[% routingnotes %]</li>
34
	</ol>
35
	</ol>
35
</fieldset>
36
</fieldset>
36
37
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing.tt (-13 / +14 lines)
Lines 1-13 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Serials &rsaquo; [% title |html %] &rsaquo; [% IF ( op ) %]Create routing list[% ELSE %]Edit routing list[% END %]</title>
4
<title>[% t('Koha › Serials ›') %] [% title |html %] › [% IF ( op ) %][% t('Create routing list') %][% ELSE %][% t('Edit routing list') %][% END %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
<body id="ser_routing" class="ser">
7
<body id="ser_routing" class="ser">
7
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'serials-search.inc' %]
9
[% INCLUDE 'serials-search.inc' %]
9
10
10
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptionid %]"><i>[% title |html %]</i></a> &rsaquo; [% IF ( op ) %]Create routing list[% ELSE %]Edit routing list[% END %]</div>
11
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> › <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptionid %]"><i>[% title |html %]</i></a> › [% IF ( op ) %][% t('Create routing list') %][% ELSE %][% t('Edit routing list') %][% END %]</div>
11
12
12
<div id="doc3" class="yui-t2">
13
<div id="doc3" class="yui-t2">
13
   
14
   
Lines 17-25 Link Here
17
18
18
19
19
[% IF ( op ) %]
20
[% IF ( op ) %]
20
<h1>Create routing list for <i>[% title |html %]</i></h1>
21
<h1>[% t('Create routing list for') %] <i>[% title |html %]</i></h1>
21
[% ELSE %]
22
[% ELSE %]
22
<h1>Edit routing list for <i>[% title |html %]</i></h1>
23
<h1>[% t('Edit routing list for') %] <i>[% title |html %]</i></h1>
23
[% END %]
24
[% END %]
24
25
25
<form method="post" action="routing.pl">
26
<form method="post" action="routing.pl">
Lines 27-33 Link Here
27
<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
28
<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
28
<fieldset class="rows">
29
<fieldset class="rows">
29
	<ol>
30
	<ol>
30
		<li><label for="date_selected">Issue: </label>
31
		<li><label for="date_selected">[% t('Issue:') %] </label>
31
<select name="date_selected" id="date_selected">
32
<select name="date_selected" id="date_selected">
32
[% FOREACH date IN dates %]
33
[% FOREACH date IN dates %]
33
[% IF ( date.selected ) %]<option value="[% date.serialseq %] ([% date.publisheddate %])" selected="selected">[% date.serialseq %] ([% date.publisheddate %])</option>[% ELSE %]<option value="[% date.serialseq %] ([% date.publisheddate %])">[% date.serialseq %] ([% date.publisheddate %])</option>[% END %]
34
[% IF ( date.selected ) %]<option value="[% date.serialseq %] ([% date.publisheddate %])" selected="selected">[% date.serialseq %] ([% date.publisheddate %])</option>[% ELSE %]<option value="[% date.serialseq %] ([% date.publisheddate %])">[% date.serialseq %] ([% date.publisheddate %])</option>[% END %]
Lines 35-46 Link Here
35
</select> [% issue %]</li>
36
</select> [% issue %]</li>
36
37
37
<li>
38
<li>
38
    <span class="label">Recipients:</span>
39
    <span class="label">[% t('Recipients:') %]</span>
39
    [% IF memberloop %]
40
    [% IF memberloop %]
40
        <table style="clear:none;margin:0;">
41
        <table style="clear:none;margin:0;">
41
            <tr><th>Name</th>
42
            <tr><th>[% t('Name') %]</th>
42
                <th>Rank</th>
43
                <th>[% t('Rank') %]</th>
43
                <th>Delete</th>
44
                <th>[% t('Delete') %]</th>
44
            </tr>
45
            </tr>
45
            [% USE m_loop = iterator(memberloop) %]
46
            [% USE m_loop = iterator(memberloop) %]
46
            [% FOREACH member IN m_loop %]
47
            [% FOREACH member IN m_loop %]
Lines 57-77 Link Here
57
                    [% END %]
58
                    [% END %]
58
                    </select>
59
                    </select>
59
                </td>
60
                </td>
60
                <td><a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?routingid=[% member.routingid %]&amp;subscriptionid=[% subscriptionid %]&amp;op=delete"><i class="fa fa-trash"></i> Delete</a></td>
61
                <td><a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?routingid=[% member.routingid %]&subscriptionid=[% subscriptionid %]&op=delete"><i class="fa fa-trash"></i> [% t('Delete') %]</a></td>
61
            </tr>
62
            </tr>
62
            [% END %]
63
            [% END %]
63
        </table>
64
        </table>
64
    [% END %]
65
    [% END %]
65
66
66
    <p style="margin-left:10em;">
67
    <p style="margin-left:10em;">
67
        <a href="#" id="add_recipients"><i class="fa fa-plus"></i> Add recipients</a>
68
        <a href="#" id="add_recipients"><i class="fa fa-plus"></i> [% t('Add recipients') %]</a>
68
        [% IF memberloop %]
69
        [% IF memberloop %]
69
            <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscriptionid %]&amp;op=delete"><i class="fa fa-trash"></i> Delete all</a>
70
            <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscriptionid %]&op=delete"><i class="fa fa-trash"></i> [% t('Delete all') %]</a>
70
        [% END %]
71
        [% END %]
71
    </p>
72
    </p>
72
</li>
73
</li>
73
74
74
	<li><label for="notes">Notes:</label><textarea name="notes" id="notes" rows="3" cols="50">[% routingnotes %]</textarea></li>
75
	<li><label for="notes">[% t('Notes:') %]</label><textarea name="notes" id="notes" rows="3" cols="50">[% routingnotes %]</textarea></li>
75
	</ol>
76
	</ol>
76
77
77
</fieldset>
78
</fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (-60 / +61 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% USE KohaDates %]
5
[% USE KohaDates %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Serials &rsaquo; Serial collection information for [% bibliotitle %]</title>
8
<title>[% t('Koha › Serials › Serial collection information for') %] [% bibliotitle %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
[% Asset.css("css/datatables.css") %]
10
[% Asset.css("css/datatables.css") %]
10
</head>
11
</head>
Lines 13-19 Link Here
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'serials-search.inc' %]
15
[% INCLUDE 'serials-search.inc' %]
15
16
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Serial collection information for  <i>[% bibliotitle %]</i></div>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> [% t('› Serial collection information for') %]  <i>[% bibliotitle %]</i></div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
19
   
20
   
Lines 26-51 Link Here
26
[% UNLESS ( popup ) %]
27
[% UNLESS ( popup ) %]
27
	[% INCLUDE 'serials-toolbar.inc' %]
28
	[% INCLUDE 'serials-toolbar.inc' %]
28
29
29
	<h1>Serial collection information for  <i>[% bibliotitle %]</i>
30
	<h1>[% t('Serial collection information for') %]  <i>[% bibliotitle %]</i>
30
        [% IF location %] ([% AuthorisedValues.GetByCode( 'LOC', location ) %]) [% END %]
31
        [% IF location %] ([% AuthorisedValues.GetByCode( 'LOC', location ) %]) [% END %]
31
		[% IF ( callnumber ) %]callnumber: [% callnumber %][% END %]</h1>
32
		[% IF ( callnumber ) %][% t('callnumber:') %] [% callnumber %][% END %]</h1>
32
[% END %]
33
[% END %]
33
34
34
[% IF ( subscriptions ) %]
35
[% IF ( subscriptions ) %]
35
<table>
36
<table>
36
[% IF ( subscriptions.size == 1 ) %]
37
[% IF ( subscriptions.size == 1 ) %]
37
<caption> Subscription summary</caption>
38
<caption> [% t('Subscription summary') %]</caption>
38
[% ELSE %]
39
[% ELSE %]
39
<caption> Subscription summaries</caption>
40
<caption> [% t('Subscription summaries') %]</caption>
40
[% END %]
41
[% END %]
41
<tr>
42
<tr>
42
  <th>Subscription num.</th>
43
  <th>[% t('Subscription num.') %]</th>
43
  <th>Frequency</th>
44
  <th>[% t('Frequency') %]</th>
44
  <th>Numbering pattern</th>
45
  <th>[% t('Numbering pattern') %]</th>
45
  <th>Library</th>
46
  <th>[% t('Library') %]</th>
46
  <th>Call number</th>
47
  <th>[% t('Call number') %]</th>
47
  <th>Notes</th>
48
  <th>[% t('Notes') %]</th>
48
  <th>&nbsp;</th>
49
  <th> </th>
49
</tr>
50
</tr>
50
[% FOREACH subscription IN subscriptions %]
51
[% FOREACH subscription IN subscriptions %]
51
    <tr>
52
    <tr>
Lines 57-93 Link Here
57
        <td> [% subscription.notes %]
58
        <td> [% subscription.notes %]
58
            [% UNLESS subscription.closed %]
59
            [% UNLESS subscription.closed %]
59
                [% IF ( subscription.subscriptionexpired ) %]
60
                [% IF ( subscription.subscriptionexpired ) %]
60
                    <br /><span class="problem"> Subscription expired</span>
61
                    <br /><span class="problem"> [% t('Subscription expired') %]</span>
61
                [% END %]
62
                [% END %]
62
            [% ELSE %]
63
            [% ELSE %]
63
                <br /> Subscription closed
64
                <br /> [% t('Subscription closed') %]
64
            [% END %]
65
            [% END %]
65
        </td>
66
        </td>
66
        [% IF ( subscription.abouttoexpire ) || ( subscription.subscriptionexpired ) %]<td class="problem actions">[% ELSE %]<td class="actions">[% END %]
67
        [% IF ( subscription.abouttoexpire ) || ( subscription.subscriptionexpired ) %]<td class="problem actions">[% ELSE %]<td class="actions">[% END %]
67
        [% UNLESS subscription.closed %]
68
        [% UNLESS subscription.closed %]
68
            [% IF ( routing && CAN_user_serials_routing ) %]
69
            [% IF ( routing && CAN_user_serials_routing ) %]
69
                [% IF ( subscription.hasRouting ) %]
70
                [% IF ( subscription.hasRouting ) %]
70
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-pencil"></i> Edit routing list</a>
71
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-pencil"></i> [% t('Edit routing list') %]</a>
71
                [% ELSE %]
72
                [% ELSE %]
72
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&amp;op=new"><i class="fa fa-plus"></i> Create routing list</a>
73
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&op=new"><i class="fa fa-plus"></i> [% t('Create routing list') %]</a>
73
                [% END %]
74
                [% END %]
74
            [% END %]
75
            [% END %]
75
            [% IF ( subscription.abouttoexpire ) %]<a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscription.subscriptionid %]" onclick="popup([% subscription.subscriptionid %]); return false;"><i class="fa fa-refresh"></i> Renew</a>
76
            [% IF ( subscription.abouttoexpire ) %]<a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscription.subscriptionid %]" onclick="popup([% subscription.subscriptionid %]); return false;"><i class="fa fa-refresh"></i> [% t('Renew') %]</a>
76
            [% ELSE %]
77
            [% ELSE %]
77
                [% IF ( subscription.subscriptionexpired ) %]<a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscription.subscriptionid %]" onclick="popup([% subscription.subscriptionid %]); return false;"><i class="fa fa-refresh"></i> Renew</a>
78
                [% IF ( subscription.subscriptionexpired ) %]<a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscription.subscriptionid %]" onclick="popup([% subscription.subscriptionid %]); return false;"><i class="fa fa-refresh"></i> [% t('Renew') %]</a>
78
                [% ELSE %]
79
                [% ELSE %]
79
                    &nbsp;
80
                     
80
                [% END %]
81
                [% END %]
81
            [% END %]
82
            [% END %]
82
        [% ELSE %]
83
        [% ELSE %]
83
            &nbsp;
84
             
84
        [% END %]
85
        [% END %]
85
        </td>
86
        </td>
86
      </tr>
87
      </tr>
87
[% END %]
88
[% END %]
88
[% IF ( subscr ) %]
89
[% IF ( subscr ) %]
89
[% IF ( subscriptioncount > 1 ) %]
90
[% IF ( subscriptioncount > 1 ) %]
90
<tr ><td colspan="8">  <a href="serials-collection.pl?biblionumber=[% biblionumber %]">See any subscription attached to this biblio</a></td>
91
<tr><td colspan="8">  <a href="serials-collection.pl?biblionumber=[% biblionumber %]">[% t('See any subscription attached to this biblio') %]</a></td>
91
</tr>
92
</tr>
92
[% END %]
93
[% END %]
93
[% END %]
94
[% END %]
Lines 101-107 Link Here
101
	[% FOREACH year IN years %]
102
	[% FOREACH year IN years %]
102
        [% IF ( year.year ) %]
103
        [% IF ( year.year ) %]
103
            [% IF year.year == 'manage' %]
104
            [% IF year.year == 'manage' %]
104
                <li><a href="#subscription-year-manage">Manage</a></li>
105
                <li><a href="#subscription-year-manage">[% t('Manage') %]</a></li>
105
            [% ELSE %]
106
            [% ELSE %]
106
                <li><a href="#subscription-year-[% year.year %]">[% year.year %]</a></li>
107
                <li><a href="#subscription-year-[% year.year %]">[% year.year %]</a></li>
107
            [% END %]
108
            [% END %]
Lines 116-155 Link Here
116
            <div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-default btn-sm" /></div>
117
            <div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-default btn-sm" /></div>
117
            [% UNLESS subscription.closed %]
118
            [% UNLESS subscription.closed %]
118
                <div class="btn-group"><input type="button" value="Generate next" onclick="javascription:generateNext([% subscriptionidlist %])" class="btn btn-default btn-sm" /></div>
119
                <div class="btn-group"><input type="button" value="Generate next" onclick="javascription:generateNext([% subscriptionidlist %])" class="btn btn-default btn-sm" /></div>
119
                [% IF ( subscriptions.size == 1 and !serialsadditems ) %]&nbsp;
120
                [% IF ( subscriptions.size == 1 and !serialsadditems ) %] 
120
                    <div class="btn-group"><input type="button" value="Multi receiving" href="#multi_receiving" class="btn btn-default btn-sm" data-toggle="modal"></div>
121
                    <div class="btn-group"><input type="button" value="Multi receiving" href="#multi_receiving" class="btn btn-default btn-sm" data-toggle="modal"></div>
121
                [% END %]
122
                [% END %]
122
            [% END %]
123
            [% END %]
123
        </p>
124
        </p>
124
    [% END %]
125
    [% END %]
125
      <span class="checkall">
126
      <span class="checkall">
126
        <a class="CheckAll" href="#" onclick="CheckAll('subscription-year-[% year.year %]'); return false;">Select all</a>
127
        <a class="CheckAll" href="#" onclick="CheckAll('subscription-year-[% year.year %]'); return false;">[% t('Select all') %]</a>
127
      </span> |
128
      </span> |
128
      <span class="clearall">
129
      <span class="clearall">
129
        <a class="CheckNone" href="#" onclick="CheckNone('subscription-year-[% year.year %]'); return false;">Clear all</a>
130
        <a class="CheckNone" href="#" onclick="CheckNone('subscription-year-[% year.year %]'); return false;">[% t('Clear all') %]</a>
130
      </span>
131
      </span>
131
        <table class="subscription-year-table">
132
        <table class="subscription-year-table">
132
          <thead>
133
          <thead>
133
            <tr>
134
            <tr>
134
                [% IF ( CAN_user_serials_receive_serials ) %]<th>Edit</th>[% END %]
135
                [% IF ( CAN_user_serials_receive_serials ) %]<th>[% t('Edit') %]</th>[% END %]
135
[% IF ( subscriptions.size > 1 ) %]
136
[% IF ( subscriptions.size > 1 ) %]
136
                <th># Subs</th>
137
                <th>[% t('# Subs') %]</th>
137
[% END %]
138
[% END %]
138
                <th class="title-string">Date published
139
                <th class="title-string">[% t('Date published') %]
139
                </th>
140
                </th>
140
                <th class="title-string">Date published (text)
141
                <th class="title-string">[% t('Date published (text)') %]
141
                </th>
142
                </th>
142
                <th class="title-string">Date received
143
                <th class="title-string">[% t('Date received') %]
143
                </th>
144
                </th>
144
                <th>Number
145
                <th>[% t('Number') %]
145
                </th>
146
                </th>
146
                <th>Status
147
                <th>[% t('Status') %]
147
                </th>
148
                </th>
148
                <th>Notes
149
                <th>[% t('Notes') %]
149
                </th>
150
                </th>
150
                <th>Library
151
                <th>[% t('Library') %]
151
                </th>
152
                </th>
152
                [% IF ( routing ) %]<th>Routing</th>[% END %]
153
                [% IF ( routing ) %]<th>[% t('Routing') %]</th>[% END %]
153
            </tr>
154
            </tr>
154
          </thead>
155
          </thead>
155
          <tbody>
156
          <tbody>
Lines 158-164 Link Here
158
            [% IF ( CAN_user_serials_receive_serials ) %]
159
            [% IF ( CAN_user_serials_receive_serials ) %]
159
                <td>
160
                <td>
160
                  [% UNLESS CAN_user_serials_receive_serials %]
161
                  [% UNLESS CAN_user_serials_receive_serials %]
161
                    disabled
162
                    [% t('disabled') %]
162
                  [% ELSE %]
163
                  [% ELSE %]
163
                    [% IF ( serial.subscriptionexpired ) %]
164
                    [% IF ( serial.subscriptionexpired ) %]
164
                    <input type="checkbox" name="serialid" value="[% serial.serialid %]" disabled="disabled" />
165
                    <input type="checkbox" name="serialid" value="[% serial.serialid %]" disabled="disabled" />
Lines 180-186 Link Here
180
                      [% IF serial.publisheddate %]
181
                      [% IF serial.publisheddate %]
181
                        [% serial.publisheddate | $KohaDates %]
182
                        [% serial.publisheddate | $KohaDates %]
182
                      [% ELSE %]
183
                      [% ELSE %]
183
                        Unknown
184
                        [% t('Unknown') %]
184
                      [% END %]
185
                      [% END %]
185
                    </span>
186
                    </span>
186
                </td>
187
                </td>
Lines 196-239 Link Here
196
                      [% IF serial.planneddate %]
197
                      [% IF serial.planneddate %]
197
                        [% serial.planneddate | $KohaDates %]
198
                        [% serial.planneddate | $KohaDates %]
198
                      [% ELSE %]
199
                      [% ELSE %]
199
                        Unknown
200
                        [% t('Unknown') %]
200
                      [% END %]
201
                      [% END %]
201
                    </span>
202
                    </span>
202
                </td>
203
                </td>
203
                <td>
204
                <td>
204
                    [% IF ( matches = serial.serialseq.match('(.*)Spring(.*)') ) %]
205
                    [% IF ( matches = serial.serialseq.match('(.*)Spring(.*)') ) %]
205
                        [% matches.0 %]Spring[% matches.1 %]
206
                        [% matches.0 %][% t('Spring') %][% matches.1 %]
206
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Summer(.*)') ) %]
207
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Summer(.*)') ) %]
207
                        [% matches.0 %]Summer[% matches.1 %]
208
                        [% matches.0 %][% t('Summer') %][% matches.1 %]
208
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Fall(.*)') ) %]
209
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Fall(.*)') ) %]
209
                        [% matches.0 %]Fall[% matches.1 %]
210
                        [% matches.0 %][% t('Fall') %][% matches.1 %]
210
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %]
211
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %]
211
                        [% matches.0 %]Winter[% matches.1 %]
212
                        [% matches.0 %][% t('Winter') %][% matches.1 %]
212
                    [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
213
                    [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
213
                        [% matches.0 %]Spr[% matches.1 %]
214
                        [% matches.0 %][% t('Spr') %][% matches.1 %]
214
                    [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
215
                    [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
215
                        [% matches.0 %]Sum[% matches.1 %]
216
                        [% matches.0 %][% t('Sum') %][% matches.1 %]
216
                    [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
217
                    [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
217
                        [% matches.0 %]Fal[% matches.1 %]
218
                        [% matches.0 %][% t('Fal') %][% matches.1 %]
218
                    [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
219
                    [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
219
                        [% matches.0 %]Win[% matches.1 %]
220
                        [% matches.0 %][% t('Win') %][% matches.1 %]
220
                    [% ELSE %]
221
                    [% ELSE %]
221
                        [% serial.serialseq %]
222
                        [% serial.serialseq %]
222
                    [% END %]
223
                    [% END %]
223
                </td>
224
                </td>
224
                <td>
225
                <td>
225
                    [% IF ( serial.status1 ) %]Expected[% END %]
226
                    [% IF ( serial.status1 ) %][% t('Expected') %][% END %]
226
                    [% IF ( serial.status2 ) %]Arrived[% END %]
227
                    [% IF ( serial.status2 ) %][% t('Arrived') %][% END %]
227
                    [% IF ( serial.status3 ) %]Late[% END %]
228
                    [% IF ( serial.status3 ) %][% t('Late') %][% END %]
228
                    [% IF ( serial.status4 ) %]Missing[% END %]
229
                    [% IF ( serial.status4 ) %][% t('Missing') %][% END %]
229
                    [% IF ( serial.status41 ) %]Missing (never received)[% END %]
230
                    [% IF ( serial.status41 ) %][% t('Missing (never received)') %][% END %]
230
                    [% IF ( serial.status42 ) %]Missing (sold out)[% END %]
231
                    [% IF ( serial.status42 ) %][% t('Missing (sold out)') %][% END %]
231
                    [% IF ( serial.status43 ) %]Missing (damaged)[% END %]
232
                    [% IF ( serial.status43 ) %][% t('Missing (damaged)') %][% END %]
232
                    [% IF ( serial.status44 ) %]Missing (lost)[% END %]
233
                    [% IF ( serial.status44 ) %][% t('Missing (lost)') %][% END %]
233
                    [% IF ( serial.status5 ) %]Not issued[% END %]
234
                    [% IF ( serial.status5 ) %][% t('Not issued') %][% END %]
234
                    [% IF ( serial.status6 ) %]Delete[% END %]
235
                    [% IF ( serial.status6 ) %][% t('Delete') %][% END %]
235
                    [% IF ( serial.status7 ) %]Claimed[% END %]
236
                    [% IF ( serial.status7 ) %][% t('Claimed') %][% END %]
236
                    [% IF ( serial.status8 ) %]Stopped[% END %]
237
                    [% IF ( serial.status8 ) %][% t('Stopped') %][% END %]
237
                </td>
238
                </td>
238
                <td>
239
                <td>
239
                    [% serial.notes %]
240
                    [% serial.notes %]
Lines 244-250 Link Here
244
                [% IF ( routing ) %]
245
                [% IF ( routing ) %]
245
                <td class="actions">
246
                <td class="actions">
246
                    [% serialseq = BLOCK %][% serial.serialseq.replace("'", "\\'") |html %][% END %]
247
                    [% serialseq = BLOCK %][% serial.serialseq.replace("'", "\\'") |html %][% END %]
247
                    <a href="" onclick="print_slip([% serial.subscriptionid |html %], '[% serialseq %] ([% serial.publisheddate | $KohaDates %])'); return false" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print list</a>
248
                    <a href="" onclick="print_slip([% serial.subscriptionid |html %], '[% serialseq %] ([% serial.publisheddate | $KohaDates %])'); return false" class="btn btn-default btn-xs"><i class="fa fa-print"></i> [% t('Print list') %]</a>
248
                </td>
249
                </td>
249
                [% END %]
250
                [% END %]
250
            </tr>
251
            </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt (-84 / +85 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Serials &rsaquo; Serial edition [% bibliotitle %]</title>
5
<title>[% t('Koha › Serials › Serial edition') %] [% bibliotitle %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% Asset.js("js/cataloging.js") %]
7
[% Asset.js("js/cataloging.js") %]
7
[% Asset.js("js/prevent_submit.js") %]
8
[% Asset.js("js/prevent_submit.js") %]
Lines 83-89 $(document).ready(function() { Link Here
83
[% INCLUDE 'header.inc' %]
84
[% INCLUDE 'header.inc' %]
84
[% INCLUDE 'serials-search.inc' %]
85
[% INCLUDE 'serials-search.inc' %]
85
86
86
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Serial edition <i>[% bibliotitle %] [% IF ( callnumber ) %]([% callnumber %])[% END %]</i></div>
87
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> [% t('› Serial edition') %] <i>[% bibliotitle %] [% IF ( callnumber ) %]([% callnumber %])[% END %]</i></div>
87
88
88
<div id="doc3" class="yui-t2">
89
<div id="doc3" class="yui-t2">
89
   
90
   
Lines 93-108 $(document).ready(function() { Link Here
93
94
94
    [% INCLUDE 'modals/serials_multi_receiving.inc' %]
95
    [% INCLUDE 'modals/serials_multi_receiving.inc' %]
95
96
96
<h1>Serial edition <i>[% bibliotitle %]</i>
97
<h1>[% t('Serial edition') %] <i>[% bibliotitle %]</i>
97
    [% IF location %] ([% AuthorisedValues.GetByCode('LOC', location) %])[% END %]
98
    [% IF location %] ([% AuthorisedValues.GetByCode('LOC', location) %])[% END %]
98
    [% IF ( callnumber ) %] callnumber: [% callnumber %][% END %]</h1>
99
    [% IF ( callnumber ) %] [% t('callnumber:') %] [% callnumber %][% END %]</h1>
99
[% IF internalnotes %]<p>Nonpublic note: [% internalnotes %]</p>[% END %]
100
[% IF internalnotes %]<p>[% t('Nonpublic note:') %] [% internalnotes %]</p>[% END %]
100
<form method="post" name="f" action="serials-edit.pl" id="serials_edit">
101
<form method="post" name="f" action="serials-edit.pl" id="serials_edit">
101
102
102
[% IF ( Errors ) %]
103
[% IF ( Errors ) %]
103
<div class="dialog alert">
104
<div class="dialog alert">
104
<ul>
105
<ul>
105
[% IF ( barcode_not_unique ) %]<li>Error: Barcode not unique for [% FOREACH errse IN errseq %]serialseq [% errse.serialseq %]<br/>[% END %]</li>[% END %]
106
[% IF ( barcode_not_unique ) %]<li>[% t('Error: Barcode not unique for') %] [% FOREACH errse IN errseq %][% t('serialseq') %] [% errse.serialseq %]<br />[% END %]</li>[% END %]
106
</ul>
107
</ul>
107
</div>
108
</div>
108
[% END %]
109
[% END %]
Lines 113-124 $(document).ready(function() { Link Here
113
    [% END %]
114
    [% END %]
114
	<table>
115
	<table>
115
	<tr>
116
	<tr>
116
		<th>Numbered</th>
117
		<th>[% t('Numbered') %]</th>
117
		<th>Published on</th>
118
		<th>[% t('Published on') %]</th>
118
        <th>Published on (text)</th>
119
        <th>[% t('Published on (text)') %]</th>
119
		<th>Expected on</th>
120
		<th>[% t('Expected on') %]</th>
120
		<th>Status</th>
121
		<th>[% t('Status') %]</th>
121
		<th>Notes</th>
122
		<th>[% t('Notes') %]</th>
122
	</tr>
123
	</tr>
123
[% FOREACH serialslis IN serialslist %]
124
[% FOREACH serialslis IN serialslist %]
124
    <tr>
125
    <tr>
Lines 127-133 $(document).ready(function() { Link Here
127
            <input type="hidden" name="biblionumber" value="[% serialslis.biblionumber %]" />
128
            <input type="hidden" name="biblionumber" value="[% serialslis.biblionumber %]" />
128
            <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce %]" />
129
            <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce %]" />
129
            <input type="hidden" name="user" value="[% serialslis.librarian %]" />
130
            <input type="hidden" name="user" value="[% serialslis.librarian %]" />
130
            Issue <input type="text" name="serialseq" id="serialseq[% serialslis.serialid %]" value="[% serialslis.serialseq %]" size="20" maxlength="100" />
131
            [% t('Issue') %] <input type="text" name="serialseq" id="serialseq[% serialslis.serialid %]" value="[% serialslis.serialseq %]" size="20" maxlength="100" />
131
        </td>
132
        </td>
132
        <td>
133
        <td>
133
            <input type="text" name="publisheddate" value="[% serialslis.publisheddate %]" size="10" maxlength="15" class="datepicker" />
134
            <input type="text" name="publisheddate" value="[% serialslis.publisheddate %]" size="10" maxlength="15" class="datepicker" />
Lines 141-211 $(document).ready(function() { Link Here
141
        <td>
142
        <td>
142
            [% IF ( serialslis.editdisable ) %]
143
            [% IF ( serialslis.editdisable ) %]
143
              <input type="hidden" name="status" id="status[% serialslis.serialid %]" value="[% serialslis.serstatus %]">
144
              <input type="hidden" name="status" id="status[% serialslis.serialid %]" value="[% serialslis.serstatus %]">
144
              <select name="status" size="1"  disabled="disabled">
145
              <select name="status" size="1" disabled="disabled">
145
            [% ELSE %]
146
            [% ELSE %]
146
              [% IF ( serialslis.serialsadditems ) %]
147
              [% IF ( serialslis.serialsadditems ) %]
147
              <select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2){unHideItems('items'+[% serialslis.subscriptionid %][% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]','[% serialslis.serialid %]'); changeDate(this, '[% serialslis.arriveddate %]')} else if (this.value==7){changeDate(this, '[% serialslis.arriveddate %]')} else { HideItems('items'+[% serialslis.subscriptionid %]+[% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]'); changeDate(this, '[% serialslis.planneddate %]')}" >
148
              <select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2){unHideItems('items'+[% serialslis.subscriptionid %][% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]','[% serialslis.serialid %]'); changeDate(this, '[% serialslis.arriveddate %]')} else if (this.value==7){changeDate(this, '[% serialslis.arriveddate %]')} else { HideItems('items'+[% serialslis.subscriptionid %]+[% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]'); changeDate(this, '[% serialslis.planneddate %]')}">
148
               [% ELSE %]
149
               [% ELSE %]
149
              <select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2 || this.value==7){changeDate(this, '[% serialslis.arriveddate %]')} else {changeDate(this, '[% serialslis.planneddate %]')}" >
150
              <select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2 || this.value==7){changeDate(this, '[% serialslis.arriveddate %]')} else {changeDate(this, '[% serialslis.planneddate %]')}">
150
               [% END %] 
151
               [% END %] 
151
            [% END %]
152
            [% END %]
152
            [% IF ( serialslis.status1 ) %]
153
            [% IF ( serialslis.status1 ) %]
153
              <option value="1" selected="selected">Expected</option>
154
              <option value="1" selected="selected">[% t('Expected') %]</option>
154
            [% ELSE %]
155
            [% ELSE %]
155
              <option value="1">Expected</option>
156
              <option value="1">[% t('Expected') %]</option>
156
            [% END %]
157
            [% END %]
157
            [% IF ( serialslis.status2 ) %]
158
            [% IF ( serialslis.status2 ) %]
158
              <option value="2" selected="selected">Arrived</option>
159
              <option value="2" selected="selected">[% t('Arrived') %]</option>
159
            [% ELSE %]
160
            [% ELSE %]
160
              <option value="2">Arrived</option>
161
              <option value="2">[% t('Arrived') %]</option>
161
            [% END %]
162
            [% END %]
162
            [% IF ( serialslis.status3 ) %]
163
            [% IF ( serialslis.status3 ) %]
163
              <option value="3" selected="selected">Late</option>
164
              <option value="3" selected="selected">[% t('Late') %]</option>
164
            [% ELSE %]
165
            [% ELSE %]
165
              <option value="3">Late</option>
166
              <option value="3">[% t('Late') %]</option>
166
            [% END %]
167
            [% END %]
167
            [% IF ( serialslis.status4 ) %]
168
            [% IF ( serialslis.status4 ) %]
168
              <option value="4" selected="selected">Missing</option>
169
              <option value="4" selected="selected">[% t('Missing') %]</option>
169
            [% ELSE %]
170
            [% ELSE %]
170
              <option value="4">Missing</option>
171
              <option value="4">[% t('Missing') %]</option>
171
            [% END %]
172
            [% END %]
172
            [% IF ( serialslis.status41 ) %]
173
            [% IF ( serialslis.status41 ) %]
173
              <option value="41" selected="selected">Missing (never received)</option>
174
              <option value="41" selected="selected">[% t('Missing (never received)') %]</option>
174
            [% ELSE %]
175
            [% ELSE %]
175
              <option value="41">Missing (never received)</option>
176
              <option value="41">[% t('Missing (never received)') %]</option>
176
            [% END %]
177
            [% END %]
177
            [% IF ( serialslis.status42 ) %]
178
            [% IF ( serialslis.status42 ) %]
178
              <option value="42" selected="selected">Missing (sold out)</option>
179
              <option value="42" selected="selected">[% t('Missing (sold out)') %]</option>
179
            [% ELSE %]
180
            [% ELSE %]
180
              <option value="42">Missing (sold out)</option>
181
              <option value="42">[% t('Missing (sold out)') %]</option>
181
            [% END %]
182
            [% END %]
182
            [% IF ( serialslis.status43 ) %]
183
            [% IF ( serialslis.status43 ) %]
183
              <option value="43" selected="selected">Missing (damaged)</option>
184
              <option value="43" selected="selected">[% t('Missing (damaged)') %]</option>
184
            [% ELSE %]
185
            [% ELSE %]
185
              <option value="43">Missing (damaged)</option>
186
              <option value="43">[% t('Missing (damaged)') %]</option>
186
            [% END %]
187
            [% END %]
187
            [% IF ( serialslis.status44 ) %]
188
            [% IF ( serialslis.status44 ) %]
188
              <option value="44" selected="selected">Missing (lost)</option>
189
              <option value="44" selected="selected">[% t('Missing (lost)') %]</option>
189
            [% ELSE %]
190
            [% ELSE %]
190
              <option value="44">Missing (lost)</option>
191
              <option value="44">[% t('Missing (lost)') %]</option>
191
            [% END %]
192
            [% END %]
192
            [% IF ( serialslis.status7 ) %]
193
            [% IF ( serialslis.status7 ) %]
193
              <option value="7" selected="selected">Claimed</option>
194
              <option value="7" selected="selected">[% t('Claimed') %]</option>
194
            [% ELSE %]
195
            [% ELSE %]
195
              <option value="7">Claimed</option>
196
              <option value="7">[% t('Claimed') %]</option>
196
            [% END %]
197
            [% END %]
197
            [% IF ( serialslis.status5 ) %]
198
            [% IF ( serialslis.status5 ) %]
198
              <option value="5" selected="selected">Not available</option>
199
              <option value="5" selected="selected">[% t('Not available') %]</option>
199
            [% ELSE %]
200
            [% ELSE %]
200
              <option value="5">Not available</option>
201
              <option value="5">[% t('Not available') %]</option>
201
            [% END %]
202
            [% END %]
202
            [% IF ( serialslis.status6 ) %]
203
            [% IF ( serialslis.status6 ) %]
203
              <option value="6" selected="selected">Delete</option>
204
              <option value="6" selected="selected">[% t('Delete') %]</option>
204
            [% ELSE %]
205
            [% ELSE %]
205
              <option value="6">Delete</option>
206
              <option value="6">[% t('Delete') %]</option>
206
            [% END %]
207
            [% END %]
207
            [% IF serialslis.status8 %]
208
            [% IF serialslis.status8 %]
208
              <option value="8" selected="selected">Stopped</option>
209
              <option value="8" selected="selected">[% t('Stopped') %]</option>
209
            [% END %]
210
            [% END %]
210
            </select>
211
            </select>
211
212
Lines 218-228 $(document).ready(function() { Link Here
218
  [% IF ( serialslis.serialsadditems ) %]
219
  [% IF ( serialslis.serialsadditems ) %]
219
          <tr>
220
          <tr>
220
          <td colspan="6">
221
          <td colspan="6">
221
      <a id="label[% serialslis.subscriptionid %][% serialslis.serialid %]" style="color: grey; font-size: 80%; cursor: pointer;"  onclick="unHideItems('items[% serialslis.subscriptionid %][% serialslis.serialid %]','label[% serialslis.subscriptionid %][% serialslis.serialid %]',  '[% serialslis.serialid %]');setStatus([% serialslis.serialid %]);">
222
      <a id="label[% serialslis.subscriptionid %][% serialslis.serialid %]" style="color: grey; font-size: 80%; cursor: pointer;" onclick="unHideItems('items[% serialslis.subscriptionid %][% serialslis.serialid %]','label[% serialslis.subscriptionid %][% serialslis.serialid %]',  '[% serialslis.serialid %]');setStatus([% serialslis.serialid %]);">
222
             Click to add item</a>
223
             [% t('Click to add item') %]</a>
223
        <fieldset class="rows" style="display:none;" id="items[% serialslis.subscriptionid %][% serialslis.serialid %]">
224
        <fieldset class="rows" style="display:none;" id="items[% serialslis.subscriptionid %][% serialslis.serialid %]">
224
        <legend><a style="cursor: pointer;"  onclick="HideItems('items[% serialslis.subscriptionid %][% serialslis.serialid %]','label[% serialslis.subscriptionid %][% serialslis.serialid %]')">
225
        <legend><a style="cursor: pointer;" onclick="HideItems('items[% serialslis.subscriptionid %][% serialslis.serialid %]','label[% serialslis.subscriptionid %][% serialslis.serialid %]')">
225
                Item</a>
226
                [% t('Item') %]</a>
226
        </legend>
227
        </legend>
227
          <div class="cataloguing_additem_itemlist">
228
          <div class="cataloguing_additem_itemlist">
228
        [% FOREACH item IN serialslis.items %]
229
        [% FOREACH item IN serialslis.items %]
Lines 254-263 $(document).ready(function() { Link Here
254
                <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
255
                <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
255
                [% IF ( iteminformatio.repeatable ) %]
256
                [% IF ( iteminformatio.repeatable ) %]
256
                    <a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode); return false;">
257
                    <a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode); return false;">
257
                        <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
258
                        <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="[% t('Clone') %]" title="[% t('Clone this subfield') %]" />
258
                    </a>
259
                    </a>
259
                [% END %]
260
                [% END %]
260
                [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %]
261
                [% IF ( iteminformatio.mandatory ) %] <span class="required">[% t('Required') %]</span>[% END %]
261
            </div></li>
262
            </div></li>
262
        [% END %]</ol></div><!-- /iteminformation -->
263
        [% END %]</ol></div><!-- /iteminformation -->
263
        
264
        
Lines 284-293 $(document).ready(function() { Link Here
284
            <input type="hidden" name="biblionumber" value="[% newserialloo.biblionumber %]" />
285
            <input type="hidden" name="biblionumber" value="[% newserialloo.biblionumber %]" />
285
            <input type="hidden" name="itemcount" value="[% newserialloo.issuesatonce %]" />
286
            <input type="hidden" name="itemcount" value="[% newserialloo.issuesatonce %]" />
286
            <input type="hidden" name="user" value="[% newserialloo.librarian %]" />
287
            <input type="hidden" name="user" value="[% newserialloo.librarian %]" />
287
            Supplemental issue <input type="text" name="serialseq" id="serialseq[% newserialloo.serialid %]" value="" size="20" maxlength="100" onchange="if (this.value!=''){unHideItems('items[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]', '[% newserialloo.serialid %]')} else {HideItems('items[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]')}" />
288
            [% t('Supplemental issue') %] <input type="text" name="serialseq" id="serialseq[% newserialloo.serialid %]" value="" size="20" maxlength="100" onchange="if (this.value!=''){unHideItems('items[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]', '[% newserialloo.serialid %]')} else {HideItems('items[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]')}" />
288
        </td>
289
        </td>
289
        <td>
290
        <td>
290
            <input type="text" name="publisheddate" value="[% newserialloo.publisheddate %]" size="10" maxlength="15"  class="datepicker" />
291
            <input type="text" name="publisheddate" value="[% newserialloo.publisheddate %]" size="10" maxlength="15" class="datepicker" />
291
        </td>
292
        </td>
292
        <td>
293
        <td>
293
            <input type="text" name="publisheddatetext" value="[% newserialloo.publisheddatetext %]" size="10" maxlength="100" />
294
            <input type="text" name="publisheddatetext" value="[% newserialloo.publisheddatetext %]" size="10" maxlength="100" />
Lines 296-359 $(document).ready(function() { Link Here
296
            <input type="text" name="planneddate" value="[% newserialloo.planneddate %]" size="10" maxlength="15" class="datepicker" />
297
            <input type="text" name="planneddate" value="[% newserialloo.planneddate %]" size="10" maxlength="15" class="datepicker" />
297
        </td>
298
        </td>
298
        <td>
299
        <td>
299
            <select name="status" size="1" id="addstatus[% newserialloo.serialid %]" onchange="if (this.value==2){unHideItems('items'+'[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]','[% newserialloo.serialid %]'); changeDate(this, '[% newserialloo.arriveddate %]')} else if (this.value==7){changeDate(this, '[% newserialloo.arriveddate %]')} else { HideItems('items'+'[% newserialloo.subscriptionid %]'+[% newserialloo.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]'); changeDate(this, '[% serialslis.planneddate %]')}" >
300
            <select name="status" size="1" id="addstatus[% newserialloo.serialid %]" onchange="if (this.value==2){unHideItems('items'+'[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]','[% newserialloo.serialid %]'); changeDate(this, '[% newserialloo.arriveddate %]')} else if (this.value==7){changeDate(this, '[% newserialloo.arriveddate %]')} else { HideItems('items'+'[% newserialloo.subscriptionid %]'+[% newserialloo.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]'); changeDate(this, '[% serialslis.planneddate %]')}">
300
301
301
                    <option value="">----</option>
302
                    <option value="">----</option>
302
                  [% IF ( newserialloo.status1 ) %]
303
                  [% IF ( newserialloo.status1 ) %]
303
                    <option value="1" selected="selected">Expected</option>
304
                    <option value="1" selected="selected">[% t('Expected') %]</option>
304
                  [% END %]
305
                  [% END %]
305
                  [% IF ( newserialloo.status2 ) %]
306
                  [% IF ( newserialloo.status2 ) %]
306
                    <option value="2" selected="selected">Arrived</option>
307
                    <option value="2" selected="selected">[% t('Arrived') %]</option>
307
                  [% ELSE %]
308
                  [% ELSE %]
308
                    <option value="2">Arrived</option>
309
                    <option value="2">[% t('Arrived') %]</option>
309
                  [% END %]
310
                  [% END %]
310
                  [% IF ( newserialloo.status3 ) %]
311
                  [% IF ( newserialloo.status3 ) %]
311
                    <option value="3" selected="selected">Late</option>
312
                    <option value="3" selected="selected">[% t('Late') %]</option>
312
                  [% ELSE %]
313
                  [% ELSE %]
313
                    <option value="3">Late</option>
314
                    <option value="3">[% t('Late') %]</option>
314
                  [% END %]
315
                  [% END %]
315
                  [% IF ( newserialloo.status4 ) %]
316
                  [% IF ( newserialloo.status4 ) %]
316
                    <option value="4" selected="selected">Missing</option>
317
                    <option value="4" selected="selected">[% t('Missing') %]</option>
317
                  [% ELSE %]
318
                  [% ELSE %]
318
                    <option value="4">Missing</option>
319
                    <option value="4">[% t('Missing') %]</option>
319
                  [% END %]
320
                  [% END %]
320
                  [% IF ( newserialloo.status41 ) %]
321
                  [% IF ( newserialloo.status41 ) %]
321
                    <option value="41" selected="selected">Missing (never received)</option>
322
                    <option value="41" selected="selected">[% t('Missing (never received)') %]</option>
322
                  [% ELSE %]
323
                  [% ELSE %]
323
                    <option value="41">Missing (never received)</option>
324
                    <option value="41">[% t('Missing (never received)') %]</option>
324
                  [% END %]
325
                  [% END %]
325
                  [% IF ( newserialloo.status42 ) %]
326
                  [% IF ( newserialloo.status42 ) %]
326
                    <option value="42" selected="selected">Missing (sold out)</option>
327
                    <option value="42" selected="selected">[% t('Missing (sold out)') %]</option>
327
                  [% ELSE %]
328
                  [% ELSE %]
328
                    <option value="42">Missing (sold out)</option>
329
                    <option value="42">[% t('Missing (sold out)') %]</option>
329
                  [% END %]
330
                  [% END %]
330
                  [% IF ( newserialloo.status43 ) %]
331
                  [% IF ( newserialloo.status43 ) %]
331
                    <option value="43" selected="selected">Missing (damaged)</option>
332
                    <option value="43" selected="selected">[% t('Missing (damaged)') %]</option>
332
                  [% ELSE %]
333
                  [% ELSE %]
333
                    <option value="43">Missing (damaged)</option>
334
                    <option value="43">[% t('Missing (damaged)') %]</option>
334
                  [% END %]
335
                  [% END %]
335
                  [% IF ( newserialloo.status44 ) %]
336
                  [% IF ( newserialloo.status44 ) %]
336
                    <option value="44" selected="selected">Missing (lost)</option>
337
                    <option value="44" selected="selected">[% t('Missing (lost)') %]</option>
337
                  [% ELSE %]
338
                  [% ELSE %]
338
                    <option value="44">Missing (lost)</option>
339
                    <option value="44">[% t('Missing (lost)') %]</option>
339
                  [% END %]
340
                  [% END %]
340
                  [% IF ( newserialloo.status7 ) %]
341
                  [% IF ( newserialloo.status7 ) %]
341
                    <option value="7" selected="selected">Claimed</option>
342
                    <option value="7" selected="selected">[% t('Claimed') %]</option>
342
                  [% ELSE %]
343
                  [% ELSE %]
343
                    <option value="7">Claimed</option>
344
                    <option value="7">[% t('Claimed') %]</option>
344
                  [% END %]
345
                  [% END %]
345
                  [% IF ( newserialloo.status5 ) %]
346
                  [% IF ( newserialloo.status5 ) %]
346
                    <option value="5" selected="selected">Not available</option>
347
                    <option value="5" selected="selected">[% t('Not available') %]</option>
347
                  [% ELSE %]
348
                  [% ELSE %]
348
                    <option value="5">Not available</option>
349
                    <option value="5">[% t('Not available') %]</option>
349
                  [% END %]
350
                  [% END %]
350
                  [% IF ( newserialloo.status6 ) %]
351
                  [% IF ( newserialloo.status6 ) %]
351
                    <option value="6" selected="selected">Delete</option>
352
                    <option value="6" selected="selected">[% t('Delete') %]</option>
352
                  [% ELSE %]
353
                  [% ELSE %]
353
                    <option value="6">Delete</option>
354
                    <option value="6">[% t('Delete') %]</option>
354
                  [% END %]
355
                  [% END %]
355
                  [% IF newserialloo.status8 %]
356
                  [% IF newserialloo.status8 %]
356
                    <option value="8" selected="selected">Stopped</option>
357
                    <option value="8" selected="selected">[% t('Stopped') %]</option>
357
                  [% END %]
358
                  [% END %]
358
            </select>
359
            </select>
359
360
Lines 365-375 $(document).ready(function() { Link Here
365
  [% IF ( newserialloo.serialsadditems ) %]
366
  [% IF ( newserialloo.serialsadditems ) %]
366
          <tr>
367
          <tr>
367
          <td colspan="6">
368
          <td colspan="6">
368
      <a id="label[% newserialloo.subscriptionid %][% newserialloo.serialid %]" style="color: grey; font-size: 80%; cursor: pointer;"  onclick="unHideItems('items[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]', '[% newserialloo.serialid %]')">
369
      <a id="label[% newserialloo.subscriptionid %][% newserialloo.serialid %]" style="color: grey; font-size: 80%; cursor: pointer;" onclick="unHideItems('items[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]', '[% newserialloo.serialid %]')">
369
             Click to add item</a>
370
             [% t('Click to add item') %]</a>
370
        <fieldset  class="rows" style="display:none;" id="items[% newserialloo.subscriptionid %][% newserialloo.serialid %]">
371
        <fieldset class="rows" style="display:none;" id="items[% newserialloo.subscriptionid %][% newserialloo.serialid %]">
371
        <legend><a style="cursor: pointer;"  onclick="HideItems('items[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]')">
372
        <legend><a style="cursor: pointer;" onclick="HideItems('items[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]')">
372
                Item</a>
373
                [% t('Item') %]</a>
373
        </legend>
374
        </legend>
374
          <div class="cataloguing_additem_itemlist">
375
          <div class="cataloguing_additem_itemlist">
375
        <div id="item[% newserialloo.serialid %][% newserialloo.countitems %]" class="items">
376
        <div id="item[% newserialloo.serialid %][% newserialloo.countitems %]" class="items">
Lines 400-409 $(document).ready(function() { Link Here
400
                <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
401
                <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
401
                [% IF ( iteminformatio.repeatable ) %]
402
                [% IF ( iteminformatio.repeatable ) %]
402
                    <a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode); return false;">
403
                    <a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode); return false;">
403
                        <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
404
                        <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="[% t('Clone') %]" title="[% t('Clone this subfield') %]" />
404
                    </a>
405
                    </a>
405
                [% END %]
406
                [% END %]
406
                [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %]
407
                [% IF ( iteminformatio.mandatory ) %] <span class="required">[% t('Required') %]</span>[% END %]
407
        </div>
408
        </div>
408
       </li>[% END %]</ol>
409
       </li>[% END %]</ol>
409
        
410
        
Lines 425-433 $(document).ready(function() { Link Here
425
426
426
</table>
427
</table>
427
    <fieldset class="action">
428
    <fieldset class="action">
428
        <div class="btn-group"><input type="submit" value="Save" class="btn btn-default btn-sm"  accesskey="w" /></div>
429
        <div class="btn-group"><input type="submit" value="Save" class="btn btn-default btn-sm" accesskey="w" /></div>
429
        [% UNLESS ( serialsadditems ) %]&nbsp;&nbsp;
430
        [% UNLESS ( serialsadditems ) %]  
430
            <div class="btn-group"><a href="#multi_receiving" role="button" class="btn btn-default btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> Multi receiving</a></div>
431
            <div class="btn-group"><a href="#multi_receiving" role="button" class="btn btn-default btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> [% t('Multi receiving') %]</a></div>
431
        [% END %]
432
        [% END %]
432
433
433
    </fieldset>
434
    </fieldset>
Lines 440-454 $(document).ready(function() { Link Here
440
[% INCLUDE 'serials-menu.inc' %]
441
[% INCLUDE 'serials-menu.inc' %]
441
<ul>
442
<ul>
442
    [% FOREACH subscription IN subscriptions %]
443
    [% FOREACH subscription IN subscriptions %]
443
        <li><a href="serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]" title="serial collection for [% subscription.bibliotitle %]">Serial collection #[% subscription.subscriptionid %]</a></li>
444
        <li><a href="serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]" title="[% t('serial collection for') %] [% subscription.bibliotitle %]">[% t('Serial collection #') %][% subscription.subscriptionid %]</a></li>
444
        <li><a href="subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" title="detail of the subscription">Subscription #[% subscription.subscriptionid %]</a></li>
445
        <li><a href="subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" title="[% t('detail of the subscription') %]">[% t('Subscription #') %][% subscription.subscriptionid %]</a></li>
445
        [% IF ( subscription.abouttoexpire ) %]
446
        [% IF ( subscription.abouttoexpire ) %]
446
          [% UNLESS subscription.closed %]
447
          [% UNLESS subscription.closed %]
447
            <li><a href="#" onclick="javascript:popup([% subscription.subscriptionid %])">Renew #[% subscription.subscriptionid %]</a></li>
448
            <li><a href="#" onclick="javascript:popup([% subscription.subscriptionid %])">[% t('Renew #') %][% subscription.subscriptionid %]</a></li>
448
          [% END %]
449
          [% END %]
449
        [% END %]
450
        [% END %]
450
    [% END %]
451
    [% END %]
451
    <li><a href="/cgi-bin/koha/catalogue/[% default_bib_view %].pl?biblionumber=[% biblionumber %]" title="go to [% bibliotitle %]">Show biblio</a></li></ul>
452
    <li><a href="/cgi-bin/koha/catalogue/[% default_bib_view %].pl?biblionumber=[% biblionumber %]" title="[% t('go to') %] [% bibliotitle %]">[% t('Show biblio') %]</a></li></ul>
452
</div>
453
</div>
453
</div>
454
</div>
454
[% INCLUDE 'intranet-bottom.inc' %]
455
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt (-2 / +3 lines)
Lines 1-15 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Serials [% biblionumber %]</title>
6
<title>[% t('Koha › Serials') %] [% biblionumber %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
<body id="ser_serials-home" class="ser">
9
<body id="ser_serials-home" class="ser">
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'serials-search.inc' %]
11
[% INCLUDE 'serials-search.inc' %]
11
12
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Serials </div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> [% t('› Serials') %] </div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
<div id="bd">
16
<div id="bd">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt (-69 / +66 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% USE Branches %]
4
[% USE Branches %]
Lines 5-11 Link Here
5
[% USE KohaDates %]
6
[% USE KohaDates %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Koha &rsaquo; Serials [% biblionumber %]</title>
9
<title>[% t('Koha › Serials') %] [% biblionumber %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
[% Asset.css("css/datatables.css") %]
11
[% Asset.css("css/datatables.css") %]
11
<style type="text/css">input.dt-filter { width : 100%; font-size : 85%; }</style>
12
<style type="text/css">input.dt-filter { width : 100%; font-size : 85%; }</style>
Lines 15-21 Link Here
15
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'serials-search.inc' %]
17
[% INCLUDE 'serials-search.inc' %]
17
18
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; [% IF ( done_searched ) %]<a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Search results[% ELSE %]Serials [% END %] </div>
19
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › [% IF ( done_searched ) %]<a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> [% t('› Search results') %][% ELSE %][% t('Serials') %] [% END %] </div>
19
20
20
[% url_params = [] %]
21
[% url_params = [] %]
21
[% FOREACH param IN CGI.params.pairs %]
22
[% FOREACH param IN CGI.params.pairs %]
Lines 23-29 Link Here
23
    [% url_params.push(param.key _ '=' _ escaped_value) %]
24
    [% url_params.push(param.key _ '=' _ escaped_value) %]
24
[% END %]
25
[% END %]
25
[% SET referrer = '/cgi-bin/koha/serials/serials-search.pl?' %]
26
[% SET referrer = '/cgi-bin/koha/serials/serials-search.pl?' %]
26
[% referrer = BLOCK %][% referrer | url %][% url_params.join("&amp;") |uri %][% END %]
27
[% referrer = BLOCK %][% referrer | url %][% url_params.join("&") |uri %][% END %]
27
[% SET edit_action_link = '/cgi-bin/koha/serials/subscription-batchedit.pl?referrer=' _ referrer %]
28
[% SET edit_action_link = '/cgi-bin/koha/serials/subscription-batchedit.pl?referrer=' _ referrer %]
28
29
29
[% BLOCK subscriptions_table %]
30
[% BLOCK subscriptions_table %]
Lines 36-47 Link Here
36
    [% END %]
37
    [% END %]
37
    [% IF CAN_user_serials_edit_subscription %]
38
    [% IF CAN_user_serials_edit_subscription %]
38
        <div class="actions">
39
        <div class="actions">
39
            <a class="select-all" href="#" data-tab="[% tab %]"><i class="fa fa-check"></i> Select all</a>
40
            <a class="select-all" href="#" data-tab="[% tab %]"><i class="fa fa-check"></i> [% t('Select all') %]</a>
40
            |
41
            |
41
            <a class="clear-all" href="#" data-tab="[% tab %]"><i class="fa fa-remove"></i> Clear all</a>
42
            <a class="clear-all" href="#" data-tab="[% tab %]"><i class="fa fa-remove"></i> [% t('Clear all') %]</a>
42
            <span class="itemselection_actions">
43
            <span class="itemselection_actions">
43
                | Actions:
44
                [% t('| Actions:') %]
44
                <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Edit selected serials</a>
45
                <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> [% t('Edit selected serials') %]</a>
45
            </span>
46
            </span>
46
        </div>
47
        </div>
47
    [% END %]
48
    [% END %]
Lines 49-83 Link Here
49
      <thead>
50
      <thead>
50
        <tr>
51
        <tr>
51
            <th></th>
52
            <th></th>
52
            <th>ISSN</th>
53
            <th>[% t('ISSN') %]</th>
53
            <th class="anti-the">Title</th>
54
            <th class="anti-the">[% t('Title') %]</th>
54
            <th>Notes</th>
55
            <th>[% t('Notes') %]</th>
55
            <th>Library</th>
56
            <th>[% t('Library') %]</th>
56
            <th>Location</th>
57
            <th>[% t('Location') %]</th>
57
            <th>Call number</th>
58
            <th>[% t('Call number') %]</th>
58
            [% UNLESS closed %]
59
            [% UNLESS closed %]
59
                <th class="title-string">Expiration date</th>
60
                <th class="title-string">[% t('Expiration date') %]</th>
60
            [% END %]
61
            [% END %]
61
            [% FOR field IN additional_fields_for_subscription %]
62
            [% FOR field IN additional_fields_for_subscription %]
62
              <th>[% field.name %]</th>
63
              <th>[% field.name %]</th>
63
            [% END %]
64
            [% END %]
64
            <th class="NoSort">Actions</th>
65
            <th class="NoSort">[% t('Actions') %]</th>
65
        </tr>
66
        </tr>
66
      </thead>
67
      </thead>
67
      <tfoot>
68
      <tfoot>
68
        <tr>
69
        <tr>
69
          <td></td>
70
          <td></td>
70
          <td><input type="text" class="dt-filter" data-column_num="0" placeholder="Search ISSN" /></td>
71
          <td><input type="text" class="dt-filter" data-column_num="0" placeholder="[% t('Search ISSN') %]" /></td>
71
          <td><input type="text" class="dt-filter" data-column_num="1" placeholder="Search title" /></td>
72
          <td><input type="text" class="dt-filter" data-column_num="1" placeholder="[% t('Search title') %]" /></td>
72
          <td><input type="text" class="dt-filter" data-column_num="2" placeholder="Search notes" /></td>
73
          <td><input type="text" class="dt-filter" data-column_num="2" placeholder="[% t('Search notes') %]" /></td>
73
          <td><input type="text" class="dt-filter" data-column_num="3" placeholder="Search library" /></td>
74
          <td><input type="text" class="dt-filter" data-column_num="3" placeholder="[% t('Search library') %]" /></td>
74
          <td><input type="text" class="dt-filter" data-column_num="4" placeholder="Search location" /></td>
75
          <td><input type="text" class="dt-filter" data-column_num="4" placeholder="[% t('Search location') %]" /></td>
75
          <td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search callnumber" /></td>
76
          <td><input type="text" class="dt-filter" data-column_num="5" placeholder="[% t('Search callnumber') %]" /></td>
76
          [% UNLESS closed %]
77
          [% UNLESS closed %]
77
              <td><input type="text" class="dt-filter" data-column_num="6" placeholder="Search expiration date" /></td>
78
              <td><input type="text" class="dt-filter" data-column_num="6" placeholder="[% t('Search expiration date') %]" /></td>
78
          [% END %]
79
          [% END %]
79
          [% FOR field IN additional_fields_for_subscription %]
80
          [% FOR field IN additional_fields_for_subscription %]
80
            <td><input type="text" class="dt-filter" data-column_num="[% loop.count + 6 %]" placeholder="Search [% field.name %]" /></td>
81
            <td><input type="text" class="dt-filter" data-column_num="[% loop.count + 6 %]" placeholder="[% t('Search') %] [% field.name %]" /></td>
81
          [% END %]
82
          [% END %]
82
          <td></td>
83
          <td></td>
83
        </tr>
84
        </tr>
Lines 90-103 Link Here
90
                [% UNLESS subscription.cannotedit %]
91
                [% UNLESS subscription.cannotedit %]
91
                    <input type="checkbox" name="subscriptionid" value="[% subscription.subscriptionid %]" />
92
                    <input type="checkbox" name="subscriptionid" value="[% subscription.subscriptionid %]" />
92
                [% ELSE %]
93
                [% ELSE %]
93
                    <input type="checkbox" name="subscriptionid" value="[% subscription.subscriptionid %]" disabled="disabled" title="You cannot edit this subscription" />
94
                    <input type="checkbox" name="subscriptionid" value="[% subscription.subscriptionid %]" disabled="disabled" title="[% t('You cannot edit this subscription') %]" />
94
                [% END %]
95
                [% END %]
95
            </td>
96
            </td>
96
            <td>
97
            <td>
97
            [% IF ( subscription.issn ) %][% subscription.issn %]
98
            [% IF ( subscription.issn ) %][% subscription.issn %]
98
            [% END %]
99
            [% END %]
99
            </td>
100
            </td>
100
            <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a>
101
            <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="[% t('subscription detail') %]">[% subscription.title |html %]</a>
101
            </td>
102
            </td>
102
            <td>[% IF ( subscription.publicnotes ) %][% subscription.publicnotes %][% END %]
103
            <td>[% IF ( subscription.publicnotes ) %][% subscription.publicnotes %][% END %]
103
            [% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %]
104
            [% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %]
Lines 116-122 Link Here
116
                    [% IF ( subscription.enddate ) %]
117
                    [% IF ( subscription.enddate ) %]
117
                        <span title="[% subscription.enddate %]">[% subscription.enddate | $KohaDates %]</span>
118
                        <span title="[% subscription.enddate %]">[% subscription.enddate | $KohaDates %]</span>
118
                    [% ELSE %]
119
                    [% ELSE %]
119
                        <span title="0000-00-00"></span>
120
                        <span title="[% t('0000-00-00') %]"></span>
120
                    [% END %]
121
                    [% END %]
121
                </td>
122
                </td>
122
            [% END %]
123
            [% END %]
Lines 133-152 Link Here
133
                <div class="dropdown">
134
                <div class="dropdown">
134
                    [% IF closed %]
135
                    [% IF closed %]
135
                        <a class="btn btn-default btn-xs dropdown-toggle" id="closedsubactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#">
136
                        <a class="btn btn-default btn-xs dropdown-toggle" id="closedsubactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#">
136
                           Actions <b class="caret"></b>
137
                           [% t('Actions') %] <b class="caret"></b>
137
                        </a>
138
                        </a>
138
                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="closedsubactions[% subscription.subscriptionid %]">
139
                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="closedsubactions[% subscription.subscriptionid %]">
139
140
140
                            [% IF ( routing && CAN_user_serials_routing ) %]
141
                            [% IF ( routing && CAN_user_serials_routing ) %]
141
                                [% UNLESS ( subscription.cannotedit ) %]
142
                                [% UNLESS ( subscription.cannotedit ) %]
142
                                    <li>
143
                                    <li>
143
                                        <a href="/cgi-bin/koha/serials/serials-search.pl?subscriptionid=[% subscription.subscriptionid %]&amp;op=reopen&amp;routing=[% subscription.routing %]&amp;searched=1&amp;title_filter=[% title_filter | uri %]&amp;ISSN_filter=[% ISSN_filter | uri %]&amp;EAN_filter=[% EAN_filter | uri %]&amp;published_filter=[% publisher_filter | uri %]&amp;bookseller_filter=[% bookseller_filter | uri %]&amp;branch_filter=[% branch_filter | uri %]" id="reopensub"> <i class="fa fa-repeat"></i> Reopen</a>
144
                                        <a href="/cgi-bin/koha/serials/serials-search.pl?subscriptionid=[% subscription.subscriptionid %]&op=reopen&routing=[% subscription.routing %]&searched=1&title_filter=[% title_filter | uri %]&ISSN_filter=[% ISSN_filter | uri %]&EAN_filter=[% EAN_filter | uri %]&published_filter=[% publisher_filter | uri %]&bookseller_filter=[% bookseller_filter | uri %]&branch_filter=[% branch_filter | uri %]" id="reopensub"> <i class="fa fa-repeat"></i> [% t('Reopen') %]</a>
144
                                    </li>
145
                                    </li>
145
                                [% END %]
146
                                [% END %]
146
                            [% END # IF ( routing && CAN_user_serials_routing ) %]
147
                            [% END # IF ( routing && CAN_user_serials_routing ) %]
147
148
148
                            <li>
149
                            <li>
149
                                <a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-list-alt"></i> Issue history</a>
150
                                <a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-list-alt"></i> [% t('Issue history') %]</a>
150
                            </li>
151
                            </li>
151
152
152
                        </ul>
153
                        </ul>
Lines 154-166 Link Here
154
                        <div class="btn-group">
155
                        <div class="btn-group">
155
                            [% IF ( CAN_user_serials_receive_serials ) %]
156
                            [% IF ( CAN_user_serials_receive_serials ) %]
156
                                [%# There should be no space between these two buttons, it would render badly %]
157
                                [%# There should be no space between these two buttons, it would render badly %]
157
                                <a class="btn btn-default btn-xs" role="button"
158
                                <a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&serstatus=1,3,7"><i class="fa fa-inbox"></i> [% t('Serial receive') %]</a><a class="btn btn-default btn-xs dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a>
158
                                   href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&amp;serstatus=1,3,7"><i
159
                                   class="fa fa-inbox"></i> Serial receive</a><a
160
                                   class="btn btn-default btn-xs dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button"
161
                                   data-toggle="dropdown" href="#"><b class="caret"></b></a>
162
                            [% ELSE %]
159
                            [% ELSE %]
163
                                <a class="btn btn-default btn-xs dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#">Actions <b class="caret"></b></a>
160
                                <a class="btn btn-default btn-xs dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#">[% t('Actions') %] <b class="caret"></b></a>
164
                            [% END %]
161
                            [% END %]
165
                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="subactions[% subscription.subscriptionid %]">
162
                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="subactions[% subscription.subscriptionid %]">
166
163
Lines 169-186 Link Here
169
                                [% ELSE %]
166
                                [% ELSE %]
170
                                    [% IF ( subscription.routingedit ) %]
167
                                    [% IF ( subscription.routingedit ) %]
171
                                        <li>
168
                                        <li>
172
                                            <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-pencil"></i> Edit routing list ([% subscription.routingedit %])</a>
169
                                            <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-pencil"></i> [% t('Edit routing list (') %][% subscription.routingedit %])</a>
173
                                        </li>
170
                                        </li>
174
                                    [% ELSE %]
171
                                    [% ELSE %]
175
                                        <li>
172
                                        <li>
176
                                            <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&amp;op=new"> <i class="fa fa-plus"></i> New routing list</a>
173
                                            <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&op=new"> <i class="fa fa-plus"></i> [% t('New routing list') %]</a>
177
                                        </li>
174
                                        </li>
178
                                    [% END %]
175
                                    [% END %]
179
                                [% END %]
176
                                [% END %]
180
                            [% END # IF ( routing && CAN_user_serials_routing ) %]
177
                            [% END # IF ( routing && CAN_user_serials_routing ) %]
181
178
182
                            <li>
179
                            <li>
183
                                <a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-list-alt"></i> Issue history</a>
180
                                <a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-list-alt"></i> [% t('Issue history') %]</a>
184
                            </li>
181
                            </li>
185
                        </ul>
182
                        </ul>
186
                        </div>
183
                        </div>
Lines 203-259 Link Here
203
      [% INCLUDE 'serials-toolbar.inc' %]
200
      [% INCLUDE 'serials-toolbar.inc' %]
204
201
205
      [% IF ( done_searched ) %]
202
      [% IF ( done_searched ) %]
206
        <h2>Serials subscriptions ([% total %] found)</h2>
203
        <h2>[% t('Serials subscriptions (') %][% total %] [% t('found)') %]</h2>
207
      [% ELSE %]
204
      [% ELSE %]
208
        <h2>Serials subscriptions search</h2>
205
        <h2>[% t('Serials subscriptions search') %]</h2>
209
      [% END %]
206
      [% END %]
210
207
211
      [% UNLESS ( done_searched ) %]
208
      [% UNLESS ( done_searched ) %]
212
      <div id="advsearch" style="padding-bottom:3em;">
209
      <div id="advsearch" style="padding-bottom:3em;">
213
        <form action="/cgi-bin/koha/serials/serials-search.pl" method="get">
210
        <form action="/cgi-bin/koha/serials/serials-search.pl" method="get">
214
          <fieldset class="rows">
211
          <fieldset class="rows">
215
          <legend>Search subscriptions</legend>
212
          <legend>[% t('Search subscriptions') %]</legend>
216
              <ol>
213
              <ol>
217
                <li>
214
                <li>
218
                  <label for="issn">ISSN:</label>
215
                  <label for="issn">[% t('ISSN:') %]</label>
219
                  <input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" />
216
                  <input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" />
220
                </li>
217
                </li>
221
                <li>
218
                <li>
222
                  <label for="title">Title:</label>
219
                  <label for="title">[% t('Title:') %]</label>
223
                  <input type="text" id="title" name="title_filter" value="[% title_filter | html %]" />
220
                  <input type="text" id="title" name="title_filter" value="[% title_filter | html %]" />
224
                </li>
221
                </li>
225
                [% IF ( marcflavour == "UNIMARC" ) %]
222
                [% IF ( marcflavour == "UNIMARC" ) %]
226
                <li>
223
                <li>
227
                  <label for="ean">EAN:</label>
224
                  <label for="ean">[% t('EAN:') %]</label>
228
                  <input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" />
225
                  <input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" />
229
                </li>
226
                </li>
230
                [% END %]
227
                [% END %]
231
                <li>
228
                <li>
232
                  <label for="callnumber">Call number:</label>
229
                  <label for="callnumber">[% t('Call number:') %]</label>
233
                  <input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter | html %]" />
230
                  <input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter | html %]" />
234
                </li>
231
                </li>
235
                <li>
232
                <li>
236
                  <label for="publisher">Publisher:</label>
233
                  <label for="publisher">[% t('Publisher:') %]</label>
237
                  <input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" />
234
                  <input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" />
238
                </li>
235
                </li>
239
                <li>
236
                <li>
240
                  <label for="bookseller">Vendor:</label>
237
                  <label for="bookseller">[% t('Vendor:') %]</label>
241
                  <input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter | html %]" />
238
                  <input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter | html %]" />
242
                </li>
239
                </li>
243
                <li>
240
                <li>
244
                  <label for="branch">Library:</label>
241
                  <label for="branch">[% t('Library:') %]</label>
245
                  <select id="branch" name="branch_filter">
242
                  <select id="branch" name="branch_filter">
246
                    <option value="">All</option>
243
                    <option value="">[% t('All') %]</option>
247
                    [%# FIXME Should not we filter the libraries? %]
244
                    [%# FIXME Should not we filter the libraries? %]
248
                    [% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %]
245
                    [% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %]
249
                  </select>
246
                  </select>
250
                </li>
247
                </li>
251
                <li>
248
                <li>
252
                  <label for="location">Location:</label>
249
                  <label for="location">[% t('Location:') %]</label>
253
                  [% PROCESS 'av-build-dropbox.inc' name="location_filter", category="LOC", default=location_filter, all=1 %]
250
                  [% PROCESS 'av-build-dropbox.inc' name="location_filter", category="LOC", default=location_filter, all=1 %]
254
                </li>
251
                </li>
255
                <li>
252
                <li>
256
                  <label for="to">Expires before:</label>
253
                  <label for="to">[% t('Expires before:') %]</label>
257
                  <input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="datepickerto" />
254
                  <input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="datepickerto" />
258
                </li>
255
                </li>
259
                [% FOR field IN additional_fields_for_subscription %]
256
                [% FOR field IN additional_fields_for_subscription %]
Lines 261-267 Link Here
261
                    <label for="additional_field_[% field.id %]"> [% field.name %]: </label>
258
                    <label for="additional_field_[% field.id %]"> [% field.name %]: </label>
262
                    [% IF field.authorised_value_choices %]
259
                    [% IF field.authorised_value_choices %]
263
                      <select id="additional_field_[% field.id %]" name="additional_field_[% field.id %]_filter">
260
                      <select id="additional_field_[% field.id %]" name="additional_field_[% field.id %]_filter">
264
                        <option value="">All</option>
261
                        <option value="">[% t('All') %]</option>
265
                        [% FOREACH av IN field.authorised_value_choices %]
262
                        [% FOREACH av IN field.authorised_value_choices %]
266
                          <option value="[% av.authorised_value %]">[% av.lib %]</option>
263
                          <option value="[% av.authorised_value %]">[% av.lib %]</option>
267
                        [% END %]
264
                        [% END %]
Lines 284-298 Link Here
284
        [% IF ( total ) %]
281
        [% IF ( total ) %]
285
          <div id="serialstabs" class="toptabs" style="clear:both;">
282
          <div id="serialstabs" class="toptabs" style="clear:both;">
286
            <ul class="ui-tabs-nav">
283
            <ul class="ui-tabs-nav">
287
              <li><a href="#opened">Open ([% openedsubscriptions.size || 0 %])</a></li>
284
              <li><a href="#opened">[% t('Open (') %][% openedsubscriptions.size || 0 %])</a></li>
288
              <li><a href="#closed">Closed ([% closedsubscriptions.size || 0 %])</a></li>
285
              <li><a href="#closed">[% t('Closed (') %][% closedsubscriptions.size || 0 %])</a></li>
289
            </ul>
286
            </ul>
290
            <div id="opened">
287
            <div id="opened">
291
              [% IF openedsubscriptions %]
288
              [% IF openedsubscriptions %]
292
                  [% INCLUDE subscriptions_table subscriptions = openedsubscriptions %]
289
                  [% INCLUDE subscriptions_table subscriptions = openedsubscriptions %]
293
              [% ELSE %]
290
              [% ELSE %]
294
                <div class="dialog message">
291
                <div class="dialog message">
295
                  <p>Your search returned no open subscriptions.</p>
292
                  <p>[% t('Your search returned no open subscriptions.') %]</p>
296
                </div>
293
                </div>
297
              [% END %]
294
              [% END %]
298
            </div>
295
            </div>
Lines 301-314 Link Here
301
                [% INCLUDE subscriptions_table subscriptions = closedsubscriptions closed = 1 %]
298
                [% INCLUDE subscriptions_table subscriptions = closedsubscriptions closed = 1 %]
302
              [% ELSE %]
299
              [% ELSE %]
303
                <div class="dialog message">
300
                <div class="dialog message">
304
                  <p>Your search returned no closed subscriptions.</p>
301
                  <p>[% t('Your search returned no closed subscriptions.') %]</p>
305
                </div>
302
                </div>
306
              [% END %]
303
              [% END %]
307
            </div>
304
            </div>
308
          </div>
305
          </div>
309
        [% ELSE %]
306
        [% ELSE %]
310
            <div class="dialog message">
307
            <div class="dialog message">
311
              <p>Your search returned no results.</p>
308
              <p>[% t('Your search returned no results.') %]</p>
312
            </div>
309
            </div>
313
        [% END %]
310
        [% END %]
314
      [% END %]
311
      [% END %]
Lines 321-368 Link Here
321
    <div id="advsearch">
318
    <div id="advsearch">
322
        <form action="/cgi-bin/koha/serials/serials-search.pl" method="get">
319
        <form action="/cgi-bin/koha/serials/serials-search.pl" method="get">
323
          <fieldset class="brief">
320
          <fieldset class="brief">
324
            <h4>Search subscriptions</h4>
321
            <h4>[% t('Search subscriptions') %]</h4>
325
              <ol>
322
              <ol>
326
                <li>
323
                <li>
327
                  <label for="issn">ISSN:</label>
324
                  <label for="issn">[% t('ISSN:') %]</label>
328
                  <input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" />
325
                  <input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" />
329
                </li>
326
                </li>
330
                <li>
327
                <li>
331
                  <label for="title">Title:</label>
328
                  <label for="title">[% t('Title:') %]</label>
332
                  <input type="text" id="title" name="title_filter" value="[% title_filter | html %]" />
329
                  <input type="text" id="title" name="title_filter" value="[% title_filter | html %]" />
333
                </li>
330
                </li>
334
                [% IF ( marcflavour == "UNIMARC" ) %]
331
                [% IF ( marcflavour == "UNIMARC" ) %]
335
                <li>
332
                <li>
336
                  <label for="ean">EAN:</label>
333
                  <label for="ean">[% t('EAN:') %]</label>
337
                  <input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" />
334
                  <input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" />
338
                </li>
335
                </li>
339
                [% END %]
336
                [% END %]
340
                <li>
337
                <li>
341
                  <label for="callnumber">Call number:</label>
338
                  <label for="callnumber">[% t('Call number:') %]</label>
342
                  <input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter | html %]" />
339
                  <input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter | html %]" />
343
                </li>
340
                </li>
344
                <li>
341
                <li>
345
                  <label for="publisher">Publisher:</label>
342
                  <label for="publisher">[% t('Publisher:') %]</label>
346
                  <input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" />
343
                  <input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" />
347
                </li>
344
                </li>
348
                <li>
345
                <li>
349
                  <label for="bookseller">Vendor:</label>
346
                  <label for="bookseller">[% t('Vendor:') %]</label>
350
                  <input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter | html %]" />
347
                  <input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter | html %]" />
351
                </li>
348
                </li>
352
                <li>
349
                <li>
353
                  <label for="branch">Library:</label>
350
                  <label for="branch">[% t('Library:') %]</label>
354
                  <select id="branch" name="branch_filter">
351
                  <select id="branch" name="branch_filter">
355
                    <option value="">All</option>
352
                    <option value="">[% t('All') %]</option>
356
                    [%# FIXME Should not we filter the libraries? %]
353
                    [%# FIXME Should not we filter the libraries? %]
357
                    [% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %]
354
                    [% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %]
358
                  </select>
355
                  </select>
359
                </li>
356
                </li>
360
                <li>
357
                <li>
361
                  <label for="location">Location:</label>
358
                  <label for="location">[% t('Location:') %]</label>
362
                  [% PROCESS 'av-build-dropbox.inc' name="location_filter", category="LOC", default=location_filter, all=1 %]
359
                  [% PROCESS 'av-build-dropbox.inc' name="location_filter", category="LOC", default=location_filter, all=1 %]
363
                </li>
360
                </li>
364
                <li>
361
                <li>
365
                  <label for="to">Expires before:</label>
362
                  <label for="to">[% t('Expires before:') %]</label>
366
                  <input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="datepickerto" />
363
                  <input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="datepickerto" />
367
                </li>
364
                </li>
368
365
Lines 371-377 Link Here
371
                    <label for="additional_field_[% field.id %]ID"> [% field.name %]: </label>
368
                    <label for="additional_field_[% field.id %]ID"> [% field.name %]: </label>
372
                    [% IF field.authorised_value_choices %]
369
                    [% IF field.authorised_value_choices %]
373
                      <select id="additional_field_[% field.id %]" name="additional_field_[% field.id %]_filter">
370
                      <select id="additional_field_[% field.id %]" name="additional_field_[% field.id %]_filter">
374
                        <option value="">All</option>
371
                        <option value="">[% t('All') %]</option>
375
                        [% FOREACH av IN field.authorised_value_choices %]
372
                        [% FOREACH av IN field.authorised_value_choices %]
376
                          [% IF av.authorised_value == additional_field_filters.${field.name}.value %]
373
                          [% IF av.authorised_value == additional_field_filters.${field.name}.value %]
377
                            <option value="[% av.authorised_value %]" selected="selected">[% av.lib %]</option>
374
                            <option value="[% av.authorised_value %]" selected="selected">[% av.lib %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/showpredictionpattern.tt (-24 / +25 lines)
Lines 1-39 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE KohaDates %]
2
[% USE KohaDates %]
2
<h2>Prediction pattern</h1>
3
<h2>[% t('Prediction pattern') %]</h1>
3
[% IF (not_consistent_end_date) %]
4
[% IF (not_consistent_end_date) %]
4
  <p><em>End date is not consistent with subscription length.</em></p>
5
  <p><em>[% t('End date is not consistent with subscription length.') %]</em></p>
5
[% END %]
6
[% END %]
6
[% IF (ask_for_irregularities) %]
7
[% IF (ask_for_irregularities) %]
7
    <p><em>Please check issues that are NOT published (irregularities)</em></p>
8
    <p><em>[% t('Please check issues that are NOT published (irregularities)') %]</em></p>
8
    [% IF (daily_options) %]
9
    [% IF (daily_options) %]
9
        <p><em>
10
        <p><em>
10
            If there is a day (or more) in the week where issues are never
11
            [% t('If there is a day (or more) in the week where issues are never') %]
11
            published, you can check corresponding boxes below.
12
            [% t('published, you can check corresponding boxes below.') %]
12
        </em></p>
13
        </em></p>
13
        <input type="checkbox" id="monday" data-dow="1" class="skipday" />
14
        <input type="checkbox" id="monday" data-dow="1" class="skipday" />
14
        <label for="monday">Monday</label>
15
        <label for="monday">[% t('Monday') %]</label>
15
        <input type="checkbox" id="tuesday" data-dow="2" class="skipday" />
16
        <input type="checkbox" id="tuesday" data-dow="2" class="skipday" />
16
        <label for="tuesday">Tuesday</label>
17
        <label for="tuesday">[% t('Tuesday') %]</label>
17
        <input type="checkbox" id="wednesday" data-dow="3" class="skipday" />
18
        <input type="checkbox" id="wednesday" data-dow="3" class="skipday" />
18
        <label for="wednesday">Wednesday</label>
19
        <label for="wednesday">[% t('Wednesday') %]</label>
19
        <input type="checkbox" id="thursday" data-dow="4" class="skipday" />
20
        <input type="checkbox" id="thursday" data-dow="4" class="skipday" />
20
        <label for="thursday">Thursday</label>
21
        <label for="thursday">[% t('Thursday') %]</label>
21
        <input type="checkbox" id="friday" data-dow="5" class="skipday" />
22
        <input type="checkbox" id="friday" data-dow="5" class="skipday" />
22
        <label for="friday">Friday</label>
23
        <label for="friday">[% t('Friday') %]</label>
23
        <input type="checkbox" id="saturday" data-dow="6" class="skipday" />
24
        <input type="checkbox" id="saturday" data-dow="6" class="skipday" />
24
        <label for="saturday">Saturday</label>
25
        <label for="saturday">[% t('Saturday') %]</label>
25
        <input type="checkbox" id="sunday" data-dow="7" class="skipday" />
26
        <input type="checkbox" id="sunday" data-dow="7" class="skipday" />
26
        <label for="sunday">Sunday</label>
27
        <label for="sunday">[% t('Sunday') %]</label>
27
    [% END %]
28
    [% END %]
28
[% END %]
29
[% END %]
29
[% IF (predictions_loop) %]
30
[% IF (predictions_loop) %]
30
<table id="predictionst">
31
<table id="predictionst">
31
  <thead>
32
  <thead>
32
    <tr>
33
    <tr>
33
      <th>Number</th>
34
      <th>[% t('Number') %]</th>
34
      <th>Publication date</th>
35
      <th>[% t('Publication date') %]</th>
35
      [% IF (ask_for_irregularities) %]
36
      [% IF (ask_for_irregularities) %]
36
      <th>Not published</th>
37
      <th>[% t('Not published') %]</th>
37
      [% END %]
38
      [% END %]
38
    </tr>
39
    </tr>
39
  </thead>
40
  </thead>
Lines 42-62 Link Here
42
      <tr>
43
      <tr>
43
        <td>
44
        <td>
44
            [% IF ( matches = prediction.number.match('(.*)Spring(.*)') ) %]
45
            [% IF ( matches = prediction.number.match('(.*)Spring(.*)') ) %]
45
                [% matches.0 %]Spring[% matches.1 %]
46
                [% matches.0 %][% t('Spring') %][% matches.1 %]
46
            [% ELSIF ( matches = prediction.number.match('(.*)Summer(.*)') ) %]
47
            [% ELSIF ( matches = prediction.number.match('(.*)Summer(.*)') ) %]
47
                [% matches.0 %]Summer[% matches.1 %]
48
                [% matches.0 %][% t('Summer') %][% matches.1 %]
48
            [% ELSIF ( matches = prediction.number.match('(.*)Fall(.*)') ) %]
49
            [% ELSIF ( matches = prediction.number.match('(.*)Fall(.*)') ) %]
49
                [% matches.0 %]Fall[% matches.1 %]
50
                [% matches.0 %][% t('Fall') %][% matches.1 %]
50
            [% ELSIF ( matches = prediction.number.match('(.*)Winter(.*)') ) %]
51
            [% ELSIF ( matches = prediction.number.match('(.*)Winter(.*)') ) %]
51
                [% matches.0 %]Winter[% matches.1 %]
52
                [% matches.0 %][% t('Winter') %][% matches.1 %]
52
            [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
53
            [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
53
                [% matches.0 %]Spr[% matches.1 %]
54
                [% matches.0 %][% t('Spr') %][% matches.1 %]
54
            [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
55
            [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
55
                [% matches.0 %]Sum[% matches.1 %]
56
                [% matches.0 %][% t('Sum') %][% matches.1 %]
56
            [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
57
            [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
57
                [% matches.0 %]Fal[% matches.1 %]
58
                [% matches.0 %][% t('Fal') %][% matches.1 %]
58
            [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
59
            [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
59
                [% matches.0 %]Win[% matches.1 %]
60
                [% matches.0 %][% t('Win') %][% matches.1 %]
60
            [% ELSE %]
61
            [% ELSE %]
61
                [% prediction.number %]
62
                [% prediction.number %]
62
            [% END %]
63
            [% END %]
Lines 65-71 Link Here
65
          [% IF (prediction.publicationdate) %]
66
          [% IF (prediction.publicationdate) %]
66
            [% prediction.publicationdate | $KohaDates %]
67
            [% prediction.publicationdate | $KohaDates %]
67
          [% ELSE %]
68
          [% ELSE %]
68
            unknown
69
            [% t('unknown') %]
69
          [% END %]
70
          [% END %]
70
        </td>
71
        </td>
71
        [% IF (ask_for_irregularities) %]
72
        [% IF (ask_for_irregularities) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (-95 / +96 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Serials &rsaquo; [% IF ( modify ) %][% bibliotitle |html %] &rsaquo; Modify subscription[% ELSE %]New subscription[% END %]</title>
7
<title>[% t('Koha › Serials ›') %] [% IF ( modify ) %][% bibliotitle |html %] [% t('› Modify subscription') %][% ELSE %][% t('New subscription') %][% END %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
<style type="text/css">
9
<style type="text/css">
9
fieldset.rows li.radio { width: 100%; } /* override staff-global.css */
10
fieldset.rows li.radio { width: 100%; } /* override staff-global.css */
Lines 17-28 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
17
[% INCLUDE 'header.inc' %]
18
[% INCLUDE 'header.inc' %]
18
[% INCLUDE 'serials-search.inc' %]
19
[% INCLUDE 'serials-search.inc' %]
19
20
20
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; [% IF ( modify ) %]<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptionid %]"><i>[% bibliotitle |html %]</i></a> &rsaquo; Modify subscription[% ELSE %]New subscription[% END %]</div>
21
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> › [% IF ( modify ) %]<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptionid %]"><i>[% bibliotitle |html %]</i></a> [% t('› Modify subscription') %][% ELSE %][% t('New subscription') %][% END %]</div>
21
22
22
<div class="main container-fluid">
23
<div class="main container-fluid">
23
    <div class="row">
24
    <div class="row">
24
25
25
            <h1>[% IF ( modify ) %] Modify subscription for <i>[% bibliotitle |html %]</i>[% ELSE %]Add a new subscription[% END %] (<span id="page_number">1/2</span>)</h1>
26
            <h1>[% IF ( modify ) %] [% t('Modify subscription for') %] <i>[% bibliotitle |html %]</i>[% ELSE %][% t('Add a new subscription') %][% END %] (<span id="page_number">[% t('1/2') %]</span>)</h1>
26
            <form method="post" id="subscription_add_form" name="f" action="/cgi-bin/koha/serials/subscription-add.pl" class="validated">
27
            <form method="post" id="subscription_add_form" name="f" action="/cgi-bin/koha/serials/subscription-add.pl" class="validated">
27
                [% IF ( modify ) %]
28
                [% IF ( modify ) %]
28
                    <input type="hidden" name="op" value="modsubscription" />
29
                    <input type="hidden" name="op" value="modsubscription" />
Lines 36-97 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
36
                <div id="page_1">
37
                <div id="page_1">
37
                    <div class="col-md-6">
38
                    <div class="col-md-6">
38
                        <fieldset id="subscription_add_information" class="rows">
39
                        <fieldset id="subscription_add_information" class="rows">
39
                            <legend>Subscription details</legend>
40
                            <legend>[% t('Subscription details') %]</legend>
40
                            <ol>
41
                            <ol>
41
                                [% IF ( subscriptionid ) %]
42
                                [% IF ( subscriptionid ) %]
42
                                    <li><span class="label">Subscription #</span> [% subscriptionid %]</li>
43
                                    <li><span class="label">[% t('Subscription #') %]</span> [% subscriptionid %]</li>
43
                                [% END %]
44
                                [% END %]
44
                                <li>
45
                                <li>
45
                                    <label for="aqbooksellerid">Vendor: </label>
46
                                    <label for="aqbooksellerid">[% t('Vendor:') %] </label>
46
                                    <input type="text" name="aqbooksellerid" id="aqbooksellerid" value="[% aqbooksellerid %]" size="8" /> (<input type="text" name="aqbooksellername" id="aqbooksellername" value="[% aqbooksellername %]" disabled="disabled" readonly="readonly" />) <a href="#" id="vendor_search"><i class="fa fa-search"></i> Search for a vendor</a>
47
                                    <input type="text" name="aqbooksellerid" id="aqbooksellerid" value="[% aqbooksellerid %]" size="8" /> (<input type="text" name="aqbooksellername" id="aqbooksellername" value="[% aqbooksellername %]" disabled="disabled" readonly="readonly" />) <a href="#" id="vendor_search"><i class="fa fa-search"></i> [% t('Search for a vendor') %]</a>
47
                                </li>
48
                                </li>
48
                                <li>
49
                                <li>
49
                                    <label for="biblionumber" class="required" title="Subscriptions must be associated with a bibliographic record">Record:</label>
50
                                    <label for="biblionumber" class="required" title="[% t('Subscriptions must be associated with a bibliographic record') %]">[% t('Record:') %]</label>
50
                                    <input type="text" name="biblionumber" id="biblionumber" value="[% bibnum %]" size="8" />
51
                                    <input type="text" name="biblionumber" id="biblionumber" value="[% bibnum %]" size="8" />
51
                                    (<input type="text" name="title" value="[% bibliotitle %]" disabled="disabled" readonly="readonly" />) <span class="required" title="Subscriptions must be associated with a bibliographic record">Required</span>
52
                                    (<input type="text" name="title" value="[% bibliotitle %]" disabled="disabled" readonly="readonly" />) <span class="required" title="[% t('Subscriptions must be associated with a bibliographic record') %]">[% t('Required') %]</span>
52
                                    <div class="inputnote"> <a href="#" id="record_search"><i class="fa fa-search"></i> Search for record</a>
53
                                    <div class="inputnote"> <a href="#" id="record_search"><i class="fa fa-search"></i> [% t('Search for record') %]</a>
53
                                        [% IF ( CAN_user_editcatalogue ) %]
54
                                        [% IF ( CAN_user_editcatalogue ) %]
54
                                            [% IF ( modify ) %]
55
                                            [% IF ( modify ) %]
55
                                            | <a href="#" id="biblio_add_edit" data-biblionumber="[% bibnum %]"><i class="fa fa-pencil"></i> Edit record</a>
56
                                            | <a href="#" id="biblio_add_edit" data-biblionumber="[% bibnum %]"><i class="fa fa-pencil"></i> [% t('Edit record') %]</a>
56
                                            [% ELSE %]
57
                                            [% ELSE %]
57
                                            | <a href="#" id="biblio_add_edit"><i class="fa fa-plus"></i> Create record</a>
58
                                            | <a href="#" id="biblio_add_edit"><i class="fa fa-plus"></i> [% t('Create record') %]</a>
58
                                            [% END %]
59
                                            [% END %]
59
                                        [% END %]
60
                                        [% END %]
60
                                    </div>
61
                                    </div>
61
                                </li>
62
                                </li>
62
                                <li class="radio">
63
                                <li class="radio">
63
                                    [% IF ( serialsadditems ) %]
64
                                    [% IF ( serialsadditems ) %]
64
                                        <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>
65
                                        <p><input type="radio" id="serialsadditems-yes" name="serialsadditems" value="1" checked="checked" /><label class="widelabel" for="serialsadditems-yes">[% t('create an item record when receiving this serial') %]</label></p>
65
                                        <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>
66
                                        <p><input type="radio" id="serialsadditems-no" name="serialsadditems" value="0" /><label class="widelabel" for="serialsadditems-no">[% t('do not create an item record when receiving this serial') %] </label></p>
66
                                    [% ELSE %]
67
                                    [% ELSE %]
67
                                        <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>
68
                                        <p><input type="radio" id="serialsadditems-yes" name="serialsadditems" value="1" /><label class="widelabel" for="serialsadditems-yes">[% t('create an item record when receiving this serial') %]</label></p>
68
                                        <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>
69
                                        <p><input type="radio" id="serialsadditems-no" name="serialsadditems" value="0" checked="checked" /><label class="widelabel" for="serialsadditems-no">[% t('do not create an item record when receiving this serial') %]</label></p>
69
                                    [% END %]
70
                                    [% END %]
70
                                </li>
71
                                </li>
71
                                <li class="radio">
72
                                <li class="radio">
72
                                  <p>When there is an irregular issue:</p>
73
                                  <p>[% t('When there is an irregular issue:') %]</p>
73
                                  [% IF (skip_serialseq) %]
74
                                  [% IF (skip_serialseq) %]
74
                                    <p>
75
                                    <p>
75
                                      <input type="radio" id="skip_serialseq_yes" name="skip_serialseq" value="1" checked="checked" />
76
                                      <input type="radio" id="skip_serialseq_yes" name="skip_serialseq" value="1" checked="checked" />
76
                                      <label for="skip_serialseq_yes">Skip issue number</label>
77
                                      <label for="skip_serialseq_yes">[% t('Skip issue number') %]</label>
77
                                    </p>
78
                                    </p>
78
                                    <p>
79
                                    <p>
79
                                      <input type="radio" id="skip_serialseq_no" name="skip_serialseq" value="0" />
80
                                      <input type="radio" id="skip_serialseq_no" name="skip_serialseq" value="0" />
80
                                      <label for="skip_serialseq_no">Keep issue number</label>
81
                                      <label for="skip_serialseq_no">[% t('Keep issue number') %]</label>
81
                                    </p>
82
                                    </p>
82
                                  [% ELSE %]
83
                                  [% ELSE %]
83
                                    <p>
84
                                    <p>
84
                                      <input type="radio" id="skip_serialseq_yes" name="skip_serialseq" value="1" />
85
                                      <input type="radio" id="skip_serialseq_yes" name="skip_serialseq" value="1" />
85
                                      <label for="skip_serialseq_yes">Skip issue number</label>
86
                                      <label for="skip_serialseq_yes">[% t('Skip issue number') %]</label>
86
                                    </p>
87
                                    </p>
87
                                    <p>
88
                                    <p>
88
                                      <input type="radio" id="skip_serialseq_no" name="skip_serialseq" value="0" checked="checked" />
89
                                      <input type="radio" id="skip_serialseq_no" name="skip_serialseq" value="0" checked="checked" />
89
                                      <label for="skip_serialseq_no">Keep issue number</label>
90
                                      <label for="skip_serialseq_no">[% t('Keep issue number') %]</label>
90
                                    </p>
91
                                    </p>
91
                                  [% END %]
92
                                  [% END %]
92
                                </li>
93
                                </li>
93
                                <li>
94
                                <li>
94
                                    <label for="manualhistory">Manual history:</label>
95
                                    <label for="manualhistory">[% t('Manual history:') %]</label>
95
                                    [% IF (manualhistory) %]
96
                                    [% IF (manualhistory) %]
96
                                        <input type="checkbox" id="manualhistory" name="manualhist" checked="checked" />
97
                                        <input type="checkbox" id="manualhistory" name="manualhist" checked="checked" />
97
                                    [% ELSE %]
98
                                    [% ELSE %]
Lines 99-133 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
99
                                    [% END %]
100
                                    [% END %]
100
                                </li>
101
                                </li>
101
                                <li>
102
                                <li>
102
                                    <label for="callnumber">Call number:</label>
103
                                    <label for="callnumber">[% t('Call number:') %]</label>
103
                                    <input type="text" name="callnumber" id="callnumber" value="[% callnumber %]" size="20" />
104
                                    <input type="text" name="callnumber" id="callnumber" value="[% callnumber %]" size="20" />
104
                                </li>
105
                                </li>
105
                                <li>
106
                                <li>
106
                                    <label for="branchcode">Library:</label>
107
                                    <label for="branchcode">[% t('Library:') %]</label>
107
                                    <select name="branchcode" id="branchcode" style="width: 20em;">
108
                                    <select name="branchcode" id="branchcode" style="width: 20em;">
108
                                        [% UNLESS ( Independentbranches ) %]
109
                                        [% UNLESS ( Independentbranches ) %]
109
                                            <option value="">None</option>
110
                                            <option value="">[% t('None') %]</option>
110
                                        [% END %]
111
                                        [% END %]
111
                                        [% IF CAN_user_serials_superserials %]
112
                                        [% IF CAN_user_serials_superserials %]
112
                                            [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1 ) %]
113
                                            [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1 ) %]
113
                                        [% ELSE %]
114
                                        [% ELSE %]
114
                                            [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
115
                                            [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
115
                                        [% END %]
116
                                        [% END %]
116
                                    </select> (select a library)
117
                                    </select> [% t('(select a library)') %]
117
                                </li>
118
                                </li>
118
                                <li>
119
                                <li>
119
                                    <label for="notes">Public note:</label>
120
                                    <label for="notes">[% t('Public note:') %]</label>
120
                                    <textarea name="notes" id="notes" cols="30" rows="2">[% notes %]</textarea>
121
                                    <textarea name="notes" id="notes" cols="30" rows="2">[% notes %]</textarea>
121
                                </li>
122
                                </li>
122
                                <li>
123
                                <li>
123
                                    <label for="internalnotes">Nonpublic note:</label>
124
                                    <label for="internalnotes">[% t('Nonpublic note:') %]</label>
124
                                    <textarea name="internalnotes" id="internalnotes" cols="30" rows="2">[% internalnotes %]</textarea>
125
                                    <textarea name="internalnotes" id="internalnotes" cols="30" rows="2">[% internalnotes %]</textarea>
125
                                </li>
126
                                </li>
126
                                <li>
127
                                <li>
127
                                    [% IF ( letterloop ) %]
128
                                    [% IF ( letterloop ) %]
128
                                        <label for="letter">Patron notification: </label>
129
                                        <label for="letter">[% t('Patron notification:') %] </label>
129
                                        <select name="letter" id="letter">
130
                                        <select name="letter" id="letter">
130
                                            <option value="">None</option>
131
                                            <option value="">[% t('None') %]</option>
131
                                            [% FOREACH letterloo IN letterloop %]
132
                                            [% FOREACH letterloo IN letterloop %]
132
                                                [% IF ( letterloo.selected ) %]
133
                                                [% IF ( letterloo.selected ) %]
133
                                                    <option value="[% letterloo.value %]" selected="selected">[% letterloo.lettername %]</option>
134
                                                    <option value="[% letterloo.value %]" selected="selected">[% letterloo.lettername %]</option>
Lines 136-151 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
136
                                                [% END %]
137
                                                [% END %]
137
                                            [% END %]
138
                                            [% END %]
138
                                        </select>
139
                                        </select>
139
                                        <div class="hint">Selecting a notice will allow patrons to subscribe to notifications when a new issue is received.</div>
140
                                        <div class="hint">[% t('Selecting a notice will allow patrons to subscribe to notifications when a new issue is received.') %]</div>
140
                                    [% ELSE %]
141
                                    [% ELSE %]
141
                                        <span class="label">Patron notification: </span>
142
                                        <span class="label">[% t('Patron notification:') %] </span>
142
                                        <div class="hint">To notify patrons of new serial issues, you must <a href="/cgi-bin/koha/tools/letter.pl">define a notice</a>.</div>
143
                                        <div class="hint">[% t('To notify patrons of new serial issues, you must') %] <a href="/cgi-bin/koha/tools/letter.pl">[% t('define a notice') %]</a>.</div>
143
                                    [% END %]
144
                                    [% END %]
144
                                </li>
145
                                </li>
145
                                <li>
146
                                <li>
146
                                    <label for="location">Location:</label>
147
                                    <label for="location">[% t('Location:') %]</label>
147
                                    <select name="location" id="location">
148
                                    <select name="location" id="location">
148
                                        <option value="">None</option>
149
                                        <option value="">[% t('None') %]</option>
149
                                        [% FOREACH locations_loo IN locations_loop %]
150
                                        [% FOREACH locations_loo IN locations_loop %]
150
                                            [% IF locations_loo.authorised_value == location %]
151
                                            [% IF locations_loo.authorised_value == location %]
151
                                                <option value="[% locations_loo.authorised_value %]" selected="selected">[% locations_loo.lib %]</option>
152
                                                <option value="[% locations_loo.authorised_value %]" selected="selected">[% locations_loo.lib %]</option>
Lines 156-162 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
156
                                    </select>
157
                                    </select>
157
                                </li>
158
                                </li>
158
                                <li>
159
                                <li>
159
                                    <label for="itemtype">Item type:</label>
160
                                    <label for="itemtype">[% t('Item type:') %]</label>
160
                                    <select name="itemtype" id="itemtype">
161
                                    <select name="itemtype" id="itemtype">
161
                                        <option value=""></option>
162
                                        <option value=""></option>
162
                                        [% FOREACH type IN typeloop %]
163
                                        [% FOREACH type IN typeloop %]
Lines 170-176 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
170
                                </li>
171
                                </li>
171
                                [%IF makePreviousSerialAvailable %]
172
                                [%IF makePreviousSerialAvailable %]
172
                                <li>
173
                                <li>
173
                                    <label for="previousitemtype">item type for older issues:</label>
174
                                    <label for="previousitemtype">[% t('item type for older issues:') %]</label>
174
                                    <select name="previousitemtype" id="previousitemtype">
175
                                    <select name="previousitemtype" id="previousitemtype">
175
                                            <option value=""></option>
176
                                            <option value=""></option>
176
                                        [% FOREACH previous IN previoustypeloop %]
177
                                        [% FOREACH previous IN previoustypeloop %]
Lines 184-204 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
184
                                </li>
185
                                </li>
185
                                [% END %]
186
                                [% END %]
186
                                    <li>
187
                                    <li>
187
                                    <label for="graceperiod">Grace period:</label>
188
                                    <label for="graceperiod">[% t('Grace period:') %]</label>
188
                                    <input type="text" name="graceperiod" id="graceperiod" value="[% graceperiod %]" size="5"/> day(s)
189
                                    <input type="text" name="graceperiod" id="graceperiod" value="[% graceperiod %]" size="5" /> [% t('day(s)') %]
189
                                </li>
190
                                </li>
190
                                <li>
191
                                <li>
191
                                     <label class="widelabel" for="staffdisplaycount">Number of issues to display to staff: </label>
192
                                     <label class="widelabel" for="staffdisplaycount">[% t('Number of issues to display to staff:') %] </label>
192
                                     <input type="text" name="staffdisplaycount" id="staffdisplaycount" value="[% staffdisplaycount %]" size="4"/>
193
                                     <input type="text" name="staffdisplaycount" id="staffdisplaycount" value="[% staffdisplaycount %]" size="4" />
193
                                 </li>
194
                                 </li>
194
                                 <li>
195
                                 <li>
195
                                    <label class="widelabel" for="opacdisplaycount">Number of issues to display to the public: </label>
196
                                    <label class="widelabel" for="opacdisplaycount">[% t('Number of issues to display to the public:') %] </label>
196
                                    <input type="text" name="opacdisplaycount" id="opacdisplaycount" value="[% opacdisplaycount %]" size="4"/>
197
                                    <input type="text" name="opacdisplaycount" id="opacdisplaycount" value="[% opacdisplaycount %]" size="4" />
197
                                </li>
198
                                </li>
198
                            </ol>
199
                            </ol>
199
                        </fieldset>
200
                        </fieldset>
200
                        <fieldset class="action">
201
                        <fieldset class="action">
201
                            <input type="button" value="Next &gt;&gt;" id="subscription_add_next" style="float:right;" />
202
                            <input type="button" value="Next >>" id="subscription_add_next" style="float:right;" />
202
                        </fieldset>
203
                        </fieldset>
203
                    </div>
204
                    </div>
204
                </div>
205
                </div>
Lines 207-233 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
207
                    <div class="col-md-6">
208
                    <div class="col-md-6">
208
                        <div id="subscription_form_planning">
209
                        <div id="subscription_form_planning">
209
                            <fieldset class="rows">
210
                            <fieldset class="rows">
210
                                <legend>Serials planning</legend>
211
                                <legend>[% t('Serials planning') %]</legend>
211
                                <ol>
212
                                <ol>
212
                                    <li>
213
                                    <li>
213
                                        <label for="firstacquidate" class="required">First issue publication date:</label>
214
                                        <label for="firstacquidate" class="required">[% t('First issue publication date:') %]</label>
214
                                        [% UNLESS (more_than_one_serial) %]
215
                                        [% UNLESS (more_than_one_serial) %]
215
                                          <input type="text" size="10" id="acqui_date" name="firstacquidate" value="[% firstacquidate | $KohaDates %]" class="datepicker required" required="required" />
216
                                          <input type="text" size="10" id="acqui_date" name="firstacquidate" value="[% firstacquidate | $KohaDates %]" class="datepicker required" required="required" />
216
                                        [% ELSE %]
217
                                        [% ELSE %]
217
                                          [% firstacquidate | $KohaDates %]
218
                                          [% firstacquidate | $KohaDates %]
218
                                          <input type="hidden" size="10" id="acqui_date" name="firstacquidate" value="[% firstacquidate | $KohaDates %]"/>
219
                                          <input type="hidden" size="10" id="acqui_date" name="firstacquidate" value="[% firstacquidate | $KohaDates %]" />
219
                                        [% END %]
220
                                        [% END %]
220
                                    </li>
221
                                    </li>
221
                                    [% IF (more_than_one_serial) %]
222
                                    [% IF (more_than_one_serial) %]
222
                                      <li>
223
                                      <li>
223
                                        <label for="nextacquidate">Next issue publication date:</label>
224
                                        <label for="nextacquidate">[% t('Next issue publication date:') %]</label>
224
                                        <input type="text" size="10" id="nextacquidate" name="nextacquidate" value="[% nextacquidate | $KohaDates %]" class="datepicker" />
225
                                        <input type="text" size="10" id="nextacquidate" name="nextacquidate" value="[% nextacquidate | $KohaDates %]" class="datepicker" />
225
                                      </li>
226
                                      </li>
226
                                    [% END %]
227
                                    [% END %]
227
                                    <li>
228
                                    <li>
228
                                        <label for="frequency" class="required">Frequency:</label>
229
                                        <label for="frequency" class="required">[% t('Frequency:') %]</label>
229
                                        <select name="frequency" size="1" id="frequency" class="required" required="required">
230
                                        <select name="frequency" size="1" id="frequency" class="required" required="required">
230
                                            <option value="">-- please choose --</option>
231
                                            <option value="">[% t('-- please choose --') %]</option>
231
                                            [% FOREACH frequency IN frequencies %]
232
                                            [% FOREACH frequency IN frequencies %]
232
                                                [% IF (frequency.selected) %]
233
                                                [% IF (frequency.selected) %]
233
                                                    <option value="[% frequency.id %]" selected="selected">
234
                                                    <option value="[% frequency.id %]" selected="selected">
Lines 240-246 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
240
                                        </select>
241
                                        </select>
241
                                    </li>
242
                                    </li>
242
                                    <li>
243
                                    <li>
243
                                        <label for="subtype">Subscription length:</label>
244
                                        <label for="subtype">[% t('Subscription length:') %]</label>
244
                                        <select name="subtype" id="subtype">
245
                                        <select name="subtype" id="subtype">
245
                                            [% FOREACH st IN subtypes %]
246
                                            [% FOREACH st IN subtypes %]
246
                                                [% SWITCH st %]
247
                                                [% SWITCH st %]
Lines 250-290 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
250
                                                        [% ELSE %]
251
                                                        [% ELSE %]
251
                                                            <option value="issues">
252
                                                            <option value="issues">
252
                                                        [% END %]
253
                                                        [% END %]
253
                                                        issues
254
                                                        [% t('issues') %]
254
                                                    [% CASE 'weeklength' %]
255
                                                    [% CASE 'weeklength' %]
255
                                                        [% IF st == subtype %]
256
                                                        [% IF st == subtype %]
256
                                                            <option value="weeks" selected="selected">
257
                                                            <option value="weeks" selected="selected">
257
                                                        [% ELSE %]
258
                                                        [% ELSE %]
258
                                                            <option value="weeks">
259
                                                            <option value="weeks">
259
                                                        [% END %]
260
                                                        [% END %]
260
                                                        weeks
261
                                                        [% t('weeks') %]
261
                                                    [% CASE 'monthlength' %]
262
                                                    [% CASE 'monthlength' %]
262
                                                        [% IF st == subtype %]
263
                                                        [% IF st == subtype %]
263
                                                            <option value="months" selected="selected">
264
                                                            <option value="months" selected="selected">
264
                                                        [% ELSE %]
265
                                                        [% ELSE %]
265
                                                            <option value="months">
266
                                                            <option value="months">
266
                                                        [% END %]
267
                                                        [% END %]
267
                                                        months
268
                                                        [% t('months') %]
268
                                                    [% CASE %][% st %]
269
                                                    [% CASE %][% st %]
269
                                                [% END %]
270
                                                [% END %]
270
                                                </option>
271
                                                </option>
271
                                            [% END %]
272
                                            [% END %]
272
                                        </select>
273
                                        </select>
273
                                        <input type="text" name="sublength" id="sublength" value="[% sublength %]" size="3" /> (enter amount in numerals)
274
                                        <input type="text" name="sublength" id="sublength" value="[% sublength %]" size="3" /> [% t('(enter amount in numerals)') %]
274
                                        <input type="hidden" name="issuelengthcount">
275
                                        <input type="hidden" name="issuelengthcount">
275
                                    </li>
276
                                    </li>
276
                                    <li>
277
                                    <li>
277
                                        <label for="startdate" class="required"> Subscription start date:</label>
278
                                        <label for="startdate" class="required"> [% t('Subscription start date:') %]</label>
278
                                        <input type="text" size="10" id="from" name="startdate" value="[% startdate | $KohaDates %]" class="datepickerfrom required" required="required" />
279
                                        <input type="text" size="10" id="from" name="startdate" value="[% startdate | $KohaDates %]" class="datepickerfrom required" required="required" />
279
                                    </li>
280
                                    </li>
280
                                    <li>
281
                                    <li>
281
                                        <label for="enddate">Subscription end date:</label>
282
                                        <label for="enddate">[% t('Subscription end date:') %]</label>
282
                                        <input type="text" size="10" id="to" name="enddate" value="[% enddate | $KohaDates %]" class="datepickerto" />
283
                                        <input type="text" size="10" id="to" name="enddate" value="[% enddate | $KohaDates %]" class="datepickerto" />
283
                                    </li>
284
                                    </li>
284
                                    <li>
285
                                    <li>
285
                                        <label for="numberpattern" class="required">Numbering pattern:</label>
286
                                        <label for="numberpattern" class="required">[% t('Numbering pattern:') %]</label>
286
                                        <select name="numbering_pattern" size="1" id="numberpattern" class="required" required="required">
287
                                        <select name="numbering_pattern" size="1" id="numberpattern" class="required" required="required">
287
                                            <option value="">-- please choose --</option>
288
                                            <option value="">[% t('-- please choose --') %]</option>
288
                                            [% FOREACH numberpattern IN numberpatterns %]
289
                                            [% FOREACH numberpattern IN numberpatterns %]
289
                                                [% IF (numberpattern.selected) %]
290
                                                [% IF (numberpattern.selected) %]
290
                                                    <option value="[% numberpattern.id %]" selected="selected">
291
                                                    <option value="[% numberpattern.id %]" selected="selected">
Lines 297-303 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
297
                                        </select>
298
                                        </select>
298
                                    </li>
299
                                    </li>
299
                                    <li>
300
                                    <li>
300
                                        <label for="locale">Locale:</label>
301
                                        <label for="locale">[% t('Locale:') %]</label>
301
                                        <select id="locale" name="locale">
302
                                        <select id="locale" name="locale">
302
                                            <option value=""></option>
303
                                            <option value=""></option>
303
                                            [% FOREACH l IN locales %]
304
                                            [% FOREACH l IN locales %]
Lines 308-332 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
308
                                                [% END %]
309
                                                [% END %]
309
                                            [% END %]
310
                                            [% END %]
310
                                        </select>
311
                                        </select>
311
                                        <span class="hint">If empty, English is used</span>
312
                                        <span class="hint">[% t('If empty, English is used') %]</span>
312
                                    </li>
313
                                    </li>
313
                                    <li id="more_options">
314
                                    <li id="more_options">
314
                                        <table id="moreoptionst">
315
                                        <table id="moreoptionst">
315
                                            <thead>
316
                                            <thead>
316
                                                <tr>
317
                                                <tr>
317
                                                    <th>&nbsp;</th>
318
                                                    <th> </th>
318
                                                    <th id="headerX">&nbsp;</th>
319
                                                    <th id="headerX"> </th>
319
                                                    <th id="headerY">&nbsp;</th>
320
                                                    <th id="headerY"> </th>
320
                                                    <th id="headerZ">&nbsp;</th>
321
                                                    <th id="headerZ"> </th>
321
                                                </tr>
322
                                                </tr>
322
                                            </thead>
323
                                            </thead>
323
                                            <tbody>
324
                                            <tbody>
324
                                                <tr>
325
                                                <tr>
325
                                                    <td>
326
                                                    <td>
326
                                                      [% IF (more_than_one_serial) %]
327
                                                      [% IF (more_than_one_serial) %]
327
                                                        Last value
328
                                                        [% t('Last value') %]
328
                                                      [% ELSE %]
329
                                                      [% ELSE %]
329
                                                        Begins with
330
                                                        [% t('Begins with') %]
330
                                                      [% END %]
331
                                                      [% END %]
331
                                                    </td>
332
                                                    </td>
332
                                                    <td id="beginsX"><input type="text" id="lastvaluetemp1" name="lastvaluetemp1" value="[% lastvalue1 %]" /></td>
333
                                                    <td id="beginsX"><input type="text" id="lastvaluetemp1" name="lastvaluetemp1" value="[% lastvalue1 %]" /></td>
Lines 334-340 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
334
                                                    <td id="beginsZ"><input type="text" id="lastvaluetemp3" name="lastvaluetemp3" value="[% lastvalue3 %]" /></td>
335
                                                    <td id="beginsZ"><input type="text" id="lastvaluetemp3" name="lastvaluetemp3" value="[% lastvalue3 %]" /></td>
335
                                                </tr>
336
                                                </tr>
336
                                                <tr>
337
                                                <tr>
337
                                                    <td>Inner counter</td>
338
                                                    <td>[% t('Inner counter') %]</td>
338
                                                    <td id="innerX"><input type="text" id="innerlooptemp1" name="innerlooptemp1" value="[% innerloop1 %]" /></td>
339
                                                    <td id="innerX"><input type="text" id="innerlooptemp1" name="innerlooptemp1" value="[% innerloop1 %]" /></td>
339
                                                    <td id="innerY"><input type="text" id="innerlooptemp2" name="innerlooptemp2" value="[% innerloop2 %]" /></td>
340
                                                    <td id="innerY"><input type="text" id="innerlooptemp2" name="innerlooptemp2" value="[% innerloop2 %]" /></td>
340
                                                    <td id="innerZ"><input type="text" id="innerlooptemp3" name="innerlooptemp3" value="[% innerloop3 %]" /></td>
341
                                                    <td id="innerZ"><input type="text" id="innerlooptemp3" name="innerlooptemp3" value="[% innerloop3 %]" /></td>
Lines 343-411 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
343
                                        </table>
344
                                        </table>
344
                                    </li>
345
                                    </li>
345
                                    <li>
346
                                    <li>
346
                                        <a href="#" class="toggle_advanced_pattern show_advanced_pattern"><i class="fa fa-plus-square"></i> Show advanced pattern</a>
347
                                        <a href="#" class="toggle_advanced_pattern show_advanced_pattern"><i class="fa fa-plus-square"></i> [% t('Show advanced pattern') %]</a>
347
                                        <a href="#" style="display:none;" class="toggle_advanced_pattern hide_advanced_pattern"><i class="fa fa-minus-square"></i> Hide advanced pattern</a>
348
                                        <a href="#" style="display:none;" class="toggle_advanced_pattern hide_advanced_pattern"><i class="fa fa-minus-square"></i> [% t('Hide advanced pattern') %]</a>
348
                                    </li>
349
                                    </li>
349
                                    <div id="advancedpredictionpattern" style="display:none">
350
                                    <div id="advancedpredictionpattern" style="display:none">
350
                                      <li>
351
                                      <li>
351
                                        <label for="patternname" class="required">Pattern name:</label>
352
                                        <label for="patternname" class="required">[% t('Pattern name:') %]</label>
352
                                        <input id="patternname" name="patternname" type="text" readonly="readonly" class="required" required="required" />
353
                                        <input id="patternname" name="patternname" type="text" readonly="readonly" class="required" required="required" />
353
                                      </li>
354
                                      </li>
354
                                      <li>
355
                                      <li>
355
                                        <label for="numberingmethod">Numbering formula:</label>
356
                                        <label for="numberingmethod">[% t('Numbering formula:') %]</label>
356
                                        <input readonly="readonly" type="text" name="numberingmethod" id="numberingmethod" size="50" value="[% numberingmethod %]" />
357
                                        <input readonly="readonly" type="text" name="numberingmethod" id="numberingmethod" size="50" value="[% numberingmethod %]" />
357
                                      </li>
358
                                      </li>
358
                                        <table id="advancedpredictionpatternt">
359
                                        <table id="advancedpredictionpatternt">
359
                                            <thead>
360
                                            <thead>
360
                                                <tr>
361
                                                <tr>
361
                                                    <th colspan="4">Advanced prediction pattern</th>
362
                                                    <th colspan="4">[% t('Advanced prediction pattern') %]</th>
362
                                                </tr>
363
                                                </tr>
363
                                                <tr>
364
                                                <tr>
364
                                                    <th>&nbsp;</th>
365
                                                    <th> </th>
365
                                                    <th>X</th>
366
                                                    <th>[% t('X') %]</th>
366
                                                    <th>Y</th>
367
                                                    <th>[% t('Y') %]</th>
367
                                                    <th>Z</th>
368
                                                    <th>[% t('Z') %]</th>
368
                                                </tr>
369
                                                </tr>
369
                                            </thead>
370
                                            </thead>
370
                                            <tbody>
371
                                            <tbody>
371
                                                <tr>
372
                                                <tr>
372
                                                    <td>Label</td>
373
                                                    <td>[% t('Label') %]</td>
373
                                                    <td><input type="text" readonly="readonly" id="label1" name="label1" /></td>
374
                                                    <td><input type="text" readonly="readonly" id="label1" name="label1" /></td>
374
                                                    <td><input type="text" readonly="readonly" id="label2" name="label2" /></td>
375
                                                    <td><input type="text" readonly="readonly" id="label2" name="label2" /></td>
375
                                                    <td><input type="text" readonly="readonly" id="label3" name="label3" /></td>
376
                                                    <td><input type="text" readonly="readonly" id="label3" name="label3" /></td>
376
                                                </tr>
377
                                                </tr>
377
                                                <tr>
378
                                                <tr>
378
                                                    <td>Begins with</td>
379
                                                    <td>[% t('Begins with') %]</td>
379
                                                    <td><input type="text" readonly="readonly" id="lastvalue1" name="lastvalue1" /></td>
380
                                                    <td><input type="text" readonly="readonly" id="lastvalue1" name="lastvalue1" /></td>
380
                                                    <td><input type="text" readonly="readonly" id="lastvalue2" name="lastvalue2" /></td>
381
                                                    <td><input type="text" readonly="readonly" id="lastvalue2" name="lastvalue2" /></td>
381
                                                    <td><input type="text" readonly="readonly" id="lastvalue3" name="lastvalue3" /></td>
382
                                                    <td><input type="text" readonly="readonly" id="lastvalue3" name="lastvalue3" /></td>
382
                                                </tr>
383
                                                </tr>
383
                                                <tr>
384
                                                <tr>
384
                                                    <td>Add</td>
385
                                                    <td>[% t('Add') %]</td>
385
                                                    <td><input type="text" readonly="readonly" id="add1" name="add1" /></td>
386
                                                    <td><input type="text" readonly="readonly" id="add1" name="add1" /></td>
386
                                                    <td><input type="text" readonly="readonly" id="add2" name="add2" /></td>
387
                                                    <td><input type="text" readonly="readonly" id="add2" name="add2" /></td>
387
                                                    <td><input type="text" readonly="readonly" id="add3" name="add3" /></td>
388
                                                    <td><input type="text" readonly="readonly" id="add3" name="add3" /></td>
388
                                                </tr>
389
                                                </tr>
389
                                                <tr>
390
                                                <tr>
390
                                                    <td>Every</td>
391
                                                    <td>[% t('Every') %]</td>
391
                                                    <td><input type="text" readonly="readonly" id="every1" name="every1" /></td>
392
                                                    <td><input type="text" readonly="readonly" id="every1" name="every1" /></td>
392
                                                    <td><input type="text" readonly="readonly" id="every2" name="every2" /></td>
393
                                                    <td><input type="text" readonly="readonly" id="every2" name="every2" /></td>
393
                                                    <td><input type="text" readonly="readonly" id="every3" name="every3" /></td>
394
                                                    <td><input type="text" readonly="readonly" id="every3" name="every3" /></td>
394
                                                </tr>
395
                                                </tr>
395
                                                <tr>
396
                                                <tr>
396
                                                    <td>Set back to</td>
397
                                                    <td>[% t('Set back to') %]</td>
397
                                                    <td><input type="text" readonly="readonly" id="setto1" name="setto1" /></td>
398
                                                    <td><input type="text" readonly="readonly" id="setto1" name="setto1" /></td>
398
                                                    <td><input type="text" readonly="readonly" id="setto2" name="setto2" /></td>
399
                                                    <td><input type="text" readonly="readonly" id="setto2" name="setto2" /></td>
399
                                                    <td><input type="text" readonly="readonly" id="setto3" name="setto3" /></td>
400
                                                    <td><input type="text" readonly="readonly" id="setto3" name="setto3" /></td>
400
                                                </tr>
401
                                                </tr>
401
                                                <tr>
402
                                                <tr>
402
                                                    <td>When more than</td>
403
                                                    <td>[% t('When more than') %]</td>
403
                                                    <td><input type="text" readonly="readonly" id="whenmorethan1" name="whenmorethan1" /></td>
404
                                                    <td><input type="text" readonly="readonly" id="whenmorethan1" name="whenmorethan1" /></td>
404
                                                    <td><input type="text" readonly="readonly" id="whenmorethan2" name="whenmorethan2" /></td>
405
                                                    <td><input type="text" readonly="readonly" id="whenmorethan2" name="whenmorethan2" /></td>
405
                                                    <td><input type="text" readonly="readonly" id="whenmorethan3" name="whenmorethan3" /></td>
406
                                                    <td><input type="text" readonly="readonly" id="whenmorethan3" name="whenmorethan3" /></td>
406
                                                </tr>
407
                                                </tr>
407
                                                <tr>
408
                                                <tr>
408
                                                    <td>Inner counter</td>
409
                                                    <td>[% t('Inner counter') %]</td>
409
                                                    <td><input type="text" readonly="readonly" id="innerloop1" name="innerloop1" /></td>
410
                                                    <td><input type="text" readonly="readonly" id="innerloop1" name="innerloop1" /></td>
410
                                                    <td><input type="text" readonly="readonly" id="innerloop2" name="innerloop2" /></td>
411
                                                    <td><input type="text" readonly="readonly" id="innerloop2" name="innerloop2" /></td>
411
                                                    <td><input type="text" readonly="readonly" id="innerloop3" name="innerloop3" /></td>
412
                                                    <td><input type="text" readonly="readonly" id="innerloop3" name="innerloop3" /></td>
Lines 414-428 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
414
                                                    [% BLOCK numbering_select %]
415
                                                    [% BLOCK numbering_select %]
415
                                                        <select disabled="disabled" id="[% name %]" name="[% name %]">
416
                                                        <select disabled="disabled" id="[% name %]" name="[% name %]">
416
                                                            <option value=""></option>
417
                                                            <option value=""></option>
417
                                                            <option value="dayname">Name of day</option>
418
                                                            <option value="dayname">[% t('Name of day') %]</option>
418
                                                            <option value="dayabrv">Name of day (abbreviated)</option>
419
                                                            <option value="dayabrv">[% t('Name of day (abbreviated)') %]</option>
419
                                                            <option value="monthname">Name of month</option>
420
                                                            <option value="monthname">[% t('Name of month') %]</option>
420
                                                            <option value="monthabrv">Name of month (abbreviated)</option>
421
                                                            <option value="monthabrv">[% t('Name of month (abbreviated)') %]</option>
421
                                                            <option value="season">Name of season</option>
422
                                                            <option value="season">[% t('Name of season') %]</option>
422
                                                            <option value="seasonabrv">Name of season (abbreviated)</option>
423
                                                            <option value="seasonabrv">[% t('Name of season (abbreviated)') %]</option>
423
                                                        </select>
424
                                                        </select>
424
                                                    [% END %]
425
                                                    [% END %]
425
                                                    <td>Formatting</td>
426
                                                    <td>[% t('Formatting') %]</td>
426
                                                    <td>[% PROCESS numbering_select name="numbering1" %]</td>
427
                                                    <td>[% PROCESS numbering_select name="numbering1" %]</td>
427
                                                    <td>[% PROCESS numbering_select name="numbering2" %]</td>
428
                                                    <td>[% PROCESS numbering_select name="numbering2" %]</td>
428
                                                    <td>[% PROCESS numbering_select name="numbering3" %]</td>
429
                                                    <td>[% PROCESS numbering_select name="numbering3" %]</td>
Lines 439-445 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
439
                            [% IF additional_fields_for_subscription %]
440
                            [% IF additional_fields_for_subscription %]
440
                              <div id="subscription_additional_fields">
441
                              <div id="subscription_additional_fields">
441
                                <fieldset class="rows">
442
                                <fieldset class="rows">
442
                                  <legend>Additional fields</legend>
443
                                  <legend>[% t('Additional fields') %]</legend>
443
                                  <ol>
444
                                  <ol>
444
                                    [% FOR field IN additional_fields_for_subscription %]
445
                                    [% FOR field IN additional_fields_for_subscription %]
445
                                      <li>
446
                                      <li>
Lines 453-463 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
453
                                                <option value="[% av.authorised_value %]">[% av.lib %]</option>
454
                                                <option value="[% av.authorised_value %]">[% av.lib %]</option>
454
                                              [% END %]
455
                                              [% END %]
455
                                            [% END %]
456
                                            [% END %]
456
                                          </select> (Authorised values for [% field.authorised_value_category %])
457
                                          </select> [% t('(Authorised values for') %] [% field.authorised_value_category %])
457
                                        [% ELSE %]
458
                                        [% ELSE %]
458
                                          [% IF field.marcfield %]
459
                                          [% IF field.marcfield %]
459
                                            <input type="text" value="[% additional_fields.${field.name} %]" id="additional_field_[% field.id %]" name="additional_field_[% field.id %]" readonly="readonly" />
460
                                            <input type="text" value="[% additional_fields.${field.name} %]" id="additional_field_[% field.id %]" name="additional_field_[% field.id %]" readonly="readonly" />
460
                                            This value will be filled with the [% field.marcfield %] subfield of the selected biblio.
461
                                            [% t('This value will be filled with the') %] [% field.marcfield %] [% t('subfield of the selected biblio.') %]
461
                                          [% ELSE %]
462
                                          [% ELSE %]
462
                                            <input type="text" value="[% additional_fields.${field.name} %]" id="additional_field_[% field.id %]" name="additional_field_[% field.id %]" />
463
                                            <input type="text" value="[% additional_fields.${field.name} %]" id="additional_field_[% field.id %]" name="additional_field_[% field.id %]" />
463
                                          [% END %]
464
                                          [% END %]
Lines 470-476 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */ Link Here
470
                            [% END %]
471
                            [% END %]
471
472
472
                            <fieldset class="action">
473
                            <fieldset class="action">
473
                                <input type="button" id="subscription_add_previous" value="&lt;&lt; Previous" style="float:left;"/>
474
                                <input type="button" id="subscription_add_previous" value="<< Previous" style="float:left;" />
474
                                <input id="testpatternbutton" type="button" value="Test prediction pattern" />
475
                                <input id="testpatternbutton" type="button" value="Test prediction pattern" />
475
                                <input type="submit" value="Save subscription" style="float:right;" accesskey="w" />
476
                                <input type="submit" value="Save subscription" style="float:right;" accesskey="w" />
476
                            </fieldset>
477
                            </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt (-45 / +46 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE AuthorisedValues %]
2
[% USE AuthorisedValues %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% USE ItemTypes %]
4
[% USE ItemTypes %]
4
[% USE KohaDates %]
5
[% USE KohaDates %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
    <title>Koha &rsaquo; Serials &rsaquo; Batch edit</title>
7
    <title>[% t('Koha › Serials › Batch edit') %]</title>
7
    [% INCLUDE 'doc-head-close.inc' %]
8
    [% INCLUDE 'doc-head-close.inc' %]
8
    [% INCLUDE 'calendar.inc' %]
9
    [% INCLUDE 'calendar.inc' %]
9
</head>
10
</head>
Lines 12-46 Link Here
12
    [% INCLUDE 'serials-search.inc' %]
13
    [% INCLUDE 'serials-search.inc' %]
13
14
14
    <div id="breadcrumbs">
15
    <div id="breadcrumbs">
15
        <a href="/cgi-bin/koha/mainpage.pl">Home</a>
16
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
16
        &rsaquo;
17
17
        <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
18
        <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a>
18
        &rsaquo;
19
19
        Batch edit
20
        [% t('Batch edit') %]
20
    </div>
21
    </div>
21
22
22
    <div id="doc3" class="yui-t2">
23
    <div id="doc3" class="yui-t2">
23
        <div id="bd">
24
        <div id="bd">
24
            <div id="yui-main">
25
            <div id="yui-main">
25
                <div class="yui-b">
26
                <div class="yui-b">
26
                    <h1>Subscription batch edit</h1>
27
                    <h1>[% t('Subscription batch edit') %]</h1>
27
28
28
                    <div>
29
                    <div>
29
                        <p>You are about to edit the following subscriptions:</p>
30
                        <p>[% t('You are about to edit the following subscriptions:') %]</p>
30
                        <table>
31
                        <table>
31
                            <thead>
32
                            <thead>
32
                                <tr>
33
                                <tr>
33
                                    <th>ISSN</th>
34
                                    <th>[% t('ISSN') %]</th>
34
                                    <th>Title</th>
35
                                    <th>[% t('Title') %]</th>
35
                                    <th>Vendor</th>
36
                                    <th>[% t('Vendor') %]</th>
36
                                    <th>Location</th>
37
                                    <th>[% t('Location') %]</th>
37
                                    <th>Library</th>
38
                                    <th>[% t('Library') %]</th>
38
                                    <th>Item type</th>
39
                                    <th>[% t('Item type') %]</th>
39
                                    <th>Public notes</th>
40
                                    <th>[% t('Public notes') %]</th>
40
                                    <th>Nonpublic notes</th>
41
                                    <th>[% t('Nonpublic notes') %]</th>
41
                                    <th>Call number</th>
42
                                    <th>[% t('Call number') %]</th>
42
                                    <th>Create item when receiving</th>
43
                                    <th>[% t('Create item when receiving') %]</th>
43
                                    <th>Expiration date</th>
44
                                    <th>[% t('Expiration date') %]</th>
44
                                </tr>
45
                                </tr>
45
                            </thead>
46
                            </thead>
46
                            <tbody>
47
                            <tbody>
Lines 57-65 Link Here
57
                                        <td>[% subscription.callnumber %]</td>
58
                                        <td>[% subscription.callnumber %]</td>
58
                                        <td>
59
                                        <td>
59
                                            [% IF subscription.serialsadditems %]
60
                                            [% IF subscription.serialsadditems %]
60
                                                <span>Yes</span>
61
                                                <span>[% t('Yes') %]</span>
61
                                            [% ELSE %]
62
                                            [% ELSE %]
62
                                                <span>No</span>
63
                                                <span>[% t('No') %]</span>
63
                                            [% END %]
64
                                            [% END %]
64
                                        </td>
65
                                        </td>
65
                                        <td>[% subscription.enddate | $KohaDates %]</td>
66
                                        <td>[% subscription.enddate | $KohaDates %]</td>
Lines 71-152 Link Here
71
72
72
                    <form method="post">
73
                    <form method="post">
73
                        [% FOREACH subscription IN subscriptions %]
74
                        [% FOREACH subscription IN subscriptions %]
74
                            <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid %]"/>
75
                            <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid %]" />
75
                        [% END %]
76
                        [% END %]
76
                        [% IF referrer %]
77
                        [% IF referrer %]
77
                            <input type="hidden" name="referrer" value="[% referrer %]"/>
78
                            <input type="hidden" name="referrer" value="[% referrer %]" />
78
                        [% END %]
79
                        [% END %]
79
                        <fieldset class="rows">
80
                        <fieldset class="rows">
80
                            <ol>
81
                            <ol>
81
                                <li>
82
                                <li>
82
                                    <label for="booksellerid">Vendor:  </label>
83
                                    <label for="booksellerid">[% t('Vendor:') %]  </label>
83
                                    <select id="booksellerid" name="booksellerid">
84
                                    <select id="booksellerid" name="booksellerid">
84
                                        <option value="">No change</option>
85
                                        <option value="">[% t('No change') %]</option>
85
                                        [% FOREACH bookseller IN booksellers %]
86
                                        [% FOREACH bookseller IN booksellers %]
86
                                            <option value="[% bookseller.id %]">[% bookseller.name %]</option>
87
                                            <option value="[% bookseller.id %]">[% bookseller.name %]</option>
87
                                        [% END %]
88
                                        [% END %]
88
                                    </select>
89
                                    </select>
89
                                </li>
90
                                </li>
90
                                <li>
91
                                <li>
91
                                    <label for="location">Location: </label>
92
                                    <label for="location">[% t('Location:') %] </label>
92
                                    <select id="location" name="location">
93
                                    <select id="location" name="location">
93
                                        <option value="">No change</option>
94
                                        <option value="">[% t('No change') %]</option>
94
                                        [% FOREACH av IN AuthorisedValues.Get('LOC') %]
95
                                        [% FOREACH av IN AuthorisedValues.Get('LOC') %]
95
                                            <option value="[% av.authorised_value | html %]">[% av.lib %]</option>
96
                                            <option value="[% av.authorised_value | html %]">[% av.lib %]</option>
96
                                        [% END %]
97
                                        [% END %]
97
                                    </select>
98
                                    </select>
98
                                </li>
99
                                </li>
99
                                <li>
100
                                <li>
100
                                    <label for="branchcode">Library: </label>
101
                                    <label for="branchcode">[% t('Library:') %] </label>
101
                                    <select id="branchcode" name="branchcode">
102
                                    <select id="branchcode" name="branchcode">
102
                                        <option value="">No change</option>
103
                                        <option value="">[% t('No change') %]</option>
103
                                        [% FOREACH branch IN Branches.all %]
104
                                        [% FOREACH branch IN Branches.all %]
104
                                            <option value="[% branch.branchcode | html %]">[% branch.branchname %]</option>
105
                                            <option value="[% branch.branchcode | html %]">[% branch.branchname %]</option>
105
                                        [% END %]
106
                                        [% END %]
106
                                    </select>
107
                                    </select>
107
                                </li>
108
                                </li>
108
                                <li>
109
                                <li>
109
                                    <label for="itemtype">Item type: </label>
110
                                    <label for="itemtype">[% t('Item type:') %] </label>
110
                                    <select id="itemtype" name="itemtype">
111
                                    <select id="itemtype" name="itemtype">
111
                                        <option value="">No change</option>
112
                                        <option value="">[% t('No change') %]</option>
112
                                        [% FOREACH itemtype IN ItemTypes.Get() %]
113
                                        [% FOREACH itemtype IN ItemTypes.Get() %]
113
                                            <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
114
                                            <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
114
                                        [% END %]
115
                                        [% END %]
115
                                    </select>
116
                                    </select>
116
                                </li>
117
                                </li>
117
                                <li>
118
                                <li>
118
                                    <label for="notes">Public note: </label>
119
                                    <label for="notes">[% t('Public note:') %] </label>
119
                                    <textarea id="notes" name="notes" placeholder="No change"></textarea>
120
                                    <textarea id="notes" name="notes" placeholder="[% t('No change') %]"></textarea>
120
                                </li>
121
                                </li>
121
                                <li>
122
                                <li>
122
                                    <label for="internalnotes">Nonpublic note: </label>
123
                                    <label for="internalnotes">[% t('Nonpublic note:') %] </label>
123
                                    <textarea id="internalnotes" name="internalnotes" placeholder="No change"></textarea>
124
                                    <textarea id="internalnotes" name="internalnotes" placeholder="[% t('No change') %]"></textarea>
124
                                </li>
125
                                </li>
125
                                <li>
126
                                <li>
126
                                    <label for="serialsadditems">Create item when receiving: </label>
127
                                    <label for="serialsadditems">[% t('Create item when receiving:') %] </label>
127
                                    <select id="serialsadditems" name="serialsadditems">
128
                                    <select id="serialsadditems" name="serialsadditems">
128
                                        <option value="">No change</option>
129
                                        <option value="">[% t('No change') %]</option>
129
                                        <option value="0">No</option>
130
                                        <option value="0">[% t('No') %]</option>
130
                                        <option value="1">Yes</option>
131
                                        <option value="1">[% t('Yes') %]</option>
131
                                    </select>
132
                                    </select>
132
133
133
                                </li>
134
                                </li>
134
                                <li>
135
                                <li>
135
                                    <label for="enddate">Expiration date: </label>
136
                                    <label for="enddate">[% t('Expiration date:') %] </label>
136
                                    <input type="text" class="datepicker" id="enddate" name="enddate" placeholder="No change"/>
137
                                    <input type="text" class="datepicker" id="enddate" name="enddate" placeholder="[% t('No change') %]" />
137
                                </li>
138
                                </li>
138
                                [% FOREACH field IN additional_fields %]
139
                                [% FOREACH field IN additional_fields %]
139
                                    <li>
140
                                    <li>
140
                                        <label for="field_[% field.id %]">[% field.name %]</label>
141
                                        <label for="field_[% field.id %]">[% field.name %]</label>
141
                                        [% IF field.authorised_value_category %]
142
                                        [% IF field.authorised_value_category %]
142
                                            <select id="field_[% field.id %]" name="field_[% field.id %]">
143
                                            <select id="field_[% field.id %]" name="field_[% field.id %]">
143
                                                <option value="">No change</option>
144
                                                <option value="">[% t('No change') %]</option>
144
                                                [% FOREACH av IN AuthorisedValues.Get(field.authorised_value_category) %]
145
                                                [% FOREACH av IN AuthorisedValues.Get(field.authorised_value_category) %]
145
                                                    <option value="[% av.authorised_value %]">[% av.lib %]</option>
146
                                                    <option value="[% av.authorised_value %]">[% av.lib %]</option>
146
                                                [% END %]
147
                                                [% END %]
147
                                            </select>
148
                                            </select>
148
                                        [% ELSE %]
149
                                        [% ELSE %]
149
                                            <input id="field_[% field.id %]" name="field_[% field.id %]" placeholder="No change"/>
150
                                            <input id="field_[% field.id %]" name="field_[% field.id %]" placeholder="[% t('No change') %]" />
150
                                        [% END %]
151
                                        [% END %]
151
                                    </li>
152
                                    </li>
152
                                [% END %]
153
                                [% END %]
Lines 154-161 Link Here
154
                        </fieldset>
155
                        </fieldset>
155
156
156
                        <fieldset class="action">
157
                        <fieldset class="action">
157
                            <button type="submit" name="batchedit" value="1">Save</button>
158
                            <button type="submit" name="batchedit" value="1">[% t('Save') %]</button>
158
                            <a class="cancel" href="[% referrer %]">Cancel</a>
159
                            <a class="cancel" href="[% referrer %]">[% t('Cancel') %]</a>
159
                        </fieldset>
160
                        </fieldset>
160
                    </form>
161
                    </form>
161
                </div>
162
                </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-bib-search.tt (-9 / +10 lines)
Lines 1-14 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Serials &rsaquo; Catalog search</title>
3
<title>[% t('Koha › Serials › Catalog search') %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
5
<body id="ser_subscription-bib-search" class="ser">
6
<body id="ser_subscription-bib-search" class="ser">
6
7
7
<div class="main container-fluid">
8
<div class="main container-fluid">
8
9
9
<h1>Catalog search</h1>
10
<h1>[% t('Catalog search') %]</h1>
10
[% IF ( no_query ) %]
11
[% IF ( no_query ) %]
11
    <div class="warning">You must enter a term to search on </div>
12
    <div class="warning">[% t('You must enter a term to search on') %] </div>
12
[% END %]
13
[% END %]
13
<form name="f" action="/cgi-bin/koha/serials/subscription-bib-search.pl" method="get">
14
<form name="f" action="/cgi-bin/koha/serials/subscription-bib-search.pl" method="get">
14
    <input type="hidden" name="op" value="do_search" />
15
    <input type="hidden" name="op" value="do_search" />
Lines 16-28 Link Here
16
    <fieldset class="brief">
17
    <fieldset class="brief">
17
    <ol>
18
    <ol>
18
        <li>
19
        <li>
19
            <label for="q">Keyword: </label>
20
            <label for="q">[% t('Keyword:') %] </label>
20
            <input type="text" id="q"  name="q" />
21
            <input type="text" id="q" name="q" />
21
        </li>
22
        </li>
22
        <li>
23
        <li>
23
            <label for="itemtypelimit">Limit item type to: </label>
24
            <label for="itemtypelimit">[% t('Limit item type to:') %] </label>
24
            <select name="itemtypelimit" id="itemtypelimit">
25
            <select name="itemtypelimit" id="itemtypelimit">
25
                <option value="">All</option>
26
                <option value="">[% t('All') %]</option>
26
                [%- FOREACH itemtypeloo IN itemtypeloop %]
27
                [%- FOREACH itemtypeloo IN itemtypeloop %]
27
                <option value="[% itemtypeloo.code %]">
28
                <option value="[% itemtypeloo.code %]">
28
                    [% itemtypeloo.description |html %]
29
                    [% itemtypeloo.description |html %]
Lines 32-40 Link Here
32
        </li>
33
        </li>
33
        [%- IF ccodeloop %]
34
        [%- IF ccodeloop %]
34
        <li>
35
        <li>
35
            <label for="ccodelimit">Limit collection code to: </label>
36
            <label for="ccodelimit">[% t('Limit collection code to:') %] </label>
36
            <select name="ccodelimit" id="ccodelimit">
37
            <select name="ccodelimit" id="ccodelimit">
37
                <option value="">All</option>
38
                <option value="">[% t('All') %]</option>
38
                [%- FOREACH ccodeloo IN ccodeloop %]
39
                [%- FOREACH ccodeloo IN ccodeloop %]
39
                <option value="[% ccodeloo.code %]">
40
                <option value="[% ccodeloo.code %]">
40
                    [% ccodeloo.description |html %]
41
                    [% ccodeloo.description |html %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt (-98 / +99 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% USE AuthorisedValues %]
5
[% USE AuthorisedValues %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Serials &rsaquo; Details for subscription #[% subscriptionid %]</title>
8
<title>[% t('Koha › Serials › Details for subscription #') %][% subscriptionid %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
10
11
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'serials-search.inc' %]
14
[% INCLUDE 'serials-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Details for subscription #[% subscriptionid %]</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> [% t('› Details for subscription #') %][% subscriptionid %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
   
19
   
Lines 21-50 Link Here
21
	<div class="yui-b">
22
	<div class="yui-b">
22
	[% INCLUDE 'serials-toolbar.inc' %]
23
	[% INCLUDE 'serials-toolbar.inc' %]
23
24
24
    <h1>Subscription for [% bibliotitle%] [% IF closed %](closed)[% END %]</h1>
25
    <h1>[% t('Subscription for') %] [% bibliotitle%] [% IF closed %][% t('(closed)') %][% END %]</h1>
25
    [% IF ( abouttoexpire ) %]
26
    [% IF ( abouttoexpire ) %]
26
      [% UNLESS closed %]
27
      [% UNLESS closed %]
27
        <div class="dialog message">Subscription will expire [% enddate %]. <a href="#" id="renewsub">Renew this subscription</a>.</div>
28
        <div class="dialog message">[% t('Subscription will expire') %] [% enddate %]. <a href="#" id="renewsub">[% t('Renew this subscription') %]</a>.</div>
28
      [% END %]
29
      [% END %]
29
    [% END %]
30
    [% END %]
30
    [% IF ( NEEDSCONFIRMATION ) %]
31
    [% IF ( NEEDSCONFIRMATION ) %]
31
    <div id="circ_needsconfirmation" class="dialog alert">
32
    <div id="circ_needsconfirmation" class="dialog alert">
32
        <h3>Please confirm subscription deletion</h3>
33
        <h3>[% t('Please confirm subscription deletion') %]</h3>
33
34
34
			<ul>
35
			<ul>
35
			[% IF ( NOTEXPIRED ) %] <li>The subscription has not expired yet</li> [% END %] 
36
			[% IF ( NOTEXPIRED ) %] <li>[% t('The subscription has not expired yet') %]</li> [% END %] 
36
			[% IF ( LINKEDISSUES ) %] <li>The subscription has linked issues</li> [% END %]
37
			[% IF ( LINKEDISSUES ) %] <li>[% t('The subscription has linked issues') %]</li> [% END %]
37
			[% IF ( LINKEDITEMS ) %] <li>The subscription has linked items<br /> Those items won't be deleted</li> [% END %]
38
			[% IF ( LINKEDITEMS ) %] <li>[% t('The subscription has linked items') %]<br /> [% t('Those items won\'t be deleted') %]</li> [% END %]
38
			</ul>
39
			</ul>
39
			<form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl">
40
			<form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl">
40
			<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
41
			<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
41
			<input type="hidden" name="issueconfirmed" value="1" />
42
			<input type="hidden" name="issueconfirmed" value="1" />
42
			<input type="hidden" name="op" value="del" />
43
			<input type="hidden" name="op" value="del" />
43
            <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, delete (Y)</button>
44
            <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete (Y)') %]</button>
44
			</form>
45
			</form>
45
			<form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl">
46
			<form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl">
46
			<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
47
			<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
47
            <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't delete (N)</button>
48
            <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> [% t('No, don\'t delete (N)') %]</button>
48
			</form>
49
			</form>
49
50
50
	</div>
51
	</div>
Lines 52-61 Link Here
52
53
53
<div id="subscription_description" class="toptabs">
54
<div id="subscription_description" class="toptabs">
54
<ul class="ui-tabs-nav">
55
<ul class="ui-tabs-nav">
55
    <li><a href="#subscription_info">Information</a></li>
56
    <li><a href="#subscription_info">[% t('Information') %]</a></li>
56
    <li><a href="#subscription_planning">Planning</a></li>
57
    <li><a href="#subscription_planning">[% t('Planning') %]</a></li>
57
    <li><a href="#subscription_issues">Issues</a></li>
58
    <li><a href="#subscription_issues">[% t('Issues') %]</a></li>
58
    <li><a href="#subscription_summary">Summary</a></li>
59
    <li><a href="#subscription_summary">[% t('Summary') %]</a></li>
59
</ul>
60
</ul>
60
61
61
<div id="subscription_info">
62
<div id="subscription_info">
Lines 63-110 Link Here
63
    <div class="yui-u first">
64
    <div class="yui-u first">
64
    <div class="rows">
65
    <div class="rows">
65
		<ol>
66
		<ol>
66
		<li><span class="label">Subscription ID: </span>[% subscriptionid %]</li>
67
		<li><span class="label">[% t('Subscription ID:') %] </span>[% subscriptionid %]</li>
67
        <li><span class="label">Librarian identity:</span> [% librarian %]</li>
68
        <li><span class="label">[% t('Librarian identity:') %]</span> [% librarian %]</li>
68
        <li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid %]">[% aqbooksellername |html %]</a></li>
69
        <li><span class="label">[% t('Vendor:') %]</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid %]">[% aqbooksellername |html %]</a></li>
69
        <li><span class="label">Biblio:</span>  <a href="/cgi-bin/koha/catalogue/[% default_bib_view %].pl?biblionumber=[% bibnum %]">[% bibliotitle %]</a> <i>([% bibnum %])</i></li>
70
        <li><span class="label">[% t('Biblio:') %]</span>  <a href="/cgi-bin/koha/catalogue/[% default_bib_view %].pl?biblionumber=[% bibnum %]">[% bibliotitle %]</a> <i>([% bibnum %])</i></li>
70
        [% IF ( OPACBaseURL ) %]
71
        [% IF ( OPACBaseURL ) %]
71
            <li>
72
            <li>
72
                <span class="label">OPAC view:</span>
73
                <span class="label">[% t('OPAC view:') %]</span>
73
                <a id="view-subscription-in-opac" target="_blank" href="[% Koha.Preference('OPACBaseURL') %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]">Open in new window.</a>
74
                <a id="view-subscription-in-opac" target="_blank" href="[% Koha.Preference('OPACBaseURL') %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]">[% t('Open in new window.') %]</a>
74
            </li>
75
            </li>
75
        [% END %]
76
        [% END %]
76
[% IF ( branchcode ) %]<li><span class="label">Library:</span> [% Branches.GetName( branchcode ) %]</li>[% END %]
77
[% IF ( branchcode ) %]<li><span class="label">[% t('Library:') %]</span> [% Branches.GetName( branchcode ) %]</li>[% END %]
77
        [% IF ( serialsadditems ) %]
78
        [% IF ( serialsadditems ) %]
78
            <li><span class="label">Items:</span> Serial receipt creates an item record.</li>
79
            <li><span class="label">[% t('Items:') %]</span> [% t('Serial receipt creates an item record.') %]</li>
79
        [% ELSE %]
80
        [% ELSE %]
80
            <li><span class="label">Items:</span> Serial receipt does not create an item record.</li>
81
            <li><span class="label">[% t('Items:') %]</span> [% t('Serial receipt does not create an item record.') %]</li>
81
        [% END %]
82
        [% END %]
82
        <li>
83
        <li>
83
            <span class="label">Serial number:</span>
84
            <span class="label">[% t('Serial number:') %]</span>
84
            [% IF skip_serialseq %]
85
            [% IF skip_serialseq %]
85
                Serial number is skipped when an irregularity is found.
86
                [% t('Serial number is skipped when an irregularity is found.') %]
86
            [% ELSE %]
87
            [% ELSE %]
87
                Serial number is kept when an irregularity is found.
88
                [% t('Serial number is kept when an irregularity is found.') %]
88
            [% END %]
89
            [% END %]
89
        </li>
90
        </li>
90
        <li><span class="label">Grace period:</span> [% graceperiod %]</li>
91
        <li><span class="label">[% t('Grace period:') %]</span> [% graceperiod %]</li>
91
        </ol>
92
        </ol>
92
    </div>
93
    </div>
93
    </div>
94
    </div>
94
    <div class="yui-u">
95
    <div class="yui-u">
95
    <div class="rows">
96
    <div class="rows">
96
        <ol>
97
        <ol>
97
        [% IF ( location ) %]<li><span class="label">Location:</span> [% location %]</li>[% END %]
98
        [% IF ( location ) %]<li><span class="label">[% t('Location:') %]</span> [% location %]</li>[% END %]
98
        [% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber |html %]</li>[% END %]
99
        [% IF ( callnumber ) %]<li><span class="label">[% t('Call number:') %]</span> [% callnumber |html %]</li>[% END %]
99
		[% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount %]</li>[% END %]
100
		[% IF ( staffdisplaycount ) %]<li><span class="label">[% t('Number of issues to display to staff:') %]</span>[% staffdisplaycount %]</li>[% END %]
100
        [% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount %]</li>[% END %]
101
        [% IF ( opacdisplaycount ) %]<li><span class="label">[% t('Number of issues to display in OPAC:') %]</span>[% opacdisplaycount %]</li>[% END %]
101
        [% IF ( letter ) %]
102
        [% IF ( letter ) %]
102
            <li>
103
            <li>
103
                <span class="label">Patron notification:</span> [% letter %]
104
                <span class="label">[% t('Patron notification:') %]</span> [% letter %]
104
                (<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid %]">subscribers</a>)
105
                (<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid %]">[% t('subscribers') %]</a>)
105
            </li>
106
            </li>
106
        [% END %]
107
        [% END %]
107
        [% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %]
108
        [% IF ( hasRouting ) %]<li><span class="label">[% t('Routing:') %]</span> [% t('yes') %]</li>[% END %]
108
     </ol>
109
     </ol>
109
     </div>
110
     </div>
110
     </div>
111
     </div>
Lines 114-120 Link Here
114
    <div class="yui-g">
115
    <div class="yui-g">
115
      <div class="yui-u first">
116
      <div class="yui-u first">
116
        <div class="rows">
117
        <div class="rows">
117
          <legend>Additional fields:</legend>
118
          <legend>[% t('Additional fields:') %]</legend>
118
          <ol>
119
          <ol>
119
            [% FOR field IN additional_fields_for_subscription %]
120
            [% FOR field IN additional_fields_for_subscription %]
120
              <li>
121
              <li>
Lines 137-161 Link Here
137
    <div class="yui-g">
138
    <div class="yui-g">
138
    <div class="rows">
139
    <div class="rows">
139
        <ol>
140
        <ol>
140
            <li><span class="label">Beginning date:</span> [% startdate %]
141
            <li><span class="label">[% t('Beginning date:') %]</span> [% startdate %]
141
            </li>
142
            </li>
142
            <li><span class="label">Frequency:</span>
143
            <li><span class="label">[% t('Frequency:') %]</span>
143
                [% frequency.description %]
144
                [% frequency.description %]
144
            </li>
145
            </li>
145
            <li>
146
            <li>
146
              <span class="label">Manual history: </span>
147
              <span class="label">[% t('Manual history:') %] </span>
147
                [% IF ( manualhistory ) %]
148
                [% IF ( manualhistory ) %]
148
                    Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid %]">Edit history</a>
149
                    [% t('Enabled') %] <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid %]">[% t('Edit history') %]</a>
149
                [% ELSE %]
150
                [% ELSE %]
150
                    Disabled
151
                    [% t('Disabled') %]
151
                [% END %]
152
                [% END %]
152
            </li>
153
            </li>
153
            <li><span class="label">Number pattern:</span>
154
            <li><span class="label">[% t('Number pattern:') %]</span>
154
                [% numberpattern.label %]
155
                [% numberpattern.label %]
155
            </li>
156
            </li>
156
            <li><table>
157
            <li><table>
157
            <tr>
158
            <tr>
158
                <td>Starting with:</td>
159
                <td>[% t('Starting with:') %]</td>
159
                [% IF (has_X) %]
160
                [% IF (has_X) %]
160
                    <td align="center">[% lastvalue1 %]</td>
161
                    <td align="center">[% lastvalue1 %]</td>
161
                [% END %]
162
                [% END %]
Lines 167-173 Link Here
167
                [% END %]
168
                [% END %]
168
            </tr>
169
            </tr>
169
            <tr>
170
            <tr>
170
                <td>Rollover:</td>
171
                <td>[% t('Rollover:') %]</td>
171
                [% IF (has_X) %]
172
                [% IF (has_X) %]
172
                    <td align="center">[% numberpattern.whenmorethan1 %]</td>
173
                    <td align="center">[% numberpattern.whenmorethan1 %]</td>
173
                [% END %]
174
                [% END %]
Lines 180-209 Link Here
180
            </tr>
181
            </tr>
181
            </table></li>
182
            </table></li>
182
            [% IF ( irregular_issues ) %]
183
            [% IF ( irregular_issues ) %]
183
            <li><span class="label">Irregularity:</span> [% irregular_issues %] issues
184
            <li><span class="label">[% t('Irregularity:') %]</span> [% irregular_issues %] [% t('issues') %]
184
            </li>
185
            </li>
185
            [% END %]
186
            [% END %]
186
            <li><span class="label">First arrival:</span> [% firstacquidate %]
187
            <li><span class="label">[% t('First arrival:') %]</span> [% firstacquidate %]
187
            </li>
188
            </li>
188
        [% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength %]</li>[% END %]
189
        [% IF ( numberlength ) %]<li><span class="label">[% t('Number of issues:') %]</span> [% numberlength %]</li>[% END %]
189
        [% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength %]</li>[% END %]
190
        [% IF ( weeklength ) %]<li><span class="label">[% t('Number of weeks:') %]</span> [% weeklength %]</li>[% END %]
190
        [% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength %]</li>[% END %]
191
        [% IF ( monthlength ) %]<li><span class="label">[% t('Number of months:') %]</span> [% monthlength %]</li>[% END %]
191
        </ol>
192
        </ol>
192
    </div>
193
    </div>
193
    </div>
194
    </div>
194
    </div>
195
    </div>
195
    <div id="subscription_numbering" style="display:none;">
196
    <div id="subscription_numbering" style="display:none;">
196
        <h3>Numbering calculation</h3>
197
        <h3>[% t('Numbering calculation') %]</h3>
197
        <p><label>Numbering formula:</label> [% numberingmethod %]</p>
198
        <p><label>[% t('Numbering formula:') %]</label> [% numberingmethod %]</p>
198
        <table>
199
        <table>
199
            <tr>
200
            <tr>
200
                <th>&nbsp;</th>
201
                <th> </th>
201
                <th>X</th>
202
                <th>[% t('X') %]</th>
202
                <th>Y</th>
203
                <th>[% t('Y') %]</th>
203
                <th>Z</th>
204
                <th>[% t('Z') %]</th>
204
                </tr>
205
                </tr>
205
                <tr>
206
                <tr>
206
                    <td>Add</td>
207
                    <td>[% t('Add') %]</td>
207
                    <td>
208
                    <td>
208
                        [% add1 %]
209
                        [% add1 %]
209
                    </td>
210
                    </td>
Lines 215-243 Link Here
215
                    </td>
216
                    </td>
216
                </tr>
217
                </tr>
217
                <tr>
218
                <tr>
218
                    <td>once every</td>
219
                    <td>[% t('once every') %]</td>
219
                    <td>[% every1 %]</td>
220
                    <td>[% every1 %]</td>
220
                    <td>[% every2 %]</td>
221
                    <td>[% every2 %]</td>
221
                    <td>[% every3 %]</td>
222
                    <td>[% every3 %]</td>
222
                </tr>
223
                </tr>
223
                <tr>
224
                <tr>
224
                    <td>When more than</td>
225
                    <td>[% t('When more than') %]</td>
225
                    <td>[% whenmorethan1 %] [% IF ( innerloop1 ) %]<br />
226
                    <td>[% whenmorethan1 %] [% IF ( innerloop1 ) %]<br />
226
                        <i>(is [% innerloop1 %])</i>[% END %]</td>
227
                        <i>[% t('(is') %] [% innerloop1 %])</i>[% END %]</td>
227
                    <td>[% whenmorethan2 %] [% IF ( innerloop2 ) %]<br />
228
                    <td>[% whenmorethan2 %] [% IF ( innerloop2 ) %]<br />
228
                        <i>(is [% innerloop2 %])</i>[% END %]</td>
229
                        <i>[% t('(is') %] [% innerloop2 %])</i>[% END %]</td>
229
                    <td>[% whenmorethan3 %] [% IF ( innerloop3 ) %]<br />
230
                    <td>[% whenmorethan3 %] [% IF ( innerloop3 ) %]<br />
230
                        <i>(is [% innerloop3 %])</i>[% END %]</td>
231
                        <i>[% t('(is') %] [% innerloop3 %])</i>[% END %]</td>
231
                </tr>
232
                </tr>
232
                <tr>
233
                <tr>
233
                    <td>Set back to</td>
234
                    <td>[% t('Set back to') %]</td>
234
                    <td>[% setto1 %]</td>
235
                    <td>[% setto1 %]</td>
235
                    <td>[% setto2 %]</td>
236
                    <td>[% setto2 %]</td>
236
                    <td>[% setto3 %]</td>
237
                    <td>[% setto3 %]</td>
237
                </tr>
238
                </tr>
238
                <tr>
239
                <tr>
239
                    <td>
240
                    <td>
240
                            Inner counter
241
                            [% t('Inner counter') %]
241
                    </td>
242
                    </td>
242
                    <td>[% innerloop1 %]</td>
243
                    <td>[% innerloop1 %]</td>
243
                    <td>[% innerloop2 %]</td>
244
                    <td>[% innerloop2 %]</td>
Lines 245-251 Link Here
245
                </tr>
246
                </tr>
246
                <tr>
247
                <tr>
247
                    <td>
248
                    <td>
248
                            Last value
249
                            [% t('Last value') %]
249
                    </td>
250
                    </td>
250
                    <td>[% lastvalue1 %]</td>
251
                    <td>[% lastvalue1 %]</td>
251
                    <td>[% lastvalue2 %]</td>
252
                    <td>[% lastvalue2 %]</td>
Lines 256-266 Link Here
256
    <div id="subscription_issues">
257
    <div id="subscription_issues">
257
        <table>
258
        <table>
258
        <tr>
259
        <tr>
259
            <th>Issue number</th>
260
            <th>[% t('Issue number') %]</th>
260
            <th>Planned date</th>
261
            <th>[% t('Planned date') %]</th>
261
            <th>Published date</th>
262
            <th>[% t('Published date') %]</th>
262
            <th>Published date (text)</th>
263
            <th>[% t('Published date (text)') %]</th>
263
            <th>Status</th>
264
            <th>[% t('Status') %]</th>
264
        </tr>
265
        </tr>
265
        [% FOREACH serialslis IN serialslist %]
266
        [% FOREACH serialslis IN serialslist %]
266
            <tr>
267
            <tr>
Lines 271-307 Link Here
271
                    [% IF serialslis.planneddate %]
272
                    [% IF serialslis.planneddate %]
272
                      [% serialslis.planneddate %]
273
                      [% serialslis.planneddate %]
273
                    [% ELSE %]
274
                    [% ELSE %]
274
                      Unknown
275
                      [% t('Unknown') %]
275
                    [% END %]
276
                    [% END %]
276
                </td>
277
                </td>
277
                <td>
278
                <td>
278
                    [% IF serialslis.publisheddate %]
279
                    [% IF serialslis.publisheddate %]
279
                      [% serialslis.publisheddate %]
280
                      [% serialslis.publisheddate %]
280
                    [% ELSE %]
281
                    [% ELSE %]
281
                      Unknown
282
                      [% t('Unknown') %]
282
                    [% END %]
283
                    [% END %]
283
                </td>
284
                </td>
284
                <td>
285
                <td>
285
                    [% serialslis.publisheddatetext %]
286
                    [% serialslis.publisheddatetext %]
286
                </td>
287
                </td>
287
                <td>
288
                <td>
288
                    [% IF ( serialslis.status1 ) %]Expected[% END %]
289
                    [% IF ( serialslis.status1 ) %][% t('Expected') %][% END %]
289
                    [% IF ( serialslis.status2 ) %]Arrived[% END %]
290
                    [% IF ( serialslis.status2 ) %][% t('Arrived') %][% END %]
290
                    [% IF ( serialslis.status3 ) %]Late[% END %]
291
                    [% IF ( serialslis.status3 ) %][% t('Late') %][% END %]
291
                    [% IF ( serialslis.status4 ) %]Missing[% END %]
292
                    [% IF ( serialslis.status4 ) %][% t('Missing') %][% END %]
292
                    [% IF ( serialslis.status41 ) %]Missing (never received)[% END %]
293
                    [% IF ( serialslis.status41 ) %][% t('Missing (never received)') %][% END %]
293
                    [% IF ( serialslis.status42 ) %]Missing (sold out)[% END %]
294
                    [% IF ( serialslis.status42 ) %][% t('Missing (sold out)') %][% END %]
294
                    [% IF ( serialslis.status43 ) %]Missing (damaged)[% END %]
295
                    [% IF ( serialslis.status43 ) %][% t('Missing (damaged)') %][% END %]
295
                    [% IF ( serialslis.status44 ) %]Missing (lost)[% END %]
296
                    [% IF ( serialslis.status44 ) %][% t('Missing (lost)') %][% END %]
296
                    [% IF ( serialslis.status5 ) %]Not issued[% END %]
297
                    [% IF ( serialslis.status5 ) %][% t('Not issued') %][% END %]
297
                    [% IF ( serialslis.status6 ) %]Delete[% END %]
298
                    [% IF ( serialslis.status6 ) %][% t('Delete') %][% END %]
298
                    [% IF ( serialslis.status7 ) %]
299
                    [% IF ( serialslis.status7 ) %]
299
                      Claimed
300
                      [% t('Claimed') %]
300
                      [% IF ( serialslis.claimdate ) %]
301
                      [% IF ( serialslis.claimdate ) %]
301
                        [% serialslis.claimdate %]
302
                        [% serialslis.claimdate %]
302
                      [% END %]
303
                      [% END %]
303
                    [% END %]
304
                    [% END %]
304
                    [% IF ( serialslis.status8 ) %]Stopped[% END %]
305
                    [% IF ( serialslis.status8 ) %][% t('Stopped') %][% END %]
305
                </td>
306
                </td>
306
            </tr>
307
            </tr>
307
        [% END %]
308
        [% END %]
Lines 311-326 Link Here
311
    <div class="yui-g">
312
    <div class="yui-g">
312
    <div class="rows">
313
    <div class="rows">
313
        <ol>
314
        <ol>
314
            <li><span class="label">Start date:</span> [% startdate %] </li>
315
            <li><span class="label">[% t('Start date:') %]</span> [% startdate %] </li>
315
            <li><span class="label">End date:</span> [% enddate %]</li>
316
            <li><span class="label">[% t('End date:') %]</span> [% enddate %]</li>
316
            <li><span class="label">History start date:</span> [% histstartdate %] </li>
317
            <li><span class="label">[% t('History start date:') %]</span> [% histstartdate %] </li>
317
            <li><span class="label">History end date:</span> [% histenddate %]</li>
318
            <li><span class="label">[% t('History end date:') %]</span> [% histenddate %]</li>
318
            <li><span class="label">Received issues:</span>[% recievedlist %]</li>
319
            <li><span class="label">[% t('Received issues:') %]</span>[% recievedlist %]</li>
319
            <li><span class="label">Missing issues:</span>[% missinglist %]</li>
320
            <li><span class="label">[% t('Missing issues:') %]</span>[% missinglist %]</li>
320
            <li><span class="label">Nonpublic note:</span>[% internalnotes FILTER html_line_break |html %]</li>
321
            <li><span class="label">[% t('Nonpublic note:') %]</span>[% internalnotes FILTER html_line_break |html %]</li>
321
            <li><span class="label">Public note:</span>[% notes FILTER html_line_break |html %]</li>
322
            <li><span class="label">[% t('Public note:') %]</span>[% notes FILTER html_line_break |html %]</li>
322
            <li><span class="label">History staff note:</span>[% librariannote FILTER html_line_break %]</li>
323
            <li><span class="label">[% t('History staff note:') %]</span>[% librariannote FILTER html_line_break %]</li>
323
            <li><span class="label">History OPAC note:</span>[% opacnote FILTER html_line_break %]</li>
324
            <li><span class="label">[% t('History OPAC note:') %]</span>[% opacnote FILTER html_line_break %]</li>
324
        </ol>
325
        </ol>
325
    </div>
326
    </div>
326
    </div>
327
    </div>
Lines 329-359 Link Here
329
330
330
    [% IF ( show_acquisition_details ) %]
331
    [% IF ( show_acquisition_details ) %]
331
        <div id="acquisition_details">
332
        <div id="acquisition_details">
332
            <h2>Acquisition details</h2>
333
            <h2>[% t('Acquisition details') %]</h2>
333
            <table>
334
            <table>
334
                <thead>
335
                <thead>
335
                    <tr><th></th><th>Price exc. taxes</th><th>Price inc. taxes</th><th>Fund</th><th></th></tr>
336
                    <tr><th></th><th>[% t('Price exc. taxes') %]</th><th>[% t('Price inc. taxes') %]</th><th>[% t('Fund') %]</th><th></th></tr>
336
                </thead>
337
                </thead>
337
                <tbody>
338
                <tbody>
338
                    <tr>
339
                    <tr>
339
                        <td>Ordered amount</td>
340
                        <td>[% t('Ordered amount') %]</td>
340
                        <td>[% value_tax_excluded_ordered %]</td>
341
                        <td>[% value_tax_excluded_ordered %]</td>
341
                        <td>[% value_tax_included_ordered %]</td>
342
                        <td>[% value_tax_included_ordered %]</td>
342
                        <td>[% budget_name_ordered %]</td>
343
                        <td>[% budget_name_ordered %]</td>
343
                        <td>
344
                        <td>
344
                            [% IF ( ordered_exists ) %]
345
                            [% IF ( ordered_exists ) %]
345
                                <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">See basket information</a>
346
                                <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">[% t('See basket information') %]</a>
346
                            [% END %]
347
                            [% END %]
347
                        </td>
348
                        </td>
348
                    </tr>
349
                    </tr>
349
                    <tr>
350
                    <tr>
350
                        <td>Spent amount</td>
351
                        <td>[% t('Spent amount') %]</td>
351
                        <td>[% value_tax_excluded_spent %]</td>
352
                        <td>[% value_tax_excluded_spent %]</td>
352
                        <td>[% value_tax_included_spent %]</td>
353
                        <td>[% value_tax_included_spent %]</td>
353
                        <td>[% budget_name_spent %]</td>
354
                        <td>[% budget_name_spent %]</td>
354
                        <td>
355
                        <td>
355
                            [% IF ( spent_exists ) %]
356
                            [% IF ( spent_exists ) %]
356
                                <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">See invoice information</a>
357
                                <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">[% t('See invoice information') %]</a>
357
                            [% END %]
358
                            [% END %]
358
                        </td>
359
                        </td>
359
                    </tr>
360
                    </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-frequencies.tt (-35 / +36 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Serials &rsaquo; Frequencies</title>
4
<title>[% t('Koha › Serials › Frequencies') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 10-26 Link Here
10
11
11
[% BLOCK translate_frequnit %]
12
[% BLOCK translate_frequnit %]
12
[%  SWITCH frequnit %]
13
[%  SWITCH frequnit %]
13
[%   CASE 'day'     %] day
14
[%   CASE 'day'     %] [% t('day') %]
14
[%   CASE 'week'    %] week
15
[%   CASE 'week'    %] [% t('week') %]
15
[%   CASE 'month'   %] month
16
[%   CASE 'month'   %] [% t('month') %]
16
[%   CASE 'year'    %] year
17
[%   CASE 'year'    %] [% t('year') %]
17
[%  END %]
18
[%  END %]
18
[% END %]
19
[% END %]
19
20
20
<div id="breadcrumbs">
21
<div id="breadcrumbs">
21
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
22
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
22
    <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo;
23
    <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> ›
23
    <a href="/cgi-bin/koha/serials/subscription-frequencies.pl">Frequencies</a>
24
    <a href="/cgi-bin/koha/serials/subscription-frequencies.pl">[% t('Frequencies') %]</a>
24
</div>
25
</div>
25
26
26
<div id="doc3" class="yui-t2">
27
<div id="doc3" class="yui-t2">
Lines 30-38 Link Here
30
    <div class="yui-b">
31
    <div class="yui-b">
31
      [% IF (new or modify) %]
32
      [% IF (new or modify) %]
32
        [% IF (new) %]
33
        [% IF (new) %]
33
          <h1>New frequency</h1>
34
          <h1>[% t('New frequency') %]</h1>
34
        [% ELSE %]
35
        [% ELSE %]
35
          <h1>Edit frequency: [% description %]</h1>
36
          <h1>[% t('Edit frequency:') %] [% description %]</h1>
36
        [% END %]
37
        [% END %]
37
        <form action="/cgi-bin/koha/serials/subscription-frequencies.pl" id="add_frequency_form" method="post">
38
        <form action="/cgi-bin/koha/serials/subscription-frequencies.pl" id="add_frequency_form" method="post">
38
          [% IF (modify) %]
39
          [% IF (modify) %]
Lines 44-56 Link Here
44
          <fieldset class="rows">
45
          <fieldset class="rows">
45
            <ol>
46
            <ol>
46
              <li>
47
              <li>
47
                <label class="required" for="description">Description: </label>
48
                <label class="required" for="description">[% t('Description:') %] </label>
48
                <input type="text" id="description" name="description" value="[% description | html %]" class="required" required="required" /> <span class="required">Required</span>
49
                <input type="text" id="description" name="description" value="[% description | html %]" class="required" required="required" /> <span class="required">[% t('Required') %]</span>
49
              </li>
50
              </li>
50
              <li>
51
              <li>
51
                <label for="unit">Unit: </label>
52
                <label for="unit">[% t('Unit:') %] </label>
52
                <select id="unit" name="unit">
53
                <select id="unit" name="unit">
53
                  <option value="">None</option>
54
                  <option value="">[% t('None') %]</option>
54
                  [% FOREACH unit IN units_loop %]
55
                  [% FOREACH unit IN units_loop %]
55
                    [% IF (unit.selected) %]
56
                    [% IF (unit.selected) %]
56
                      <option selected="selected" value="[% unit.val %]">
57
                      <option selected="selected" value="[% unit.val %]">
Lines 62-70 Link Here
62
                  [% END %]
63
                  [% END %]
63
                </select>
64
                </select>
64
              </li>
65
              </li>
65
              <li><span class="hint">Note: one of the two following fields must be equal to 1</span></li>
66
              <li><span class="hint">[% t('Note: one of the two following fields must be equal to 1') %]</span></li>
66
              <li>
67
              <li>
67
                <label for="issuesperunit">Issues per unit: </label>
68
                <label for="issuesperunit">[% t('Issues per unit:') %] </label>
68
                [% IF (new) %]
69
                [% IF (new) %]
69
                  <input type="text" id="issuesperunit" name="issuesperunit" value="1" size="3" />
70
                  <input type="text" id="issuesperunit" name="issuesperunit" value="1" size="3" />
70
                [% ELSE %]
71
                [% ELSE %]
Lines 72-78 Link Here
72
                [% END %]
73
                [% END %]
73
              </li>
74
              </li>
74
              <li>
75
              <li>
75
                <label for="unitsperissue">Units per issue: </label>
76
                <label for="unitsperissue">[% t('Units per issue:') %] </label>
76
                [% IF (new) %]
77
                [% IF (new) %]
77
                  <input type="text" id="unitsperissue" name="unitsperissue" value="1" size="3" />
78
                  <input type="text" id="unitsperissue" name="unitsperissue" value="1" size="3" />
78
                [% ELSE %]
79
                [% ELSE %]
Lines 80-109 Link Here
80
                [% END %]
81
                [% END %]
81
              </li>
82
              </li>
82
              <li>
83
              <li>
83
                <label for="displayorder">Display order: </label>
84
                <label for="displayorder">[% t('Display order:') %] </label>
84
                <input type="text" id="displayorder" name="displayorder" value="[% displayorder %]" size="3" />
85
                <input type="text" id="displayorder" name="displayorder" value="[% displayorder %]" size="3" />
85
              </li>
86
              </li>
86
            </ol>
87
            </ol>
87
          </fieldset>
88
          </fieldset>
88
          <fieldset class="action">
89
          <fieldset class="action">
89
            <input type="submit" value="Save" />
90
            <input type="submit" value="Save" />
90
            <a href="/cgi-bin/koha/serials/subscription-frequencies.pl" class="cancel">Cancel</a>
91
            <a href="/cgi-bin/koha/serials/subscription-frequencies.pl" class="cancel">[% t('Cancel') %]</a>
91
          </fieldset>
92
          </fieldset>
92
        </form>
93
        </form>
93
      [% ELSE %]
94
      [% ELSE %]
94
95
95
        <div id="toolbar" class="btn-toolbar">
96
        <div id="toolbar" class="btn-toolbar">
96
            <a class="btn btn-default btn-sm" id="newfrequency" href="/cgi-bin/koha/serials/subscription-frequencies.pl?op=new"><i class="fa fa-plus"></i> New frequency</a>
97
            <a class="btn btn-default btn-sm" id="newfrequency" href="/cgi-bin/koha/serials/subscription-frequencies.pl?op=new"><i class="fa fa-plus"></i> [% t('New frequency') %]</a>
97
        </div>
98
        </div>
98
99
99
        <h1>Frequencies</h1>
100
        <h1>[% t('Frequencies') %]</h1>
100
        [% IF still_used %]
101
        [% IF still_used %]
101
            <div class="dialog alert">
102
            <div class="dialog alert">
102
                <p>
103
                <p>
103
                    This frequency is still used by [% subscriptions.size %]
104
                    [% t('This frequency is still used by') %] [% subscriptions.size %]
104
                    subscription(s). Do you still want to delete it?
105
                    [% t('subscription(s). Do you still want to delete it?') %]
105
                </p>
106
                </p>
106
                <p><a href="#" id="show_blocking_subs">Show subscriptions</a></p>
107
                <p><a href="#" id="show_blocking_subs">[% t('Show subscriptions') %]</a></p>
107
                <ul id="blocking_subs" style="display:none">
108
                <ul id="blocking_subs" style="display:none">
108
                    [% FOREACH sub IN subscriptions %]
109
                    [% FOREACH sub IN subscriptions %]
109
                        <li style="list-style-type:none">
110
                        <li style="list-style-type:none">
Lines 116-125 Link Here
116
                    <input type="hidden" name="op" value="del" />
117
                    <input type="hidden" name="op" value="del" />
117
                    <input type="hidden" name="confirm" value="1" />
118
                    <input type="hidden" name="confirm" value="1" />
118
                    <input type="hidden" name="frequencyid" value="[% frequencyid %]" />
119
                    <input type="hidden" name="frequencyid" value="[% frequencyid %]" />
119
                    <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
120
                    <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete') %]</button>
120
                </form>
121
                </form>
121
                <form action="/cgi-bin/koha/serials/subscription-frequencies.pl" method="get">
122
                <form action="/cgi-bin/koha/serials/subscription-frequencies.pl" method="get">
122
                    <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
123
                    <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
123
                </form>
124
                </form>
124
            </div>
125
            </div>
125
        [% END %]
126
        [% END %]
Lines 128-139 Link Here
128
          <table id="frequenciest">
129
          <table id="frequenciest">
129
            <thead>
130
            <thead>
130
              <tr>
131
              <tr>
131
                <th>Description</th>
132
                <th>[% t('Description') %]</th>
132
                <th>Unit</th>
133
                <th>[% t('Unit') %]</th>
133
                <th>Issues per unit</th>
134
                <th>[% t('Issues per unit') %]</th>
134
                <th>Units per issue</th>
135
                <th>[% t('Units per issue') %]</th>
135
                <th>Display order</th>
136
                <th>[% t('Display order') %]</th>
136
                <th>Actions</th>
137
                <th>[% t('Actions') %]</th>
137
              </tr>
138
              </tr>
138
            </thead>
139
            </thead>
139
            <tbody>
140
            <tbody>
Lines 145-159 Link Here
145
                  <td>[% frequency.unitsperissue %]</td>
146
                  <td>[% frequency.unitsperissue %]</td>
146
                  <td>[% frequency.displayorder %]</td>
147
                  <td>[% frequency.displayorder %]</td>
147
                  <td class="actions">
148
                  <td class="actions">
148
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-frequencies.pl?op=modify&frequencyid=[% frequency.id %]"><i class="fa fa-pencil"></i> Edit</a>
149
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-frequencies.pl?op=modify&frequencyid=[% frequency.id %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
149
                    <a class="delete_frequency btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-frequencies.pl?op=del&frequencyid=[% frequency.id %]"><i class="fa fa-trash"></i> Delete</a>
150
                    <a class="delete_frequency btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-frequencies.pl?op=del&frequencyid=[% frequency.id %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
150
                  </td>
151
                  </td>
151
                </tr>
152
                </tr>
152
              [% END %]
153
              [% END %]
153
            </tbody>
154
            </tbody>
154
          </table>
155
          </table>
155
        [% ELSE %]
156
        [% ELSE %]
156
          <p>There is no defined frequency.</p>
157
          <p>[% t('There is no defined frequency.') %]</p>
157
        [% END %]
158
        [% END %]
158
      [% END %]
159
      [% END %]
159
160
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-history.tt (-13 / +14 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE KohaDates %]
2
[% USE KohaDates %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Serials &rsaquo; Subscription history</title>
5
<title>[% t('Koha › Serials › Subscription history') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 9-60 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'serials-search.inc' %]
11
[% INCLUDE 'serials-search.inc' %]
11
12
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Subscription history</div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> [% t('› Subscription history') %]</div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
16
16
<div id="bd">
17
<div id="bd">
17
  <div id="yui-main">
18
  <div id="yui-main">
18
    <div class="yui-b">
19
    <div class="yui-b">
19
      <h1>Subscription history for [% title %]</h1>
20
      <h1>[% t('Subscription history for') %] [% title %]</h1>
20
        <div id="subscription_form_history">
21
        <div id="subscription_form_history">
21
          <form method="post" action="/cgi-bin/koha/serials/subscription-history.pl">
22
          <form method="post" action="/cgi-bin/koha/serials/subscription-history.pl">
22
            <input type="hidden" name="op" value="mod" />
23
            <input type="hidden" name="op" value="mod" />
23
            <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
24
            <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
24
            <p>Hint : you can update the serial history manually. This can be useful for an old subscription or to clean the existing history. Modify those fields with care, as future serial receive will continue to update them automatically.</p>
25
            <p>[% t('Hint : you can update the serial history manually. This can be useful for an old subscription or to clean the existing history. Modify those fields with care, as future serial receive will continue to update them automatically.') %]</p>
25
            <table>
26
            <table>
26
              <tr>
27
              <tr>
27
                <td>Subscription start date</td>
28
                <td>[% t('Subscription start date') %]</td>
28
                <td>
29
                <td>
29
                    <input type="text" size="10" name="histstartdate" value="[% histstartdate | $KohaDates %]" class="datepickerfrom" /> (start date of the 1st subscription)
30
                    <input type="text" size="10" name="histstartdate" value="[% histstartdate | $KohaDates %]" class="datepickerfrom" /> [% t('(start date of the 1st subscription)') %]
30
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
31
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
31
                </td>
32
                </td>
32
              </tr>
33
              </tr>
33
              <tr>
34
              <tr>
34
                <td>Subscription end date</td>
35
                <td>[% t('Subscription end date') %]</td>
35
                <td>
36
                <td>
36
                    <input type="text" size="10" name="histenddate" value="[% histenddate | $KohaDates %]" class="datepickerto" />(if empty, subscription is still active)
37
                    <input type="text" size="10" name="histenddate" value="[% histenddate | $KohaDates %]" class="datepickerto" />[% t('(if empty, subscription is still active)') %]
37
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
38
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
38
                </td>
39
                </td>
39
              </tr>
40
              </tr>
40
              <tr>
41
              <tr>
41
                <td>Received issues</td>
42
                <td>[% t('Received issues') %]</td>
42
                <td><textarea name="receivedlist" cols="60" rows="5">[% receivedlist %]</textarea></td>
43
                <td><textarea name="receivedlist" cols="60" rows="5">[% receivedlist %]</textarea></td>
43
              </tr>
44
              </tr>
44
              <tr>
45
              <tr>
45
                <td>Missing issues</td>
46
                <td>[% t('Missing issues') %]</td>
46
                <td><textarea name="missinglist" cols="60" rows="5">[% missinglist %]</textarea></td>
47
                <td><textarea name="missinglist" cols="60" rows="5">[% missinglist %]</textarea></td>
47
              </tr>
48
              </tr>
48
              <tr>
49
              <tr>
49
                <td>Note for OPAC</td>
50
                <td>[% t('Note for OPAC') %]</td>
50
                <td><textarea name="opacnote" cols="60" rows="5">[% opacnote %]</textarea></td>
51
                <td><textarea name="opacnote" cols="60" rows="5">[% opacnote %]</textarea></td>
51
              </tr>
52
              </tr>
52
              <tr>
53
              <tr>
53
                <td>Note for staff</td>
54
                <td>[% t('Note for staff') %]</td>
54
                <td><textarea name="librariannote" cols="60" rows="5">[% librariannote %]</textarea></td>
55
                <td><textarea name="librariannote" cols="60" rows="5">[% librariannote %]</textarea></td>
55
              </tr>
56
              </tr>
56
            </table>
57
            </table>
57
            <input type="submit" value="Save subscription history"  />
58
            <input type="submit" value="Save subscription history" />
58
          </form>
59
          </form>
59
        </div>
60
        </div>
60
    </div>
61
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt (-67 / +68 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Serials &rsaquo; Numbering patterns</title>
5
<title>[% t('Koha › Serials › Numbering patterns') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% Asset.css("css/datatables.css") %]
7
[% Asset.css("css/datatables.css") %]
7
</head>
8
</head>
Lines 11-23 Link Here
11
[% INCLUDE 'serials-search.inc' %]
12
[% INCLUDE 'serials-search.inc' %]
12
13
13
<div id="breadcrumbs">
14
<div id="breadcrumbs">
14
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
15
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
15
    <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo;
16
    <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> ›
16
    <a href="/cgi-bin/koha/serials/subscription-numberpatterns.pl">Numbering patterns</a>
17
    <a href="/cgi-bin/koha/serials/subscription-numberpatterns.pl">[% t('Numbering patterns') %]</a>
17
    [% IF ( new ) %]
18
    [% IF ( new ) %]
18
        &rsaquo; New numbering pattern
19
        [% t('› New numbering pattern') %]
19
    [% ELSIF ( modify ) %]
20
    [% ELSIF ( modify ) %]
20
        &rsaquo; Modifying numbering pattern '[% label %]'
21
        [% t('› Modifying numbering pattern \'') %][% label %]'
21
    [% END %]
22
    [% END %]
22
</div>
23
</div>
23
24
Lines 29-45 Link Here
29
      [% IF (new or modify) %]
30
      [% IF (new or modify) %]
30
        <div class="yui-g">
31
        <div class="yui-g">
31
          [% IF (new) %]
32
          [% IF (new) %]
32
            <h1>New numbering pattern</h1>
33
            <h1>[% t('New numbering pattern') %]</h1>
33
            [% IF (error_existing_numberpattern) %]
34
            [% IF (error_existing_numberpattern) %]
34
              <div class="dialog alert">
35
              <div class="dialog alert">
35
                <p>A pattern with this name already exists.</p>
36
                <p>[% t('A pattern with this name already exists.') %]</p>
36
              </div>
37
              </div>
37
            [% END %]
38
            [% END %]
38
          [% ELSE %]
39
          [% ELSE %]
39
            <h1>Modify pattern: [% label %]</h1>
40
            <h1>[% t('Modify pattern:') %] [% label %]</h1>
40
            [% IF (error_existing_numberpattern) %]
41
            [% IF (error_existing_numberpattern) %]
41
              <div class="dialog alert">
42
              <div class="dialog alert">
42
                <p>Another pattern with this name already exists.</p>
43
                <p>[% t('Another pattern with this name already exists.') %]</p>
43
              </div>
44
              </div>
44
            [% END %]
45
            [% END %]
45
          [% END %]
46
          [% END %]
Lines 55-112 Link Here
55
            <fieldset class="rows">
56
            <fieldset class="rows">
56
              <ol>
57
              <ol>
57
                <li>
58
                <li>
58
                  <label for="label">Name:</label>
59
                  <label for="label">[% t('Name:') %]</label>
59
                  <input type="text" id="label" name="label" value="[% label %]" />
60
                  <input type="text" id="label" name="label" value="[% label %]" />
60
                </li>
61
                </li>
61
                <li>
62
                <li>
62
                  <label for="description">Description:</label>
63
                  <label for="description">[% t('Description:') %]</label>
63
                  <input type="text" id="description" name="description" value="[% description %]" />
64
                  <input type="text" id="description" name="description" value="[% description %]" />
64
                </li>
65
                </li>
65
                <li>
66
                <li>
66
                  <label for="numberingmethod">Numbering formula:</label>
67
                  <label for="numberingmethod">[% t('Numbering formula:') %]</label>
67
                  <input type="text" id="numberingmethod" name="numberingmethod" value="[% numberingmethod %]" />
68
                  <input type="text" id="numberingmethod" name="numberingmethod" value="[% numberingmethod %]" />
68
                </li>
69
                </li>
69
                <li>
70
                <li>
70
                  <label for="displayorder">Display order:</label>
71
                  <label for="displayorder">[% t('Display order:') %]</label>
71
                  <input type="text" id="displayorder" name="displayorder" value="[% displayorder %]" />
72
                  <input type="text" id="displayorder" name="displayorder" value="[% displayorder %]" />
72
                </li>
73
                </li>
73
              </ol>
74
              </ol>
74
              <table>
75
              <table>
75
                <thead>
76
                <thead>
76
                  <tr>
77
                  <tr>
77
                    <th>&nbsp;</th>
78
                    <th> </th>
78
                    <th>X</th>
79
                    <th>[% t('X') %]</th>
79
                    <th>Y</th>
80
                    <th>[% t('Y') %]</th>
80
                    <th>Z</th>
81
                    <th>[% t('Z') %]</th>
81
                  </tr>
82
                  </tr>
82
                </thead>
83
                </thead>
83
                <tbody>
84
                <tbody>
84
                  <tr>
85
                  <tr>
85
                    <td>Label</td>
86
                    <td>[% t('Label') %]</td>
86
                    <td><input type="text" id="label1" name="label1" value="[% label1 %]" /></td>
87
                    <td><input type="text" id="label1" name="label1" value="[% label1 %]" /></td>
87
                    <td><input type="text" id="label2" name="label2" value="[% label2 %]" /></td>
88
                    <td><input type="text" id="label2" name="label2" value="[% label2 %]" /></td>
88
                    <td><input type="text" id="label3" name="label3" value="[% label3 %]" /></td>
89
                    <td><input type="text" id="label3" name="label3" value="[% label3 %]" /></td>
89
                  </tr>
90
                  </tr>
90
                  <tr>
91
                  <tr>
91
                    <td>Add</td>
92
                    <td>[% t('Add') %]</td>
92
                    <td><input type="text" id="add1" name="add1" value="[% add1 %]" /></td>
93
                    <td><input type="text" id="add1" name="add1" value="[% add1 %]" /></td>
93
                    <td><input type="text" id="add2" name="add2" value="[% add2 %]" /></td>
94
                    <td><input type="text" id="add2" name="add2" value="[% add2 %]" /></td>
94
                    <td><input type="text" id="add3" name="add3" value="[% add3 %]" /></td>
95
                    <td><input type="text" id="add3" name="add3" value="[% add3 %]" /></td>
95
                  </tr>
96
                  </tr>
96
                  <tr>
97
                  <tr>
97
                    <td>Every</td>
98
                    <td>[% t('Every') %]</td>
98
                    <td><input type="text" id="every1" name="every1" value="[% every1 %]" /></td>
99
                    <td><input type="text" id="every1" name="every1" value="[% every1 %]" /></td>
99
                    <td><input type="text" id="every2" name="every2" value="[% every2 %]" /></td>
100
                    <td><input type="text" id="every2" name="every2" value="[% every2 %]" /></td>
100
                    <td><input type="text" id="every3" name="every3" value="[% every3 %]" /></td>
101
                    <td><input type="text" id="every3" name="every3" value="[% every3 %]" /></td>
101
                  </tr>
102
                  </tr>
102
                  <tr>
103
                  <tr>
103
                    <td>Set back to</td>
104
                    <td>[% t('Set back to') %]</td>
104
                    <td><input type="text" id="setto1" name="setto1" value="[% setto1 %]" /></td>
105
                    <td><input type="text" id="setto1" name="setto1" value="[% setto1 %]" /></td>
105
                    <td><input type="text" id="setto2" name="setto2" value="[% setto2 %]" /></td>
106
                    <td><input type="text" id="setto2" name="setto2" value="[% setto2 %]" /></td>
106
                    <td><input type="text" id="setto3" name="setto3" value="[% setto3 %]" /></td>
107
                    <td><input type="text" id="setto3" name="setto3" value="[% setto3 %]" /></td>
107
                  </tr>
108
                  </tr>
108
                  <tr>
109
                  <tr>
109
                    <td>When more than</td>
110
                    <td>[% t('When more than') %]</td>
110
                    <td><input type="text" id="whenmorethan1" name="whenmorethan1" value="[% whenmorethan1 %]" /></td>
111
                    <td><input type="text" id="whenmorethan1" name="whenmorethan1" value="[% whenmorethan1 %]" /></td>
111
                    <td><input type="text" id="whenmorethan2" name="whenmorethan2" value="[% whenmorethan2 %]" /></td>
112
                    <td><input type="text" id="whenmorethan2" name="whenmorethan2" value="[% whenmorethan2 %]" /></td>
112
                    <td><input type="text" id="whenmorethan3" name="whenmorethan3" value="[% whenmorethan3 %]" /></td>
113
                    <td><input type="text" id="whenmorethan3" name="whenmorethan3" value="[% whenmorethan3 %]" /></td>
Lines 116-153 Link Here
116
                      <select id="[% name %]" name="[% name %]">
117
                      <select id="[% name %]" name="[% name %]">
117
                        <option value=""></option>
118
                        <option value=""></option>
118
                        [% IF (value == "dayname") %]
119
                        [% IF (value == "dayname") %]
119
                            <option selected="selected" value="dayname">Name of day</option>
120
                            <option selected="selected" value="dayname">[% t('Name of day') %]</option>
120
                        [% ELSE %]
121
                        [% ELSE %]
121
                            <option value="dayname">Name of day</option>
122
                            <option value="dayname">[% t('Name of day') %]</option>
122
                        [% END %]
123
                        [% END %]
123
                        [% IF (value == "dayabrv") %]
124
                        [% IF (value == "dayabrv") %]
124
                            <option selected="selected" value="dayabrv">Name of day (abbreviated)</option>
125
                            <option selected="selected" value="dayabrv">[% t('Name of day (abbreviated)') %]</option>
125
                        [% ELSE %]
126
                        [% ELSE %]
126
                            <option value="dayabrv">Name of day (abbreviated)</option>
127
                            <option value="dayabrv">[% t('Name of day (abbreviated)') %]</option>
127
                        [% END %]
128
                        [% END %]
128
                        [% IF (value == "monthname") %]
129
                        [% IF (value == "monthname") %]
129
                            <option selected="selected" value="monthname">Name of month</option>
130
                            <option selected="selected" value="monthname">[% t('Name of month') %]</option>
130
                        [% ELSE %]
131
                        [% ELSE %]
131
                            <option value="monthname">Name of month</option>
132
                            <option value="monthname">[% t('Name of month') %]</option>
132
                        [% END %]
133
                        [% END %]
133
                        [% IF (value == "monthabrv") %]
134
                        [% IF (value == "monthabrv") %]
134
                            <option selected="selected" value="monthabrv">Name of month (abbreviated)</option>
135
                            <option selected="selected" value="monthabrv">[% t('Name of month (abbreviated)') %]</option>
135
                        [% ELSE %]
136
                        [% ELSE %]
136
                            <option value="monthabrv">Name of month (abbreviated)</option>
137
                            <option value="monthabrv">[% t('Name of month (abbreviated)') %]</option>
137
                        [% END %]
138
                        [% END %]
138
                        [% IF (value == "season") %]
139
                        [% IF (value == "season") %]
139
                            <option selected="selected" value="season">Name of season</option>
140
                            <option selected="selected" value="season">[% t('Name of season') %]</option>
140
                        [% ELSE %]
141
                        [% ELSE %]
141
                            <option value="season">Name of season</option>
142
                            <option value="season">[% t('Name of season') %]</option>
142
                        [% END %]
143
                        [% END %]
143
                        [% IF (value == "seasonabrv") %]
144
                        [% IF (value == "seasonabrv") %]
144
                            <option selected="selected" value="seasonabrv">Name of season (abbreviated)</option>
145
                            <option selected="selected" value="seasonabrv">[% t('Name of season (abbreviated)') %]</option>
145
                        [% ELSE %]
146
                        [% ELSE %]
146
                            <option value="seasonabrv">Name of season (abbreviated)</option>
147
                            <option value="seasonabrv">[% t('Name of season (abbreviated)') %]</option>
147
                        [% END %]
148
                        [% END %]
148
                      </select>
149
                      </select>
149
                    [% END %]
150
                    [% END %]
150
                    <td>Formatting</td>
151
                    <td>[% t('Formatting') %]</td>
151
                    <td>[% PROCESS numbering_select name="numbering1" value=numbering1 %]</td>
152
                    <td>[% PROCESS numbering_select name="numbering1" value=numbering1 %]</td>
152
                    <td>[% PROCESS numbering_select name="numbering2" value=numbering2 %]</td>
153
                    <td>[% PROCESS numbering_select name="numbering2" value=numbering2 %]</td>
153
                    <td>[% PROCESS numbering_select name="numbering3" value=numbering3 %]</td>
154
                    <td>[% PROCESS numbering_select name="numbering3" value=numbering3 %]</td>
Lines 156-174 Link Here
156
              </table>
157
              </table>
157
            </fieldset>
158
            </fieldset>
158
            <fieldset class="action">
159
            <fieldset class="action">
159
              <button type="submit" class="btn btn-default btn-sm">Save</button>
160
              <button type="submit" class="btn btn-default btn-sm">[% t('Save') %]</button>
160
              <button type="reset" class="btn btn-default btn-sm">Reset</button>
161
              <button type="reset" class="btn btn-default btn-sm">[% t('Reset') %]</button>
161
              <a class="cancel" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl">Cancel</a>
162
              <a class="cancel" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl">[% t('Cancel') %]</a>
162
            </fieldset>
163
            </fieldset>
163
          </form>
164
          </form>
164
        </div>
165
        </div>
165
        <div class="yui-g">
166
        <div class="yui-g">
166
          <form>
167
          <form>
167
            <fieldset class="rows">
168
            <fieldset class="rows">
168
              <legend>Test prediction pattern</legend>
169
              <legend>[% t('Test prediction pattern') %]</legend>
169
              <ol>
170
              <ol>
170
                <li>
171
                <li>
171
                  <label for="frequency">Frequency: </label>
172
                  <label for="frequency">[% t('Frequency:') %] </label>
172
                  <select id="frequency">
173
                  <select id="frequency">
173
                    [% FOREACH frequency IN frequencies_loop %]
174
                    [% FOREACH frequency IN frequencies_loop %]
174
                      <option value="[% frequency.id %]">[% frequency.description %]</option>
175
                      <option value="[% frequency.id %]">[% frequency.description %]</option>
Lines 176-186 Link Here
176
                  </select>
177
                  </select>
177
                </li>
178
                </li>
178
                <li>
179
                <li>
179
                  <label for="firstacquidate">First issue publication date: </label>
180
                  <label for="firstacquidate">[% t('First issue publication date:') %] </label>
180
                  <input type="text" id="firstacquidate" class="datepicker" size="10" />
181
                  <input type="text" id="firstacquidate" class="datepicker" size="10" />
181
                </li>
182
                </li>
182
                <li>
183
                <li>
183
                  <label for="sublength">Subscription length:</label>
184
                  <label for="sublength">[% t('Subscription length:') %]</label>
184
                  <select id="subtype">
185
                  <select id="subtype">
185
                    [% FOREACH subtype IN subtypes_loop %]
186
                    [% FOREACH subtype IN subtypes_loop %]
186
                      <option value="[% subtype.value %]">[% subtype.value %]</option>
187
                      <option value="[% subtype.value %]">[% subtype.value %]</option>
Lines 189-222 Link Here
189
                  <input type="text" id="sublength" size="3" />
190
                  <input type="text" id="sublength" size="3" />
190
                </li>
191
                </li>
191
                <li>
192
                <li>
192
                  <label for="locale">Locale: </label>
193
                  <label for="locale">[% t('Locale:') %] </label>
193
                  <select id="locale" name="locale">
194
                  <select id="locale" name="locale">
194
                      <option value=""></option>
195
                      <option value=""></option>
195
                      [% FOREACH locale IN locales %]
196
                      [% FOREACH locale IN locales %]
196
                        <option value="[% locale.language %]">[% locale.description %]</option>
197
                        <option value="[% locale.language %]">[% locale.description %]</option>
197
                      [% END %]
198
                      [% END %]
198
                    </select>
199
                    </select>
199
                  <span class="hint">If empty, English is used</span>
200
                  <span class="hint">[% t('If empty, English is used') %]</span>
200
                </li>
201
                </li>
201
              </ol>
202
              </ol>
202
              <table>
203
              <table>
203
                <thead>
204
                <thead>
204
                  <tr>
205
                  <tr>
205
                    <th>&nbsp;</th>
206
                    <th> </th>
206
                    <th>X</th>
207
                    <th>[% t('X') %]</th>
207
                    <th>Y</th>
208
                    <th>[% t('Y') %]</th>
208
                    <th>Z</th>
209
                    <th>[% t('Z') %]</th>
209
                  </tr>
210
                  </tr>
210
                </thead>
211
                </thead>
211
                <tbody>
212
                <tbody>
212
                  <tr>
213
                  <tr>
213
                    <td>Begins with</td>
214
                    <td>[% t('Begins with') %]</td>
214
                    <td><input type="text" id="lastvalue1" name="lastvalue1" value="[% lastvalue1 %]" /></td>
215
                    <td><input type="text" id="lastvalue1" name="lastvalue1" value="[% lastvalue1 %]" /></td>
215
                    <td><input type="text" id="lastvalue2" name="lastvalue2" value="[% lastvalue2 %]" /></td>
216
                    <td><input type="text" id="lastvalue2" name="lastvalue2" value="[% lastvalue2 %]" /></td>
216
                    <td><input type="text" id="lastvalue3" name="lastvalue3" value="[% lastvalue3 %]" /></td>
217
                    <td><input type="text" id="lastvalue3" name="lastvalue3" value="[% lastvalue3 %]" /></td>
217
                  </tr>
218
                  </tr>
218
                  <tr>
219
                  <tr>
219
                    <td>Inner counter</td>
220
                    <td>[% t('Inner counter') %]</td>
220
                    <td><input type="text" id="innerloop1" name="innerloop1" value="[% innerloop1 %]" /></td>
221
                    <td><input type="text" id="innerloop1" name="innerloop1" value="[% innerloop1 %]" /></td>
221
                    <td><input type="text" id="innerloop2" name="innerloop2" value="[% innerloop2 %]" /></td>
222
                    <td><input type="text" id="innerloop2" name="innerloop2" value="[% innerloop2 %]" /></td>
222
                    <td><input type="text" id="innerloop3" name="innerloop3" value="[% innerloop3 %]" /></td>
223
                    <td><input type="text" id="innerloop3" name="innerloop3" value="[% innerloop3 %]" /></td>
Lines 224-244 Link Here
224
                </tbody>
225
                </tbody>
225
              </table>
226
              </table>
226
              <fieldset class="action">
227
              <fieldset class="action">
227
                  <button type="button" id="test_pattern" class="btn btn-default btn-sm">Test pattern</button>
228
                  <button type="button" id="test_pattern" class="btn btn-default btn-sm">[% t('Test pattern') %]</button>
228
              </fieldset>
229
              </fieldset>
229
              <div id="predictionpattern"></div>
230
              <div id="predictionpattern"></div>
230
            </fieldset>
231
            </fieldset>
231
          </form>
232
          </form>
232
        </div>
233
        </div>
233
      [% ELSE %]
234
      [% ELSE %]
234
        <h1>Numbering patterns</h1>
235
        <h1>[% t('Numbering patterns') %]</h1>
235
        [% IF still_used %]
236
        [% IF still_used %]
236
            <div class="dialog alert">
237
            <div class="dialog alert">
237
                <p>
238
                <p>
238
                    This pattern is still used by [% subscriptions.size %]
239
                    [% t('This pattern is still used by') %] [% subscriptions.size %]
239
                    subscription(s). Do you still want to delete it?
240
                    [% t('subscription(s). Do you still want to delete it?') %]
240
                </p>
241
                </p>
241
                <p><a href="#" id="show_blocking_subs">Show subscriptions</a></p>
242
                <p><a href="#" id="show_blocking_subs">[% t('Show subscriptions') %]</a></p>
242
                <ul id="blocking_subs" style="display:none">
243
                <ul id="blocking_subs" style="display:none">
243
                    [% FOREACH sub IN subscriptions %]
244
                    [% FOREACH sub IN subscriptions %]
244
                        <li style="list-style-type:none">
245
                        <li style="list-style-type:none">
Lines 251-277 Link Here
251
                    <input type="hidden" name="op" value="del" />
252
                    <input type="hidden" name="op" value="del" />
252
                    <input type="hidden" name="confirm" value="1" />
253
                    <input type="hidden" name="confirm" value="1" />
253
                    <input type="hidden" name="id" value="[% id %]" />
254
                    <input type="hidden" name="id" value="[% id %]" />
254
                    <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
255
                    <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete') %]</button>
255
                </form>
256
                </form>
256
                <form action="/cgi-bin/koha/serials/subscription-numberpatterns.pl" method="get">
257
                <form action="/cgi-bin/koha/serials/subscription-numberpatterns.pl" method="get">
257
                    <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
258
                    <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
258
                </form>
259
                </form>
259
            </div>
260
            </div>
260
        [% END %]
261
        [% END %]
261
262
262
        <div id="toolbar" class="btn-toolbar">
263
        <div id="toolbar" class="btn-toolbar">
263
            <a class="btn btn-default btn-sm" id="newnumberpattern" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=new"><i class="fa fa-plus"></i> New numbering pattern</a>
264
            <a class="btn btn-default btn-sm" id="newnumberpattern" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=new"><i class="fa fa-plus"></i> [% t('New numbering pattern') %]</a>
264
        </div>
265
        </div>
265
266
266
        [% IF (numberpatterns_loop.size) %]
267
        [% IF (numberpatterns_loop.size) %]
267
          <table id="numberpatternst">
268
          <table id="numberpatternst">
268
            <thead>
269
            <thead>
269
              <tr>
270
              <tr>
270
                <th>Name</th>
271
                <th>[% t('Name') %]</th>
271
                <th>Description</th>
272
                <th>[% t('Description') %]</th>
272
                <th>Numbering formula</th>
273
                <th>[% t('Numbering formula') %]</th>
273
                <th>Display order</th>
274
                <th>[% t('Display order') %]</th>
274
                <th>Actions</th>
275
                <th>[% t('Actions') %]</th>
275
              </tr>
276
              </tr>
276
            </thead>
277
            </thead>
277
            <tbody>
278
            <tbody>
Lines 282-296 Link Here
282
                  <td>[% numberpattern.numberingmethod %]</td>
283
                  <td>[% numberpattern.numberingmethod %]</td>
283
                  <td>[% numberpattern.displayorder %]</td>
284
                  <td>[% numberpattern.displayorder %]</td>
284
                  <td class="actions">
285
                  <td class="actions">
285
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=modify&id=[% numberpattern.id %]"><i class="fa fa-pencil"></i> Edit</a>
286
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=modify&id=[% numberpattern.id %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
286
                    <a class="delete_pattern btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=del&id=[% numberpattern.id %]"><i class="fa fa-trash"></i> Delete</a>
287
                    <a class="delete_pattern btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=del&id=[% numberpattern.id %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
287
                  </td>
288
                  </td>
288
                </tr>
289
                </tr>
289
              [% END %]
290
              [% END %]
290
            </tbody>
291
            </tbody>
291
          </table>
292
          </table>
292
        [% ELSE %]
293
        [% ELSE %]
293
          <p>There are no existing numbering patterns.</p>
294
          <p>[% t('There are no existing numbering patterns.') %]</p>
294
        [% END %]
295
        [% END %]
295
      [% END %]
296
      [% END %]
296
    </div>
297
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt (-13 / +14 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
[% IF subscription %]
4
[% IF subscription %]
4
<title>Koha &rsaquo; Serials subscription renew #[% subscription.subscriptionid %]</title>
5
<title>[% t('Koha › Serials subscription renew #') %][% subscription.subscriptionid %]</title>
5
[% ELSE %]
6
[% ELSE %]
6
<title>Koha &rsaquo; Serials subscription renew</title>
7
<title>[% t('Koha › Serials subscription renew') %]</title>
7
[% END %]
8
[% END %]
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
Lines 13-44 Link Here
13
14
14
[% IF op == 'renew' OR op =='multi_renew' %]
15
[% IF op == 'renew' OR op =='multi_renew' %]
15
    [% IF op == 'renew' %]
16
    [% IF op == 'renew' %]
16
        <span>Subscription renewed.<span>
17
        <span>[% t('Subscription renewed.') %]<span>
17
    [% ELSE %]
18
    [% ELSE %]
18
        <span>Subscriptions renewed.<span>
19
        <span>[% t('Subscriptions renewed.') %]<span>
19
    [% END %]
20
    [% END %]
20
21
21
    <div id="closewindow">
22
    <div id="closewindow">
22
        <a class="btn btn-default btn-default close" href="#">Close</a>
23
        <a class="btn btn-default btn-default close" href="#">[% t('Close') %]</a>
23
    </div>
24
    </div>
24
[% ELSE %]
25
[% ELSE %]
25
      <div id="bd">
26
      <div id="bd">
26
<form name="f" action="/cgi-bin/koha/serials/subscription-renew.pl" method="post">
27
<form name="f" action="/cgi-bin/koha/serials/subscription-renew.pl" method="post">
27
		<input type="hidden" name="op" value="renew" />
28
		<input type="hidden" name="op" value="renew" />
28
		<input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid %]" />
29
		<input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid %]" />
29
		<fieldset class="rows"><legend>Subscription renewal for [% subscription.bibliotitle %]</legend>
30
		<fieldset class="rows"><legend>[% t('Subscription renewal for') %] [% subscription.bibliotitle %]</legend>
30
        <ol>
31
        <ol>
31
            <li>
32
            <li>
32
                <label for="startdate">Start date: </label>
33
                <label for="startdate">[% t('Start date:') %] </label>
33
                <input type="text" size="10" id="startdate" name="startdate" value="[% startdate %]" class="datepicker"/>
34
                <input type="text" size="10" id="startdate" name="startdate" value="[% startdate %]" class="datepicker" />
34
                <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
35
                <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
35
            </li>
36
            </li>
36
		<li><fieldset>
37
		<li><fieldset>
37
		<legend>Subscription length:</legend>
38
		<legend>[% t('Subscription length:') %]</legend>
38
		<ol><li><label for="numberlength">Number of num:</label><input type="text" id="numberlength" name="numberlength" value="[% subscription.numberlength %]" /></li>
39
		<ol><li><label for="numberlength">[% t('Number of num:') %]</label><input type="text" id="numberlength" name="numberlength" value="[% subscription.numberlength %]" /></li>
39
		<li><label for="weeklength">Number of weeks: </label><input type="text" id="weeklength" name="weeklength" value="[% subscription.weeklength %]" /></li>
40
		<li><label for="weeklength">[% t('Number of weeks:') %] </label><input type="text" id="weeklength" name="weeklength" value="[% subscription.weeklength %]" /></li>
40
		<li><label for="monthlength">Number of months: </label><input type="text" id="monthlength" name="monthlength" value="[% subscription.monthlength %]" /></li></ol></fieldset></li>
41
		<li><label for="monthlength">[% t('Number of months:') %] </label><input type="text" id="monthlength" name="monthlength" value="[% subscription.monthlength %]" /></li></ol></fieldset></li>
41
		<li><label for="note">Note for the librarian that will manage your renewal request: </label>
42
		<li><label for="note">[% t('Note for the librarian that will manage your renewal request:') %] </label>
42
		<textarea name="note" id="note" rows="5" cols="50"></textarea></li></ol></fieldset>
43
		<textarea name="note" id="note" rows="5" cols="50"></textarea></li></ol></fieldset>
43
		<fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
44
		<fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
44
</form>
45
</form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/viewalerts.tt (-7 / +7 lines)
Lines 1-28 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Serials &rsaquo; Alert subscribers for [% bibliotitle %]</title>
3
<title>[% t('Koha › Serials › Alert subscribers for') %] [% bibliotitle %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
5
<body id="ser_viewalerts" class="ser">
6
<body id="ser_viewalerts" class="ser">
6
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'serials-search.inc' %]
8
[% INCLUDE 'serials-search.inc' %]
8
9
9
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Alert subscribers for <i>[% bibliotitle %]</i></div>
10
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">[% t('Serials') %]</a> [% t('› Alert subscribers for') %] <i>[% bibliotitle %]</i></div>
10
11
11
<div id="doc3" class="yui-t2">
12
<div id="doc3" class="yui-t2">
12
    <div id="bd">
13
    <div id="bd">
13
    <div id="yui-main">
14
    <div id="yui-main">
14
    <div class="yui-b">
15
    <div class="yui-b">
15
16
16
<h1>Alert subscribers for <i>[% bibliotitle %]</i></h1>
17
<h1>[% t('Alert subscribers for') %] <i>[% bibliotitle %]</i></h1>
17
18
18
<p>
19
<p>
19
    <span class="label">Subscription:</span> <a href="subscription-detail.pl?subscriptionid=[% subscriptionid %]">[% bibliotitle %] #[% subscriptionid %]</a>
20
    <span class="label">[% t('Subscription:') %]</span> <a href="subscription-detail.pl?subscriptionid=[% subscriptionid %]">[% bibliotitle %] #[% subscriptionid %]</a>
20
</p>
21
</p>
21
22
22
[% IF subscribers.count %]
23
[% IF subscribers.count %]
23
    <table>
24
    <table>
24
        <tr>
25
        <tr>
25
            <th>Patron name</th>
26
            <th>[% t('Patron name') %]</th>
26
        </tr>
27
        </tr>
27
        [% FOREACH subscriber IN subscribers %]
28
        [% FOREACH subscriber IN subscribers %]
28
        <tr>
29
        <tr>
Lines 33-39 Link Here
33
        [% END %]
34
        [% END %]
34
    </table>
35
    </table>
35
[% ELSE %]
36
[% ELSE %]
36
    <p>There are no patrons subscribed to this subscription serial alert.</p>
37
    <p>[% t('There are no patrons subscribed to this subscription serial alert.') %]</p>
37
[% END %]
38
[% END %]
38
39
39
</div>
40
</div>
40
- 

Return to bug 20988