Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
DIGIPUS
Commits
59309e71
Commit
59309e71
authored
Oct 08, 2020
by
arif teguh wangi
Browse files
[GREEN] Implementasi Citasi APA
parent
937c0b52
Pipeline
#57863
passed with stages
in 10 minutes
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/templates/app/detail_materi.html
View file @
59309e71
...
...
@@ -293,6 +293,9 @@
document
.
getElementById
(
"
thumb
"
).
firstChild
.
data
=
"
Disukai
"
}
}
function
CitateAPA
(
text
){
alert
(
'
Hasil citasi :
'
+
text
);
}
</script>
...
...
app/views.py
View file @
59309e71
...
...
@@ -93,6 +93,13 @@ class DetailMateri(TemplateView):
context
[
"report"
]
=
VerificationReport
.
objects
.
filter
(
materi
=
materi
)
context
[
"has_liked"
]
=
Like
.
objects
.
filter
(
materi
=
materi
,
session_id
=
self
.
request
.
session
.
session_key
).
exists
()
publishedDate
=
''
if
(
materi
.
published_date
==
None
):
publishedDate
=
'n.d'
else
:
publishedDate
=
materi
.
published_date
citationAPA
=
materi
.
author
+
' . ('
+
publishedDate
+
') . '
+
materi
.
title
+
' . '
+
materi
.
publisher
context
[
"citationAPA"
]
=
citationAPA
return
context
def
get
(
self
,
request
,
*
args
,
**
kwargs
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment