Hello,
I got round to playing with Juice on our SirsiDynix Symphony 3.2.1
system. The metadef was tricky to create - firstly because it's my
first foray into Javascript and jquery - eek! - but also I'm sure the
OPAC is just plain awkward. To simplify it, I added ids rather than
finding a complicated selector...
I.e. assuming you want Juice displaying on the detailed display page
(
5.pg) you need to add at least the IDs for isbn/author/title to
viewtop.h and view_item_info.h as well:
vi ../Unicorn/Webcat/Pages_custom/Elib_revD/viewtop.h
add id="isbn" to following section:
<th class="viewmarctags" valign="top"><SIRSI_Data
Environ="ISBN_LABEL">:</th>
<td class="viewmarctags" id="isbn"><SIRSI_Data DC="Km"></td>
vi .../Unicorn/Webcat/Pages_custom/Elib_revD/view_item_info.h
add id="title" and id="author"to:
<div id="panel1" class="panel">
<div class="bibinfo" id="title"> <!-- displays, author, title, etc
on all panels -->
<!-- Print the title, if one exists -->
<SIRSI_Conditional IF Environ="DISP880FORM^1^ne">
<SIRSI_Conditional IF DC_Exists="IB">
<strong><SIRSI_Data DC="IB"></strong>
</SIRSI_Conditional>
</SIRSI_Conditional>
...
<div class="bibinfo" id="author">
<SIRSI_Conditional IF Environ="DISP880FORM^1^ne">
<SIRSI_Conditional IF DC_Exists="IA"> <!-- Print the author,
if one exists -->
<SIRSI_Data DC="IA"><br/>
</SIRSI_Conditional>
</SIRSI_Conditional>
The metadef can then simply look like:
sirsi@mara:/srv/www/htdocs/Juice/Metadefs> cat symphony_metadef.js
function symphony_metadef(){
juice.addMeta(new JuiceMeta
("isbns","#isbn",juice.stringToAlphnumAray));
juice.addMeta(new JuiceMeta("author","#author"));
juice.addMeta(new JuiceMeta("title","#title"));
}
Hope this saves other Symphony people some time getting the basics.
Can the metadef be uploaded somewhere with instructions?
I'm now struggling with embedded panels but must have another attempt
before posting on that...!
Georgina