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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-search.inc (-2 / +2 lines)
Lines 14-21 Link Here
14
        <label for="title">Title: </label> <input type="text" id="title" name="title" size="15" value="[% title %]" />
14
        <label for="title">Title: </label> <input type="text" id="title" name="title" size="15" value="[% title %]" />
15
        <label for="searchsupplier">Vendor:</label> <input type="text" id="searchsupplier" name="name" size="15" value="[% name|html %]" />
15
        <label for="searchsupplier">Vendor:</label> <input type="text" id="searchsupplier" name="name" size="15" value="[% name|html %]" />
16
        <input type="hidden" id="do_search" name="do_search" value="do" />
16
        <input type="hidden" id="do_search" name="do_search" value="do" />
17
        <span class="filteraction" id="filteraction_off" style="display:none"> <a href="#" onclick="$('#filters,.filteraction').toggle();">[-]</a></span>
17
        <span class="filteraction" id="filteraction_off" style="display:none"> <a href="#" class="toggle_element" data-element="#filters,.filteraction">[-]</a></span>
18
        <span class="filteraction" id="filteraction_on"> <a href="#" onclick="$('#filters,.filteraction').toggle();">[+]</a></span>
18
        <span class="filteraction" id="filteraction_on"> <a href="#" class="toggle_element" data-element="#filters,.filteraction">[+]</a></span>
19
    <input value="Submit" class="submit" type="submit" /> <a href="/cgi-bin/koha/acqui/histsearch.pl">Advanced search</a>
19
    <input value="Submit" class="submit" type="submit" /> <a href="/cgi-bin/koha/acqui/histsearch.pl">Advanced search</a>
20
    <p id="filters" style="display:none">
20
    <p id="filters" style="display:none">
21
      <label for="basket">Basket: </label><input type="text" name="basket" id="basket" />
21
      <label for="basket">Basket: </label><input type="text" name="basket" id="basket" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc (-1 / +6 lines)
Lines 17-22 Link Here
17
                mrform.hide();
17
                mrform.hide();
18
                e.preventDefault();
18
                e.preventDefault();
19
            });
19
            });
20
            $(".clear-date").on("click",function(e){
21
                e.preventDefault();
22
                var fieldID = this.id.replace("clear-date-","");
23
                $("#" + fieldID).val("");
24
            });
20
        })
25
        })
21
    //]]>
26
    //]]>
22
</script>
27
</script>
Lines 75-81 Link Here
75
                <ol>
80
                <ol>
76
                    <li><label for="rcomment">Comment:</label> <input type="text" id="rcomment" name="comment" /></li>
81
                    <li><label for="rcomment">Comment:</label> <input type="text" id="rcomment" name="comment" /></li>
77
                    <li><label for="rexpiration">Expiration:</label> <input name="expiration" id="rexpiration" size="10" readonly="readonly" value="" class="datepicker" />
82
                    <li><label for="rexpiration">Expiration:</label> <input name="expiration" id="rexpiration" size="10" readonly="readonly" value="" class="datepicker" />
78
                        <a href='#' onclick="document.getElementById('expiration').value='';">Clear date</a></li>
83
                        <a href="#" class="clear-date" id="clear-date-rexpiration">Clear date</a></li>
79
                </ol>
84
                </ol>
80
            <fieldset class="action"><input type="submit" value="Add restriction" /> <a href="#" class="cancel" id="cancel_manual_restriction">Cancel</a></fieldset>
85
            <fieldset class="action"><input type="submit" value="Add restriction" /> <a href="#" class="cancel" id="cancel_manual_restriction">Cancel</a></fieldset>
81
            </fieldset>
86
            </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/help-bottom.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<form action="/cgi-bin/koha/edithelp.pl" method="post">
1
<form action="/cgi-bin/koha/edithelp.pl" method="post">
2
  <fieldset class="action"><input type="button" class="submit" onclick="window.close(); return false;" value="Close help window" />
