blacklight_rtl 1.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/app/assets/stylesheets/blacklight_rtl/_blacklight_rtl_base.css.scss +16 -47
  2. data/app/assets/stylesheets/blacklight_rtl/_bookmark.css.scss +13 -38
  3. data/app/assets/stylesheets/blacklight_rtl/_bootstrap_rtl.css.scss +87 -0
  4. data/app/assets/stylesheets/blacklight_rtl/_catalog.css.scss +11 -250
  5. data/app/assets/stylesheets/blacklight_rtl/_facets.css.scss +19 -191
  6. data/app/assets/stylesheets/blacklight_rtl/_header.css.scss +14 -53
  7. data/app/assets/stylesheets/blacklight_rtl/_patches.css.scss +3 -0
  8. data/app/assets/stylesheets/blacklight_rtl/_search_history.css.scss +11 -42
  9. data/app/assets/stylesheets/blacklight_rtl/blacklight_rtl.css.scss +4 -5
  10. data/app/views/_user_util_links.html.erb +38 -0
  11. data/app/views/bookmarks/index.html.erb +20 -0
  12. data/app/views/catalog/_constraints.html.erb +10 -0
  13. data/app/views/catalog/_facet_pagination.html.erb +19 -0
  14. data/app/views/catalog/_index_header_default.html.erb +21 -0
  15. data/app/views/catalog/_previous_next_doc.html.erb +11 -9
  16. data/app/views/catalog/_sort_and_per_page.html.erb +8 -0
  17. data/app/views/search_history/index.html.erb +25 -0
  18. data/config/locales/blacklight.heb.yml +25 -28
  19. data/lib/blacklight_rtl/version.rb +1 -1
  20. metadata +27 -39
  21. data/app/assets/stylesheets/blacklight_rtl/_dropdown.css.scss +0 -57
  22. data/app/assets/stylesheets/blacklight_rtl/_footer.css.scss +0 -0
  23. data/app/assets/stylesheets/blacklight_rtl/_layout.css.scss +0 -11
  24. data/app/assets/stylesheets/blacklight_rtl/_mixins.css.scss +0 -0
  25. data/app/assets/stylesheets/blacklight_rtl/_modal.css.scss +0 -27
  26. data/app/assets/stylesheets/blacklight_rtl/_print.css.scss +0 -0
  27. data/app/assets/stylesheets/blacklight_rtl/_responsive.css.scss +0 -3
  28. data/app/assets/stylesheets/blacklight_rtl/application.css +0 -13
  29. data/app/assets/stylesheets/blacklight_rtl/blacklight_defaults.css.scss +0 -48
  30. data/app/assets/stylesheets/blacklight_rtl/responsive_partials/_catalog.css.scss +0 -5
  31. data/app/assets/stylesheets/blacklight_rtl/responsive_partials/_facets.css.scss +0 -37
  32. data/app/assets/stylesheets/blacklight_rtl/responsive_partials/_header.css.scss +0 -30
  33. data/app/assets/stylesheets/bootstrap_rtl/_bootstrap_rtl_base.css.scss +0 -51
  34. data/app/assets/stylesheets/bootstrap_rtl/bootstrap_rtl.css.scss +0 -5
  35. data/app/assets/stylesheets/improved-modal/bootstrap-modal.css +0 -217
  36. data/app/views/catalog/_per_page_widget.html.erb +0 -15
  37. data/app/views/catalog/_search_form.html.erb +0 -21
  38. data/app/views/catalog/_sort_widget.html.erb +0 -14
  39. data/app/views/catalog/index.html.erb +0 -29
  40. data/app/views/layouts/blacklight_rtl/application.html.erb +0 -14
  41. data/app/views/shared/_header_navbar.html.erb +0 -27
@@ -1,16 +1,18 @@
1
1
  <% #Using the Bootstrap Pagination class -%>
2
2
  <% if @previous_document || @next_document %>
3
- <div class="well" id="previousNextDocument">
4
- <%= link_to_previous_document @previous_document %> |
3
+ <div id="previousNextDocument">
4
+ <div class="page_links">
5
+ <%= link_to_previous_document @previous_document %> |
5
6
 
6
- <%= item_page_entry_info %> |
7
+ <%= item_page_entry_info %> |
7
8
 
8
- <%= link_to_next_document @next_document %>
9
+ <%= link_to_next_document @next_document %>
10
+ </div>
9
11
 
