blacklight 4.0.0.rc2 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.0.rc2
1
+ 4.0.0
@@ -11,14 +11,12 @@
11
11
  //= require blacklight/search_context
12
12
  //= require blacklight/select_submit
13
13
  //= require blacklight/zebra_stripe
14
- //= require blacklight/bootstrap_dropdowns
15
14
  //= require blacklight/css_dropdowns
16
15
  //
17
16
  //Bootstrap JS for providing collapsable tablet/mobile menu/alert boxes
18
17
  //= require bootstrap-transition
19
18
  //= require bootstrap-collapse
20
19
  //= require bootstrap-alert
21
- //= require bootstrap-dropdown
22
20
  //= require improved-modal/bootstrap-modalmanager.js
23
21
  //= require improved-modal/bootstrap-modal.js
24
22
 
@@ -1,24 +1,5 @@
1
- #appliedParams
2
- {
3
- background-color:$search_ui_bg_color;
4
- border-bottom:1px solid $search_ui_border_color;
5
- border-left:1px solid $search_ui_border_color;
6
- border-right:1px solid $search_ui_border_color;
7
- margin-bottom:1.5em;
8
- padding:1em 0 0 0em;
9
-
10
- .label
11
- {
12
- position: absolute !important;
13
- height: 1px; width: 1px;
14
- overflow: hidden;
15
- clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
16
- clip: rect(1px, 1px, 1px, 1px);
17
- }
18
- }
19
-
20
1
  .catalog_startOverLink {
21
- padding-top: 0.5em;
2
+ padding-top: 0.3em;
22
3
  float: right;
23
4
  }
24
5
 
@@ -34,7 +15,7 @@
34
15
  h1
35
16
  {
36
17
  margin:0;
37
- padding:0 0 1em;
18
+ padding:0 0 0.4em;
38
19
  }
39
20
  }
40
21
 
@@ -47,12 +28,8 @@
47
28
  {
48
29
  padding: 5px 0 0;
49
30
  }
50
-
51
- .per_page-form
52
- {
53
- padding-right:5px;
54
- }
55
31
  }
32
+
56
33
  .ajax_form
57
34
  {
58
35
  margin-bottom: 0;
@@ -99,38 +76,10 @@
99
76
  padding-bottom: 9px;
100
77
  }
101
78
 
102
- .constraints-row {
103
- margin-top:1em;
104
- margin-bottom:1em;
105
- }
106
79
  span.constraints-label {
107
80
  font-weight:bold;
108
81
  }
109
82
 
110
- li.pill-with-label {
111
- padding-top: 3px;
112
- padding-right: 6px;
113
- padding-left: 6px;
114
- padding-bottom: 3px;
115
- a.dropdown-toggle {
116
- padding-left: 3px;
117
- padding-right: 3px;
118
- display: inline;
119
-
120
- }
121
- }
122
-
123
- .show-document-title
124
- {
125
- padding-top: 0.5em;
126
-
127
- }
128
-
129
- .show-document > #document
130
- {
131
- margin-top: 0;
132
- }
133
-
134
83
  .appliedFilter