2
  <fieldset class="action"><input type="button" class="close" value="Close help window" />
3
  <input type="hidden" name="type" value="modify" />
3
  <input type="hidden" name="type" value="modify" />
4
  <input type="hidden" name="referer" value="[% referer %]" />
4
  <input type="hidden" name="referer" value="[% referer %]" />
5
  <input type="submit" class="submit" value="Edit help" /></fieldset>
5
  <input type="submit" class="submit" value="Edit help" /></fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc (-10 / +16 lines)
Lines 5-11 $(document).ready(function(){ Link Here
5
    $(".none").click(function(){
5
    $(".none").click(function(){
6
        if($(this).prop("checked")){
6
        if($(this).prop("checked")){
7
            var rowid = $(this).attr("id");
7
            var rowid = $(this).attr("id");
8
            newid = Number(rowid.replace("none",""))
8
            newid = Number(rowid.replace("none",""));
9
            $("#sms"+newid).prop("checked", false);
9
            $("#sms"+newid).prop("checked", false);
10
            $("#email"+newid).prop("checked", false);
10
            $("#email"+newid).prop("checked", false);
11
            $("#phone"+newid).prop("checked", false);
11
            $("#phone"+newid).prop("checked", false);
Lines 13-18 $(document).ready(function(){ Link Here
13
            $("#rss"+newid).prop("checked", false);
13
            $("#rss"+newid).prop("checked", false);
14
        }
14
        }
15
    });
15
    });
16
    $(".active_notify").on("change",function(){
17
        var attr_id = $(this).data("attr-id");
18
        if( $(this).prop("checked") ){
19
            $("#none" + attr_id ).prop("checked", false);
20
        }
21
    });
16
    $("#info_digests").tooltip();
22
    $("#info_digests").tooltip();
17
});
23
});
18
//]]>
24
//]]>
Lines 75-86 $(document).ready(function(){ Link Here
75
                 <input type="checkbox"
81
                 <input type="checkbox"
76
                 id="sms[% messaging_preference.message_attribute_id %]"
82
                 id="sms[% messaging_preference.message_attribute_id %]"
77
                 name="[% messaging_preference.message_attribute_id %]"
83
                 name="[% messaging_preference.message_attribute_id %]"
78
                 value="sms" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
84
                 value="sms" checked="checked" class="active_notify" data-attr-id="[% messaging_preference.message_attribute_id %]" />
79
              [% ELSE %]
85
              [% ELSE %]
80
                 <input type="checkbox"
86
                 <input type="checkbox"
81
                 id="sms[% messaging_preference.message_attribute_id %]"
87
                 id="sms[% messaging_preference.message_attribute_id %]"
82
                 name="[% messaging_preference.message_attribute_id %]"
88
                 name="[% messaging_preference.message_attribute_id %]"
83
                 value="sms" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
89
                 value="sms" class="active_notify" data-attr-id="[% messaging_preference.message_attribute_id %]" />
84
              [% END %]
90
              [% END %]
85
          [% END %]
91
          [% END %]
86
      </td>[% END %]
92
      </td>[% END %]
Lines 103-114 $(document).ready(function(){ Link Here
103
                 <input type="checkbox"
109
                 <input type="checkbox"
104
                 id="phone[% messaging_preference.message_attribute_id %]"
110
                 id="phone[% messaging_preference.message_attribute_id %]"
105
                 name="[% messaging_preference.message_attribute_id %]"
111
                 name="[% messaging_preference.message_attribute_id %]"
106
                 value="phone" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
112
                 value="phone" checked="checked" class="active_notify" data-attr-id="[% messaging_preference.message_attribute_id %]" />
107
              [% ELSE %]
113
              [% ELSE %]
108
                 <input type="checkbox"
114
                 <input type="checkbox"
109
                 id="phone[% messaging_preference.message_attribute_id %]"
115
                 id="phone[% messaging_preference.message_attribute_id %]"
110
                 name="[% messaging_preference.message_attribute_id %]"
116
                 name="[% messaging_preference.message_attribute_id %]"
111
                 value="phone" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
117
                 value="phone" class="active_notify" data-attr-id="[% messaging_preference.message_attribute_id %]" />
112
              [% END %]
118
              [% END %]
113
          [% END %]
119
          [% END %]
114
      </td>[% END %]
120
      </td>[% END %]
Lines 132-143 $(document).ready(function(){ Link Here
132
            <input type="checkbox"
138
            <input type="checkbox"
133
                 id="email[% messaging_preference.message_attribute_id %]"
139
                 id="email[% messaging_preference.message_attribute_id %]"
134
                 name="[% messaging_preference.message_attribute_id %]"
140
                 name="[% messaging_preference.message_attribute_id %]"
135
                 value="email" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
141
                 value="email" checked="checked" class="active_notify" data-attr-id="[% messaging_preference.message_attribute_id %]" />
136
              [% ELSE %]
142
              [% ELSE %]
137
            <input type="checkbox"
143
            <input type="checkbox"
138
                 id="email[% messaging_preference.message_attribute_id %]"
144
                 id="email[% messaging_preference.message_attribute_id %]"
139
                 name="[% messaging_preference.message_attribute_id %]"
145
                 name="[% messaging_preference.message_attribute_id %]"
140
                 value="email" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
146
                 value="email" class="active_notify" data-attr-id="[% messaging_preference.message_attribute_id %]" />
141
              [% END %]
147
              [% END %]
142
          [% END %]
148
          [% END %]
143
      </td>
149
      </td>
Lines 164-175 $(document).ready(function(){ Link Here
164
                <input type="checkbox"
170
                <input type="checkbox"
165
                     id="digest[% messaging_preference.message_attribute_id %]"
171
                     id="digest[% messaging_preference.message_attribute_id %]"
166
                     value="[% messaging_preference.message_attribute_id %]"
172
                     value="[% messaging_preference.message_attribute_id %]"
167
                     name="digest" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
173
                     name="digest" checked="checked" class="active_notify" data-attr-id="[% messaging_preference.message_attribute_id %]" />
168
              [% ELSE %]
174
              [% ELSE %]
169
                <input type="checkbox"
175
                <input type="checkbox"
170
                     id="digest[% messaging_preference.message_attribute_id %]"
176
                     id="digest[% messaging_preference.message_attribute_id %]"
171
                     value="[% messaging_preference.message_attribute_id %]"
177
                     value="[% messaging_preference.message_attribute_id %]"
172
                     name="digest" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
178
                     name="digest" class="active_notify" data-attr-id="[% messaging_preference.message_attribute_id %]" />
173
              [% END %]
179
              [% END %]
174
          [% END %]
180
          [% END %]
175
      </td>
181
      </td>
Lines 188-194 $(document).ready(function(){ Link Here
188
            <input type="checkbox"
194
            <input type="checkbox"
189
                 id="rss[% messaging_preference.message_attribute_id %]"
195
                 id="rss[% messaging_preference.message_attribute_id %]"
190
                 name="[% messaging_preference.message_attribute_id %]"
196
                 name="[% messaging_preference.message_attribute_id %]"
191
                 value="rss"   [% messaging_preference.transport_rss %] onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
197
                 value="rss"   [% messaging_preference.transport_rss %] class="active_notify" data-attr-id="[% messaging_preference.message_attribute_id %]" />
192
          [% END %]
198
          [% END %]
193
      </td>
199
      </td>
194
      [% ELSE %]
200
      [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc (-1 / +1 lines)
Lines 67-73 Link Here
67
67
68
        [% IF not cannotedit or CAN_user_serials_receive_serials %]
68
        [% IF not cannotedit or CAN_user_serials_receive_serials %]
69
            [% IF CAN_user_serials_renew_subscription and not closed %]
69
            [% IF CAN_user_serials_renew_subscription and not closed %]
70
                <div class="btn-group"><a id="renew" class="btn btn-small" href="#" onclick="popup([% subscriptionid %])"><i class="fa fa-refresh"></i> Renew</a></div>
70
                <div class="btn-group"><a id="renew" class="btn btn-small" href="#"><i class="fa fa-refresh"></i> Renew</a></div>
71
            [% END %]
71
            [% END %]
72
            [% IF CAN_user_serials_receive_serials and not closed %]
72
            [% IF CAN_user_serials_receive_serials and not closed %]
73
                <div class="btn-group"><a id="receive" class="btn btn-small" href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscriptionid %]&amp;serstatus=1,3"><i class="fa fa-inbox"></i> Receive</a></div>
73
                <div class="btn-group"><a id="receive" class="btn btn-small" href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscriptionid %]&amp;serstatus=1,3"><i class="fa fa-inbox"></i> Receive</a></div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/subscriptions-search.inc (-1 / +1 lines)
Lines 1-7 Link Here
1
<div id="advsearch">
1
<div id="advsearch">
2
    <form action="" method="get">
2
    <form action="" method="get">
3
        <fieldset class="brief">
3
        <fieldset class="brief">
4
            <a id="unfold_advsearch" style="cursor:pointer" onclick="$('#advsearch_form').slideToggle(400);">Advanced search</a>
4
        <a href="#" class="toggle_element" data-element="#advsearch_form">Advanced search</a>
5
            <div id="advsearch_form" style="display:none">
5
            <div id="advsearch_form" style="display:none">
6
            <ol>
6
            <ol>
7
              <li>
7
              <li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/subtypes_unimarc.inc (-34 / +39 lines)
Lines 1-11 Link Here
1
<a onclick="javascript:if (document.getElementsByName('Coded_Fields')[0].style.display=='none'){document.getElementsByName('Coded_Fields')[0].style.display='block';} else {document.getElementsByName('Coded_Fields')[0].style.display='none';}">Coded information filters</a>
1
<p>
2
<div id="yui-b" style="display:none;" name="Coded_Fields" >
2
    <a id="show_coded_fields" class="toggle_element" data-element="#Coded_Fields,#show_coded_fields,#hide_coded_fields" href="#"><i class="fa fa-plus-square-o"></i> Show coded information filters</a>
3
    <a id="hide_coded_fields" class="toggle_element" data-element="#Coded_Fields,#show_coded_fields,#hide_coded_fields" href="#" style="display:none;"><i class="fa fa-minus-square-o"></i> Hide coded information filters</a>
4
</p>
5
<div style="display:none;" id="Coded_Fields">
3
<!-- SUBTYPE LIMITS -->
6
<!-- SUBTYPE LIMITS -->
4
		<fieldset>
7
        <fieldset>
5
		<legend>Coded Fields</legend>
8
        <legend>Coded fields</legend>
6
		<p>
9
        <p>
7
		<label>Audience</label>
10
        <label for="audience">Audience: </label>
8
		<select name="limit" class="subtype">
11
        <select id="audience" name="limit" class="subtype">
9
            <option value="" selected="selected" >Any</option>
12
            <option value="" selected="selected" >Any</option>
10
            <option value="ta:a">juvenile, general</option>
13
            <option value="ta:a">juvenile, general</option>
11
            <option value="ta:b">pre-primary (0-5)</option>
14
            <option value="ta:b">pre-primary (0-5)</option>
Lines 16-25 Link Here
16
            <option value="ta:m">adult, General</option>
19
            <option value="ta:m">adult, General</option>
17
            <option value="ta:u">unknown</option>
20
            <option value="ta:u">unknown</option>
18
		</select>
21
		</select>
19
		</p>
22
        </p>
20
		<p>
23
		<p>
21
        <label>Physical presentation</label>
24
        <label for="physical_presentation">Physical presentation: </label>
22
        <select name="limit" class="subtype">
25
        <select id="physical_presentation" name="limit" class="subtype">
23
            <option value="" selected="selected" >Any</option>
26
            <option value="" selected="selected" >Any</option>
24
            <option value="ff8-23:r">regular print</option>
27
            <option value="ff8-23:r">regular print</option>
25
            <option value="ff8-23:d">large print</option>
28
            <option value="ff8-23:d">large print</option>
Lines 33-42 Link Here
33
            <option value="ff8-23:t">microform</option>
36
            <option value="ff8-23:t">microform</option>
34
            <option value="ff8-23:z">other form of textual material</option>
37
            <option value="ff8-23:z">other form of textual material</option>
35
		</select>
38
		</select>
36
		</p>
39
        </p>
37
		<p>
40
		<p>
38
        <label>Literary genre</label>
41
            <label for="literary_genre">Literary genre: </label>
39
		<select name="limit" class="subtype">
42
            <select id="literary_genre" name="limit" class="subtype">
40
			<option value="" selected="selected" >Any</option>
43
			<option value="" selected="selected" >Any</option>
41
            <option value="lf:a">fiction</option>
44
            <option value="lf:a">fiction</option>
42
            <option value="lf:b">drama</option>
45
            <option value="lf:b">drama</option>
Lines 52-59 Link Here
52
    </select>
55
    </select>
53
    </p>
56
    </p>
54
        <p>
57
        <p>
55
		<label>Biography</label>
58
            <label for="biography">Biography: </label>
56
        <select name="limit" class="subtype" size="1">
59
            <select id="biography" name="limit" class="subtype">
57
            <option value="">Any</option>
60
            <option value="">Any</option>
58
                <option value="bio:y">not a biography</option>
61
                <option value="bio:y">not a biography</option>
59
                <option value="bio:a">autobiography</option>
62
                <option value="bio:a">autobiography</option>
Lines 63-70 Link Here
63
		</select>
66
		</select>
64
        </p>
67
        </p>
65
        <p>
68
        <p>
66
		<label>Illustration</label>
69
            <label for="illustration">Illustration: </label>
67
        <select name="limit" class="subtype" size="1">
70
            <select id="illustration" name="limit" class="subtype">
68
            <option value="">Any</option>
71
            <option value="">Any</option>
69
                <option value="ff8-18-21:a">illustrations</option>
72
                <option value="ff8-18-21:a">illustrations</option>
70
                <option value="ff8-18-21:b">maps</option>
73
                <option value="ff8-18-21:b">maps</option>
Lines 85-92 Link Here
85
        </select>
88
        </select>
86
        </p>
89
        </p>
87
		<p>
90
		<p>
88
		<label>Content</label>
91
            <label for="content">Content: </label>
89
		<select name="limit" class="subtype">
92
            <select id="content" name="limit" class="subtype">
90
			<option value="" >Any</option>
93
			<option value="" >Any</option>
91
            <option value="ctype:a" >bibliography</option>
94
            <option value="ctype:a" >bibliography</option>
92
            <option value="ctype:b" >catalogue</option>
95
            <option value="ctype:b" >catalogue</option>
Lines 114-121 Link Here
114
		</select>
117
		</select>
115
        </p>
118
        </p>
116
        <p>
119
        <p>
117
		<label>Video Types</label>
120
            <label for="video_types">Video types: </label>
118
		<select name="limit" class="subtype">
121
            <select id="video_types" name="limit" class="subtype">
119
            <option value="">Any</option>
122
            <option value="">Any</option>
120
			<option value="Video-mt:a">motion picture</option>
123
			<option value="Video-mt:a">motion picture</option>
121
			<option value="Video-mt:b">visual projection</option>
124
			<option value="Video-mt:b">visual projection</option>
Lines 123-133 Link Here
123
		</select>
126
		</select>
124
        </p>
127
        </p>
125
		</fieldset>
128
		</fieldset>
129
126
		<fieldset>
130
		<fieldset>
127
		<legend>Serials</legend><p>
131
        <legend>Serials</legend>
128
		<p>
132
		<p>
129
		<label>Serial Type</label>
133
            <label for="serial_type">Serial type: </label>
130
		<select name="limit" class="subtype">
134
            <select id="serial_type" name="limit" class="subtype">
131
           <option value="">Any type</option>
135
           <option value="">Any type</option>
132
            <option value="ff8-21:a">Periodical</option>
136
            <option value="ff8-21:a">Periodical</option>
133
            <option value="ff8-21:b">Monographic series</option>
137
            <option value="ff8-21:b">Monographic series</option>
Lines 137-146 Link Here
137
            <option value="ff8-21:g">Updating website</option>
141
            <option value="ff8-21:g">Updating website</option>
138
            <option value="ff8-21:z">Other</option>
142
            <option value="ff8-21:z">Other</option>
139
		</select>
143
		</select>
140
		</p>
144
        </p>
141
		<p>
145
        <p>
142
		<label>Periodicity</label>
146
            <label for="periodicity">Periodicity: </label>
143
		<select name="limit" class="subtype">
147
            <select id="periodicity" name="limit" class="subtype">
144
			<option value="">Any</option>
148
			<option value="">Any</option>
145
            <option value="ff8-18:a">Daily</option>
149
            <option value="ff8-18:a">Daily</option>
146
            <option value="ff8-18:b">Semiweekly</option>
150
            <option value="ff8-18:b">Semiweekly</option>
Lines 161-170 Link Here
161
            <option value="ff8-18:u">Unknown</option>
165
            <option value="ff8-18:u">Unknown</option>
162
            <option value="ff8-18:z">Other</option>
166
            <option value="ff8-18:z">Other</option>
163
		</select>
167
		</select>
164
		</p>
168
        </p>
165
		<p>
169
        <p>
166
		<label>Regularity</label>
170
            <label for="regularity">Regularity: </label>
167
		<select name="limit" class="subtype">
171
            <select id="regularity" name="limit" class="subtype">
168
            <option value="">Any regularity</option>
172
            <option value="">Any regularity</option>
169
            <option value="ff8-19:a">regular</option>
173
            <option value="ff8-19:a">regular</option>
170
            <option value="ff8-19:b">normalised irregular</option>
174
            <option value="ff8-19:b">normalised irregular</option>
Lines 172-181 Link Here
172
            <option value="ff8-19:u">unknown</option>
176
            <option value="ff8-19:u">unknown</option>
173
		</select>
177
		</select>
174
        </p>
178
        </p>
175
176
        </fieldset>
179
        </fieldset>
180
177
		<fieldset>
181
		<fieldset>
178
		<legend>Picture</legend><p>
182
        <legend>Picture</legend>
183
        <p>
179
		<select name="limit" class="subtype">
184
		<select name="limit" class="subtype">
180
				<option value="">Any</option>
185
				<option value="">Any</option>
181
				<option value="Graphics-type:a">collage</option>
186
				<option value="Graphics-type:a">collage</option>
(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-1 / +5 lines)
Lines 52-57 $.fn.selectTabByID = function (tabID) { Link Here
52
    $("body").on("keypress", ".noEnterSubmit", function(e){
52
    $("body").on("keypress", ".noEnterSubmit", function(e){
53
        return checkEnter(e);
53
        return checkEnter(e);
54
    });
54
    });
55
    $(".toggle_element").on("click",function(e){
56
        e.preventDefault();
57
        $( $(this).data("element") ).toggle();
58
    });
59
55
});
60
});
56
61
57
// http://jennifermadden.com/javascript/stringEnterKeyDetector.html
62
// http://jennifermadden.com/javascript/stringEnterKeyDetector.html
58
- 

Return to bug 16557