10
- <div class="pull-left">
11
- <%= link_back_to_catalog %>
12
- |
13
- <%=link_to "#{t('blacklight.search.start_over')}", catalog_index_path, :id=>"startOverLink" %>
12
+ <div class="pull-left search-widgets">
13
+ <%= link_back_to_catalog :class => 'btn' %>
14
+
15
+ <%=link_to "#{t('blacklight.search.start_over')}", start_over_path(current_search_session.try(:query_params) || {}), :id=>"startOverLink", :class => 'btn' %>
16
+ </div>
14
17
  </div>
15
- </div>
16
18
  <% end %>
@@ -0,0 +1,8 @@
1
+ <div id="sortAndPerPage" class="clearfix">
2
+ <%= render :partial => "paginate_compact", :object => @response %>
3
+ <div class="search-widgets pull-left">
4
+ <%= render :partial => 'sort_widget' %>
5
+ <%= render :partial => 'per_page_widget' %>
6
+ <%= render :partial => 'view_type_group' %>
7
+ </div>
8
+ </div>
@@ -0,0 +1,25 @@
1
+ <div id="content" class="col-md-12">
2
+ <h1><%=t('blacklight.search_history.title')%></h1>
3
+ <%- if @searches.blank? -%>
4
+ <h2><%=t('blacklight.search_history.no_history')%></h2>
5
+ <%- else -%>
6
+ <%= link_to t('blacklight.search_history.clear.action_title'), clear_search_history_path, :method => :delete, :data => { :confirm => t('blacklight.search_history.clear.action_confirm') }, :class => 'btn btn-danger pull-left' %>
7
+ <h3><%=t('blacklight.search_history.recent')%></h3>
8
+ <table class="table table-striped search_history">
9
+ <%- @searches.each_with_index do |search,index| -%>
10
+ <%= content_tag :tr, :id => "document_#{index + 1}" do %>
11
+ <td class="query"><%= link_to_previous_search(search.query_params) %></td>
12
+ <%- if has_user_authentication_provider? -%>
13
+ <td class="actions">
14
+ <%- if current_or_guest_user && search.saved? -%>
15
+ <%= button_to t('blacklight.search_history.forget'), forget_search_path(search.id), :class => 'btn btn-default' %>
16
+ <%- else -%>
17
+ <%= button_to t('blacklight.search_history.save'), save_search_path(search.id), :method => :put, :class => 'btn btn-default' %>
18
+ <%- end -%>
19
+ </td>
20
+ <%- end -%>
21
+ <% end #content_tag %>
22
+ <%- end -%>
23
+ </table>
24
+ <%- end -%>
25
+ </div>
@@ -1,12 +1,4 @@
1
1
  heb:
2
- active_record:
3
- models:
4
- feedback: 'משוב'
5
- attributes:
6
- feedback:
7
- name: 'השם שלך'
8
- email: 'האימייל שלך'
9
- message: 'ההודעה שלך'
10
2
  views:
11
3
  pagination:
12
4
  first: '&laquo; ראשון'
@@ -34,9 +26,6 @@ heb:
34
26
  or: 'או'
35
27
 
36
28
  bookmarks:
37
- collection:
38
- add:
39
- button: 'הוסף למועדפים'
40
29
  title: 'מועדפים'
41
30
  no_bookmarks: 'לא נמצאו מועדפים'
42
31
  add:
@@ -59,16 +48,6 @@ heb:
59
48
  list_title: 'המועדפים שלך'
60
49
  delete: 'הסר'
61
50
 
62
- feedback:
63
- valid_name: 'דרוש שם משתמש תקין'
64
- valid_email: 'דרוש אימייל תקין'
65
- need_message: 'דרושה הודעה'
66
- submit: 'שלח!'
67
- errors:
68
- title: 'אנא תקן את השגיאות הבאות:'
69
- complete:
70
- title: 'תודה רבה על הפידבק!'
71
-
72
51
  saved_searches:
73
52
  add:
74
53
  success: 'החיפוש נשמר בהצלחה.'
@@ -106,7 +85,6 @@ heb:
106
85
  refworks: 'ייצא ל - Refworks'
107
86
  email: 'שלח דואר אלקטרוני'
108
87
  sms: 'שלח מסרון'
109
- librarian_view: 'תצוגת ספריה'
110
88
  clear: 'נקה'
111
89
 
112
90
  citation:
@@ -131,6 +109,8 @@ heb:
131
109
  url: 'קישור: %{url}'
132
110
  message: 'הודעה: %{message}'