135
84
  {
136
85
  background: $constraint_bg_color;
@@ -139,6 +88,7 @@ li.pill-with-label {
139
88
  margin-bottom:0.66em;
140
89
  margin-right:0.33em;
141
90
  padding:3px 3px 3px 1.5em;
91
+ padding-right:50px;
142
92
  position:relative;
143
93
  @include border-radius(15px 15px 15px 15px);
144
94
 
@@ -163,19 +113,13 @@ li.pill-with-label {
163
113
  border:1px dotted $constraint_border_active_color;
164
114
  }
165
115
 
166
- .queryName,.filterName
116
+ .filterName
167
117
  {
168
118
  background:asset_url('blacklight/separator.gif',image) no-repeat right center;
169
119
  padding-right:14px;
170
120
  }
171
121
  }
172
122
 
173
- .constraints,h3.index_title,dl
174
- {
175
- margin:0;
176
- padding:0;
177
- }
178
-
179
123
  .document
180
124
  {
181
125
  border-bottom:1px dotted $dotted_border_color;
@@ -202,36 +146,9 @@ li.pill-with-label {
202
146
  margin: 0;
203
147
  }
204
148
 
205
- .filterValue
206
- {
207
- padding-right:37px;
208
- }
209
-
210
-
211
- .pageEntriesInfo
212
- {
213
- background-color:$search_ui_bg_color;
214
- border-color:$search_ui_border_color;
215
- border-style:solid;
216
- border-width:1px 1px 0;
217
- padding:0 0.66em 0.66em 0;
218
- position:relative;
219
- }
220
-
221
-
222
149
  .page_links
223
150
  {
224
- margin-left:8em;
225
- margin-right:8em;
226
- text-align:center;
227
-
228
- span.current
229
- {
230
- background:none repeat scroll 0 0 $page_bg_color;
231
- border:1px solid $page_bg_color;
232
- color:#FFF;
233
- font-weight:700;
234
- }
151
+ display: inline-block;
235
152
  }
236
153
 
237
154
  .pagination {
@@ -239,17 +156,6 @@ li.pill-with-label {
239
156
  }
240
157
 
241
158
 
242
- .show #appliedParams
243
- {
244
- border-top:1px solid $search_ui_border_color;
245
-
246
- .label
247
- {
248
- margin-top:0;
249
- position:static;
250
- }
251
- }
252
-
253
159
  .solrQuery
254
160
  {
255
161
  background-color: $search_ui_bg_color;
@@ -259,6 +165,11 @@ li.pill-with-label {
259
165
  padding:.5em;
260
166
  }
261
167
 
168
+ .document dl {
169
+ margin-top: 0;
170
+ margin-bottom: 0;
171
+ }
172
+
262
173
  .dl-invert {
263
174
  dt {
264
175
  font-weight: normal;
@@ -337,5 +248,3 @@ span.page a,span.page.current
337
248
  #email_form {
338
249
  @extend .span6;
339
250
  }
340
-
341
-
@@ -46,7 +46,7 @@
46
46
  color:green;
47
47
  }
48
48
 
49
- ul,h3 +div
49
+ ul,h5 +div
50
50
  {
51
51
  padding-bottom:1em;
52
52
  }
@@ -1,20 +0,0 @@
1
- /* This ensures that any tool pop-up goes infront of the header */
2
- .navbar-fixed-bottom {
3
- z-index:1000;
4
- }
5
-
6
- .navbar-fixed-bottom {
7
- margin-right:0px;
8
- position: relative;
9
- margin-top: 0;
10
- }
11
-
12
-
13
-
14
- #footer-title {
15
- padding-bottom:10px;
16
- }
17
-
18
- #footer-row {
19
- margin-top: 1em;
20
- }
@@ -1,17 +1,3 @@
1
- .first h1
2
- {
3
- margin:0;
4
- padding:0;
5
- }
6
-
7
- h2.search
8
- {
9
- display:inline;
10
- margin:0;
11
- }
12
-
13
-
14
-
15
1
  /*
16
2
  The main logo image for the Blacklight instance
17
3
  */
@@ -78,28 +64,6 @@ h2.search
78
64
  margin-right: 0.5em;
79
65
  }
80
66
 
81
- .user-util-links {
82
- text-align: right;
67
+ .util-links-login, .util-links-other {
83
68
  font-size: 0.9em;
84
69
  }
85
-
86
-
87
- /*
88
- Selected items needs special css to deal with number of selected items
89
- */
90
- #selected-items {
91
- #desktop-folder-link {
92
- float:left;
93
- padding-right:5px;
94
- }
95
- #folder {
96
- float: right;
97
- padding: 9px 10px 0 0;
98
- }
99
- }
100
-
101
-
102
-
103
-
104
-
105
-
@@ -1,19 +1,10 @@
1
-
2
1
  /* Generic layout stuff */
3
2
  .hide
4
3
  {
5
4
  display:none
6
5
  }
7
6
 
