Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
849bfce
add two columns to custom listall locations page
graykr Dec 10, 2024
89b1367
add aeon request features to illinois template and library_web and so…
graykr Dec 16, 2024
5237eea
update illinois template for controlcard and findingaid to add reques…
graykr Dec 16, 2024
b1f1d54
add aeon request features to ala template and associated changes to a…
graykr Dec 16, 2024
728c96c
update aeon request feature for ihlc template to improve accessibility
graykr Dec 17, 2024
bf3a9f3
update aeon request link feature for rbml template to improve accessi…
graykr Dec 17, 2024
ac0c478
update arlis theme to improve landing page & add ability to reload in…
graykr Dec 17, 2024
6f8de4e
add tool to ala_redo theme files to convert html to markdown
graykr Dec 17, 2024
5ab8832
add custom pages to ala_redo theme for testing AtoM data migration op…
graykr Dec 17, 2024
5bb76f8
add custom page to ala_redo theme to export locationentry data
graykr Dec 17, 2024
6feefa8
add tool to ihlc theme to convert html to markdown
graykr Dec 17, 2024
6f581b9
add custom pages to ihlc theme for testing AtoM data migration options
graykr Dec 17, 2024
48f1b5c
add custom page to ihlc theme to generate list of lincoln-related col…
graykr Dec 17, 2024
22f48e1
add tool to library_web theme to convert html to markdown
graykr Dec 17, 2024
2026fbf
add custom pages to library_web theme for testing AtoM data migration…
graykr Dec 17, 2024
9987221
clean up custom page in library_web theme to list location entries
graykr Dec 17, 2024
cd46013
add custom pages to library_web theme to test exporting digital conte…
graykr Dec 17, 2024
aa611dd
add tool to rbml theme to convert html to markdown
graykr Dec 17, 2024
6cb2ddb
add custom pages to rbml theme for testing AtoM data migration options
graykr Dec 17, 2024
d338fd6
add error message to sousa2 theme to display if search fails/times ou…
graykr Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 36 additions & 6 deletions packages/collections/templates/ala/collection.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@
<div id='ccardprintcontact' class='smround'>

<?php
/**add request button, or launch a modal with the location table if variable locations */
include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/requestlink.inc.php");
/**add request button, or launch a modal with the location table if variable locations */
//if it is a staff-only link, show this only if someone is logged in (note that repository restriction is addressed in the code for the modal and link itself)
if(!$_ARCHON->config->StaffOnlyRequestLink AND !$_ARCHON->config->ExcludePublicRequestLink[$objCollection->RepositoryID]){
include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/requestlink.inc.php");
} elseif($_ARCHON->Security->verifyPermissions(MODULE_COLLECTIONS, READ)){
include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/requestlink.inc.php");
}
?>

<a href='?p=collections/findingaid&amp;id=<?php echo($objCollection->ID); ?>&amp;templateset=print&amp;disabletheme=1'>
Expand Down Expand Up @@ -206,7 +211,7 @@
{ ?><h2 style='text-align:left'><a name="subjects"></a>Subject/Index Terms</h2><div class="indent-text"><p><?php echo($_ARCHON->createStringFromSubjectArray($arrSubjects, "<br/>", LINK_TOTAL)); ?></p></div><?php } ?>

