OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Append html and javascript code through html source editor

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Append html and javascript code through html source editor

Postby gusar » Sun Feb 23, 2014 10:24 pm

Problem, Question:
How to append html and javascript code through html source editor as a journal manager :?:
After submitting this code will be cutted by OJS :!:
Example of code:
Code: Select all
<div itemscope itemtype="http://schema.org/Organization">
   Научный журнал <span itemprop="name">Научный журнал Cloud Journal of Science and Technology</span>,
   Домашняя страница научного журнала Cloud Journal of Science and Technology:
   <a href="http://www.cloudjcup.com" itemprop="url">www.cloudjcup.com</a>
    <span itemprop="email">redactormail@gmail.com</span>
    <span itemprop="employee">Гусаренко Артем Сергеевич</span>
    <span itemprop="founder">Гусаренко Артем Сергеевич</span>
    <span itemprop="legalName">ООО "Клауд Кэпитал"</span>
    <span itemprop="owns">Гусаренко Артем Сергеевич</span>
    <span itemprop="telephone">+ (7) 917 4 290 226</span>
   Мы находимся:
   <span itemprop="address" itemscope itemtype="http://schema.org/Organization">
      <span itemprop="location">Россия, 450015, г.Уфа, ул. Запотоцкого д.48, кв.69</span>,
   </span>
   и занимаемся <span itemprop="makesOffer">публикацией научных статей статей</span>
   в <span itemprop="founder">Cloud Capital Co. Ltd.</span>
</div>

<div itemscope itemtype="http://schema.org/Product"> Cloud Journal of science and Technology
      <span itemprop="audience">аспиранты, ученые, кандидаты и доктора наук</span>
<span itemprop="name">Научная статья, научные статьи, публикации</span>
<span itemprop="itemCondition">опубликовать научную статью, монографию, научные публикации, научный журнал, публикации статьи</span>
  </div>

<body itemscope itemtype="http://schema.org/WebPage">
<div itemprop="breadcrumb">
  <a href="http://www.cloudjcup.com/index.php/cloudjcup/index">Главная</a> >
  <a href="http://www.cloudjcup.com/index.php/cloudjcup/about/contact">Контакты</a> >
<a href="http://www.cloudjcup.com/index.php/cloudjcup/about/submissions#onlineSubmissions">Отправка статей</a> >
  <a href="http://www.cloudjcup.com/index.php/cloudjcup/about/editorialPolicies#focusAndScope">Рубрики и разделы, цели и задачи</a> >
 <a href="http://www.cloudjcup.com/index.php/cloudjcup/about/editorialPolicies#publicationFrequency">Периодичность</a> >
 <a href="http://www.cloudjcup.com/index.php/cloudjcup/about/editorialPolicies#custom-0">Публикационная этика</a> >
 <a href="http://www.cloudjcup.com/index.php/cloudjcup/about/editorialPolicies#custom-1">О журнале</a> >
  <a href="http://www.cloudjcup.com/index.php/cloudjcup/about/submissions#authorGuidelines">Указания для авторов</a> >
  <a href="http://www.cloudjcup.com/index.php/cloudjcup/about/editorialTeam">Ответственные редакторы</a>
</div>

Example
Code: Select all
<span id='badgeCont267681' style='width:126px'><script src='http://labs.researcherid.com/mashlets?el=badgeCont267681&mashlet=badge&showTitle=false&className=a&rid=A-9304-2014'></script></span>
gusar
 
Posts: 13
Joined: Wed Jan 23, 2013 12:42 am
Location: Russian Federation

Re: Append html and javascript code through html source edit

Postby JasonNugent » Mon Feb 24, 2014 7:26 am

Hi Gusar,

Where do you want this to show up? If you want it to appear on every page, it might just be easier to edit one of the OJS templates and include it that way.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 893
Joined: Tue Jan 10, 2006 6:20 am

Re: Append html and javascript code through html source edit

Postby gusar » Mon Feb 24, 2014 8:17 am

JasonNugent wrote:Hi Gusar,

Where do you want this to show up? If you want it to appear on every page, it might just be easier to edit one of the OJS templates and include it that way.

Regards,
Jason

Thx, for you reply. :)
I've decided to show this on contact page. http://www.cloudjcup.com/index.php/clou ... ut/contact
To take you through for html source editor I pasted breadcrumbs:
Home > User > Journal Management > Journal Setup
->Details menu and then 1.1 General Information.
In this html source editor I tried to paste temporary information for each journal. For example badge from Researcherid Web of Science.
gusar
 
Posts: 13
Joined: Wed Jan 23, 2013 12:42 am
Location: Russian Federation


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], nef and 2 guests