It would be nice to customize the bibliographic citation of an item to show where the image came from (the College Archives where the original resides) instead of just referencing the online exhibit. Is there any way to do this?
Thank you!
It would be nice to customize the bibliographic citation of an item to show where the image came from (the College Archives where the original resides) instead of just referencing the online exhibit. Is there any way to do this?
Thank you!
To customize the citation of an item, you will need to do some code hacking.
If you are comfortable with PHP, you can copy the item_citation() function (in application/helpers/NewThemeFunctions.php) to your theme's custom.php file, change the name of the function to something different (like my_custom_citation, for example).
And then you would modify that to output a different citation style and call it instead of item_citation() in your public theme.
Of course, it would be much nicer if someone wrote a plugin to do this with pre-existing citation formats.
Seems that this file is no longer part of the current build (December 2011).
application/helpers/NewThemeFunctions.php
There is a call to item_citation() in theme file items/show.php which seems to have replaced custom.php.
The item_citation() function now resides in
application/helpers/ItemFunctions.php
Just to update this thread, since Omeka 1.4 you no longer need to copy the item_citation function into your own theme's custom.php file. You can filter the output of this, using the item_citation filter, with your own custom function.
You must log in to post.