Skip to content
Browse files

Rename Altmetric journal identifier and tweet quotes properties

  • Loading branch information...
1 parent bb9074e commit f51122f9a2a8d29a25a6e4502f5048cc30e1b3c2 @vtourraine vtourraine committed
View
2 Examples/SZNAltmetricDemo/SZNAltmetricDemo/classes/SZNArticleViewController.m
@@ -68,7 +68,7 @@ - (void)configureViewWithArticle:(SZNAltmetricArticle *)article
self.subjectsLabel.text = [article.subjects componentsJoinedByString:@", "];
self.scopusSubjectsLabel.text = [article.scopusSubjects componentsJoinedByString:@", "];
- self.quotesLabel.text = [article.quotes componentsJoinedByString:@"\n"];
+ self.quotesLabel.text = [article.tweetQuotes componentsJoinedByString:@"\n"];
}
@end
View
123 Examples/SZNAltmetricDemoOSX/SZNAltmetricDemoOSX/en.lproj/MainMenu.xib
@@ -1318,7 +1318,6 @@
<int key="NSvFlags">265</int>
<string key="NSFrame">{{309, 567}, {119, 32}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="19062232"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="NSEnabled">YES</bool>
@@ -1347,7 +1346,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{17, 576}, {75, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="346050211"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1384,7 +1382,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{97, 573}, {210, 22}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="398878416"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="NSEnabled">YES</bool>
@@ -1420,7 +1417,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{29, 314}, {180, 27}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="924979929"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1453,7 +1449,6 @@
</set>
<string key="NSFrame">{{29, 346}, {180, 180}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="396397178"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="NSEnabled">YES</bool>
@@ -1474,7 +1469,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{228, 502}, {408, 22}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="743536031"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1499,7 +1493,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{228, 253}, {90, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="887704791"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1520,7 +1513,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{320, 253}, {316, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="540657977"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1554,7 +1546,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{228, 228}, {90, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="455521229"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1575,7 +1566,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{320, 228}, {316, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1059961659"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1605,7 +1595,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{228, 278}, {90, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="633635273"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1626,7 +1615,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{320, 278}, {316, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="945171281"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1656,7 +1644,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{241, 191}, {77, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="259857311"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1677,7 +1664,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{319, 191}, {199, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="848500127"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1698,7 +1684,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{238, 166}, {80, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="224979840"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1719,7 +1704,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{318, 166}, {200, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="207139991"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1740,7 +1724,6 @@
<int key="NSvFlags">265</int>
<string key="NSFrame">{{517, 182}, {122, 32}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="140510701"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="NSEnabled">YES</bool>
@@ -1765,7 +1748,6 @@
<int key="NSvFlags">265</int>
<string key="NSFrame">{{517, 157}, {122, 32}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1029996930"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="NSEnabled">YES</bool>
@@ -1790,7 +1772,6 @@
<int key="NSvFlags">265</int>
<string key="NSFrame">{{430, 576}, {16, 16}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="884517583"/>
<string key="NSReuseIdentifierKey">_NS:945</string>
<int key="NSpiFlags">28938</int>
@@ -1801,7 +1782,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{29, 275}, {103, 19}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="701276379"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1826,7 +1806,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{29, 250}, {38, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="75093843"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1851,7 +1830,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{69, 250}, {140, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="747661773"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1872,7 +1850,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{29, 225}, {38, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="944848089"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1893,7 +1870,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{69, 225}, {140, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="489602111"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1914,7 +1890,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{29, 200}, {38, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="862783970"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1935,7 +1910,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{69, 200}, {140, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="385888207"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1956,7 +1930,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{29, 175}, {38, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="177383260"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1977,7 +1950,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{69, 175}, {140, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="202763222"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -1998,7 +1970,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{228, 465}, {90, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="912135084"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2019,7 +1990,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{320, 465}, {316, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="990188787"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2040,7 +2010,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{228, 440}, {90, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="858545347"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2061,7 +2030,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{320, 440}, {316, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="439610405"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2082,7 +2050,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{228, 415}, {90, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="623960487"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2103,7 +2070,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{320, 415}, {316, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="160679199"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2124,7 +2090,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{228, 390}, {90, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="214907001"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2145,7 +2110,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{320, 390}, {316, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="230897780"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2166,7 +2130,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{228, 365}, {90, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="395401919"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2187,7 +2150,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{320, 365}, {316, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="25331222"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2208,7 +2170,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{228, 340}, {90, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="913907968"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2229,7 +2190,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{320, 340}, {316, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="878319457"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2250,7 +2210,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{228, 303}, {90, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="738522980"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2271,7 +2230,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{320, 303}, {316, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="996226387"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2292,7 +2250,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{257, 129}, {61, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="368612568"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2313,7 +2270,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{318, 129}, {318, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="475058330"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2334,7 +2290,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{209, 104}, {109, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="402693709"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2355,7 +2310,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{318, 104}, {318, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="480820087"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2376,7 +2330,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{29, 136}, {85, 19}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1005404143"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2397,7 +2350,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{29, 111}, {38, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="22021109"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2418,7 +2370,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{69, 111}, {140, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="483300786"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2439,7 +2390,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{29, 86}, {38, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="545714651"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2460,7 +2410,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{69, 86}, {140, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="843596615"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2481,7 +2430,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{29, 61}, {38, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="348648483"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2502,7 +2450,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{69, 61}, {140, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="465404458"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2523,7 +2470,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{267, 67}, {53, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="963127362"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
@@ -2544,7 +2490,7 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{320, 33}, {318, 51}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:1535</string>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="684995379">
@@ -2562,7 +2508,6 @@
</array>
<string key="NSFrameSize">{653, 615}</string>
<reference key="NSSuperview"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="741115370"/>
</object>
<string key="NSScreenRect">{{0, 0}, {2560, 1418}}</string>
@@ -3819,15 +3764,15 @@
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
- <string key="label">value: selection.self.quotes</string>
+ <string key="label">value: selection.self.tweetQuotes</string>
<reference key="source" ref="963127362"/>
<reference key="destination" ref="944205278"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="963127362"/>
<reference key="NSDestination" ref="944205278"/>
- <string key="NSLabel">value: selection.self.quotes</string>
+ <string key="NSLabel">value: selection.self.tweetQuotes</string>
<string key="NSBinding">value</string>
- <string key="NSKeyPath">selection.self.quotes</string>
+ <string key="NSKeyPath">selection.self.tweetQuotes</string>
<object class="NSDictionary" key="NSOptions">
<string key="NS.key.0">NSValueTransformerName</string>
<string key="NS.object.0">SZNArrayToStringWithLineBreakTransformer</string>
@@ -3835,7 +3780,7 @@
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
- <int key="connectionID">775</int>
+ <int key="connectionID">776</int>
</object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
@@ -5917,63 +5862,9 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
- <int key="maxID">775</int>
- </object>
- <object class="IBClassDescriber" key="IBDocument.Classes">
- <array class="NSMutableArray" key="referencedPartialClassDescriptions">
- <object class="IBPartialClassDescription">
- <string key="className">SZNAppDelegate</string>
- <string key="superclassName">NSObject</string>
- <dictionary class="NSMutableDictionary" key="actions">
- <string key="fetchArticle:">id</string>
- <string key="openArticleURL:">id</string>
- <string key="openDetailsURL:">id</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="actionInfosByName">
- <object class="IBActionInfo" key="fetchArticle:">
- <string key="name">fetchArticle:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="openArticleURL:">
- <string key="name">openArticleURL:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="openDetailsURL:">
- <string key="name">openDetailsURL:</string>
- <string key="candidateClassName">id</string>
- </object>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="outlets">
- <string key="DOITextField">NSTextField</string>
- <string key="progressIndicator">NSProgressIndicator</string>
- <string key="scoreImageView">NSImageView</string>
- <string key="window">NSWindow</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
- <object class="IBToOneOutletInfo" key="DOITextField">
- <string key="name">DOITextField</string>
- <string key="candidateClassName">NSTextField</string>
- </object>
- <object class="IBToOneOutletInfo" key="progressIndicator">
- <string key="name">progressIndicator</string>
- <string key="candidateClassName">NSProgressIndicator</string>
- </object>
- <object class="IBToOneOutletInfo" key="scoreImageView">
- <string key="name">scoreImageView</string>
- <string key="candidateClassName">NSImageView</string>
- </object>
- <object class="IBToOneOutletInfo" key="window">
- <string key="name">window</string>
- <string key="candidateClassName">NSWindow</string>
- </object>
- </dictionary>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/SZNAppDelegate.h</string>
- </object>
- </object>
- </array>
+ <int key="maxID">776</int>
</object>
+ <object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
View
4 Examples/SZNAltmetricDemoOSX/SZNAltmetricDemoOSXTests/classes/SZNAltmetricArticleTests.m
@@ -23,7 +23,7 @@ - (void)testArticleFromRespondeDictionary
STAssertEqualObjects(article.addedOn, [NSDate dateWithTimeIntervalSince1970:1324491937], @"Added on not extracted");
STAssertEqualObjects(article.identifier, @"502878", @"Identifier not extracted");
- STAssertEqualObjects(article.altmetricJIdentifier, @"4f6fa62f3cf058f6100082d3", @"J Identifier not extracted");
+ STAssertEqualObjects(article.altmetricJournalIdentifier, @"4f6fa62f3cf058f6100082d3", @"Journal identifier not extracted");
STAssertEqualObjects(article.ADSBibcode, @"2011natur.480..426v", @"ADS not extracted");
STAssertEqualObjects(article.citedByAccountsCount, @(393), @"Cited by accounts not extracted");
STAssertEqualObjects(article.citedByFacebookWallsCount, @(12), @"Cited by Facebook walls not extracted");
@@ -46,7 +46,7 @@ - (void)testArticleFromRespondeDictionary
STAssertEqualObjects(article.subjects, @[@"science"], @"Subjects not extracteds");
STAssertEqualObjects(article.scopusSubjects, @[], @"Scopus subjects not extracteds");
NSArray *quotes = @[@"Take a look...", @"Third...", @"Nature..."];
- STAssertEqualObjects(article.quotes, quotes, @"Quotes not extracteds");
+ STAssertEqualObjects(article.tweetQuotes, quotes, @"Tweet quotes not extracteds");
NSArray *ISSNs = @[@"0028-0836", @"1744-7933"];
STAssertEqualObjects(article.ISSNs, ISSNs, @"ISSNs not extracteds");
STAssertEqualObjects(article.imageSmallURL.absoluteString, @"http://fastly.altmetric.com/?size=64&score=354&types=bfgttttt", @"Image small URL not extracted");
View
22 SZNAltmetric/SZNAltmetricArticle.h
@@ -40,9 +40,9 @@
@property (copy, nonatomic) NSString *ADSBibcode;
/**
- The Altmetric J Identifier of the article.
+ The Altmetric journal identifier of the article.
*/
-@property (copy, nonatomic) NSString *altmetricJIdentifier;
+@property (copy, nonatomic) NSString *altmetricJournalIdentifier;
/**
The URL of the article.
@@ -50,7 +50,7 @@
@property (strong, nonatomic) NSURL *articleURL;
/**
- The arXiv Identifier of the article.
+ The arXiv identifier of the article.
*/
@property (copy, nonatomic) NSString *arXiv;
@@ -110,7 +110,7 @@
@property (strong, nonatomic) NSDictionary *history;
/**
- The Altmetric Identifier of the article.
+ The Altmetric identifier of the article.
*/
@property (copy, nonatomic) NSString *identifier;
@@ -145,7 +145,7 @@
@property (strong, nonatomic) NSDate *lastUpdated;
/**
- The NLM (National Library of Medicine) Identifier of the article.
+ The NLM (National Library of Medicine) identifier of the article.
*/
@property (copy, nonatomic) NSString *NLMIdentifier;
@@ -160,16 +160,11 @@
@property (strong, nonatomic) NSDate *publishedOn;
/**
- The PubMed Identifier of the article.
+ The PubMed identifier of the article.
*/
@property (copy, nonatomic) NSString *pubMedIdentifier;
/**
- The quotes of the article.
- */
-@property (strong, nonatomic) NSArray *quotes;
-
-/**
The readers of the article.
*/
@property (strong, nonatomic) NSDictionary *readers;
@@ -205,6 +200,11 @@
@property (copy, nonatomic) NSString *title;
/**
+ The tweet quotes of the article.
+ */
+@property (strong, nonatomic) NSArray *tweetQuotes;
+
+/**
Creates a `SZNAltmetricArticle` and initializes its properties from the API response object.
@param responseObject The API response object
View
4 SZNAltmetric/SZNAltmetricArticle.m
@@ -30,7 +30,7 @@ + (SZNAltmetricArticle *)articleWithAPIResponseObject:(id)responseObject
SZNAltmetricArticle *article = [SZNAltmetricArticle new];
article.addedOn = [NSDate dateWithTimeIntervalSince1970:[responseObject[@"added_on"] doubleValue]];
article.identifier = [NSString stringWithFormat:@"%@", responseObject[@"altmetric_id"]];
- article.altmetricJIdentifier = [NSString stringWithFormat:@"%@", responseObject[@"altmetric_jid"]];
+ article.altmetricJournalIdentifier = [NSString stringWithFormat:@"%@", responseObject[@"altmetric_jid"]];
article.ADSBibcode = responseObject[@"ads_id"];
article.citedByAccountsCount = responseObject[@"cited_by_accounts_count"];
article.citedByFacebookWallsCount = responseObject[@"cited_by_fbwalls_count"];
@@ -50,7 +50,7 @@ + (SZNAltmetricArticle *)articleWithAPIResponseObject:(id)responseObject
article.score = responseObject[@"score"];
article.subjects = responseObject[@"subjects"];
article.scopusSubjects = responseObject[@"scopus_subjects"];
- article.quotes = responseObject[@"tq"];
+ article.tweetQuotes = responseObject[@"tq"];
article.ISSNs = responseObject[@"issns"];
article.imageLargeURL = [NSURL URLWithString:responseObject[@"images"][@"large"]];
article.imageMediumURL = [NSURL URLWithString:responseObject[@"images"][@"medium"]];

0 comments on commit f51122f

Please sign in to comment.
Something went wrong with that request. Please try again.