prct11 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +8 -0
- data/.travis.yml +6 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +5 -0
- data/Guardfile +88 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/Rakefile +5 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/doc/APA.html +377 -0
- data/doc/Book.html +296 -0
- data/doc/CODE_OF_CONDUCT_md.html +125 -0
- data/doc/DSL.html +153 -0
- data/doc/DSLBook.html +278 -0
- data/doc/DSLJournal.html +281 -0
- data/doc/Electronicdocument.html +211 -0
- data/doc/Gemfile.html +99 -0
- data/doc/Gemfile_lock.html +221 -0
- data/doc/Guardfile.html +186 -0
- data/doc/JournalArticle.html +301 -0
- data/doc/LICENSE_txt.html +117 -0
- data/doc/LinkedList.html +588 -0
- data/doc/MagazineArticle.html +301 -0
- data/doc/Object.html +126 -0
- data/doc/Prct11.html +109 -0
- data/doc/README_md.html +164 -0
- data/doc/Rakefile.html +99 -0
- data/doc/Reference.html +303 -0
- data/doc/Regularpublications.html +158 -0
- data/doc/bin/setup.html +101 -0
- data/doc/created.rid +35 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +129 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/prct11_gemspec.html +136 -0
- data/doc/table_of_contents.html +301 -0
- data/lib/prct11.rb +13 -0
- data/lib/prct11/APA.rb +153 -0
- data/lib/prct11/DSL.rb +78 -0
- data/lib/prct11/book.rb +37 -0
- data/lib/prct11/electronicdocument.rb +20 -0
- data/lib/prct11/journalarticle.rb +42 -0
- data/lib/prct11/linkedList.rb +96 -0
- data/lib/prct11/magazinearticle.rb +42 -0
- data/lib/prct11/prueba.rb +42 -0
- data/lib/prct11/reference.rb +33 -0
- data/lib/prct11/regularpublications.rb +6 -0
- data/lib/prct11/version.rb +3 -0
- data/prct11.gemspec +40 -0
- metadata +263 -0
@@ -0,0 +1,301 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>Table of Contents - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="./js/jquery.js"></script>
|
14
|
+
<script src="./js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" class="table-of-contents">
|
22
|
+
<main role="main">
|
23
|
+
<h1 class="class">Table of Contents - RDoc Documentation</h1>
|
24
|
+
|
25
|
+
<h2 id="pages">Pages</h2>
|
26
|
+
<ul>
|
27
|
+
<li class="file">
|
28
|
+
<a href="CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
|
29
|
+
|
30
|
+
<ul>
|
31
|
+
<li><a href="CODE_OF_CONDUCT_md.html#label-Contributor+Code+of+Conduct">Contributor Code of Conduct</a>
|
32
|
+
</ul>
|
33
|
+
</li>
|
34
|
+
<li class="file">
|
35
|
+
<a href="Gemfile.html">Gemfile</a>
|
36
|
+
</li>
|
37
|
+
<li class="file">
|
38
|
+
<a href="Gemfile_lock.html">Gemfile.lock</a>
|
39
|
+
</li>
|
40
|
+
<li class="file">
|
41
|
+
<a href="Guardfile.html">Guardfile</a>
|
42
|
+
</li>
|
43
|
+
<li class="file">
|
44
|
+
<a href="LICENSE_txt.html">LICENSE</a>
|
45
|
+
</li>
|
46
|
+
<li class="file">
|
47
|
+
<a href="README_md.html">README</a>
|
48
|
+
|
49
|
+
<ul>
|
50
|
+
<li><a href="README_md.html#label-Pr-C3-A1ctica+de+laboratorio+-2310">Práctica de laboratorio #10</a>
|
51
|
+
<li><a href="README_md.html#label-Descripci-C3-B3n+de+la+pr-C3-A1ctica-3A+Programaci-C3-B3n+funcional">Descripción de la práctica: Programación funcional</a>
|
52
|
+
<li><a href="README_md.html#label-C3-81rbol+de+ficheros+y+directorios">Árbol de ficheros y directorios</a>
|
53
|
+
</ul>
|
54
|
+
</li>
|
55
|
+
<li class="file">
|
56
|
+
<a href="Rakefile.html">Rakefile</a>
|
57
|
+
</li>
|
58
|
+
<li class="file">
|
59
|
+
<a href="bin/setup.html">setup</a>
|
60
|
+
</li>
|
61
|
+
<li class="file">
|
62
|
+
<a href="prct11_gemspec.html">prct11.gemspec</a>
|
63
|
+
</li>
|
64
|
+
|
65
|
+
</ul>
|
66
|
+
|
67
|
+
<h2 id="classes">Classes and Modules</h2>
|
68
|
+
<ul>
|
69
|
+
<li class="class">
|
70
|
+
<a href="APA.html">APA</a>
|
71
|
+
</li>
|
72
|
+
<li class="class">
|
73
|
+
<a href="Book.html">Book</a>
|
74
|
+
</li>
|
75
|
+
<li class="class">
|
76
|
+
<a href="DSL.html">DSL</a>
|
77
|
+
</li>
|
78
|
+
<li class="class">
|
79
|
+
<a href="DSLBook.html">DSLBook</a>
|
80
|
+
</li>
|
81
|
+
<li class="class">
|
82
|
+
<a href="DSLJournal.html">DSLJournal</a>
|
83
|
+
</li>
|
84
|
+
<li class="class">
|
85
|
+
<a href="Electronicdocument.html">Electronicdocument</a>
|
86
|
+
</li>
|
87
|
+
<li class="class">
|
88
|
+
<a href="JournalArticle.html">JournalArticle</a>
|
89
|
+
</li>
|
90
|
+
<li class="class">
|
91
|
+
<a href="LinkedList.html">LinkedList</a>
|
92
|
+
</li>
|
93
|
+
<li class="class">
|
94
|
+
<a href="MagazineArticle.html">MagazineArticle</a>
|
95
|
+
</li>
|
96
|
+
<li class="class">
|
97
|
+
<a href="Object.html">Object</a>
|
98
|
+
</li>
|
99
|
+
<li class="module">
|
100
|
+
<a href="Prct11.html">Prct11</a>
|
101
|
+
</li>
|
102
|
+
<li class="class">
|
103
|
+
<a href="Reference.html">Reference</a>
|
104
|
+
</li>
|
105
|
+
<li class="class">
|
106
|
+
<a href="Regularpublications.html">Regularpublications</a>
|
107
|
+
</li>
|
108
|
+
</ul>
|
109
|
+
|
110
|
+
<h2 id="methods">Methods</h2>
|
111
|
+
<ul>
|
112
|
+
|
113
|
+
<li class="method">
|
114
|
+
<a href="DSL.html#method-c-Book">::Book</a>
|
115
|
+
—
|
116
|
+
<span class="container">DSL</span>
|
117
|
+
|
118
|
+
<li class="method">
|
119
|
+
<a href="APA.html#method-c-new">::new</a>
|
120
|
+
—
|
121
|
+
<span class="container">APA</span>
|
122
|
+
|
123
|
+
<li class="method">
|
124
|
+
<a href="DSLBook.html#method-c-new">::new</a>
|
125
|
+
—
|
126
|
+
<span class="container">DSLBook</span>
|
127
|
+
|
128
|
+
<li class="method">
|
129
|
+
<a href="DSLJournal.html#method-c-new">::new</a>
|
130
|
+
—
|
131
|
+
<span class="container">DSLJournal</span>
|
132
|
+
|
133
|
+
<li class="method">
|
134
|
+
<a href="Book.html#method-c-new">::new</a>
|
135
|
+
—
|
136
|
+
<span class="container">Book</span>
|
137
|
+
|
138
|
+
<li class="method">
|
139
|
+
<a href="Electronicdocument.html#method-c-new">::new</a>
|
140
|
+
—
|
141
|
+
<span class="container">Electronicdocument</span>
|
142
|
+
|
143
|
+
<li class="method">
|
144
|
+
<a href="JournalArticle.html#method-c-new">::new</a>
|
145
|
+
—
|
146
|
+
<span class="container">JournalArticle</span>
|
147
|
+
|
148
|
+
<li class="method">
|
149
|
+
<a href="LinkedList.html#method-c-new">::new</a>
|
150
|
+
—
|
151
|
+
<span class="container">LinkedList</span>
|
152
|
+
|
153
|
+
<li class="method">
|
154
|
+
<a href="MagazineArticle.html#method-c-new">::new</a>
|
155
|
+
—
|
156
|
+
<span class="container">MagazineArticle</span>
|
157
|
+
|
158
|
+
<li class="method">
|
159
|
+
<a href="Reference.html#method-c-new">::new</a>
|
160
|
+
—
|
161
|
+
<span class="container">Reference</span>
|
162
|
+
|
163
|
+
<li class="method">
|
164
|
+
<a href="Regularpublications.html#method-c-new">::new</a>
|
165
|
+
—
|
166
|
+
<span class="container">Regularpublications</span>
|
167
|
+
|
168
|
+
<li class="method">
|
169
|
+
<a href="Reference.html#method-i-3C-3D-3E">#<=></a>
|
170
|
+
—
|
171
|
+
<span class="container">Reference</span>
|
172
|
+
|
173
|
+
<li class="method">
|
174
|
+
<a href="DSLBook.html#method-i-author">#author</a>
|
175
|
+
—
|
176
|
+
<span class="container">DSLBook</span>
|
177
|
+
|
178
|
+
<li class="method">
|
179
|
+
<a href="DSLJournal.html#method-i-author">#author</a>
|
180
|
+
—
|
181
|
+
<span class="container">DSLJournal</span>
|
182
|
+
|
183
|
+
<li class="method">
|
184
|
+
<a href="DSLBook.html#method-i-book">#book</a>
|
185
|
+
—
|
186
|
+
<span class="container">DSLBook</span>
|
187
|
+
|
188
|
+
<li class="method">
|
189
|
+
<a href="APA.html#method-i-each">#each</a>
|
190
|
+
—
|
191
|
+
<span class="container">APA</span>
|
192
|
+
|
193
|
+
<li class="method">
|
194
|
+
<a href="LinkedList.html#method-i-each">#each</a>
|
195
|
+
—
|
196
|
+
<span class="container">LinkedList</span>
|
197
|
+
|
198
|
+
<li class="method">
|
199
|
+
<a href="LinkedList.html#method-i-extract_by_begin">#extract_by_begin</a>
|
200
|
+
—
|
201
|
+
<span class="container">LinkedList</span>
|
202
|
+
|
203
|
+
<li class="method">
|
204
|
+
<a href="LinkedList.html#method-i-extract_by_end">#extract_by_end</a>
|
205
|
+
—
|
206
|
+
<span class="container">LinkedList</span>
|
207
|
+
|
208
|
+
<li class="method">
|
209
|
+
<a href="LinkedList.html#method-i-get_next">#get_next</a>
|
210
|
+
—
|
211
|
+
<span class="container">LinkedList</span>
|
212
|
+
|
213
|
+
<li class="method">
|
214
|
+
<a href="LinkedList.html#method-i-get_prev">#get_prev</a>
|
215
|
+
—
|
216
|
+
<span class="container">LinkedList</span>
|
217
|
+
|
218
|
+
<li class="method">
|
219
|
+
<a href="Reference.html#method-i-get_title">#get_title</a>
|
220
|
+
—
|
221
|
+
<span class="container">Reference</span>
|
222
|
+
|
223
|
+
<li class="method">
|
224
|
+
<a href="LinkedList.html#method-i-get_value">#get_value</a>
|
225
|
+
—
|
226
|
+
<span class="container">LinkedList</span>
|
227
|
+
|
228
|
+
<li class="method">
|
229
|
+
<a href="APA.html#method-i-insert">#insert</a>
|
230
|
+
—
|
231
|
+
<span class="container">APA</span>
|
232
|
+
|
233
|
+
<li class="method">
|
234
|
+
<a href="LinkedList.html#method-i-insert_by_begin">#insert_by_begin</a>
|
235
|
+
—
|
236
|
+
<span class="container">LinkedList</span>
|
237
|
+
|
238
|
+
<li class="method">
|
239
|
+
<a href="LinkedList.html#method-i-insert_by_end">#insert_by_end</a>
|
240
|
+
—
|
241
|
+
<span class="container">LinkedList</span>
|
242
|
+
|
243
|
+
<li class="method">
|
244
|
+
<a href="LinkedList.html#method-i-insert_set">#insert_set</a>
|
245
|
+
—
|
246
|
+
<span class="container">LinkedList</span>
|
247
|
+
|
248
|
+
<li class="method">
|
249
|
+
<a href="DSLJournal.html#method-i-journalarticle">#journalarticle</a>
|
250
|
+
—
|
251
|
+
<span class="container">DSLJournal</span>
|
252
|
+
|
253
|
+
<li class="method">
|
254
|
+
<a href="LinkedList.html#method-i-size">#size</a>
|
255
|
+
—
|
256
|
+
<span class="container">LinkedList</span>
|
257
|
+
|
258
|
+
<li class="method">
|
259
|
+
<a href="DSLBook.html#method-i-title">#title</a>
|
260
|
+
—
|
261
|
+
<span class="container">DSLBook</span>
|
262
|
+
|
263
|
+
<li class="method">
|
264
|
+
<a href="DSLJournal.html#method-i-title_">#title_</a>
|
265
|
+
—
|
266
|
+
<span class="container">DSLJournal</span>
|
267
|
+
|
268
|
+
<li class="method">
|
269
|
+
<a href="APA.html#method-i-to_s">#to_s</a>
|
270
|
+
—
|
271
|
+
<span class="container">APA</span>
|
272
|
+
|
273
|
+
<li class="method">
|
274
|
+
<a href="Book.html#method-i-to_s">#to_s</a>
|
275
|
+
—
|
276
|
+
<span class="container">Book</span>
|
277
|
+
|
278
|
+
<li class="method">
|
279
|
+
<a href="Electronicdocument.html#method-i-to_s">#to_s</a>
|
280
|
+
—
|
281
|
+
<span class="container">Electronicdocument</span>
|
282
|
+
|
283
|
+
<li class="method">
|
284
|
+
<a href="JournalArticle.html#method-i-to_s">#to_s</a>
|
285
|
+
—
|
286
|
+
<span class="container">JournalArticle</span>
|
287
|
+
|
288
|
+
<li class="method">
|
289
|
+
<a href="MagazineArticle.html#method-i-to_s">#to_s</a>
|
290
|
+
—
|
291
|
+
<span class="container">MagazineArticle</span>
|
292
|
+
</ul>
|
293
|
+
</main>
|
294
|
+
|
295
|
+
|
296
|
+
<footer id="validator-badges" role="contentinfo">
|
297
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
298
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
299
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
300
|
+
</footer>
|
301
|
+
|
data/lib/prct11.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require "prct11/version"
|
2
|
+
require "prct11/reference"
|
3
|
+
require "prct11/linkedList"
|
4
|
+
require "prct11/book"
|
5
|
+
require "prct11/regularpublications"
|
6
|
+
require "prct11/magazinearticle"
|
7
|
+
require "prct11/journalarticle"
|
8
|
+
require "prct11/electronicdocument"
|
9
|
+
require "prct11/APA"
|
10
|
+
require "prct11/DSL"
|
11
|
+
|
12
|
+
module Prct11
|
13
|
+
end
|
data/lib/prct11/APA.rb
ADDED
@@ -0,0 +1,153 @@
|
|
1
|
+
# Libros: Elementos de referencia de un libro completo:
|
2
|
+
# Autor, A. A. (Ano de publicación). Título del libro: Mayúscula inicial también para el
|
3
|
+
# subtítulo (edición) (volumen). Lugar de publicación: editor o casa publicadora.
|
4
|
+
|
5
|
+
# Artículo: Para un artículo o capítulo dentro de un libro editado:
|
6
|
+
# Autor, A. A. & Autor, B. B. (A˜no de publicación). T´ıtulo del artículo o capítulo. En A.
|
7
|
+
# Editor & B. Editor (Eds.), Título de la obra (números de páginas del cap´ıtulo) (edici´on)
|
8
|
+
# (volumen). Lugar de publicaci´on: editor o casa publicadora.
|
9
|
+
|
10
|
+
# Artículo de periódico:
|
11
|
+
# Autor, A. A. (Fecha mostrada en la publicación). Título del artículo. Nombre del periódico,
|
12
|
+
# pp. números de páginas.
|
13
|
+
|
14
|
+
# Documentos electrónicos:
|
15
|
+
# Autor/responsable (fecha de publicaci´on). Título (edición), [tipo de medio]. Lugar de publicación:
|
16
|
+
# editor. Disponible en: especifique la vía [fecha de acceso].
|
17
|
+
|
18
|
+
require "prct11/reference"
|
19
|
+
require "prct11/linkedList"
|
20
|
+
require "prct11/book"
|
21
|
+
require "prct11/magazinearticle"
|
22
|
+
require "prct11/journalarticle"
|
23
|
+
require "prct11/electronicdocument"
|
24
|
+
|
25
|
+
class APA
|
26
|
+
|
27
|
+
def initialize()
|
28
|
+
@lista = LinkedList.new
|
29
|
+
@sufijo = 0
|
30
|
+
end
|
31
|
+
|
32
|
+
def insert(reference)
|
33
|
+
raise ArgumentError, "La referencia no es de tipo referencia" unless reference.kind_of?(Reference)
|
34
|
+
|
35
|
+
# Renombramos los autores para ordenar bien
|
36
|
+
str = ""
|
37
|
+
reference.authors.each do |a|
|
38
|
+
# raise ArgumentError, "Uno de los autores no es un string" unless a.is_a?(String)
|
39
|
+
# raise ArgumentError, "Se especifica unicamente el nombre o el apellido" unless a.split(' ').length > 1
|
40
|
+
element = a.split(/\W+/)
|
41
|
+
str+=element[1]
|
42
|
+
str+=", "
|
43
|
+
unless element[2].nil?
|
44
|
+
str+=element[2][0]
|
45
|
+
str+="."
|
46
|
+
end
|
47
|
+
str+=element[0][0]
|
48
|
+
str+="."
|
49
|
+
str+=" & " unless a == reference.authors.last
|
50
|
+
end
|
51
|
+
reference.authors = str
|
52
|
+
@lista.insert_by_end(reference)
|
53
|
+
end
|
54
|
+
|
55
|
+
def each
|
56
|
+
@lista.each{ |i| yield i}
|
57
|
+
end
|
58
|
+
|
59
|
+
def to_s
|
60
|
+
authorsPrev = ""
|
61
|
+
datePrev = ""
|
62
|
+
listSort = @lista.sort
|
63
|
+
string = ""
|
64
|
+
listSort.each do |i|
|
65
|
+
if (i.instance_of? Book)
|
66
|
+
|
67
|
+
# Autores APA
|
68
|
+
string += i.authors
|
69
|
+
|
70
|
+
# Año de publicacion APA
|
71
|
+
element = i.date.split(/\//)
|
72
|
+
string += " (#{element[2]}"
|
73
|
+
|
74
|
+
|
75
|
+
if (i.date == datePrev && i.authors == authorsPrev)
|
76
|
+
string += (@sufijo+97).chr
|
77
|
+
string += "). "
|
78
|
+
@sufijo += 1
|
79
|
+
else
|
80
|
+
string += "). "
|
81
|
+
end
|
82
|
+
authorsPrev = i.authors
|
83
|
+
datePrev = i.date
|
84
|
+
|
85
|
+
# Título APA
|
86
|
+
string += " #{i.title.capitalize} "
|
87
|
+
|
88
|
+
# Edición APA
|
89
|
+
string += " (#{i.edition}) "
|
90
|
+
|
91
|
+
# Volumen APA
|
92
|
+
string += " (#{i.volume}). "
|
93
|
+
|
94
|
+
# Editorial APA
|
95
|
+
string += " #{i.editorial} \n\n"
|
96
|
+
elsif (i.class.to_s == "JournalArticle")
|
97
|
+
# Autores APA
|
98
|
+
string += i.authors
|
99
|
+
|
100
|
+
# fecha de publicacion APA
|
101
|
+
string += " (#{i.date}"
|
102
|
+
|
103
|
+
if (i.date == datePrev && i.authors == authorsPrev)
|
104
|
+
string += (@sufijo+97).chr
|
105
|
+
string += "). "
|
106
|
+
@sufijo += 1
|
107
|
+
else
|
108
|
+
string += "). "
|
109
|
+
end
|
110
|
+
authorsPrev = i.authors
|
111
|
+
datePrev = i.date
|
112
|
+
|
113
|
+
# Título articuloAPA
|
114
|
+
string += " #{i.title.capitalize}. "
|
115
|
+
|
116
|
+
# Nombre periodico APA
|
117
|
+
string += " #{i.journal}, "
|
118
|
+
|
119
|
+
# Número de paginas APA
|
120
|
+
string += " #{i.finalpage}.\n\n "
|
121
|
+
elsif (i.class.to_s == "electronicdocument")
|
122
|
+
# Autores APA
|
123
|
+
string += i.authors
|
124
|
+
|
125
|
+
# fecha de publicacion APA
|
126
|
+
string += " (#{i.date}"
|
127
|
+
|
128
|
+
if (i.date == datePrev && i.authors == authorsPrev)
|
129
|
+
string += (@sufijo+97).chr
|
130
|
+
string += "). "
|
131
|
+
@sufijo += 1
|
132
|
+
else
|
133
|
+
string += "). "
|
134
|
+
end
|
135
|
+
authorsPrev = i.authors
|
136
|
+
datePrev = i.date
|
137
|
+
|
138
|
+
# Título articuloAPA
|
139
|
+
string += " #{i.title.capitalize}"
|
140
|
+
|
141
|
+
# Edición articuloAPA
|
142
|
+
string += " (#{i.edition})."
|
143
|
+
|
144
|
+
# Nombre periodico APA
|
145
|
+
string += " [#{i.journal}] "
|
146
|
+
|
147
|
+
# URL de paginas APA
|
148
|
+
string += " #{i.url}.\n\n "
|
149
|
+
end
|
150
|
+
end
|
151
|
+
return string
|
152
|
+
end
|
153
|
+
end
|