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