8
-
9
7
  /* This provides a fixed distance between the header and the main content */
10
8
  body {
11
9
  padding-top: 6em;
12
10
  }
13
-
14
- /* prevent search bar space from collapsing when there's no search bar */
15
- .desktop-search-bar, .tablet-search-bar {
16
- min-height: 1em
17
- }
18
-
19
-
@@ -1,47 +0,0 @@
1
- @media print {
2
- #bd
3
- {
4
- padding:0;
5
- position:relative;
6
- width:100%;
7
- }
8
-
9
- #hd
10
- {
11
- margin:0;
12
- padding:0 0 2em;
13
- }
14
-
15
- #page
16
- {
17
- background:none;
18
- border:0;
19
- margin:0;
20
- padding:0;
21
- width:100%;
22
- }
23
-
24
- * html #documents
25
- {
26
- width:75%;
27
- }
28
-
29
- * html #page
30
- {
31
- left:0;
32
- position:absolute;
33
- top:0;
34
- }
35
-
36
- body
37
- {
38
- background:none;
39
- margin:0;
40
- padding:0;
41
- }
42
-
43
- html
44
- {
45
- background:#fff;
46
- }
47
- }
@@ -152,8 +152,8 @@ module Blacklight::BlacklightHelperBehavior
152
152
  @document[blacklight_config.show.heading] || @document.id
153
153
  end
154
154
 
155
- def render_document_heading
156
- content_tag(:h4, render_field_value(document_heading), :class => "show-document-title")
155
+ def render_document_heading(tag = :h4)
156
+ content_tag(tag, render_field_value(document_heading))
157
157
  end
158
158
 
159
159
  # Used in the show view for setting the main html document title
@@ -1,4 +1,3 @@
1
- <small>
2
1
  <% if has_user_authentication_provider? %>
3
2
  <div class="util-links-login">
4
3
  <% if current_user %>
@@ -21,4 +20,3 @@
21
20
  |
22
21
  <%= link_to t('blacklight.header_links.search_history'), search_history_path %>
23
22
  </div>
24
- </small>
@@ -1,5 +1,5 @@
1
1
  <% if query_has_constraints? %>
2
- <div class="constraints-container">
2
+ <div id="appliedParams" class="constraints-container">
3
3
  <span class="constraints-label"><%= t('blacklight.search.filters.title') %></span>
4
4
 
5
5
  <%=link_to t('blacklight.search.start_over'), url_for(:action=>'index'), :class => "catalog_startOverLink", :id=>"startOverLink" %>
@@ -1,4 +1,4 @@
1
1
  <div class="facet_limit blacklight-<%= facet_field.field.parameterize %>">
2
- <h5><%= facet_field.label -%> <i class="icon-chevron"></i></h3>
2
+ <h5><%= facet_field.label -%> <i class="icon-chevron"></i></h5>
3
3
  <%= yield %>
4
4
  </div>
@@ -1,4 +1,4 @@
1
- <h4><%= t('blacklight.welcome') %></h3>
1
+ <h4><%= t('blacklight.welcome') %></h4>
2
2
  <p>&nbsp;</p>
3
3
  <p>To modify this text to your specifications, copy this file located in the blacklight plugin directory:<br/>
4
4
  &nbsp;&nbsp;&nbsp;<%= Blacklight.root %>/app/views/catalog/_home_text.html.erb</p>
@@ -1,7 +1,5 @@
1
1
  <div class="well" id="sidebar-nav">
2
- <ul class="nav nav-list">
3
- <%= render :partial => 'show_tools' %>
4
- </ul>
2
+ <%= render :partial => 'show_tools' %>
5
3
  </div><!--/well -->
6
4
 
7
5
  <% unless @document.more_like_this.empty? %>
@@ -8,13 +8,14 @@
8
8
 
9
9
  #Added Bootstrap class well and 'hidden-phone' for the tools-bar
10
10
  -%>
11
+ <ul class="nav nav-list">
11
12
  <li class="nav-header"><%= t('blacklight.tools.title') %></li>
12
13
  <li>
