From 66a8a62527c9984066cfe1a3d6c43654d5283605 Mon Sep 17 00:00:00 2001 From: jaron Date: Fri, 24 Aug 2007 15:54:10 +0000 Subject: [PATCH] improved winnowing stage Winnowing stage now displays a message giving the options that 'done' processes all the records and is the way to escape and continue. git-svn-id: svn+ssh://rubyforge.org/var/svn/zcc/trunk@309 695555e7-a3f4-42c9-822d-1d0ed3746087 --- bin/zcc | 6 +++--- lib/zcc/cli_display.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/zcc b/bin/zcc index 643ba24..04fe0bd 100644 --- a/bin/zcc +++ b/bin/zcc @@ -137,10 +137,10 @@ loop { next if taken.empty? continue = true print $clear_code - say("\aThis is your combined result set.\nWe will winnow until you choose ".white.bold.on_black + "'done'".red.bold + "\nor you unselect all records.".white.bold.on_black) - sleep 1 + #say("\aThis is your combined result set.\nWe will winnow until you choose ".white.bold.on_black + "'done'".red.bold + "\nor you unselect all records.".white.bold.on_black) + #sleep 1 while continue - return_value = zcc_select_good_marc(taken, 'multi') + return_value = zcc_select_good_marc(taken, 'winnow') continue = false if taken.selected_length == 0 continue = false if return_value == 'done' end diff --git a/lib/zcc/cli_display.rb b/lib/zcc/cli_display.rb index 4f89369..6f7be49 100755 --- a/lib/zcc/cli_display.rb +++ b/lib/zcc/cli_display.rb @@ -94,7 +94,7 @@ module ZCC #puts "\n\n" end puts "Highest position: " + (results.size - 1).to_s - + say("\aYou are currently in the winnowing stage.\nEnter 'done' if you want to process all selected records.\nIf you 'unselect' all records you will return to search. \n".bold) if take_how_many == 'winnow' recs_length = rec_copy.length index_range = (0..recs_length - 1) -- 2.11.4.GIT