From 792069b8dfb51364042340aa1fe9cf396142f999 Mon Sep 17 00:00:00 2001 From: jason Date: Sun, 15 Jul 2007 19:00:54 +0000 Subject: [PATCH] adding cli_display.rb as main way to sort through a resultset git-svn-id: svn+ssh://rubyforge.org/var/svn/zcc/trunk@201 695555e7-a3f4-42c9-822d-1d0ed3746087 --- lib/zcc/{menus2.rb => cli_display.rb} | 19 +++++++------------ lib/zcc/menus2.rb | 19 +++++++------------ 2 files changed, 14 insertions(+), 24 deletions(-) copy lib/zcc/{menus2.rb => cli_display.rb} (90%) diff --git a/lib/zcc/menus2.rb b/lib/zcc/cli_display.rb similarity index 90% copy from lib/zcc/menus2.rb copy to lib/zcc/cli_display.rb index 99460b2..e58c10f 100755 --- a/lib/zcc/menus2.rb +++ b/lib/zcc/cli_display.rb @@ -6,16 +6,6 @@ require "highline/import" #ADD IN OVERWRITE???? -# # -# sort => prompt another menu -# view# -# remove# -# compare#-# -# done -# forward -# backward - - clear = %x{clear} #print clear a = [1,2,3,4] @@ -25,11 +15,13 @@ say("\nYou can even build shells...") help_n = "Next Z39.50 server/group of zservers.\n> n" -help_num = "Pick that record by typing in the index number\n> 16." # this represents the '#' +help_num = "View that record by typing in the index number\n> 16." # this represents the '#' + +help_p = "Pick the record at that index position into the result set to work on and save." help_s = "Select sort. Hit 's' to get a menu of sort possibilities. Possible sorts will include: relevancy, title, author, date, date_fixed, subfield (in form of 245a)...\n> s5" -help_v = "View the record. Shows the full MARC record." +#help_v = "View the record. Shows the full MARC record." help_r = "Remove the record from the result set. This is a way to narrow the result set.\n> r4\nRemoves record 4 from the result set." @@ -41,6 +33,9 @@ help_d = "Done selecting records. If at least one record has been selected you c help_f = "Forwards through the result set" help_b = "backwards through the result set" +help_all = "Select all the records in the result set to work on and save." + + take_how_many = 'multi' #'one' # 'multi' diff --git a/lib/zcc/menus2.rb b/lib/zcc/menus2.rb index 99460b2..e58c10f 100755 --- a/lib/zcc/menus2.rb +++ b/lib/zcc/menus2.rb @@ -6,16 +6,6 @@ require "highline/import" #ADD IN OVERWRITE???? -# # -# sort => prompt another menu -# view# -# remove# -# compare#-# -# done -# forward -# backward - - clear = %x{clear} #print clear a = [1,2,3,4] @@ -25,11 +15,13 @@ say("\nYou can even build shells...") help_n = "Next Z39.50 server/group of zservers.\n> n" -help_num = "Pick that record by typing in the index number\n> 16." # this represents the '#' +help_num = "View that record by typing in the index number\n> 16." # this represents the '#' + +help_p = "Pick the record at that index position into the result set to work on and save." help_s = "Select sort. Hit 's' to get a menu of sort possibilities. Possible sorts will include: relevancy, title, author, date, date_fixed, subfield (in form of 245a)...\n> s5" -help_v = "View the record. Shows the full MARC record." +#help_v = "View the record. Shows the full MARC record." help_r = "Remove the record from the result set. This is a way to narrow the result set.\n> r4\nRemoves record 4 from the result set." @@ -41,6 +33,9 @@ help_d = "Done selecting records. If at least one record has been selected you c help_f = "Forwards through the result set" help_b = "backwards through the result set" +help_all = "Select all the records in the result set to work on and save." + + take_how_many = 'multi' #'one' # 'multi' -- 2.11.4.GIT