############################################################### # Main method for the program. # If this is executed as a Python script, if __name__ == "__main__": # -------------------------------------------------------- # = Start of Preprocessing. queue_ip_args.preprocessing() # -------------------------------------------------------- # = End of Preprocessing. print "===================================================" print "Removing metadata from a BibTeX database." print "" # Assign input arguments to "queue_ip_args" for processing. queue_ip_args.set_input_arguments(sys.argv,queue_ip_args.REMOVE_METADATA) # Check if user wants to read the brief user manual. queue_ip_args.check_if_help_wanted() # Process the first input argument. print "= Process the first input argument." ip_filename = queue_ip_args.process_1st_ip_arg() # Check if 2nd input argument is missing/available. queue_ip_args.missing_2nd_ip_arg() # Process the second input argument. print "= Process the second input argument." op_filename = queue_ip_args.process_2nd_ip_arg() # Create a file object for reading. print "= Create a file object for reading." ip_file_obj = file_io_operations.open_file_object_read(ip_filename) # Create a file object for writing. print "= Create a file object for writing."
############################################################### # Main method for the program. # If this is executed as a Python script, if __name__ == "__main__": # -------------------------------------------------------- # = Start of Preprocessing. queue_ip_args.preprocessing() # -------------------------------------------------------- # = End of Preprocessing. print "===================================================" print "Displaying Sorted List of Keywords from a BibTeX Database." print "" # Assign input arguments to "queue_ip_args" for processing. queue_ip_args.set_input_arguments(sys.argv, queue_ip_args.KEYWORDS_DISPLAY) # Check if user wants to read the brief user manual. queue_ip_args.check_if_help_wanted() # Process the first input argument. print "= Process the first input argument." ip_filename = queue_ip_args.process_1st_ip_arg() # Create a file object for reading. print "= Create a file object for reading." ip_file_obj = file_io_operations.open_file_object_read(ip_filename) """ Collect the set of all keywords found in the BibTeX database. Sort the set/list. Display the set. """ keywords_show.collect_and_list_keywords(ip_file_obj, ip_filename) # Close the file object for reading.
############################################################### # Main method for the program. # If this is executed as a Python script, if __name__ == "__main__": # -------------------------------------------------------- # = Start of Preprocessing. queue_ip_args.preprocessing() # -------------------------------------------------------- # = End of Preprocessing. print "===================================================" print "Displaying Sorted List of publishers from a BibTeX Database." print "" # Assign input arguments to "queue_ip_args" for processing. queue_ip_args.set_input_arguments(sys.argv, queue_ip_args.PUBLISHERS_DISPLAY) # Check if user wants to read the brief user manual. queue_ip_args.check_if_help_wanted() # Process the first input argument. print "= Process the first input argument." ip_filename = queue_ip_args.process_1st_ip_arg() # Create a file object for reading. print "= Create a file object for reading." ip_file_obj = file_io_operations.open_file_object_read(ip_filename) """ Collect the set of all publishers found in the BibTeX database. Sort the set/list. Display the set. """ publishers_show.collect_and_list_publishers(ip_file_obj, ip_filename) # Close the file object for reading.
############################################################### # Main method for the program. # If this is executed as a Python script, if __name__ == "__main__": # -------------------------------------------------------- # = Start of Preprocessing. queue_ip_args.preprocessing() # -------------------------------------------------------- # = End of Preprocessing. print "===================================================" print "Displaying Sorted List of Series from a BibTeX Database." print "" # Assign input arguments to "queue_ip_args" for processing. queue_ip_args.set_input_arguments(sys.argv, queue_ip_args.GET_SERIES) # Check if user wants to read the brief user manual. queue_ip_args.check_if_help_wanted() # Process the first input argument. print "= Process the first input argument." ip_filename = queue_ip_args.process_1st_ip_arg() # Create a file object for reading. print "= Create a file object for reading." ip_file_obj = file_io_operations.open_file_object_read(ip_filename) """ Collect the set of all series found in the BibTeX database. Sort the set/list. Display the set. """ series_show.collect_and_list_series(ip_file_obj, ip_filename) # Close the file object for reading.
############################################################### # Main method for the program. # If this is executed as a Python script, if __name__ == "__main__": # -------------------------------------------------------- # = Start of Preprocessing. queue_ip_args.preprocessing() # -------------------------------------------------------- # = End of Preprocessing. print "===================================================" print "Finding duplicate BibTeX entries in my BibTeX database." print " And, if they exist, warn the user about them." print "" # Assign input arguments to "queue_ip_args" for processing. queue_ip_args.set_input_arguments(sys.argv, queue_ip_args.DUPLICATE_ENTRIES) # Check if user wants to read the brief user manual. queue_ip_args.check_if_help_wanted() # Process the first input argument. print "= Process the first input argument." ip_filename = queue_ip_args.process_1st_ip_arg() # Create a file object for reading. print "= Create a file object for reading." # Create a file object for input BibTeX file, in reading mode. ip_file_obj = file_io_operations.open_file_object_read(ip_filename) Duplicate_BibTeX_entries_finder.read_input_BibTeX_file( ip_file_obj, ip_filename) # Close the file object for reading. print "= Close the file object for reading." file_io_operations.close_file_object(ip_file_obj)
############################################################### # Main method for the program. # If this is executed as a Python script, if __name__ == "__main__": # -------------------------------------------------------- # = Start of Preprocessing. queue_ip_args.preprocessing() # -------------------------------------------------------- # = End of Preprocessing. print "===================================================" print "Displaying Sorted List of Keywords from a BibTeX Database." print "" # Assign input arguments to "queue_ip_args" for processing. queue_ip_args.set_input_arguments(sys.argv,queue_ip_args.KEYWORDS_DISPLAY) # Check if user wants to read the brief user manual. queue_ip_args.check_if_help_wanted() # Process the first input argument. print "= Process the first input argument." ip_filename = queue_ip_args.process_1st_ip_arg() # Create a file object for reading. print "= Create a file object for reading." ip_file_obj = file_io_operations.open_file_object_read(ip_filename) """ Collect the set of all keywords found in the BibTeX database. Sort the set/list. Display the set. """ keywords_show.collect_and_list_keywords(ip_file_obj, ip_filename) # Close the file object for reading.
############################################################### # Main method for the program. # If this is executed as a Python script, if __name__ == "__main__": # -------------------------------------------------------- # = Start of Preprocessing. queue_ip_args.preprocessing() # -------------------------------------------------------- # = End of Preprocessing. print "===================================================" print "Validating the URLs/DOIs of BibTeX entries." print "" # Assign input arguments to "queue_ip_args" for processing. queue_ip_args.set_input_arguments(sys.argv, queue_ip_args.VALIDATE_URL_DOI) # Check if user wants to read the brief user manual. queue_ip_args.check_if_help_wanted() # Process the first input argument. print "= Process the first input argument." ip_filename = queue_ip_args.process_1st_ip_arg() # Check if 2nd input argument is missing/available. queue_ip_args.missing_2nd_ip_arg() # Process the second input argument. print "= Process the second input argument." op_filename = queue_ip_args.process_2nd_ip_arg() # Create a file object for reading. print "= Create a file object for reading." ip_file_obj = file_io_operations.open_file_object_read(ip_filename) # Create a file object for writing. print "= Create a file object for writing."
############################################################### # Main method for the program. # If this is executed as a Python script, if __name__ == "__main__": # -------------------------------------------------------- # = Start of Preprocessing. queue_ip_args.preprocessing() # -------------------------------------------------------- # = End of Preprocessing. print "===================================================" print "Validating the URLs/DOIs of BibTeX entries." print "" # Assign input arguments to "queue_ip_args" for processing. queue_ip_args.set_input_arguments(sys.argv,queue_ip_args.VALIDATE_URL_DOI) # Check if user wants to read the brief user manual. queue_ip_args.check_if_help_wanted() # Process the first input argument. print "= Process the first input argument." ip_filename = queue_ip_args.process_1st_ip_arg() # Check if 2nd input argument is missing/available. queue_ip_args.missing_2nd_ip_arg() # Process the second input argument. print "= Process the second input argument." op_filename = queue_ip_args.process_2nd_ip_arg() # Create a file object for reading. print "= Create a file object for reading." ip_file_obj = file_io_operations.open_file_object_read(ip_filename) # Create a file object for writing. print "= Create a file object for writing."