13
14
  <%= render_show_doc_actions @document %>
14
15
  </li>
15
16
  <% if (@document.respond_to?(:export_as_mla_citation_txt) || @document.respond_to?(:export_as_apa_citation_txt)) %>
16
17
  <li class="cite">
17
- <%= link_to t('blacklight.tools.cite'), citation_catalog_path(:id => @document), {:id => 'citeLink', :name => 'citation', :class => 'lightboxLink'} %></i>
18
+ <%= link_to t('blacklight.tools.cite'), citation_catalog_path(:id => @document), {:id => 'citeLink', :name => 'citation', :class => 'lightboxLink'} %>
18
19
  </li>
19
20
  <% end %>
20
21
  <% if @document.export_formats.keys.include?( :refworks_marc_txt ) %>
@@ -43,4 +44,4 @@
43
44
  <%= link_to t('blacklight.tools.librarian_view'), librarian_view_catalog_path(@document), {:id => 'librarianLink', :name => 'librarian_view', :class => 'lightboxLink'} %>
44
45
  </li>
45
46
  <% end %>
46
- </ul>
47
+ </ul>
@@ -1,7 +1,7 @@
1
1
  <div id="sortAndPerPage">
2
-
3
- <%= render :partial => "paginate_compact" %>
4
-
2
+ <div class="page_links">
3
+ <%= render :partial => "paginate_compact" %>
4
+ </div>
5
5
  <%= render :partial => 'sort_widget' %>
6
6
 
7
7
  <%= render :partial => 'per_page_widget' %>
@@ -1,5 +1,5 @@
1
1
  <div class="modal-header">
2
- <h1><%= t('blacklight.email.form.title') %></h1>
3
2
  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
3
+ <h1><%= t('blacklight.email.form.title') %></h1>
4
4
  </div>
5
5
  <%= render :partial => 'email_form' %>
@@ -15,7 +15,7 @@
15
15
 
16
16
 
17
17
  <% # bookmark/folder functions -%>
18
- <%= render_document_heading.html_safe %>
18
+ <%= render_document_heading(:h1).html_safe %>
19
19
 
20
20
  <div class="document">
21
21
  <%= render_document_partial @document, :show %>
@@ -1,5 +1,5 @@
1
1
  <div class="modal-header">
2
- <h1><%= t('blacklight.sms.form.title') %></h1>
3
2
  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
3
+ <h1><%= t('blacklight.sms.form.title') %></h1>
4
4
  </div>
5
5
  <%= render :partial => 'sms_form' %>
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.rc2
5
- prerelease: 6
4
+ version: 4.0.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2012-11-29 00:00:00.000000000 Z
20
+ date: 2012-11-30 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -183,7 +183,6 @@ files:
183
183
  - app/assets/images/favicon.ico
184
184
  - app/assets/javascripts/blacklight/blacklight.js
185
185
  - app/assets/javascripts/blacklight/bookmark_toggle.js
186
- - app/assets/javascripts/blacklight/bootstrap_dropdowns.js
187
186
  - app/assets/javascripts/blacklight/checkbox_submit.js
188
187
  - app/assets/javascripts/blacklight/core.js
189
188
  - app/assets/javascripts/blacklight/css_dropdowns.js
@@ -467,13 +466,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
467
466
  version: '0'
468
467
  segments:
469
468
  - 0
470
- hash: -1208323938627486571
469
+ hash: 2075279285300653487
471
470
  required_rubygems_version: !ruby/object:Gem::Requirement
472
471
  none: false
473
472
  requirements:
474
- - - ! '>'
473
+ - - ! '>='
475
474
  - !ruby/object:Gem::Version
476
- version: 1.3.1
475
+ version: '0'
476
+ segments:
477
+ - 0
478
+ hash: 2075279285300653487
477
479
  requirements: []
478
480
  rubyforge_project: blacklight
479
481
  rubygems_version: 1.8.23
@@ -1,3 +0,0 @@
1
- $(document).ready(function() {
2
- $('.dropdown-toggle').dropdown();
3
- });