<?php
if(!empty($objCollection->AccessRestrictions) || !empty($objCollection->UseRestrictions) || !empty($objCollection->PhysicalAccessNote) || !empty($objCollection->TechnicalAccessNote) || !empty($objCollection->AcquisitionSource) || !empty($objCollection->AcquisitionMethod) || !empty($objCollection->AppraisalInformation) || !empty($objCollection->OrigCopiesNote) || !empty($objCollection->OrigCopiesURL) || !empty($objCollection->RelatedMaterials) || !empty($objCollection->RelatedMaterialsURL) || !empty($objCollection->RelatedPublications) || !empty($objCollection->PreferredCitation) || !empty($objCollection->ProcessingInfo) || !empty($objCollection->RevisionHistory))
if(!empty($objCollection->AccessRestrictions) || !empty($objCollection->UseRestrictions) || !empty($objCollection->PhysicalAccessNote) || !empty($objCollection->TechnicalAccessNote) || !empty($objCollection->AcquisitionSource) || !empty($objCollection->AcquisitionMethod) || !empty($objCollection->AppraisalInformation) || !empty($objCollection->OrigCopiesNote) || !empty($objCollection->OrigCopiesURL) || !empty($objCollection->RelatedMaterials) || !empty($objCollection->RelatedMaterialsURL) || !empty($objCollection->RelatedPublications) || !empty($objCollection->PreferredCitation) || !empty($objCollection->ProcessingInfo) || !empty($objCollection->RevisionHistory)|| !empty($objCollection->OtherNote)|| !empty($objCollection->OtherURL))
//admin info exists
{
?>
Expand Down Expand Up @@ -382,11 +387,36 @@
}
if($objCollection->OtherURL)
{
if(strtolower(substr($objCollection->getString('OtherURL'),-3))=="pdf"){
echo("</div><h2 style='text-align:left'><a name='pdf-fa'></a>PDF Box/Folder List</h2><div class='indent-text'>");
}
?>
<p><span class='bold'>Other URL:</span> <a href="<?php echo ($objCollection->OtherURL); ?>">
<p><span class='bold'>URL:</span> <a href="<?php echo ($objCollection->OtherURL); ?>">
<?php echo($objCollection->getString('OtherURL')); ?>
</a></p>
<?php
<?php
if(strtolower(substr($objCollection->getString('OtherURL'),-3))=="pdf"){
?>
<p id="display-pdf"><span class='bold'>PDF finding aid
<?php
if($objCollection->Title) {
echo(" for ");
echo($objCollection->getString('Title'));
}
if($objCollection->Classification)
{
echo(" (");
echo($objCollection->Classification->toString(LINK_NONE, true, false, true, false));
echo("/");
echo($objCollection->CollectionIdentifier);
echo(")");
}
?>
</span></p>
<iframe src="<?php echo ($objCollection->OtherURL)?>" width="100%" height="800vh">
</iframe>
<?php
}
}
?>
</div>
Expand Down Expand Up @@ -450,4 +480,4 @@
{
echo($strFindingAidLinks . "\n");
}
?>
?>
98 changes: 74 additions & 24 deletions packages/collections/templates/ala/controlcard.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,23 @@
else //user is not authenticated

{

/*
echo("<div id='ccardstaff' class='mdround'>");
include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/openlocationtable.inc.php");
echo("</div>");
*/
echo("<div id='ccardstaff' class='mdround'>");
//include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/openlocationtable.inc.php");

//use the location summary if it isn't a repository excluded from the request link system
//use the open location table (which also includes a summary) if the repository is excluded from the request link system or if it is a staff only request link
if(!$_ARCHON->config->ExcludeRequestLink[$objCollection->RepositoryID] AND !$_ARCHON->config->ExcludePublicRequestLink[$objCollection->RepositoryID] AND !$_ARCHON->config->StaffOnlyRequestLink){
include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/locationsummary.inc.php");
} else {
include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/openlocationtable.inc.php");
}

echo("</div>");

}

Expand All @@ -496,22 +509,25 @@

echo ("<div id='ccardprintcontact' class='smround'>");

/**add request button, or launch a modal with the location table if variable locations */
include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/requestlink.inc.php");
/**add request button, or launch a modal with the location table if variable locations */
//if it is a staff-only link, show this only if someone is logged in (note that repository restriction is addressed in the code for the modal and link itself)
if(!$_ARCHON->config->StaffOnlyRequestLink){
include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/requestlink.inc.php");
} elseif($_ARCHON->Security->verifyPermissions(MODULE_COLLECTIONS, READ)){
include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/requestlink.inc.php");
}

$emailsubject="Inquiry: ALA Archives";
if($objCollection->Classification) {
$emailsubject .= " (RS ".$objCollection->Classification->toString(LINK_NONE, true, false, true, false);
$emailsubject .= "/".$objCollection->getString('CollectionIdentifier').")";
}

