OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



What to display on the Archive page

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
This forum is meant for general questions about the usability of OJS from an everyday user's perspective: journal managers, authors, and editors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OJS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OJS:

1. Read the documentation. We've written documentation to cover from OJS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OJS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OJS Technical Support subforum; if you have a development question, try the OJS Development subforum.

What to display on the Archive page

Postby geirrosset » Tue May 08, 2012 4:15 am

When clicking on Archive I get a long list of back issues, but it OJS only displays the cover image and the Issue/Year. This makes it very hard to find a specific issues unless you know what issue had the topic you are looking for.

How can I display the issue description along with cover image and Issue/year?

Thanks
Geir Rosset
Oslo
Norway
geirrosset
 
Posts: 38
Joined: Tue Aug 30, 2011 1:57 am

Re: What to display on the Archive page

Postby sillyKris » Mon Jul 16, 2012 12:37 pm

Hi,

I second this question-- is there a place in the back-end interface to alter this? If not, should we alter the archive.tpl?

Thanks very much!
sillyKris
 
Posts: 14
Joined: Wed May 09, 2012 10:00 am

Re: What to display on the Archive page

Postby ramon » Tue Jul 17, 2012 11:28 am

Hello all,

I don't want to seem unwilling to change OJS's behavior, but, if you don't know what issue the content is located isn't that what the search is for?
Usually, at least in our experience, people go to the archives looking for a specific issue, because they know an article is in it, not the way around....

_______________________________
Ramón Martins Sodoma da Fonseca
Analista em C&T
Coordenação de Tecnologias de Informação
Instituto Brasileiro de Informação em Ciência e Tecnologia - IBICT
Ministério da Ciência e Tecnologia - MCT
ramon
 
Posts: 929
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: What to display on the Archive page

Postby sillyKris » Thu Jul 26, 2012 1:03 pm

Hi ramon,

In my case the journal manager would like to provide just a little more information for people who just wish to browse the archives. Aesthetically, I also prefer this direction-- when you have the cover thumbnails displayed it leaves an awful lot of awkward whitespace. :)
sillyKris
 
Posts: 14
Joined: Wed May 09, 2012 10:00 am

Re: What to display on the Archive page

Postby ramon » Thu Jul 26, 2012 1:25 pm

Hello sillyKris,

I understand your point.
I think that you can use any data about the issues in ojs2/templates/issue/archive.tpl
Although I think there's a lot of information available already.
This is the code in a stock 2.3.7 version (if I'm reading the right template!!)
Code: Select all
<div id="issue" style="clear:left;">
        {if $issue->getLocalizedFileName() && $issue->getShowCoverPage($locale) && !$issue->getHideCoverPageArchives($locale)}
                <div class="issueCoverImage"><a href="{url op="view" path=$issue->getBestIssueId($currentJournal)}"><img src="{$coverPagePath|escape}{$issue->getFileName($locale)|escape}"{if $issue->getCoverPageAltText($locale) != ''} alt="{$issue->getCoverPageAltText($locale)|escape}"{else} alt="{translate key="issue.coverPage.altText"}"{/if}/></a>
                </div>
                <h4><a href="{url op="view" path=$issue->getBestIssueId($currentJournal)}">{$issue->getIssueIdentification()|escape}</a></h4>
                <div class="issueCoverDescription">{$issue->getLocalizedCoverPageDescription()|strip_unsafe_html|nl2br}</div>
        {else}
                <h4><a href="{url op="view" path=$issue->getBestIssueId($currentJournal)}">{$issue->getIssueIdentification()|escape}</a></h4>
                <div class="issueDescription">{$issue->getLocalizedDescription()|strip_unsafe_html|nl2br}</div>
        {/if}
        </div>


Some of the information may not have been entered and not display.
Other variables and values you try to use {$issue|@print_r} command to see what's available.
Maybe this way you can see what other variables are available so you can use them.
My test version has no issues, so it prints 1....

_______________________________
Ramón Martins Sodoma da Fonseca
Analista em C&T
Coordenação de Tecnologias de Informação
Instituto Brasileiro de Informação em Ciência e Tecnologia - IBICT
Ministério da Ciência e Tecnologia - MCT
ramon
 
Posts: 929
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: What to display on the Archive page

Postby sillyKris » Fri Jul 27, 2012 9:56 am

Hello ramon,

Thanks so much for your reply!

That's exactly the template that I was experimenting with. Thank you for the hint about the {$issue|@print_r} command-- that gave me the following:

Code: Select all
Issue Object ( [_data] => Array ( [id] => 25 [journalId] => 1 [volume] => 0 [number] => 98 [year] => 2012 [published] => 1 [current] => 1 [datePublished] => 2012-01-01 00:00:00 [accessStatus] => 0 [showVolume] => 0 [showNumber] => 1 [showYear] => 0 [showTitle] => 1 [title] => Array ( [en_US] => Catalogue of Seed Plants of the West Indies ) [coverPageDescription] => Array ( [en_US] => ) [coverPageAltText] => Array ( [en_US] => ) [showCoverPage] => Array ( [en_US] => 1 ) [hideCoverPageArchives] => Array ( [en_US] => 0 ) [hideCoverPageCover] => Array ( [en_US] => 1 ) [description] => Array ( [en_US] => Issued: 1 January 2012) [originalFileName] => Array ( [en_US] => sctb-0098.jpg ) [fileName] => Array ( [en_US] => cover_issue_25_en_US.jpg ) [width] => Array ( [en_US] => 850 ) [height] => Array ( [en_US] => 1100 ) ) [_metadataAdapters] => Array ( ) ) 1


Unfortunately I'm new to PHP (nothing like a trial by fire, right?), but I don't see any variables that seem to map to Authors. I wonder if this means I need to go into the PHP file that feeds the template and add something referencing authors? Clearly the information is stored and displayed elsewhere on the website...

Again, thanks to anyone who has tips or musings to share!
sillyKris
 
Posts: 14
Joined: Wed May 09, 2012 10:00 am

Re: What to display on the Archive page

Postby ramon » Mon Jul 30, 2012 6:53 am

Hello sillyKris,

Unfortunately, author variables are not available in this template.
Adding additional values to the template is beyond my skills.
I assume you'll have to "tamper" with the classes and pages related to the issue, table of contents and so on, to see what can be done.
The PKP Team members will probably have a much better answer for this.

_______________________________
Ramón Martins Sodoma da Fonseca
Analista em C&T
Coordenação de Tecnologias de Informação
Instituto Brasileiro de Informação em Ciência e Tecnologia - IBICT
Ministério da Ciência e Tecnologia - MCT
ramon
 
Posts: 929
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron