Esempio n. 1
0
 def __init__(self,
              collection=None,
              xmlFormat=None,
              baseUrl=default_baseUrl):
     self.termList = getTermList()
     self.badRecs = []
     RepositorySearcher.__init__(self, collection, xmlFormat, baseUrl)
Esempio n. 2
0
 def __init__(self, timeStr, collection=None):
     UserList.__init__(self)
     self.collection = collection
     self.timeStr = timeStr
     RepositorySearcher.__init__(self,
                                 collection=collection,
                                 xmlFormat='osm')
Esempio n. 3
0
 def __init__ (self, userId, recordId=None):
     self.userId = userId
     self.recordId = recordId
     collection = 'ccsprivateannos'
     xmlFormat = 'dlese_anno'
     if recordId:
         self.filter_predicate = self.recordId_filter
     RepositorySearcher.__init__ (self, collection=collection, xmlFormat=xmlFormat, baseUrl=self.default_baseUrl)
Esempio n. 4
0
    def __init__(self, term, searchFields):
        """
		searchFields can be a list of fields. In this case, the query ORs together the
		fields, each clause with the same term value
		"""
        self.term = term
        if type(searchFields) == type(""):
            self.searchFields = [searchFields]
        else:
            self.searchFields = searchFields
        RepositorySearcher.__init__(self, self.baseUrl)
Esempio n. 5
0
	def __init__ (self, field=None, value=None, collection=None):
		"""
		field - xpath (e.g., /record/contributors/organization/affiliation/instDivision)
		value - the vocab value (e.g., "Advanced Study Program (ASP)"
		"""
		print "VocabSearcher"
		if not field and value:
			raise Exepction, "Vocab Searcher requires field and value params"
		
		self.field = field
		self.value = value
		
		RepositorySearcher.__init__ (self, collection)
Esempio n. 6
0
    def __init__(self, value=None, collection=None, baseUrl=None):
        """
		value - the vocab value (e.g., "Advanced Study Program (ASP)"
		"""
        self.collection = collection

        if self.verbose:
            print "InstDivSearcher"
        if not value:
            raise Exepction, "Vocab Searcher requires field and value params"

        self.value = value

        RepositorySearcher.__init__(self, self.collection, baseUrl=baseUrl)
Esempio n. 7
0
    def __init__(self, collection=None, xmlFormat=None, baseUrl=None):
        baseUrl = baseUrl or self.default_baseUrl
        collection = collection or self.default_collection

        self.base_params = {
            'verb':
            'Search',
            'dcsStatus':
            'Done',
            'collection':
            collection,
            'xmlFormat':
            xmlFormat,
            'storedContent': [
                'dcsstatus', 'dcsstatusNote', 'dcsisValid', 'dcsosmFiscalYear',
                'dcsosmFlattenedTitle'
            ]
        }

        print 'calling repository searcher init'
        RepositorySearcher.__init__(self, collection, xmlFormat, baseUrl)
Esempio n. 8
0
 def __init__(self, title, collection=None, xmlFormat='osm'):
     self.title = title
     self.dups = None
     RepositorySearcher.__init__(self, collection, xmlFormat)
Esempio n. 9
0
	def __init__ (self, userInfo):
		RepositorySearcher.__init__ (self)
Esempio n. 10
0
 def __init__(self,
              collection=None,
              xmlFormat=None,
              baseUrl=default_baseUrl):
     unique_titles = []
     RepositorySearcher.__init__(self, collection, xmlFormat, baseUrl)
Esempio n. 11
0
 def __init__(self, collection):
     self.collection = collection
     RepositorySearcher.__init__(self, collection=collection)
Esempio n. 12
0
 def __init__(self, url):
     self.url = url
     RepositorySearcher.__init__(self, baseUrl=default_baseUrl)
Esempio n. 13
0
 def __init__(self, term, indexField, baseUrl=default_baseUrl):
     self.term = term
     self.indexField = indexField
     self.results = []  # all search hits
     RepositorySearcher.__init__(self, baseUrl)
Esempio n. 14
0
	def __init__ (self, username):
		self.username = username
		RepositorySearcher.__init__ (self)
Esempio n. 15
0
 def __init__(self, collection=None, xmlFormat='osm'):
     RepositorySearcher.__init__(self, collection, xmlFormat)
Esempio n. 16
0
	def __init__ (self):
		RepositorySearcher.__init__ (self, collection="not-fy10", xmlFormat="osm")
Esempio n. 17
0
 def __init__(self, collection, baseUrl=default_baseUrl):
     RepositorySearcher.__init__(self,
                                 collection=collection,
                                 baseUrl=default_baseUrl)
Esempio n. 18
0
	def __init__ (self):
		collection = 'ccsusersubmittedresources'
		xmlFormat = 'adn'
		self.get_params = self.get_filtered
		RepositorySearcher.__init__ (self, collection=collection, xmlFormat=xmlFormat, baseUrl=self.default_baseUrl)
Esempio n. 19
0
	def __init__ (self, titleKey):
		self.titleKey = titleKey
		RepositorySearcher.__init__ (self, collection='osgc', xmlFormat='osm')
Esempio n. 20
0
	def __init__ (self):
		collection = 'ccsprivateannos'
		xmlFormat = 'dlese_anno'
		self.get_params = self.get_filtered
		RepositorySearcher.__init__ (self, collection=collection, xmlFormat=xmlFormat, baseUrl=self.default_baseUrl)
Esempio n. 21
0
 def __init__(self):
     # self.filter_predicate = self.isStudent
     # self.filter_predicate = self.isAdministrator
     RepositorySearcher.__init__(self)
     self.data.sort()