File: search_control.rb

package info (click to toggle)
tdiary 5.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,092 kB
  • sloc: ruby: 23,031; javascript: 1,029; xml: 325; makefile: 26; sh: 2
file content (71 lines) | stat: -rw-r--r-- 2,091 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
=begin
= Search control plugin((-$Id: search_control.rb,v 1.2 2004-11-09 21:07:45 zunda Exp $-))
English resource

== Summary
Ask crawlers whether to make index or not depending upon views (latest,
day, etc.) using the meta tag.

== Usage
Select this plugin through the Select-plugin plugin.

To set up, click `Search control' in the configuration view. You can
choose if you want crawlers from external search engines to index your
one-day view, latest view, etc. The default is to ask the crawlers to
only index one-day view.

To this plugin to take effect, we have to wish that the crawlers regards
the meta-tag.

== License
Copyright (C) 2003, 2004 zunda <zunda at freeshell.org>

Permission is granted for use, copying, modification, distribution, and
distribution of modified versions of this work under the terms of GPL version 2 or later.
=end

=begin ChangeLog
See ../ChangeLog for changes after this.

* Aug 28, 2003 zunda <zunda at freeshell.org>
- 1.3
- simpler configuration display

* Aug 26, 2003 zunda <zunda at freeshell.org>
- 1.2
- no table in configuration view, thanks to Tada-san.

* Aug 26, 2003 zunda <zunda at freeshell.org>
- no nofollow
- English translation
=end ChangeLog

# configuration
unless defined?( Search_control_plugin_name ) then
	Search_control_plugin_name = 'Search control'
	Search_control_description_html = <<'_HTML'
<p>Asks the crawlers from external search engines not to index
unwanted pages by using the meta tag. Check the viewes you want the
search engines to index.</p>
<p>Multiple settings can be made for different user agents.
If the given user agent does not match any of your settings,
the default setting is used.</p>
_HTML
	Search_control_delete_label = 'delete this agent'
	Search_control_new_label = 'add this agent'
	Search_control_default_label = 'Default'
	Search_control_categories = [
		[ 'Latest', 'latest' ],
		[ 'One-day', 'day' ],
		[ 'One-month', 'month' ],
		[ 'Same-day', 'nyear' ],
		[ 'Category', 'category' ]
	]
end

# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End: