-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addresses #150
- Loading branch information
Mike Graves
committed
Dec 2, 2014
1 parent
ced46f6
commit 9262df6
Showing
7 changed files
with
112 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
Blacklight.onLoad(function () { | ||
$('[data-map="home"]').each(function(i, element) { | ||
var geoblacklight = new GeoBlacklight(this), | ||
data = $(this).data(), | ||
search; | ||
search = new L.Control.GeoSearch(function(querystring) { | ||
this.link.href = data.catalogPath + '?' + querystring; | ||
}, { button: true }); | ||
geoblacklight.map.addControl(search); | ||
data = $(this).data(); | ||
geoblacklight.map.addControl(L.control.geosearch({ | ||
baseUrl: data.catalogPath, | ||
dynamic: false, | ||
searcher: function() { | ||
window.location.href = this.getSearchUrl(); | ||
}, | ||
staticButton: '<a class="btn btn-primary">Search Here</a>' | ||
})); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
app/assets/stylesheets/geoblacklight/modules/geosearch.css.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.search-control { | ||
background-color: #FFF; | ||
border-radius: 4px; | ||
box-shadow: 0 1px 5px rgba(0,0,0,0.65); | ||
} | ||
|
||
.search-control a { | ||
color: #FFF | ||
} | ||
|
||
.search-control label { | ||
margin: 6px 12px; | ||
font-size: 14px; | ||
display: block; | ||
padding-left: 15px; | ||
text-indent: -15px; | ||
font-weight: normal; | ||
cursor: pointer; | ||
} | ||
|
||
.search-control input[type="checkbox"] { | ||
width: 13px; | ||
height: 13px; | ||
padding: 0; | ||
margin: 0; | ||
vertical-align: middle; | ||
position: relative; | ||
top: -1px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters