Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring to make switching of the Inspire API easier ...
- Loading branch information
Showing
7 changed files
with
244 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// ProtoArticle.h | ||
// inspire | ||
// | ||
// Created by Yuji on 2015/08/09. | ||
// | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface ProtoArticle : NSObject | ||
@property (readonly) NSString*title; | ||
@property (readonly) NSString*inspireKey; | ||
@property (readonly) NSString*spiresKey; | ||
@property (readonly) NSString*eprint; | ||
@property (readonly) NSArray*authors; | ||
@property (readonly) NSString*abstract; | ||
@property (readonly) NSString*collaboration; | ||
@property (readonly) NSNumber*pages; | ||
@property (readonly) NSNumber*citecount; | ||
@property (readonly) NSDate*date; | ||
@property (readonly) NSDictionary*publicationInfo; | ||
@property (readonly) NSString*doi; | ||
@property (readonly) NSString*comments; | ||
@property (readonly) NSString*journalTitle; | ||
@property (readonly) NSString*journalVolume; | ||
@property (readonly) NSString*journalPage; | ||
@property (readonly) NSNumber*journalYear; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// ProtoArticle.m | ||
// inspire | ||
// | ||
// Created by Yuji on 2015/08/09. | ||
// | ||
// | ||
|
||
#import "ProtoArticle.h" | ||
|
||
@implementation ProtoArticle | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// SpiresXMLArticle.h | ||
// inspire | ||
// | ||
// Created by Yuji on 2015/08/09. | ||
// | ||
// | ||
|
||
#import "ProtoArticle.h" | ||
|
||
@interface SpiresXMLArticle : ProtoArticle | ||
+(NSArray*)articlesFromXMLData:(NSData*)data; | ||
-(instancetype)initWithXMLElement:(NSXMLElement*)node; | ||
@end |
Oops, something went wrong.