From 9d15d826d1a026e72ea5cb3dcf1c026cf144ec67 Mon Sep 17 00:00:00 2001 From: Tim Brody Date: Mon, 10 Dec 2012 16:23:16 +0000 Subject: [PATCH] Remove unwanted SavedSearch columns Removed saved_search.pos (unused) Added "columns" to saved_search dataset spec, to only show id and name --- perl_lib/EPrints/DataObj/SavedSearch.pm | 2 -- perl_lib/EPrints/DataSet.pm | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/perl_lib/EPrints/DataObj/SavedSearch.pm b/perl_lib/EPrints/DataObj/SavedSearch.pm index 20df4c2fa..da1085967 100644 --- a/perl_lib/EPrints/DataObj/SavedSearch.pm +++ b/perl_lib/EPrints/DataObj/SavedSearch.pm @@ -64,8 +64,6 @@ sub get_system_field_info { name=>"userid", type=>"itemref", datasetid=>"user", required=>1 }, - { name=>"pos", type=>"int", required=>1 }, - { name=>"name", type=>"text" }, { name => "spec", type => "search", datasetid => "eprint", diff --git a/perl_lib/EPrints/DataSet.pm b/perl_lib/EPrints/DataSet.pm index df44268f0..2a4de50b9 100644 --- a/perl_lib/EPrints/DataSet.pm +++ b/perl_lib/EPrints/DataSet.pm @@ -354,6 +354,7 @@ my $INFO = { class => "EPrints::DataObj::SavedSearch", import => 1, index => 1, + columns => [qw( id name )], }, public_saved_search => { sqlname => "saved_search",