133
111
 
112
+ success: "אימייל נשלח"
113
+
134
114
  errors:
135
115
  to:
136
116
  invalid: 'אנא הכנס כתובת דואר אלקטרוני תקינה'
@@ -146,12 +126,14 @@ heb:
146
126
  title: '%{value}'
147
127
  author: ' ע"י %{value}'
148
128
  url: 'קישור: %{url}'
129
+ success: "מסרון נשלח"
149
130
  errors:
150
131
  to:
151
132
  invalid: 'אנא הכנס מספר טלפון תקין בעל 10 ספרות לפחות'
152
133
  blank: "אנא הכנס טלפון נמען על מנת לשלוח את המסרון"
153
134
  carrier:
154
135
  blank: 'אתה מוכרח לבחור מרכזית'
136
+ invalid: "אתה מוכרח להכניס מרכזית תקינה"
155
137
 
156
138
  back_to_search: 'חזור לחיפוש'
157
139
  back_to_bookmarks: 'חזור למועדפים'
@@ -200,22 +182,37 @@ heb:
200
182
  more: 'עוד »'
201
183
  selected:
202
184
  remove: '[הסר]'
185
+ group:
186
+ more: 'עוד »'
203
187
  filters:
204
188
  title: 'חיפשת את:'
205
189
  label: '%{label}:'
206
190
  remove:
207
191
  value: 'הסר מגבלת חיפוש %{value}'
208
192
  label_value: 'הסר מגבלת חיפוש %{label}: %{value}'
209
- librarian_view:
210
- title: 'תצוגת ספריה'
211
- leader: 'מוביל %{leader}'
212
193
  start_over: 'התחל מחדש'
194
+ index:
195
+ label: '%{label}:'
213
196
  show:
214
197
  title: '%{document_title} - %{application_name}'
215
- rss_feed: 'RSS לתוצאות'
216
- atom_feed: 'Atom לתוצאות'
198
+ label: '%{label}:'
199
+ rss_feed: 'RSS for results'
200
+ atom_feed: 'Atom for results'
217
201
  fields:
218
- default: 'מילת מפתח'
202
+ default: 'מילת חיפוש'
203
+ bookmarks:
204
+ present: "נמצא במועדפים"
205
+ absent: "הוסף למועדפים"
206
+ inprogress: "שומר..."
207
+ zero_results:
208
+ title: "לא נמצאו תוצאות עבור החיפוש שלך"
209
+ modify_search: "אנא נסה לשנות את החיפוש"
210
+ use_fewer_keywords: "התחל עם שאילתת חיפוש קצרה יותר וסנן את התוצאות שהתקבלו ע'י הסינון שנמצא בצד ימין."
211
+ search_fields: "החיפוש שלך התבצע על %{search_fields}"
212
+ search_everything: "נסה לחפש ללא סינון"
213
+ view_title: "הצג תוצאות כ: "
214
+ view:
215
+ list: "רשימה"
219
216
 
220
217
  entry_name:
221
218
  default: 'כניסה'
@@ -1,3 +1,3 @@
1
1
  module BlacklightRtl
