[Tutorial] Menampilkan Profil ORCID ID Penulis pada Table Of Contents

All about OJS 2
Post Reply
amift
Posts: 1
Joined: 03 Jul 2017, 16:15

[Tutorial] Menampilkan Profil ORCID ID Penulis pada Table Of Contents

Post by amift »

Edit file issue.tpl
lokasi file --> template\issue\
lalu silahkan cari "tocAuthors"

berikut tampilannya

Code: Select all

<div class="tocAuthors">
	{if (!$section.hideAuthor && $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_DEFAULT) || $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_SHOW}
		{foreach from=$article->getAuthors() item=author name=authorList}
			<!-- Start -->
			  {$author->getFullName()|escape}{if !$smarty.foreach.authorList.last},{/if}
			<!-- End -->
		{/foreach}
	{else}
		&nbsp;
	{/if}
</div>
dari script diatas yang perlu perhatikan hanya potongan script berikut ini, script inilah yang akan kita ubah

<!-- Start -->
{$author->getFullName()|escape}{if !$smarty.foreach.authorList.last},{/if}
<!-- End -->


lalu ubah menjadi seperti ini

Code: Select all

<div class="tocAuthors">
	{if (!$section.hideAuthor && $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_DEFAULT) || $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_SHOW}
		{foreach from=$article->getAuthors() item=author name=authorList}
			<!-- Start -->
			  {assign var="orcid" value=$author->getData('orcid')}
			  {$author->getFullName()|escape}{if !$smarty.foreach.authorList.last}{/if}
			  {if $orcid}
				- <a target="_blank" href="{$orcid|escape}">[ {$orcid|escape} ]</a><br>
			  {else}
				<br>
			  {/if}
			<!-- End -->
		{/foreach}
	{else}
		&nbsp;
	{/if}
</div>
hasilnya akan seperti ini
tampilan ORCID.png
tampilan ORCID.png (10.58 KiB) Viewed 3677 times

Yang ini untuk tambahan saja, coba-coba praktek.
pada saat sebuah artikel di klik maka akan muncul detail dari artikel tersebut.
Judul, penulis dan juga isi.

tampilannya biasanya kurang lebih seperti berikut ini
article view standar.png
kita akan coba merubah tampilan tersebut agar nama penulis juga menyertakan ORCID ID nya.

caranya:
Edit file article.tpl
lokasi file --> template\article\
lalu silahkan cari "authorString"

seperti ini scriptnya

Code: Select all

<div id="authorString"><em>{$article->getAuthorString()|escape}</em></div>
jika sudah, kemudian ubah terlebih dahulu menjadi seperti ini (untuk memudahkan mengedit)
{$article->getAuthorString()|escape} ---> dihapus saja.

Code: Select all

<div id="authorString">
   <em>
   	<!-- disini nanti akan di inputkan script perubahannya -->
   </em>
</div>
setelah itu masukkan script berikut

Code: Select all

	{foreach from=$article->getAuthors() item=author name=authorList}
	{assign var="orcid" value=$author->getData('orcid')}
	{$author->getFullName()|escape}{if !$smarty.foreach.authorList.last}{/if}
	{if $orcid}
		- <a target="_blank" href="{$orcid|escape}">[ {$orcid|escape} ]</a><br>
	{else}
		<br>
	{/if}
	{/foreach}
dan hasil akhir scriptnya akan menjadi seperti ini

Code: Select all

<div id="authorString">
	<em>
		{foreach from=$article->getAuthors() item=author name=authorList}
		{assign var="orcid" value=$author->getData('orcid')}
		{$author->getFullName()|escape}{if !$smarty.foreach.authorList.last}{/if}
		{if $orcid}
			- <a target="_blank" href="{$orcid|escape}">[ {$orcid|escape} ]</a><br>
		{else}
			<br>
		{/if}
		{/foreach}
	</em>
</div>
dan hasil tampilan view artikel menjadi seperti ini
article view modif.png
article view modif.png (10.23 KiB) Viewed 3677 times
catatan:
sebelum melakukan perubahan apapun, silahkan melakukan backup terlebih dahulu ya (file yang akan di otak atik tentunya).


Salam Berbagi dan semoga bermanfaat
miftahul
miftahul81(at)gmail.com

Rochmady
Posts: 14
Joined: 25 Apr 2017, 02:32
Contact:

