<!-- XXX i18n? This template can be customized for
other address layouts if needed. -->
<div name="mailing_address_container" class="hidden">
+ [% l('Mailing address:') %]
<span name="mailing_address_street1"></span>
<span name="mailing_address_street2"></span><br />
<span name="mailing_address_city"></span>,
<span name="mailing_address_country"></span>
</div>
<div name="billing_address_container" class="hidden">
+ [% l('Billing address:') %]
<span name="billing_address_street1"></span>
<span name="billing_address_street2"></span><br />
<span name="billing_address_city"></span>,
<div id="iframe_in_here"></div>
<script type="text/javascript"
src="[% ctx.media_prefix %]/js/ui/default/serial/print_routing_list_users.js"></script>
+<link id="serials_stylesheet_link" rel="stylesheet" type="text/css" href="[% ctx.media_prefix %]/css/skin/[% ctx.skin %]/serial.css" />
[% END %]
.serial-holding-code td { border: 0 !important; padding: 3px; margin: 0 !important; }
.serial-holding-code td[colspan="2"] { text-align:center; }
input[readonly] { color: #999; }
+.item-title { font-size: 130%; font-weight: bold; }
+.item-issuance-label { font-size: 120%; }
+.item-dist-and-stream { font-size: 110%; }
+div[name='reader_container'] > div { border-bottom: 1px #000 solid; }
+.hidden { display: none; }
};
this._render_reader_addresses = function(reader, node) {
+ var used_ids = {};
["mailing", "billing"].forEach(
function(addr_type) {
var addr = reader[addr_type + "_address"]();
- if (!addr || !addr.valid())
+ if (!addr || !addr.valid() || used_ids[addr.id()])
return;
+ used_ids[addr.id()] = true;
+
var prefix = addr_type + "_address_";
var container = n(prefix + "container", node);
if (container)
iframe.contentWindow.document.open();
iframe.contentWindow.document.write(
- "<html><head><style type='text/css'>" +
- ".item-title { font-size: 130%; font-weight: bold; }\n" +
- ".item-issuance-label { font-size: 120%; }\n" +
- ".item-dist-and-stream { font-size: 110%; }\n" +
- ".hidden { display: none; }\n" +
+ "<html><head><link rel='stylesheet' href='" +
+ dojo.byId("serials_stylesheet_link").href +
+ "' type='text/css' />" +
"</style></head>\n<body></body></html>"
);
iframe.contentWindow.document.close();