');
lineDiv.append('');
lineDiv.append(getLineActionsElement());
return lineDiv;
}
function getLineActionsElement() {
const lineActions = $('');
const undoAnchor = $('');
const insertLineAnchor = $('');
const removeLineAnchor = $('');
lineActions.append(undoAnchor);
lineActions.append(insertLineAnchor);
lineActions.append(removeLineAnchor);
return lineActions;
}
function setPageText() {
if ($('#ocrview_box.edit-mode:visible').length) {
return; //Never reload OCR text in edit mode
}
const pageIdx = br.currentIndex();
if (typeof window.textCorrection !== 'undefined' && window.textCorrection.currentPageNumber === pageIdx) {
return; //No need to reload OCR text if still on the current page
}
var page = $('#pagediv' + pageIdx).data();
var tabIdx = 0;
var wordIdx = 0;
if (page != null && !jQuery.isEmptyObject(page)) {
var results = traversePage(page, null, function() {
return true;
});
window.textCorrection.init("", work.children.page[pageIdx].pid, work.children.page[pageIdx].form);
const ocrViewBox = $('.ocr-widget #ocrview_box');
ocrViewBox.text("");
var linesNode = {lines:[]};
getLineTemplate().appendTo(ocrViewBox);
$.each(results, function(index) {
var lineIdx = index;
wordIdx = 0;
var line = document.createElement('p');
$(line).attr('id', this.id);
$(line).attr('b', this.boundbox);
var lineNode = { idx: lineIdx, id: this.id, b: this.boundbox, ws:[]};
var wordId = "";
let lineText = "";
$.each(this.words, function(index) {
wordId = this.id;
const space = "";
tabIdx++;
wordIdx++;
const wordEntry = { idx: wordIdx, w: this.text, id: wordId, b: this.boundbox };
$(lineNode)[0].ws.push(wordEntry);
const wordText = this.text.replace(/, "<").replace(/>/g, ">") + (this.hypen ? "-" : "");
const word = "" + wordText + " ";
tabIdx++;
wordIdx++;
$(line).append(space);
$(line).append(word);
lineText += wordText.replace(/ ";
$(line).append(space);
const editableLine = getNewLineDivElement();
const inputElement = editableLine.find('input');
inputElement.val(lineText).attr('data-text', lineText);
inputElement.addClass('edit-text').removeClass('new-text');
$(line).append(editableLine);
$(line).append(getPencilAnchorElement());
$('.ocr-widget #ocrview_box').append(line);
});
window.textCorrection.currentPageNumber = pageIdx;
var pageId = work.children.page[pageIdx].id;
var workPid = $('#pagediv' + pageIdx)[0].attributes['workpid'].value;
$('.ocr-widget #ocrview_box').append("
");
} else {
setTimeout(function() {
setPageText();
}, 100);
};
}
function isId(id, element) {
return (id == element.id);
}
function isIn(point, element) {
var box = element.b;
if (point == null || box == null) {
return true;
}
points = box.split(',');
var x1 = points[0];
var y1 = points[1];
var x2 = points[2];
var y2 = points[3];
return (point.x > x1 && point.x y1 && point.y
Cite
Citation options:
Work identifier
http://nla.gov.au/nla.obj-889064580
APA citation
Australia. Department of Foreign Affairs and Trade & Australia. Department of Foreign Affairs. (1973). Australian foreign affairs record Retrieved June 11, 2024, from http://nla.gov.au/nla.obj-889064580
MLA citation
Australia. Department of Foreign Affairs and Trade and Australia. Department of Foreign Affairs. Australian foreign affairs record [Canberra: Australian Govt. Pub. Service], 1973. Web. 11 June 2024 <http://nla.gov.au/nla.obj-889064580>
Harvard/Australian citation
Australia. Department of Foreign Affairs and Trade & Australia. Department of Foreign Affairs. 1973, Australian foreign affairs record Australian Govt. Pub. Service], [Canberra viewed 11 June 2024 http://nla.gov.au/nla.obj-889064580
Wikipedia citation
{{Citation
| author1=Australia. Department of Foreign Affairs and Trade. | author2=Australia. Department of Foreign Affairs.
| title=Australian foreign affairs record
| year=1973
| section=16 volumes : illustrations ; 25-30 cm.
| issn=0311-7995
| issue=Vol. 51 No. 11 (November 1980)
| location=[Canberra
| publisher=Australian Govt. Pub. Service]
| url=http://nla.gov.au/nla.obj-889064580
| id=nla.obj-889064580
| access-date=11 June 2024
| via=Trove
}}
Citations are automatically generated and may require some modification to conform to exact standards.
Download
Select the images you want to download, or the whole document.
We're generating your download. It should start shortly...
Copyright varies with each issue and article. You may have full rights to copy, or may be able to copy only under some circumstances, for example a portion for research or study. Order a copy where circumstances allow or Contact us for further information.
Copyright status was determined using the following information:
Material type
Literary Dramatic Musical
Copyright status may not be correct if data in the record is incomplete or inaccurate. Other access conditions may also apply.