//echo("<a href='?p=research/research&amp;f=email&amp;referer=" . urlencode($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) . "'>");
echo("<a href='mailto:ala-archives@library.illinois.edu?subject=". $emailsubject ."'>");

echo("<img src='". $_ARCHON->PublicInterface->ImagePath . "/email.png'/> </a>");

//echo("<a href='http://www.library.uiuc.edu/archives/email-ahx.php'>");
echo("<a href='mailto:ala-archives@library.illinois.edu?subject=". $emailsubject ."'>");
$emailmailto = "ala-archives@library.illinois.edu";
$emailsubject="Inquiry: ALA Archives";
$emailReferralPage = "https://".urlencode($_SERVER['HTTP_HOST']). urlencode($_SERVER['REQUEST_URI']);
$emailbody="%0D---Please type your message above this line---%0DReferral page: ".$emailReferralPage;
if($objCollection->Classification) {
$emailsubject .= " (RS ".$objCollection->Classification->toString(LINK_NONE, true, false, true, false);
$emailsubject .= "/".$objCollection->getString('CollectionIdentifier').")";
}
echo("<a href='mailto:".$emailmailto."?subject=". $emailsubject .'&body='.$emailbody."'>");
echo("<img src='". $_ARCHON->PublicInterface->ImagePath . "/email.png'/> </a>");
echo("<a href='mailto:".$emailmailto."?subject=". $emailsubject .'&body='.$emailbody."'>");

echo("Email us about these ");

Expand Down Expand Up @@ -546,7 +562,7 @@
{
?>

<div class='ccardcontent' style='padding-left:.2em'><span class='ccardlabel'><a href='#' onclick="toggleDisplay('digitalcontent'); return false;"><img id='digitalcontentImage' src='<?php echo($_ARCHON->PublicInterface->ImagePath); ?>/plus.gif' alt='expand icon' /> On-line Images / Records</a></span><br/>
<div class='ccardcontent' style='padding-left:.2em'><span class='ccardlabel'><a href='#' onclick="toggleDisplay('digitalcontent'); return false;"><img id='digitalcontentImage' src='<?php echo($_ARCHON->PublicInterface->ImagePath); ?>/plus.gif' alt='expand icon' /> Online Images / Records</a></span><br/>
<div class='ccardshowlist' style="display: none;" id="digitalcontentResults">
<?php
if ($containsImages)
Expand Down Expand Up @@ -606,17 +622,51 @@
}


if(!empty($objCollection->OtherURL))
{
?>
<div id='ccardboxlist' style='margin-top:.7em'><span class='ccardlabel'><a href='<?php echo(trim($objCollection->OtherURL)); ?>' onclick="javascript: pageTracker._trackPageview('/downloads/pdfsfa'); ">Download Box / Folder List</a><span style='font-size:80%'>&nbsp;(pdf)</span></span></div>
<?php
}
if(!empty($objCollection->OtherURL))
{
$onclick = ($_ARCHON->config->GACode && $_ARCHON->config->GACollectionsURL) ? "onclick='javascript: pageTracker._trackPageview(\"{$_ARCHON->config->GACollectionsURL}\");'" : "";

if(strtolower(substr($objCollection->getString('OtherURL'),-3))=="pdf"){
echo("<br /><strong><a href='?p=collections/findingaid&amp;id=".$objCollection->ID."#pdf-fa'>View finding aid and PDF box/folder list</a></strong>");
} else {
echo("<div class='ccardcontent'><span class='ccardlabel'>Other URL:</span> <a href='");
echo($objCollection->getString('OtherURL')); ?>' <?php if(!$_ARCHON->Security->userHasAdministrativeAccess()) {echo($onclick);} ?> target="_blank"><?php echo($objCollection->getString('OtherURL'));
echo("</a></div>");
}
}

?>
</div>
</div> <!--end ccard scope -->
<?php
<?php

