[OPEN-ILS-GENERAL] ***SPAM*** Re: ***SPAM*** Re: ***SPAM*** A more "academic" item details page - for Evergreen 1.6
Dan Scott
denials at gmail.com
Fri Jul 31 09:32:20 EDT 2009
2009/7/30 Harbottle, Joel R <joel.r.harbottle at gmail.com>:
> Hi Dan,
> This is great news. I was wondering with these changes to the OPAC if the
> Author field will now display the entire contents of the '100' tag (eg. in
> the MARC record you have "100 1_ $aAndrews, Mark, $d1946-"" will it now
> shown in the OPAC as: "Andrews, Mark, 1946-" and not just "Andrews, Mark" as
> it has always previously done?
No, not with the current version. It would take a bit more work to
make the change, because you would have to pull from both the 100 &
110 fields (and maybe even the 111?), and then munge the data to make
it a search link (to maintain the current behaviour, at least).
By "a bit more work", I would estimate 10 minutes or so - the simplest
& best approach would probably be to treat 100 and 110 as separate
fields to display. So, throw a "class='hide_me' attribute on the
existing author <tr> tag (to avoid having to make corresponding
changes to rdetails.js), and then drop in something like:
<tr class='hide_me' id='tag100'>
<td nowrap='nowrap' class='rdetail_desc'>Author</td>
<td type='opac/slot-data' query='datafield[tag=100]' class='rdetail_item'>
<script type='opac/slot-format'>
unHideMe($('tag100'));
return '<span>' + dojox.data.dom.textContent(item) + '</span><br/>';
</script>
</td>
</tr>
<tr class='hide_me' id='tag110'>
<td nowrap='nowrap' class='rdetail_desc'>Corporate author</td>
<td type='opac/slot-data' query='datafield[tag=110]' class='rdetail_item'>
<script type='opac/slot-format'>
unHideMe($('tag110'));
return '<span>' + dojox.data.dom.textContent(item) + '</span><br/>';
</script>
</td>
</tr>
--
Dan Scott
Laurentian University
More information about the Open-ils-general
mailing list