blacklight_rtl 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +34 -0
- data/app/assets/javascripts/blacklight_rtl/application.js +13 -0
- data/app/assets/stylesheets/blacklight_rtl/_blacklight_rtl_base.css.scss +47 -0
- data/app/assets/stylesheets/blacklight_rtl/_bookmark.css.scss +38 -0
- data/app/assets/stylesheets/blacklight_rtl/_catalog.css.scss +250 -0
- data/app/assets/stylesheets/blacklight_rtl/_dropdown.css.scss +57 -0
- data/app/assets/stylesheets/blacklight_rtl/_facets.css.scss +191 -0
- data/app/assets/stylesheets/blacklight_rtl/_footer.css.scss +0 -0
- data/app/assets/stylesheets/blacklight_rtl/_header.css.scss +53 -0
- data/app/assets/stylesheets/blacklight_rtl/_layout.css.scss +11 -0
- data/app/assets/stylesheets/blacklight_rtl/_mixins.css.scss +0 -0
- data/app/assets/stylesheets/blacklight_rtl/_modal.css.scss +27 -0
- data/app/assets/stylesheets/blacklight_rtl/_print.css.scss +0 -0
- data/app/assets/stylesheets/blacklight_rtl/_responsive.css.scss +3 -0
- data/app/assets/stylesheets/blacklight_rtl/_search_history.css.scss +42 -0
- data/app/assets/stylesheets/blacklight_rtl/application.css +13 -0
- data/app/assets/stylesheets/blacklight_rtl/blacklight_defaults.css.scss +48 -0
- data/app/assets/stylesheets/blacklight_rtl/blacklight_rtl.css.scss +5 -0
- data/app/assets/stylesheets/blacklight_rtl/responsive_partials/_catalog.css.scss +5 -0
- data/app/assets/stylesheets/blacklight_rtl/responsive_partials/_facets.css.scss +37 -0
- data/app/assets/stylesheets/blacklight_rtl/responsive_partials/_header.css.scss +30 -0
- data/app/assets/stylesheets/bootstrap_rtl/_bootstrap_rtl_base.css.scss +51 -0
- data/app/assets/stylesheets/bootstrap_rtl/bootstrap_rtl.css.scss +5 -0
- data/app/assets/stylesheets/improved-modal/bootstrap-modal.css +217 -0
- data/app/controllers/blacklight_rtl/application_controller.rb +4 -0
- data/app/helpers/blacklight_rtl/application_helper.rb +4 -0
- data/app/views/catalog/_per_page_widget.html.erb +15 -0
- data/app/views/catalog/_previous_next_doc.html.erb +16 -0
- data/app/views/catalog/_search_form.html.erb +21 -0
- data/app/views/catalog/_sort_widget.html.erb +14 -0
- data/app/views/catalog/index.html.erb +29 -0
- data/app/views/layouts/blacklight_rtl/application.html.erb +14 -0
- data/app/views/shared/_header_navbar.html.erb +27 -0
- data/config/locales/blacklight.heb.yml +223 -0
- data/config/routes.rb +2 -0
- data/lib/blacklight_rtl/engine.rb +5 -0
- data/lib/blacklight_rtl/version.rb +3 -0
- data/lib/blacklight_rtl.rb +4 -0
- data/lib/tasks/blacklight_rtl_tasks.rake +4 -0
- data/test/blacklight_rtl_test.rb +7 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +12 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +15 -0
- metadata +190 -0
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* Search History */
|
|
2
|
+
.search_history
|
|
3
|
+
{
|
|
4
|
+
|
|
5
|
+
.query > a
|
|
6
|
+
{
|
|
7
|
+
display: block;
|
|
8
|
+
border-bottom: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.constraint
|
|
12
|
+
{
|
|
13
|
+
display: block;
|
|
14
|
+
text-indent: -2em;
|
|
15
|
+
padding-right: 2em;
|
|
16
|
+
margin-left: 2em;
|
|
17
|
+
|
|
18
|
+
.search
|
|
19
|
+
{
|
|
20
|
+
padding-left: 0.5em;
|
|
21
|
+
padding-right: 0.5em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:last-child
|
|
25
|
+
{
|
|
26
|
+
margin-left: 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
td
|
|
31
|
+
{
|
|
32
|
+
vertical-align: top;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.filterName, .filterSeparator
|
|
36
|
+
{
|
|
37
|
+
color: gray;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
*/
|
|
@@ -0,0 +1,48 @@
|
|
|
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;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@media (max-width: 767px) {
|
|
2
|
+
#facets .btn-navbar {
|
|
3
|
+
display: block;
|
|
4
|
+
}
|
|
5
|
+
.facets-collapse {
|
|
6
|
+
clear: both;
|
|
7
|
+
|
|
8
|
+
&.in {
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&, &.collapse {
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
height: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.collapse.in {
|
|
18
|
+
height: auto !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.no-js .facets-collapse, .no-js .facets-collapse.collapse {
|
|
23
|
+
height: auto !important;
|
|
24
|
+
overflow: visible !important;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (min-width: 768px) {
|
|
29
|
+
.facets-collapse.collapse {
|
|
30
|
+
height: auto !important;
|
|
31
|
+
overflow: visible !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.facet-collapse-toggle {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@media (max-width: 979px) {
|
|
2
|
+
body {
|
|
3
|
+
padding-top: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
}
|
|
7
|
+
@media (max-width: 979px) {
|
|
8
|
+
.submit-search-text {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
.navbar .brand {
|
|
14
|
+
width: 120px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#search_field {
|
|
18
|
+
width: 50px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (max-width: 480px) {
|
|
23
|
+
#search_field {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.navbar .brand {
|
|
28
|
+
width: 35px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
/* TODO: split this file into the correct partials inside the bootstrap folder */
|
|
4
|
+
|
|
5
|
+
/* Button input with a left rounded corner */
|
|
6
|
+
.input-append .btn:last-child {
|
|
7
|
+
@include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Input text with a right rounded corner */
|
|
11
|
+
.input-append input {
|
|
12
|
+
@include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Close button used by the lightbox */
|
|
16
|
+
.close {
|
|
17
|
+
float: left;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* First and last button inside a button group */
|
|
21
|
+
.btn-group > .btn:first-child {
|
|
22
|
+
@include border-top-left-radius(0);
|
|
23
|
+
@include border-bottom-left-radius(0);
|
|
24
|
+
@include border-top-right-radius($baseBorderRadius);
|
|
25
|
+
@include border-bottom-right-radius($baseBorderRadius);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.btn-group > .btn:last-child {
|
|
29
|
+
@include border-top-right-radius(0);
|
|
30
|
+
@include border-bottom-right-radius(0);
|
|
31
|
+
@include border-top-left-radius($baseBorderRadius);
|
|
32
|
+
@include border-bottom-left-radius($baseBorderRadius);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* RTL each preview inside the documents div */
|
|
36
|
+
.dl-horizontal {
|
|
37
|
+
dt {
|
|
38
|
+
float: right;
|
|
39
|
+
text-align: left;
|
|
40
|
+
}
|
|
41
|
+
dd {
|
|
42
|
+
margin-left: 0;
|
|
43
|
+
margin-right: $horizontalComponentOffset;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.form-inline .checkbox input[type="checkbox"] {
|
|
48
|
+
float: right;
|
|
49
|
+
margin-left: 3px;
|
|
50
|
+
margin-right: 0;
|
|
51
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
/*!
|
|
4
|
+
* Bootstrap Modal
|
|
5
|
+
*
|
|
6
|
+
* Copyleft Jordan Schroter
|
|
7
|
+
* Licensed under the Apache License v2.0
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
.modal-open {
|
|
13
|
+
position: relative; /* safari */
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* add a scroll bar to stop page from jerking around */
|
|
19
|
+
.modal-open.page-overflow .page-container,
|
|
20
|
+
.modal-open.page-overflow .page-container .navbar-fixed-top,
|
|
21
|
+
.modal-open.page-overflow .page-container .navbar-fixed-bottom,
|
|
22
|
+
.modal-open.page-overflow .modal-scrollable {
|
|
23
|
+
overflow-y: scroll;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media (max-width: 979px) {
|
|
27
|
+
.modal-open.page-overflow .page-container .navbar-fixed-top,
|
|
28
|
+
.modal-open.page-overflow .page-container .navbar-fixed-bottom {
|
|
29
|
+
overflow-y: visible;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
.modal-scrollable {
|
|
35
|
+
position: fixed;
|
|
36
|
+
top: 0;
|
|
37
|
+
bottom: 0;
|
|
38
|
+
right: 0;
|
|
39
|
+
left: 0;
|
|
40
|
+
overflow: auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.modal {
|
|
44
|
+
outline: none;
|
|
45
|
+
position: absolute;
|
|
46
|
+
margin-top: 0;
|
|
47
|
+
top: 50%;
|
|
48
|
+
overflow: visible; /* allow content to popup out (i.e tooltips) */
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.modal.fade {
|
|
52
|
+
top: -100%;
|
|
53
|
+
-webkit-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
|
|
54
|
+
-moz-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
|
|
55
|
+
-o-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
|
|
56
|
+
transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.modal.fade.in {
|
|
60
|
+
top: 50%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.modal-body {
|
|
64
|
+
max-height: none;
|
|
65
|
+
overflow: visible;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.modal.modal-absolute {
|
|
69
|
+
position: absolute;
|
|
70
|
+
z-index: 950;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.modal .loading-mask {
|
|
74
|
+
position: absolute;
|
|
75
|
+
top: 0;
|
|
76
|
+
bottom: 0;
|
|
77
|
+
right: 0;
|
|
78
|
+
left: 0;
|
|
79
|
+
background: #fff;
|
|
80
|
+
border-radius: 6px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.modal-backdrop.modal-absolute{
|
|
84
|
+
position: absolute;
|
|
85
|
+
z-index: 940;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.modal-backdrop,
|
|
89
|
+
.modal-backdrop.fade.in{
|
|
90
|
+
opacity: 0.7;
|
|
91
|
+
filter: alpha(opacity=70);
|
|
92
|
+
background: #fff;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.modal.container {
|
|
96
|
+
width: 940px;
|
|
97
|
+
margin-right: -470px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Modal Overflow */
|
|
101
|
+
|
|
102
|
+
.modal-overflow.modal {
|
|
103
|
+
top: 1%;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.modal-overflow.modal.fade {
|
|
107
|
+
top: -100%;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.modal-overflow.modal.fade.in {
|
|
111
|
+
top: 1%;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.modal-overflow .modal-body {
|
|
115
|
+
overflow: auto;
|
|
116
|
+
-webkit-overflow-scrolling: touch;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Responsive */
|
|
120
|
+
|
|
121
|
+
@media (min-width: 1200px) {
|
|
122
|
+
.modal.container {
|
|
123
|
+
width: 1170px;
|
|
124
|
+
margin-right: -585px;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (max-width: 979px) {
|
|
129
|
+
.modal,
|
|
130
|
+
.modal.container,
|
|
131
|
+
.modal.modal-overflow {
|
|
132
|
+
top: 1%;
|
|
133
|
+
left: 1%;
|
|
134
|
+
right: 1%;
|
|
135
|
+
bottom: auto;
|
|
136
|
+
width: auto !important;
|
|
137
|
+
height: auto !important;
|
|
138
|
+
margin: 0 !important;
|
|
139
|
+
padding: 0 !important;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.modal.fade.in,
|
|
143
|
+
.modal.container.fade.in,
|
|
144
|
+
.modal.modal-overflow.fade.in {
|
|
145
|
+
top: 1%;
|
|
146
|
+
bottom: auto;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.modal-body,
|
|
150
|
+
.modal-overflow .modal-body {
|
|
151
|
+
position: static;
|
|
152
|
+
margin: 0;
|
|
153
|
+
height: auto !important;
|
|
154
|
+
max-height: none !important;
|
|
155
|
+
overflow: visible !important;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.modal-footer,
|
|
159
|
+
.modal-overflow .modal-footer {
|
|
160
|
+
position: static;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.loading-spinner {
|
|
165
|
+
position: absolute;
|
|
166
|
+
top: 50%;
|
|
167
|
+
right: 50%;
|
|
168
|
+
margin: -12px 0 0 -12px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/*
|
|
172
|
+
Animate.css - http://daneden.me/animate
|
|
173
|
+
Licensed under the ☺ license (http://licence.visualidiot.com/)
|
|
174
|
+
|
|
175
|
+
Copyleft (c) 2012 Dan Eden*/
|
|
176
|
+
|
|
177
|
+
.animated {
|
|
178
|
+
-webkit-animation-duration: 1s;
|
|
179
|
+
-moz-animation-duration: 1s;
|
|
180
|
+
-o-animation-duration: 1s;
|
|
181
|
+
animation-duration: 1s;
|
|
182
|
+
-webkit-animation-fill-mode: both;
|
|
183
|
+
-moz-animation-fill-mode: both;
|
|
184
|
+
-o-animation-fill-mode: both;
|
|
185
|
+
animation-fill-mode: both;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@-webkit-keyframes shake {
|
|
189
|
+
0%, 100% {-webkit-transform: translateX(0);}
|
|
190
|
+
10%, 30%, 50%, 70%, 90% {-webkit-transform: translateX(-10px);}
|
|
191
|
+
20%, 40%, 60%, 80% {-webkit-transform: translateX(10px);}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@-moz-keyframes shake {
|
|
195
|
+
0%, 100% {-moz-transform: translateX(0);}
|
|
196
|
+
10%, 30%, 50%, 70%, 90% {-moz-transform: translateX(-10px);}
|
|
197
|
+
20%, 40%, 60%, 80% {-moz-transform: translateX(10px);}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@-o-keyframes shake {
|
|
201
|
+
0%, 100% {-o-transform: translateX(0);}
|
|
202
|
+
10%, 30%, 50%, 70%, 90% {-o-transform: translateX(-10px);}
|
|
203
|
+
20%, 40%, 60%, 80% {-o-transform: translateX(10px);}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@keyframes shake {
|
|
207
|
+
0%, 100% {transform: translateX(0);}
|
|
208
|
+
10%, 30%, 50%, 70%, 90% {transform: translateX(-10px);}
|
|
209
|
+
20%, 40%, 60%, 80% {transform: translateX(10px);}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.shake {
|
|
213
|
+
-webkit-animation-name: shake;
|
|
214
|
+
-moz-animation-name: shake;
|
|
215
|
+
-o-animation-name: shake;
|
|
216
|
+
animation-name: shake;
|
|
217
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<% if show_sort_and_per_page? and !blacklight_config.per_page.blank? %>
|
|
2
|
+
<div id="per_page-dropdown" class="dropdown pull-left hidden-phone">
|
|
3
|
+
<span class="hide-text"><%= t('blacklight.search.per_page.title') %></span>
|
|
4
|
+
<ul class="css-dropdown">
|
|
5
|
+
<li class="btn">
|
|
6
|
+
<%= link_to(t(:'blacklight.search.per_page.button_label', :count => current_per_page), "#") %> <span class="caret"></span>
|
|
7
|
+
<ul>
|
|
8
|
+
<%- blacklight_config.per_page.each do |count| %>
|
|
9
|
+
<li><%= link_to(t(:'blacklight.search.per_page.label', :count => count).html_safe, url_for(params_for_search(:per_page => count))) %></li>
|
|
10
|
+
<%- end -%>
|
|
11
|
+
</ul>
|
|
12
|
+
</li>
|
|
13
|
+
</ul>
|
|
14
|
+
</div>
|
|
15
|
+
<% end %>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<% #Using the Bootstrap Pagination class -%>
|
|
2
|
+
<% if @previous_document || @next_document %>
|
|
3
|
+
<div class="well" id="previousNextDocument">
|
|
4
|
+
<%= link_to_previous_document @previous_document %> |
|
|
5
|
+
|
|
6
|
+
<%= item_page_entry_info %> |
|
|
7
|
+
|
|
8
|
+
<%= link_to_next_document @next_document %>
|
|
9
|
+
|
|
10
|
+
<div class="pull-left">
|
|
11
|
+
<%= link_back_to_catalog %>
|
|
12
|
+
|
|
|
13
|
+
<%=link_to "#{t('blacklight.search.start_over')}", catalog_index_path, :id=>"startOverLink" %>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<% end %>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<%= form_tag search_action_url, :method => :get, :class => 'search-query-form form-inline clearfix' do %>
|
|
2
|
+
<%= search_as_hidden_fields(:omit_keys => [:q, :search_field, :qt, :page]).html_safe %>
|
|
3
|
+
|
|
4
|
+
<% unless search_fields.empty? %>
|
|
5
|
+
<div class="pull-right">
|
|
6
|
+
<label for="search_field" class="hide-text"><%= t('blacklight.search.form.search_field.label') %></label>
|
|
7
|
+
<%= select_tag(:search_field, options_for_select(search_fields, h(params[:search_field])), :title => t('blacklight.search.form.search_field.title'), :class=>"search_field input-small") %>
|
|
8
|
+
<span class="hide-text"><%= t('blacklight.search.form.search_field.post_label') %></span>
|
|
9
|
+
</div>
|
|
10
|
+
<% end %>
|
|
11
|
+
<div class="input-append pull-right">
|
|
12
|
+
<label for="q" class="hide-text"><%= t('blacklight.search.form.q') %></label>
|
|
13
|
+
<%= text_field_tag :q, params[:q], :placeholder => t('blacklight.search.form.q'), :class => "search_q q", :id => "q"%>
|
|
14
|
+
<button type="submit" class="btn btn-primary search-btn" id="search">
|
|
15
|
+
<span class="submit-search-text"><%= t('blacklight.search.form.submit')%></span>
|
|
16
|
+
<i class="icon-search icon-white"></i>
|
|
17
|
+
</button>
|
|
18
|
+
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<% end %>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<% if show_sort_and_per_page? and !blacklight_config.sort_fields.blank? %>
|
|
2
|
+
<div id="sort-dropdown" class="dropdown pull-left hidden-phone">
|
|
3
|
+
<ul class="css-dropdown">
|
|
4
|
+
<li class="btn">
|
|
5
|
+
<%= link_to(t('blacklight.search.sort.label', :field =>current_sort_field.label), "#") %> <span class="caret"></span>
|
|
6
|
+
<ul>
|
|
7
|
+
<%- blacklight_config.sort_fields.each do |sort_key, field| %>
|
|
8
|
+
<li><%= link_to(field.label, url_for(params_for_search(:sort => sort_key))) %></li>
|
|
9
|
+
<%- end -%>
|
|
10
|
+
</ul>
|
|
11
|
+
</li>
|
|
12
|
+
</ul>
|
|
13
|
+
</div>
|
|
14
|
+
<% end %>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<div id="sidebar" class="span9">
|
|
2
|
+
<% unless has_search_parameters? %>
|
|
3
|
+
<%# if there are no input/search related params, display the "home" partial -%>
|
|
4
|
+
<%= render 'home' %>
|
|
5
|
+
<% else %>
|
|
6
|
+
|
|
7
|
+
<h2 class="hide-text top-content-title"><%= t('blacklight.search.search_results_header') %></h2>
|
|
8
|
+
|
|
9
|
+
<% @page_title = t('blacklight.search.title', :application_name => application_name) %>
|
|
10
|
+
|
|
11
|
+
<% extra_head_content << render_opensearch_response_metadata.html_safe %>
|
|
12
|
+
|
|
13
|
+
<%= render :partial => 'did_you_mean' %>
|
|
14
|
+
|
|
15
|
+
<%= render :partial => 'constraints' %>
|
|
16
|
+
|
|
17
|
+
<%= render 'sort_and_per_page' %>
|
|
18
|
+
|
|
19
|
+
<h2 class="hide-text"><%= t('blacklight.search.search_results') %></h2>
|
|
20
|
+
<%= render_document_index %>
|
|
21
|
+
|
|
22
|
+
<%= render 'results_pagination' %>
|
|
23
|
+
|
|
24
|
+
<% end %>
|
|
25
|
+
</div><!--/well -->
|
|
26
|
+
|
|
27
|
+
<div id="content" class="span3">
|
|
28
|
+
<%= render :partial=>'facets' %>
|
|
29
|
+
</div>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>BlacklightRtl</title>
|
|
5
|
+
<%= stylesheet_link_tag "blacklight_rtl/application", media: "all" %>
|
|
6
|
+
<%= javascript_include_tag "blacklight_rtl/application" %>
|
|
7
|
+
<%= csrf_meta_tags %>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
|
|
11
|
+
<%= yield %>
|
|
12
|
+
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<div id="header-navbar-fixed-top" class="navbar navbar-fixed-top">
|
|
2
|
+
<div class="navbar-inner">
|
|
3
|
+
<div class="container">
|
|
4
|
+
<div class="row">
|
|
5
|
+
|
|
6
|
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
|
7
|
+
<span class="icon-bar"></span>
|
|
8
|
+
<span class="icon-bar"></span>
|
|
9
|
+
<span class="icon-bar"></span>
|
|
10
|
+
</a>
|
|
11
|
+
|
|
12
|
+
<div class="span3">
|
|
13
|
+
<%= render :partial=>'/user_util_links' %>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<div class="span6 clearfix" id="searchbar">
|
|
17
|
+
<%= render_search_bar %>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class="span3 nav-collapse">
|
|
21
|
+
<%= link_to application_name, root_path, :class => "brand" %>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|