From 6193df69f47eb29c0d92e5d99cc878dd8ca0a2f8 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Sat, 10 Jan 2015 22:09:48 -0500 Subject: [PATCH] LP#1406451: Prevent some catalogue pages from being indexed Tell search engines that they should not index search results pages, call number browsing pages, and the like. We really just want them to focus on records and the library pages. Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/advanced.tt2 | 2 ++ Open-ILS/src/templates/opac/browse.tt2 | 1 + Open-ILS/src/templates/opac/cnbrowse.tt2 | 1 + Open-ILS/src/templates/opac/mylist.tt2 | 1 + Open-ILS/src/templates/opac/results.tt2 | 3 +++ 5 files changed, 8 insertions(+) diff --git a/Open-ILS/src/templates/opac/advanced.tt2 b/Open-ILS/src/templates/opac/advanced.tt2 index 904ee1a13b..d6bf8e93f4 100644 --- a/Open-ILS/src/templates/opac/advanced.tt2 +++ b/Open-ILS/src/templates/opac/advanced.tt2 @@ -4,6 +4,8 @@ ctx.page_title = l("Advanced Search"); pane = CGI.param("pane") || "advanced"; loc = ctx.search_ou; + + metalinks = ''; -%]

[% l('Advanced Search') %]

diff --git a/Open-ILS/src/templates/opac/browse.tt2 b/Open-ILS/src/templates/opac/browse.tt2 index 962dbd0243..cde8fde2b4 100644 --- a/Open-ILS/src/templates/opac/browse.tt2 +++ b/Open-ILS/src/templates/opac/browse.tt2 @@ -10,6 +10,7 @@ blimit = CGI.param('blimit') || ctx.opac_hits_per_page || 10; depart_list = ['blimit', 'bterm', 'bpivot']; + metalinks = ''; %]

[% l('Catalog Browse') %]

diff --git a/Open-ILS/src/templates/opac/cnbrowse.tt2 b/Open-ILS/src/templates/opac/cnbrowse.tt2 index 87a303e45c..09a6b5ce15 100644 --- a/Open-ILS/src/templates/opac/cnbrowse.tt2 +++ b/Open-ILS/src/templates/opac/cnbrowse.tt2 @@ -3,6 +3,7 @@ PROCESS "opac/parts/header.tt2"; PROCESS "opac/parts/misc_util.tt2"; + metalinks = ''; WRAPPER "opac/parts/base.tt2"; INCLUDE "opac/parts/topnav.tt2"; ctx.page_title = l("Call Number Browse"); %] diff --git a/Open-ILS/src/templates/opac/mylist.tt2 b/Open-ILS/src/templates/opac/mylist.tt2 index a710e97336..611182277d 100644 --- a/Open-ILS/src/templates/opac/mylist.tt2 +++ b/Open-ILS/src/templates/opac/mylist.tt2 @@ -2,6 +2,7 @@ PROCESS "opac/parts/misc_util.tt2"; WRAPPER "opac/parts/base.tt2"; INCLUDE "opac/parts/topnav.tt2"; + metalinks = ''; ctx.page_title = l("Record Detail") %]

[% l('Temporary List') %]

diff --git a/Open-ILS/src/templates/opac/results.tt2 b/Open-ILS/src/templates/opac/results.tt2 index 92ae43ce7e..1036774e02 100644 --- a/Open-ILS/src/templates/opac/results.tt2 +++ b/Open-ILS/src/templates/opac/results.tt2 @@ -13,6 +13,9 @@ page_count = (!ctx.page_size.defined || !ctx.hit_count.defined || ctx.page_size == 0) ? 1 : POSIX.ceil(ctx.hit_count / ctx.page_size); + # We don't want search engines indexing search results + metalinks = ''; + PROCESS "opac/parts/misc_util.tt2"; PROCESS get_library; -%] -- 2.43.2