if($_ARCHON->Security->verifyPermissions(MODULE_COLLECTIONS, READ) AND !$_ARCHON->config->ExcludeRequestLink[$objCollection->RepositoryID]){
?>
<div style='clear:both;margin-left:1em;border-top:1px solid black' class='do-not-print'>
<p><strong>Additional Data Tables for Staff Use (hidden if not logged in)</strong></p><p>Copy these tables to Excel as needed to create bulk upload files.</strong></p>
<a href='#' onclick="toggleDisplay('locationupdate'); return false;"><img id='locationupdateImage' src='<?php echo($_ARCHON->PublicInterface->ImagePath); ?>/plus.gif' alt='expand icon' /> <caption>Bulk update table for location entries</caption></a><br/>
<div style="display: none;" id="locationupdateResults">
<?php
include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/locationupdatetable.inc.php");
echo("</div>");
if($requestLink) {
?>
<br />
<a href='#' onclick="toggleDisplay('bulkrequest'); return false;"><img id='bulkrequestImage' src='<?php echo($_ARCHON->PublicInterface->ImagePath); ?>/plus.gif' alt='expand icon' /> <caption>Bulk request table, staff upload to Aeon (delete rows not needed)</caption></a><br/>
<div style="display: none;" id="bulkrequestResults">
<?php
include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/requestbulktable.inc.php");
echo("</div>");
}
echo("</div>");
/*
if(!$_ARCHON->config->ExcludeRequestLink[$objCollection->RepositoryID]){
echo("<div id='stafflocationtable' class='do-not-print'style='margin:1em;border-top:1px solid black'>");
echo("<p><strong>Filter full list of storage locations below:</strong></p>");
include("packages/collections/templates/{$_ARCHON->PublicInterface->TemplateSet}/stafflocationtable.inc.php");
}
*/
}
}


Expand Down
78 changes: 78 additions & 0 deletions packages/collections/templates/ala/locationsummary.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?php
if(!empty($objCollection->LocationEntries) && !empty($_ARCHON->config->RequestLinkLocationList) && !empty($_ARCHON->config->PublicLocationInfoList))
{
?>
<span class='ccardlabel' id='requestlocations'>Locations for this record series:</span><br/>

<?php
//create list of locations
$uniqueLocations = array_unique($objCollection->LocationEntries);
$locationCodes = array();
foreach($uniqueLocations as $uloc){
$loccode = $_ARCHON->config->RequestLinkLocationList[$uloc->LocationID];
$locationCodes[] = $loccode;
}
$uniqueLocationCodes = array_unique($locationCodes);
$selectLocation = "<label for='locations'>Filter by location:</label><select name='locations' id='locations'><option selected value> </option>";
echo("<ul>");
foreach($uniqueLocationCodes as $ucode){
$loctext = $_ARCHON->config->PublicLocationInfoList[$ucode];
if ($loctext)
{
echo("<li>".$loctext."</li>");
$selectLocation .= "<option value='".$ucode."'>".$loctext."</option>";
}

else
{
echo("<li>Unidentified location.</li>");
}
}
echo("</ul>");
}

/**add request button, or launch a modal with the location table if variable locations */
if($requestLink) {
if(!$_ARCHON->config->StaffOnlyRequestLink){
if($_ARCHON->config->RequestHasConsistentLocation){
echo("<a href='" . $requestLink . "' target='_blank' tabindex='0'>");
} else {
if(count($uniqueLocationCodes)>1){
echo('<p><em>Click "');
echo($_ARCHON->config->RequestLinkText ? $_ARCHON->config->RequestLinkText : "Submit request");
echo('" to view locations for each box.</em></p>');
}
echo("<a id='requestModalLink2' tabindex='0' role='button'>");
}
echo("<img src='" . $_ARCHON->PublicInterface->ImagePath . "/box.png' alt='Request' style='padding-right:2px'/>");
echo($_ARCHON->config->RequestLinkText ? $_ARCHON->config->RequestLinkText : "Submit request");
echo("</a>");
}
}

?>

<script>
var modal = document.getElementById("requestModal");

var btn2 = document.getElementById("requestModalLink2");

btn2.addEventListener('click', function() {
openRequestModal();
});

btn2.addEventListener("keypress", function(event) {
if (event.key === "Enter") {
openRequestModal();
}
});

btn2.addEventListener("keydown", function(event) {
if (event.keyCode == 32) {
event.preventDefault();
openRequestModal();
}
});

</script>

Loading