Beispiel #1
0
 def __init__(self,
              collection=None,
              xmlFormat=None,
              baseUrl=default_baseUrl):
     self.termList = getTermList()
     self.badRecs = []
     RepositorySearcher.__init__(self, collection, xmlFormat, baseUrl)
 def __init__(self, timeStr, collection=None):
     UserList.__init__(self)
     self.collection = collection
     self.timeStr = timeStr
     RepositorySearcher.__init__(self,
                                 collection=collection,
                                 xmlFormat='osm')
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #8
0
 def __init__(self, title, collection=None, xmlFormat='osm'):
     self.title = title
     self.dups = None
     RepositorySearcher.__init__(self, collection, xmlFormat)
Beispiel #9
0
	def __init__ (self, userInfo):
		RepositorySearcher.__init__ (self)
Beispiel #10
0
 def __init__(self,
              collection=None,
              xmlFormat=None,
              baseUrl=default_baseUrl):
     unique_titles = []
     RepositorySearcher.__init__(self, collection, xmlFormat, baseUrl)
Beispiel #11
0
 def __init__(self, collection):
     self.collection = collection
     RepositorySearcher.__init__(self, collection=collection)
Beispiel #12
0
 def __init__(self, url):
     self.url = url
     RepositorySearcher.__init__(self, baseUrl=default_baseUrl)
 def __init__(self, term, indexField, baseUrl=default_baseUrl):
     self.term = term
     self.indexField = indexField
     self.results = []  # all search hits
     RepositorySearcher.__init__(self, baseUrl)
Beispiel #14
0
	def __init__ (self, username):
		self.username = username
		RepositorySearcher.__init__ (self)
 def __init__(self, collection=None, xmlFormat='osm'):
     RepositorySearcher.__init__(self, collection, xmlFormat)
Beispiel #16
0
	def __init__ (self):
		RepositorySearcher.__init__ (self, collection="not-fy10", xmlFormat="osm")
Beispiel #17
0
 def __init__(self, collection, baseUrl=default_baseUrl):
     RepositorySearcher.__init__(self,
                                 collection=collection,
                                 baseUrl=default_baseUrl)
Beispiel #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)
Beispiel #19
0
	def __init__ (self, titleKey):
		self.titleKey = titleKey
		RepositorySearcher.__init__ (self, collection='osgc', xmlFormat='osm')
	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)
Beispiel #21
0
 def __init__(self):
     # self.filter_predicate = self.isStudent
     # self.filter_predicate = self.isAdministrator
     RepositorySearcher.__init__(self)
     self.data.sort()