warclight 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64f1c850c346e25d6d62d93671ed383cc119f921
4
- data.tar.gz: 0a1b5470b56118323a4d12d5b8baff92621349d4
3
+ metadata.gz: 30e0c2b3c96bda4a0c197bc20f9e15987294a6e7
4
+ data.tar.gz: 55ecd9497198b8742025d37755a30e18ac432a19
5
5
  SHA512:
6
- metadata.gz: ac71ce6b95d22a17e2b44d391e6da0b99fa03154891e57587b0c13641f271b51ee767fb0871c14ad615949461aadca98392f2b17ddbbd3ff9d64eee3b977d54d
7
- data.tar.gz: 0fe2a8b7dcf2b8eedf937ee8a76dd9323a2ae37ff01c8ae569da8bdd0ae8719d9c37063efd19625e62ac600d1d39a1ca40b7316569a67ef52bd0af85d1fdd637
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. This might disappear.
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 'content_type', label: 'Content Type'
71
- config.add_index_field 'domain', label: 'Domain'
72
- config.add_index_field 'links_domains', label: 'This page links to'
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 'content_type', label: 'Content Type'
85
- config.add_show_field 'server', label: 'Server'
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 'all_fields', label: 'All Fields' do |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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Warclight
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.0'
5
5
  end