Software Hosting and Development Services available at PKP Publishing Services
As the developers of Open Journal Systems, Open Conference Systems, Open Harvester Systems, and Open Monograph Press, the PKP team are experts in helping journal managers and conference organizers make the most of their online publishing projects. PKP Publishing Services offers support for:
As a customer of PKP Publishing Services, you will not only receive direct, personalized support from the PKP Development Team, but will be contributing to the ongoing development of the PKP applications. All funds raised by PKP Publishing Services go directly toward enhancing our free, open source software. For more information, please contact us.
Open Harvester Systems support questions and answers, bug reports, and development issues.
Moderators: jmacgreg, michael, John
Forum rules
Developer Resources:Git: You can access our public Git Repository
here. Comprehensive Git usage instructions are available on the
wiki.
Bugzilla: You can access our Bugzilla report tracker
here.
Search: You can use our
Google Custom Search to search across our main website, the support forum, and Bugzilla.
Questions and discussion are welcome.
by mobleyt » Thu Jan 13, 2011 2:47 pm
I am currently attempting to implement some PHP to link thumbnail images for each record item when records are listed in our archives.
I intend to use portions of the records' oai urls, which are available through the "getIdentifier" function from the record.inc.php file in "classes/record/".
I see that in "templates/browse/record.tpl" I can add elements to the template's "iterate" function for listing records. However, since the templates are constructed with Smarty's syntax, I'm having trouble writing this function in a way that Smarty will accept. Is it possible to include a php script into the tpl file? I'm just not familiar with Smarty, so I'm not sure how to code this in the proper syntax.
I hope this makes sense!
-
mobleyt
-
- Posts: 1
- Joined: Thu Jan 13, 2011 10:10 am
by asmecher » Tue Jan 18, 2011 8:32 pm
Hi mobleyt,
Smarty is quite easy to use for simple tasks -- if you're doing anything more than {foreach ...} or {if ...} statements, consider doing the heavy lifting in PHP (e.g. in plugins/schemas/dc/DublinCorePlugin.inc.php, by overriding the parent class's displayRecord function) and then using Smarty to simply display the results. You can embed PHP directly in Smarty using {php} ... {/php} blocks, but I wouldn't recommend doing it that way.
Regards,
Alec Smecher
Public Knowledge Project Team
-
asmecher
-
- Posts: 5748
- Joined: Wed Aug 10, 2005 12:56 pm
-
Return to Open Harvester Systems Support and Development
Who is online
Users browsing this forum: No registered users and 1 guest