Fakultas Ilmu Komputer UI

Commit 59309e71 authored by arif teguh wangi's avatar arif teguh wangi
Browse files

[GREEN] Implementasi Citasi APA

parent 937c0b52
Pipeline #57863 passed with stages
in 10 minutes
......@@ -293,6 +293,9 @@
document.getElementById("thumb").firstChild.data = " Disukai"
}
}
function CitateAPA(text){
alert('Hasil citasi : '+text);
}
</script>
......
......@@ -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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment