The ResolverResolver service fetches the embargo statement (such as
"Last year not available") from OpenURL resolvers and stores it in a
target_embargo field. In JSPAC we used to display this along with the
coverage statement, because it is very important that people know that a
resource may be available from 1999 but the last year isn't available
online.
Restore the display of this information to the TPAC.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
FOREACH res IN openurls;
%]
<tr>
- <td class='rdetail_openurl_entry'><a href="[% res.target_url %]">[% res.public_name %]</a></td>
- <td>[% res.target_coverage %]</td>
+ <td class='rdetail_openurl_entry'><a href="[% res.target_url %]">[% res.public_name | html %]</a></td>
+ <td>[% res.target_coverage | html %]
+ [%- IF res.target_embargo != '';
+ ' - ';
+ res.target_embargo | html;
+ END;
+ -%]
+ </td>
</tr>
[%- END %]
</tbody></table>
<strong><a href="[% res.target_url %]">
[% res.public_name | html %]</a></strong>
</td>
- <td>[% res.target_coverage | html %]</td>
+ <td>[% res.target_coverage | html %]
+ [%- IF res.target_embargo != '';
+ ' - ';
+ res.target_embargo | html;
+ END;
+ -%]
+ </td>
</tr>
[% END %]
[% END %]