Re: [Tutorial] Menampilkan Profil ORCID ID Penulis pada Table Of Contents

Post by Rochmady »

amift wrote:Edit file issue.tpl
lokasi file --> template\issue\
lalu silahkan cari "tocAuthors"

berikut tampilannya

Code: Select all

<div class="tocAuthors">
	{if (!$section.hideAuthor && $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_DEFAULT) || $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_SHOW}
		{foreach from=$article->getAuthors() item=author name=authorList}
			<!-- Start -->
			  {$author->getFullName()|escape}{if !$smarty.foreach.authorList.last},{/if}
			<!-- End -->
		{/foreach}
	{else}
		&nbsp;
	{/if}
</div>
dari script diatas yang perlu perhatikan hanya potongan script berikut ini, script inilah yang akan kita ubah

<!-- Start -->
{$author->getFullName()|escape}{if !$smarty.foreach.authorList.last},{/if}
<!-- End -->


lalu ubah menjadi seperti ini

Code: Select all

<div class="tocAuthors">
	{if (!$section.hideAuthor && $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_DEFAULT) || $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_SHOW}
		{foreach from=$article->getAuthors() item=author name=authorList}
			<!-- Start -->
			  {assign var="orcid" value=$author->getData('orcid')}
			  {$author->getFullName()|escape}{if !$smarty.foreach.authorList.last}{/if}
			  {if $orcid}
				- <a target="_blank" href="{$orcid|escape}">[ {$orcid|escape} ]</a><br>
			  {else}
				<br>
			  {/if}
			<!-- End -->
		{/foreach}
	{else}
		&nbsp;
	{/if}
</div>
hasilnya akan seperti ini
tampilan ORCID.png


Yang ini untuk tambahan saja, coba-coba praktek.
pada saat sebuah artikel di klik maka akan muncul detail dari artikel tersebut.
Judul, penulis dan juga isi.

tampilannya biasanya kurang lebih seperti berikut ini
article view standar.png

kita akan coba merubah tampilan tersebut agar nama penulis juga menyertakan ORCID ID nya.

caranya:
Edit file article.tpl
lokasi file --> template\article\
lalu silahkan cari "authorString"

seperti ini scriptnya

Code: Select all

<div id="authorString"><em>{$article->getAuthorString()|escape}</em></div>
jika sudah, kemudian ubah terlebih dahulu menjadi seperti ini (untuk memudahkan mengedit)
{$article->getAuthorString()|escape} ---> dihapus saja.

Code: Select all

<div id="authorString">
   <em>
   	<!-- disini nanti akan di inputkan script perubahannya -->
   </em>
</div>
setelah itu masukkan script berikut

Code: Select all

	{foreach from=$article->getAuthors() item=author name=authorList}
	{assign var="orcid" value=$author->getData('orcid')}
	{$author->getFullName()|escape}{if !$smarty.foreach.authorList.last}{/if}
	{if $orcid}
		- <a target="_blank" href="{$orcid|escape}">[ {$orcid|escape} ]</a><br>
	{else}
		<br>
	{/if}
	{/foreach}
dan hasil akhir scriptnya akan menjadi seperti ini

Code: Select all

<div id="authorString">
	<em>
		{foreach from=$article->getAuthors() item=author name=authorList}
		{assign var="orcid" value=$author->getData('orcid')}
		{$author->getFullName()|escape}{if !$smarty.foreach.authorList.last}{/if}
		{if $orcid}
			- <a target="_blank" href="{$orcid|escape}">[ {$orcid|escape} ]</a><br>
		{else}
			<br>
		{/if}
		{/foreach}
	</em>
</div>
dan hasil tampilan view artikel menjadi seperti ini
article view modif.png

catatan:
sebelum melakukan perubahan apapun, silahkan melakukan backup terlebih dahulu ya (file yang akan di otak atik tentunya).


Salam Berbagi dan semoga bermanfaat
Mantap tutorialnya pak.. Tapi bagaimana caranya kalau misalnya saya hanya mau menampilkan logo ORCID nya saja pak?
Rochmady
AKUATIKISLE Jurnal Akuakultur, Pesisir dan Pulau-Pulau Kecil
http://ejournal.stipwunaraha.ac.id/index.php/ISLE
mail: rochmady@stipwunaraha.ac.id

Post Reply