示例#1
0
文件: oai.cs 项目: reeset/oai.cs
		// McCown
		public ListRecord ListRecords(string sPrefix, string sset, string sfrom, string suntil, ResumptionToken objToken) 
		{
			object objHandler = new object();
			objHandler = new OAI_DC();
			return ListRecords(sPrefix, sset, sfrom, suntil, objToken, ref objHandler);
		}
示例#2
0
文件: oai.cs 项目: reeset/oai.cs
		//=========================================================
		// Sub/Function: ListSets
		// Description: Returns a list of collections currently 
		// available for harvesting from this oai server.
		//==========================================================
		public ListSet ListSets(ResumptionToken objToken) 
		{
			object objHandler = new object();
			objHandler = new OAI_DC();
			return ListSets(objToken, ref objHandler);
		}
示例#3
0
文件: oai.cs 项目: reeset/oai.cs
		public ListRecord ListRecords(ResumptionToken objToken) 
		{
			object objHandler = new object();
			objHandler = new OAI_DC();
			return ListRecords("", "", "", "", objToken, ref objHandler);
		}
示例#4
0
文件: oai.cs 项目: reeset/oai.cs
		public ListRecord ListRecords(string sPrefix, string sfrom, string suntil) 
		{
			object objHandler = new object();
			objHandler = new OAI_DC();
			return ListRecords(sPrefix, "", sfrom, suntil, null, ref objHandler);
		}
示例#5
0
文件: oai.cs 项目: reeset/oai.cs
		public ListRecord ListRecords(string sPrefix, string sset) 
		{
			object objHandler = new object();
			objHandler = new OAI_DC();
			return ListRecords(sPrefix, sset, "", "", null, ref objHandler);
		}
示例#6
0
文件: oai.cs 项目: reeset/oai.cs
		public Record GetRecord(string sidentifier, string sPrefix) 
		{
			object objHandler = new object();
			objHandler = new OAI_DC();
			return GetRecord(sidentifier, sPrefix, ref objHandler);
		}
示例#7
0
文件: oai.cs 项目: reeset/oai.cs
		//========================================================================
		// Sub/Function: GetRecord
		// Description: GetRecord returns the individual metadata object for a 
		// specific item.  
		// Parameters: 
		//	identifier [required]: the identifier of the item.
		//  sPrefix [option]: Specifies the metadata prefix to use.
		//	By default, dublin core is supported but if you wrote your
		//	own handler, you could use other schemes with this class.
		// example:
		// objFormat = new ListMetadataFormats();
		// OAI objOSU = new OAI("http://digitalcollections.library.oregonstate.edu/cgi-bin/oai.exe");
		// objFormat = objOSU.listMetadataFormats("oai:digitalcollections.library.oregonstate.edu:bracero/37");
		//
		// Console.WriteLine("Prefix: " + String.Join(",", (string[]) objFormat.metadataPrefix.ToArray(typeof(string))));
		// Console.WriteLine("Schema: " + String.Join(",", (string[]) objFormat.schema.ToArray(typeof(string))));
		// Console.WriteLine("Namespace: " + String.Join(",", (string[]) objFormat.metadataNamespace.ToArray(typeof(string))));
		//
		// Console.WriteLine();
		// 
		// Record objRecord = new Record();
		// objRecord = objOSU.GetRecord("oai:digitalcollections.library.oregonstate.edu:bracero/37");
		// Console.WriteLine("Header Information:");
		// Console.WriteLine(objRecord.header.identifier);
		// Console.WriteLine(objRecord.header.datestamp);
		// Console.WriteLine();
		// 
		// Console.WriteLine("Record Info:");
		// Console.WriteLine("Title: " + String.Join(",", (string[]) objRecord.metadata.title.ToArray(typeof(string))));
		// Console.WriteLine("Description: " + String.Join(",", (string[]) objRecord.metadata.description.ToArray(typeof(string))));
		//
		// Console.WriteLine();
		//
		//=========================================================================
		public Record GetRecord(string sidentifier) 
		{
			object objHandler = new object();
			objHandler = new OAI_DC();
			return GetRecord(sidentifier, "oai_dc", ref objHandler);
		}