warclight 0.1.1 → 0.2.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/app/helpers/warclight/application_helper.rb +6 -1
- data/lib/generators/warclight/templates/catalog_controller.rb +37 -14
- data/lib/warclight/version.rb +1 -1
- data/solr/conf/solrconfig.xml +115 -1246
- metadata +3 -3
- data/solr/conf/managed-schema +0 -1045
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30e0c2b3c96bda4a0c197bc20f9e15987294a6e7
|
4
|
+
data.tar.gz: 55ecd9497198b8742025d37755a30e18ac432a19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ed70a7e4dff2676c6a35fecc199fa0861e6ab5c1b9ca26dd1f2be9b5fc734b5c6a830e50038fb05ec43fff4aa551f4ec337cdf2ca7971c7e9a24919be8bdb81
|
7
|
+
data.tar.gz: 23a4970ac3c95637b4c871fe308f5ca39221a5c02274ced5ed9e2b236072eff9acdb33c0936be87c6237136ab72a2fd0536d9c09794e80f7bddb6e9da4fbe381
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [v0.1.1](https://github.com/archivesunleashed/warclight/tree/v0.1.1) (2017-08-20)
|
4
|
+
[Full Changelog](https://github.com/archivesunleashed/warclight/compare/v0.1.0...v0.1.1)
|
5
|
+
|
6
|
+
**Closed issues:**
|
7
|
+
|
8
|
+
- Getting Started Documentation [\#13](https://github.com/archivesunleashed/warclight/issues/13)
|
9
|
+
|
10
|
+
**Merged pull requests:**
|
11
|
+
|
12
|
+
- A bit more information on product, re: issue \#13 [\#16](https://github.com/archivesunleashed/warclight/pull/16) ([ianmilligan1](https://github.com/ianmilligan1))
|
13
|
+
- Correct webarchive-discovery reference in README [\#12](https://github.com/archivesunleashed/warclight/pull/12) ([ibnesayeed](https://github.com/ibnesayeed))
|
14
|
+
|
15
|
+
## [v0.1.0](https://github.com/archivesunleashed/warclight/tree/v0.1.0) (2017-08-17)
|
16
|
+
**Closed issues:**
|
17
|
+
|
18
|
+
- Facets are displaying, but no results are found, and searching returns nothing [\#8](https://github.com/archivesunleashed/warclight/issues/8)
|
19
|
+
- Setup Solr fields [\#7](https://github.com/archivesunleashed/warclight/issues/7)
|
20
|
+
- Could not find generator 'warclight:install' [\#6](https://github.com/archivesunleashed/warclight/issues/6)
|
21
|
+
- Failure/Error: Cabybara.javascript\_driver = :poltergeist [\#4](https://github.com/archivesunleashed/warclight/issues/4)
|
22
|
+
- Failure/Error: require 'rpsec/rails' [\#3](https://github.com/archivesunleashed/warclight/issues/3)
|
23
|
+
- Codecov doesn't work [\#2](https://github.com/archivesunleashed/warclight/issues/2)
|
24
|
+
- Update lib/tasks/index.rake to use web-archive-discovery [\#1](https://github.com/archivesunleashed/warclight/issues/1)
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
@@ -2,7 +2,12 @@
|
|
2
2
|
|
3
3
|
module Warclight
|
4
4
|
##
|
5
|
-
# Helper for Warclight.
|
5
|
+
# Helper methods for Warclight.
|
6
6
|
module ApplicationHelper
|
7
|
+
def link_to_live_web(options = {})
|
8
|
+
safe_join(options[:value].map do |url|
|
9
|
+
link_to(url, url, target: '_blank') << ' 🔗'
|
10
|
+
end, '')
|
11
|
+
end
|
7
12
|
end
|
8
13
|
end
|
@@ -53,6 +53,7 @@ class CatalogController < ApplicationController
|
|
53
53
|
config.add_facet_field 'public_suffix', label: 'Public Suffix', collapse: false
|
54
54
|
config.add_facet_field 'domain', label: 'Domain'
|
55
55
|
config.add_facet_field 'links_domains', label: 'Links Domains'
|
56
|
+
config.add_facet_field 'content_language', label: 'Content Language'
|
56
57
|
config.add_facet_field 'institution', label: 'Institution'
|
57
58
|
config.add_facet_field 'collection_name', label: 'Collection Name'
|
58
59
|
config.add_facet_field 'collection_number', label: 'Collection Number'
|
@@ -65,27 +66,33 @@ class CatalogController < ApplicationController
|
|
65
66
|
# solr fields to be displayed in the index (search results) view
|
66
67
|
# The ordering of the field names is the order of the display
|
67
68
|
config.add_index_field 'title', label: 'Title'
|
68
|
-
config.add_index_field 'host', label: 'Host'
|
69
|
+
config.add_index_field 'host', label: 'Host', link_to_facet: true
|
69
70
|
config.add_index_field 'crawl_date', label: 'Crawl Date'
|
70
|
-
config.add_index_field '
|
71
|
-
config.add_index_field '
|
72
|
-
config.add_index_field '
|
73
|
-
config.add_index_field 'institution', label: 'Institution'
|
74
|
-
config.add_index_field 'collection_name', label: 'Collection Name'
|
75
|
-
config.add_index_field 'collection_number', label: 'Collection Number'
|
71
|
+
config.add_index_field 'content_type_norm', label: 'General Content Type', link_to_facet: true
|
72
|
+
config.add_index_field 'content_language', label: 'Content Language', link_to_facet: true
|
73
|
+
config.add_index_field 'domain', label: 'Domain', link_to_facet: true
|
74
|
+
config.add_index_field 'institution', label: 'Institution', link_to_facet: true
|
75
|
+
config.add_index_field 'collection_name', label: 'Collection Name', link_to_facet: true
|
76
|
+
config.add_index_field 'collection_number', label: 'Collection Number', link_to_facet: true
|
77
|
+
config.add_index_field 'links_domains', label: 'This page links to', link_to_facet: true,
|
78
|
+
separator_options: { words_connector: '; ' }
|
76
79
|
|
77
80
|
# solr fields to be displayed in the show (single result) view
|
78
81
|
# The ordering of the field names is the order of the display
|
79
82
|
config.add_show_field 'title', label: 'Title'
|
80
|
-
config.add_show_field 'url', label: 'URL'
|
81
|
-
config.add_show_field 'host', label: 'Host'
|
83
|
+
config.add_show_field 'url', label: 'URL (live web)', helper_method: :link_to_live_web
|
84
|
+
config.add_show_field 'host', label: 'Host', link_to_facet: true
|
85
|
+
config.add_show_field 'institution', label: 'Institution', link_to_facet: true
|
86
|
+
config.add_show_field 'collection_name', label: 'Collection Name', link_to_facet: true
|
87
|
+
config.add_show_field 'collection_number', label: 'Collection Number', link_to_facet: true
|
82
88
|
config.add_show_field 'crawl_date', label: 'Crawl Date'
|
83
89
|
config.add_show_field 'source_file', label: 'Source File'
|
84
|
-
config.add_show_field '
|
85
|
-
config.add_show_field '
|
86
|
-
config.add_show_field 'content_type_served', label: 'Content Type Served'
|
90
|
+
config.add_show_field 'content_type_norm', label: 'General Content Type', link_to_facet: true
|
91
|
+
config.add_show_field 'content_language', label: 'Content Language', link_to_facet: true
|
87
92
|
config.add_show_field 'content_length', label: 'Length'
|
88
|
-
config.add_show_field 'links_hosts', label: 'Link Hosts'
|
93
|
+
config.add_show_field 'links_hosts', label: 'Link Hosts', link_to_facet: true
|
94
|
+
config.add_show_field 'links_domains', label: 'This page links to', link_to_facet: true,
|
95
|
+
separator_options: { words_connector: '; ' }
|
89
96
|
config.add_show_field 'content', label: 'Content'
|
90
97
|
|
91
98
|
# "fielded" search configuration. Used by pulldown among other places.
|
@@ -105,10 +112,26 @@ class CatalogController < ApplicationController
|
|
105
112
|
# This one uses all the defaults set by the solr request handler. Which
|
106
113
|
# solr request handler? The one set in config[:default_solr_parameters][:qt],
|
107
114
|
# since we aren't specifying it otherwise.
|
108
|
-
config.add_search_field '
|
115
|
+
config.add_search_field 'text', label: 'Text' do |field|
|
109
116
|
field.include_in_simple_select = true
|
110
117
|
end
|
111
118
|
|
119
|
+
config.add_search_field 'title', label: 'Title' do |field|
|
120
|
+
field.qt = 'title_search'
|
121
|
+
end
|
122
|
+
|
123
|
+
config.add_search_field 'content', label: 'Content' do |field|
|
124
|
+
field.qt = 'content_search'
|
125
|
+
end
|
126
|
+
|
127
|
+
config.add_search_field 'url', label: 'URL' do |field|
|
128
|
+
field.qt = 'url_search'
|
129
|
+
end
|
130
|
+
|
131
|
+
config.add_search_field 'host', label: 'Host' do |field|
|
132
|
+
field.qt = 'host_search'
|
133
|
+
end
|
134
|
+
|
112
135
|
# Field-based searches. We have registered handlers in the Solr configuration
|
113
136
|
# so we have Blacklight use the `qt` parameter to invoke them
|
114
137
|
|
data/lib/warclight/version.rb
CHANGED