2
- VERSION = "1.0.1"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_rtl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-17 00:00:00.000000000 Z
12
+ date: 2014-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 4.0.0
21
+ version: 5.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,52 +26,40 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 4.0.0
30
- description: Blacklight RTL change the default layout to right to left with optional
31
- Hebrew localization language pack.
29
+ version: 5.0.0
30
+ description: Blacklight RTL gem provides a right to left layout to Blacklight (http://projectblacklight.org/)
31
+ open source ruby on rails project.
32
32
  email:
33
33
  - mottiokla@gmail.com
34
34
  executables: []
35
35
  extensions: []
36
36
  extra_rdoc_files: []
37
37
  files:
38
- - app/views/catalog/_search_form.html.erb
39
- - app/views/catalog/_previous_next_doc.html.erb
40
- - app/views/catalog/_per_page_widget.html.erb
41
- - app/views/catalog/index.html.erb
42
- - app/views/catalog/_sort_widget.html.erb
43
- - app/views/shared/_header_navbar.html.erb
44
- - app/views/layouts/blacklight_rtl/application.html.erb
45
- - app/assets/stylesheets/bootstrap_rtl/_bootstrap_rtl_base.css.scss
46
- - app/assets/stylesheets/bootstrap_rtl/bootstrap_rtl.css.scss
47
- - app/assets/stylesheets/improved-modal/bootstrap-modal.css
48
- - app/assets/stylesheets/blacklight_rtl/application.css
49
- - app/assets/stylesheets/blacklight_rtl/_responsive.css.scss
50
- - app/assets/stylesheets/blacklight_rtl/_modal.css.scss
51
- - app/assets/stylesheets/blacklight_rtl/_print.css.scss
52
- - app/assets/stylesheets/blacklight_rtl/_dropdown.css.scss
53
- - app/assets/stylesheets/blacklight_rtl/_search_history.css.scss
54
- - app/assets/stylesheets/blacklight_rtl/_mixins.css.scss
55
- - app/assets/stylesheets/blacklight_rtl/responsive_partials/_facets.css.scss
56
- - app/assets/stylesheets/blacklight_rtl/responsive_partials/_catalog.css.scss
57
- - app/assets/stylesheets/blacklight_rtl/responsive_partials/_header.css.scss
58
- - app/assets/stylesheets/blacklight_rtl/_facets.css.scss
59
- - app/assets/stylesheets/blacklight_rtl/_layout.css.scss
60
- - app/assets/stylesheets/blacklight_rtl/_catalog.css.scss
61
- - app/assets/stylesheets/blacklight_rtl/_bookmark.css.scss
62
- - app/assets/stylesheets/blacklight_rtl/_blacklight_rtl_base.css.scss
63
38
  - app/assets/stylesheets/blacklight_rtl/blacklight_rtl.css.scss
39
+ - app/assets/stylesheets/blacklight_rtl/_blacklight_rtl_base.css.scss
40
+ - app/assets/stylesheets/blacklight_rtl/_bookmark.css.scss
41
+ - app/assets/stylesheets/blacklight_rtl/_bootstrap_rtl.css.scss
42
+ - app/assets/stylesheets/blacklight_rtl/_catalog.css.scss
43
+ - app/assets/stylesheets/blacklight_rtl/_facets.css.scss
64
44
  - app/assets/stylesheets/blacklight_rtl/_header.css.scss
65
- - app/assets/stylesheets/blacklight_rtl/blacklight_defaults.css.scss
66
- - app/assets/stylesheets/blacklight_rtl/_footer.css.scss
45
+ - app/assets/stylesheets/blacklight_rtl/_patches.css.scss
46
+ - app/assets/stylesheets/blacklight_rtl/_search_history.css.scss
47
+ - app/views/bookmarks/index.html.erb
48
+ - app/views/catalog/_constraints.html.erb
49
+ - app/views/catalog/_facet_pagination.html.erb
50
+ - app/views/catalog/_index_header_default.html.erb
51
+ - app/views/catalog/_previous_next_doc.html.erb
52
+ - app/views/catalog/_sort_and_per_page.html.erb
53
+ - app/views/search_history/index.html.erb
54
+ - app/views/_user_util_links.html.erb
67
55
  - config/locales/blacklight.heb.yml
68
- - lib/blacklight_rtl.rb
69
- - lib/tasks/blacklight_rtl_tasks.rake
70
56
  - lib/blacklight_rtl/engine.rb
71
57
  - lib/blacklight_rtl/version.rb
58
+ - lib/blacklight_rtl.rb
59
+ - lib/tasks/blacklight_rtl_tasks.rake
72
60
  - MIT-LICENSE
73
61
  - Rakefile
74
- homepage: http://www.o-sandbox.com/
62
+ homepage: https://github.com/mottiok/blacklight_rtl
75
63
  licenses:
76
64
  - MIT
77
65
  post_install_message:
@@ -92,9 +80,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
80
  version: '0'
93
81
  requirements: []
94
82
  rubyforge_project:
95
- rubygems_version: 1.8.25
83
+ rubygems_version: 1.8.28
96
84
  signing_key:
97
85
  specification_version: 3
98
- summary: Blacklight RTL change the default layout to right to left with optional Hebrew
99
- localization language pack.
86
+ summary: Blacklight RTL gem provides a right to left layout to Blacklight (http://projectblacklight.org/)
87
+ open source ruby on rails project.
100
88
  test_files: []
@@ -1,57 +0,0 @@
1
- .css-dropdown {
2
- list-style: none;
3
- position: relative;
4
- margin: -5px 0 0 0;
5
- display: inline-block;
6
- li {
7
- cursor: pointer;
8
- padding: 5px 10px;
9
- &:hover, &.hovering {
10
- border-bottom-right-radius: 0;
11
- border-bottom-left-radius: 0;
12
- -webkit-border-bottom-right-radius: 0;
13
- -webkit-border-bottom-left-radius: 0;
14
- -moz-border-radius-bottom-right: 0;
15
- -moz-border-radius-bottom-left: 0;
16
- & > ul {
17
- border-top: 1px solid white;
18
- display: block;
19
- }
20
- }
21
- a:hover {
22
- text-decoration: none;
23
- }
24
- }
25
- ul {
26
- list-style: none;
27
- position: absolute;
28
- z-index: $zindexDropdown;
29
- top: 100%;
30
- right: 0;
31
- left: 0;
32
- margin: 0;
33
- display: none;
34
- background: white;
35
- border: 1px solid #cccccc;
36
- -webkit-border-radius: 4px;
37
- -moz-border-radius: 4px;
38
- border-radius: 4px;
39
- -webkit-border-top-right-radius: 0;
40
- -moz-border-radius-top-right: 0;
41
- border-top-right-radius: 0;
42
- -webkit-border-top-left-radius: 0;
43
- -moz-border-radius-top-left: 0;
44
- border-top-left-radius: 0;
45
- li {
46
- padding: 0;
47
- text-align: right;
48
- &:hover {
49
- background: whiteSmoke;
50
- }
51
- a {
52
- padding: 5px 10px;
53
- display: block;
54
- }
55
- }
56
- }
57
- }
@@ -1,11 +0,0 @@
1
- /* Generic layout stuff */
2
- .hide
3
- {
4
- display:none
5
- }
6
-
7
- /* This provides a fixed distance between the header and the main content */
8
- body {
9
- padding-top: 6em;
10
- direction: rtl;
11
- }
@@ -1,27 +0,0 @@
1
- .modal-header {
2
- h1 {
3
- font-size: 24px; line-height: 40px;
4
- }
5
- }
6
-
7
- #ajax-modal {
8
- #email_form {
9
- width: auto;
10
- }
11
-
12
- .facet_pagination.top {
13
- display: none;
14
- }
15
-
16
- #sidebar {
17
- display: none;
18
- }
19
-
20
- button.close {
21
- display: block;
22
- }
23
- }
24
-
25
- button.close {
26
- display: none;
27
- }
@@ -1,3 +0,0 @@
1
- @import "blacklight_rtl/responsive_partials/_catalog";
2
- @import "blacklight_rtl/responsive_partials/_facets";
3
- @import "blacklight_rtl/responsive_partials/_header";
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */
@@ -1,48 +0,0 @@
1
- /* Warning! If you want to change these, just copy them into your own theme css. But you want to remove the !default, which only will set them if not already set. */
2
-
3
-
4
-
5
- $background_image: 'blacklight/bg.png' !default;
6
- $logo_image: 'blacklight/logo.png' !default;
7
- $header_background_border: 'blacklight/border.png' !default;
8
-
9
- $navbar_background_color: #000000 !default;
10
-
11
- /* Various elements of search customization share these colors */
12
-
13
- $well_bg_color: #F5F5F5 !default;
14
-
15
- $search_ui_border_color: #FFFFFF !default;
16
- $search_ui_bg_color: #FFFFFF !default;
17
-
18
- $main_container_bg_color: #FFFFFF !default;
19
-
20
- /* separates documents, facets */
21
- $dotted_border_color: #CCC !default;
22
-
23
- /* background color of page */
24
- $page_bg_color: #2E4F81 !default;
25
-
26
-
27
- /* label (field names) */
28
- $field_name_color: #888 !default;
29
-
30
-
31
- /* constraint (you searched for:) details: */
32
-
33
- $constraint_bg_color: #E2EDFE !default;
34
-
35
- $constraint_border_color: #C4DAFE !default;
36
- $constraint_border_active_color: #FFD27A !default;
37
-
38
- /* dialog that pops up when you pick more on facets */
39
- $facet_extended_button_bg_color: #F6F6F6 !default;
40
- $facet_extended_button_border_color: #CCC !default;
41
- $facet_extended_disabled_button_bg_color: #E2EDFE !default;
42
- $facet_extended_disabled_border_color: #C4DAFE !default;
43
- $facet_extended_button_hover_bg_color: #DADADA !default;
44
- $facet_extended_button_hover_border_color: #999 !default;
45
- $facet_extended_button_hover_color: #212121 !default;
46
-
47
- /* border between items on marc view */
48
- $marc_item_separator: 1px solid #CCC !default;