ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilRis.php
Go to the documentation of this file.
1 <?php
2 
10 {
11 
15  public function parseContent()
16  {
17  global $DIC;
18  $ilRisWrapper = new ilRisWrapper();
19 
20  return $ilRisWrapper->parseFile($DIC->filesystem()
21  ->storage()
22  ->readStream($this->path_to_file)->getMetadata('uri'));
23  }
24 
25 
31  protected static $standard_fields = array(
32  'A1',
33  // First Author
34  'A2',
35  // Secondary Author (each author on its own line preceded by the tag)
36  'A3',
37  // Tertiary Author (each author on its own line preceded by the tag)
38  'A4',
39  // Subsidiary Author (each author on its own line preceded by the tag)
40  'AB',
41  // Abstract
42  'AD',
43  // Author Address
44  'AN',
45  // Accession Number
46  'AU',
47  // Author (each author on its own line preceded by the tag)
48  'AV',
49  // Location in Archives
50  'BT',
51  // This field can contain alphanumeric characters; There is no practical limit to the length of this field.
52  'C1',
53  // Custom 1
54  'C2',
55  // Custom 2
56  'C3',
57  // Custom 3
58  'C4',
59  // Custom 4
60  'C5',
61  // Custom 5
62  'C6',
63  // Custom 6
64  'C7',
65  // Custom 7
66  'C8',
67  // Custom 8
68  'CA',
69  // Caption
70  'CN',
71  // Call Number
72  'CP',
73  // This field can contain alphanumeric characters; There is no practical limit to the length of this field.
74  'CT',
75  // Title of unpublished reference
76  'CY',
77  // Place Published
78  'DA',
79  // Date
80  'DB',
81  // Name of Database
82  'DO',
83  // DOI
84  'DP',
85  // Database Provider
86  'ED',
87  // Editor
88  'EP',
89  // End Page
90  'ET',
91  // Edition
92  'ID',
93  // Reference ID
94  'IS',
95  // Issue number
96  'J1',
97  // Periodical name: user abbreviation 1. This is an alphanumeric field of up to 255 characters.
98  'J2',
99  // Alternate Title (this field is used for the abbreviated title of a book or journal name, the latter mapped to T2)
100  'JA',
101  // Periodical name: standard abbreviation. This is the periodical in which the article was (or is to be, in the case of in-press references) published. This is an alphanumeric field of up to 255 characters.
102  'JF',
103  // Journal/Periodical name: full format. This is an alphanumeric field of up to 255 characters.
104  'JO',
105  // Journal/Periodical name: full format. This is an alphanumeric field of up to 255 characters.
106  'KW',
107  // Keywords (keywords should be entered each on its own line preceded by the tag)
108  'L1',
109  // Link to PDF. There is no practical limit to the length of this field. URL addresses can be entered individually, one per tag or multiple addresses can be entered on one line using a semi-colon as a separator.
110  'L2',
111  // Link to Full-text. There is no practical limit to the length of this field. URL addresses can be entered individually, one per tag or multiple addresses can be entered on one line using a semi-colon as a separator.
112  'L3',
113  // Related Records. There is no practical limit to the length of this field.
114  'L4',
115  // Image(s). There is no practical limit to the length of this field.
116  'LA',
117  // Language
118  'LB',
119  // Label
120  'LK',
121  // Website Link
122  'M1',
123  // Number
124  'M2',
125  // Miscellaneous 2. This is an alphanumeric field and there is no practical limit to the length of this field.
126  'M3',
127  // Type of Work
128  'N1',
129  // Notes
130  'N2',
131  // Abstract. This is a free text field and can contain alphanumeric characters; there is no practical length limit to this field.
132  'NV',
133  // Number of Volumes
134  'OP',
135  // Original Publication
136  'PB',
137  // Publisher
138  'PP',
139  // Publishing Place
140  'PY',
141  // Publication year (YYYY/MM/DD)
142  'RI',
143  // Reviewed Item
144  'RN',
145  // Research Notes
146  'RP',
147  // Reprint Edition
148  'SE',
149  // Section
150  'SN',
151  // ISBN/ISSN
152  'SP',
153  // Start Page
154  'ST',
155  // Short Title
156  'T1',
157  // Primary Title
158  'T2',
159  // Secondary Title (journal title, if applicable)
160  'T3',
161  // Tertiary Title
162  'TA',
163  // Translated Author
164  'TI',
165  // Title
166  'TT',
167  // Translated Title
168  'U1',
169  // User definable 1. This is an alphanumeric field and there is no practical limit to the length of this field.
170  'U2',
171  // User definable 2. This is an alphanumeric field and there is no practical limit to the length of this field.
172  'U3',
173  // User definable 3. This is an alphanumeric field and there is no practical limit to the length of this field.
174  'U4',
175  // User definable 4. This is an alphanumeric field and there is no practical limit to the length of this field.
176  'U5',
177  // User definable 5. This is an alphanumeric field and there is no practical limit to the length of this field.
178  'UR',
179  // URL
180  'VL',
181  // Volume number
182  'VO',
183  // Published Standard number
184  'Y1',
185  // Primary Date
186  'Y2',
187  // Access Date
188  );
192  protected static $entry_types = array(
193  'ABST',
194  'ADVS',
195  'ART',
196  'BILL',
197  'BOOK',
198  'CASE',
199  'CHAP',
200  'COMP',
201  'CONF',
202  'CTLG',
203  'DATA',
204  'ELEC',
205  'GEN',
206  'HEAR',
207  'ICOMM',
208  'INPR',
209  'JFULL',
210  'JOUR',
211  'MAP',
212  'MGZN',
213  'MPCT',
214  'MUSIC',
215  'NEWS',
216  'PAMP',
217  'PAT',
218  'PCOMM',
219  'RPRT',
220  'SER',
221  'SLIDE',
222  'SOUND',
223  'STAT',
224  'THES',
225  'UNBILl',
226  'UNPB',
227  'VIDEO',
228  );
229 
230 
236  public static function isStandardField($field_name)
237  {
238  return in_array(strtoupper($field_name), self::$standard_fields);
239  }
240 
241 
247  public static function isEntryType($entry_ype)
248  {
249  return in_array(strtoupper($entry_ype), self::$entry_types);
250  }
251 }
global $DIC
Definition: saml.php:7
static $entry_types
Class ilRisWrapper.
Class ilRis.
Definition: class.ilRis.php:9
parseContent()
Definition: class.ilRis.php:15
Create styles array
The data for the language used.
Interface ilBibliograficFileReader.
Class ilBibliograficFileReaderBase.
static isEntryType($entry_ype)
static $standard_fields
Definition: class.ilRis.php:31
static isStandardField($field_name)