Esempio n. 1
0
        ?>
                <th class="batch-edit-heading"><?php 
        echo __('Select');
        ?>
</th>
                <?php 
    }
    $browseHeadings[__('Item')] = null;
    $browseHeadings[__('Contributor')] = 'contributor';
    if ($allowToManage) {
        $browseHeadings[__('Publication Status')] = null;
    } else {
        $browseHeadings[__('Publication Status')] = null;
    }
    $browseHeadings[__('Date Added')] = 'added';
    echo browse_sort_links($browseHeadings, array('link_tag' => 'th scope="col"', 'list_tag' => ''));
    ?>
            </tr>
        </thead>
        <tbody id="types-table-body">
            <?php 
    $key = 0;
    foreach (loop('contribution_contributed_items') as $contributedItem) {
        $item = $contributedItem->Item;
        $contributor = $contributedItem->Contributor;
        if ($contributor->id) {
            $contributorUrl = url('contribution/contributors/show/id/' . $contributor->id);
        }
        if ($item->public) {
            $status = 'approved';
            if ($allowToManage) {
 ?>
 </div>
 <?php 
 echo pagination_links();
 ?>
 <?php 
 if (has_loop_records('collections')) {
     ?>
     <table id="collections" cellspacing="0" cellpadding="0">
         <thead>
             <tr>
             <?php 
     $sortLinks = array(__('Title') => 'Dublin Core,Title', __('Contributors') => null, __('Date Added') => 'added', __('Total Number of Items') => null);
     ?>
             <?php 
     echo browse_sort_links($sortLinks, array('link_tag' => 'th scope="col"', 'list_tag' => ''));
     ?>
             </tr>
         </thead>
         <tbody>
             <?php 
     $key = 0;
     ?>
             <?php 
     foreach (loop('Collection') as $collection) {
         ?>
             <tr class="collection<?php 
         if (++$key % 2 == 1) {
             echo ' odd';
         } else {
             echo ' even';
Esempio n. 3
0
</h1>
    
    <div class="browse-collections">
        <?php 
if ($total_results > 0) {
    ?>
            <div class="browse-collections-header hidden-xs">
                <div class="row">
                    <div class="col-sm-3 col-sm-offset-2">
                        <?php 
    echo browse_sort_links(array('Title' => 'Dublin Core,Title'), array(''));
    ?>
                    </div>
                    <div class="col-sm-3">
                        <?php 
    echo browse_sort_links(array('Creator' => 'Dublin Core,Contributor'), array(''));
    ?>
                    </div>
                    <div class="col-sm-4">
                        Description
                    </div>
                </div>
            </div>
        
            <?php 
    foreach (loop('collections') as $collection) {
        ?>
                <div class="collection">
                    <div class="row">
                        <div class="col-sm-2">
                            <?php 
Esempio n. 4
0
    <?php 
if ($total_results > 0) {
    ?>

    <?php 
    $sortLinks[__('Title')] = 'Dublin Core,Title';
    $sortLinks[__('Resource Type')] = 'Zotero,Item Type';
    $sortLinks[__('Creator')] = 'Dublin Core,Creator';
    $sortLinks[__('Date Added')] = 'added';
    ?>
    <div id="sort-links">
        <span class="sort-label"><?php 
    echo __('Sort by: ');
    ?>
</span><?php 
    echo browse_sort_links($sortLinks);
    ?>
    </div>

    <?php 
}
?>

    <?php 
foreach (loop('items') as $item) {
    ?>
        <div class="item hentry">
            <div class="item-meta">

            <h2><?php 
    echo link_to_item(metadata($item, array('Dublin Core', 'Title'), array('class' => 'permalink')));
Esempio n. 5
0
    <?php 
if (count($collections) == 0) {
    ?>

        <p>There are no collections. Create one!</p>

    <?php 
} else {
    ?>

            <table>
                <thead>
                    <tr>
                        <?php 
    browse_sort_links(array('Name' => 'name', 'Number of Files' => 'number_of_files', 'Last Updated' => 'updated', 'Actions' => null));
    ?>
                    </tr>
                </thead>
                <tbody>
                    <?php 
    foreach ($collections as $collection) {
        ?>
                        <tr>
                            <td><a href="<?php 
        echo url('bag-it/collections/' . $collection->id);
        ?>
"><?php 
        echo $collection->name;
        ?>
</a></td>
    ?>
 <a href="<?php 
    echo html_escape(url('catalog-search/index/add'));
    ?>
"><?php 
    echo __('Add a search.');
    ?>
</a></p>
<?php 
} else {
    ?>
<table class="full">
    <thead>
        <tr>
<?php 
    echo browse_sort_links(array(__('Catalog Name') => 'catalog_name', __('Display') => 'display'), array('link_tag' => 'th scope="col"', 'list_tag' => ''));
    ?>
        </tr>
    </thead>
    <tbody>
    <?php 
    foreach (loop('catalog_search_searches') as $catalogSearch) {
        ?>
        <tr>
            <td>
                <span class="title">
                    <a href="<?php 
        echo html_escape(record_url('catalog_search_search'));
        ?>
">
                        <?php 
Esempio n. 7
0
?>
</small>
</h1>

<?php 
if ($total_results > 0) {
    ?>
    <div id="sort">
        <span class="sort-label"><?php 
    echo __('Sort by:');
    ?>
</span>
        <?php 
    $sortLinks[__('Title')] = 'Dublin Core,Title';
    $sortLinks[__('Date Added')] = 'added';
    echo browse_sort_links($sortLinks, array('list_attr' => array('class' => 'list-inline')));
    ?>
    </div>

    <?php 
    echo pagination_links();
}
?>

<?php 
foreach (loop('collections') as $collection) {
    ?>
    <div class="record collection">
        <?php 
    if ($image = record_image('collection', 'thumbnail')) {
        ?>
Esempio n. 8
0
<table class="full">
    <thead>
        <tr>
            <?php 
echo browse_sort_links(array(__('Title') => 'title', __('Slug') => 'slug', __('Last Modified') => 'updated'), array('link_tag' => 'th scope="col"', 'list_tag' => ''));
?>
        </tr>
    </thead>
    <tbody>
    <?php 
foreach (loop('simple_pages_pages') as $simplePage) {
    ?>
        <tr>
            <td>
                <span class="title">
                    <a href="<?php 
    echo html_escape(record_url('simple_pages_page'));
    ?>
">
                        <?php 
    echo metadata('simple_pages_page', 'title');
    ?>
                    </a>
                    <?php 
    if (!metadata('simple_pages_page', 'is_published')) {
        ?>
                        (<?php 
        echo __('Private');
        ?>
)
                    <?php 
Esempio n. 9
0
} else {
    ?>

    <p>Check the files that you want to add to the "<?php 
    echo $collection->name;
    ?>
" collection. On each page, be sure to click the "Update Bag" button before switching to a different page or going back to the list of collections.</p>

        <form method="post" accept-charset="utf-8" id="bagit-addfiles-form">
            <fieldset>

            <table>
                <thead>
                    <tr>
                        <?php 
    browse_sort_links(array('Name' => 'name', 'Parent' => 'parent_item', 'Type' => 'type', 'Size' => 'size', 'Add/Remove?' => null));
    ?>
                    </tr>
                </thead>
                <tbody>
                    <?php 
    foreach ($files as $file) {
        ?>
                        <tr <?php 
        if ($collection->checkForFileMembership($file->id)) {
            echo 'class="bagit-file-already-added"';
        }
        ?>
>
                            <td><a href="<?php 
        echo public_url('/archive/files/' . $file->archive_filename);
Esempio n. 10
0
<hr>
		<h2>Browse first 10 items</h2>

        <?php 
if (metadata('collection', 'total_items') > 0) {
    ?>
        <div class="browse-items">
            <?php 
    $sortLinks[__('Title')] = 'Dublin Core,Title';
    $sortLinks[__('Creator')] = 'Dublin Core,Collection';
    ?>
            <div class="browse-items-header hidden-xs">
                <div class="row">
                    <div class="col-sm-3 col-sm-offset-2 col-md-2 col-md-offset-2">
                        <?php 
    echo browse_sort_links(array('Title' => 'Dublin Core,Title'), array(''));
    ?>
                    </div>
                    <div class="col-sm-3 col-md-2">
                        <?php 
    // echo browse_sort_links(array('Collection'=>'Dublin Core,Collection'), array(''));
    ?>
                    </div>
                    <div class="hidden-sm col-md-2">
                        Place
                    </div>
                    <div class="col-sm-4 col-md-4">
                        Date
                    </div>
                </div>
            </div>
Esempio n. 11
0
<?php 
if ($total_results > 0) {
    ?>
    <?php 
    if (!empty($style['item']['browse']['sort'])) {
        ?>
        <div id="sort">
            <span class="sort-label"><?php 
        echo __('Sort by:');
        ?>
</span>
            <?php 
        $sortLinks[__('Title')] = 'Dublin Core,Title';
        $sortLinks[__('Creator')] = 'Dublin Core,Creator';
        $sortLinks[__('Date Added')] = 'added';
        echo browse_sort_links(array_flip($style['item']['browse']['sort']), array('list_attr' => array('class' => 'list-inline')));
        ?>
        </div>
    <?php 
    }
    ?>

    <?php 
    echo pagination_links();
}
?>

<?php 
foreach (loop('items') as $item) {
    ?>
    <div class="record item">
Esempio n. 12
0
    <a class="add small green button"
      href="<?php 
    echo url('fedora-connector/servers/add');
    ?>
">
      <?php 
    echo __('Register a Server');
    ?>
    </a>

    <table>

      <thead>
        <tr>
          <?php 
    echo browse_sort_links(array('Name' => 'name', 'URL' => 'url', 'Status' => null, 'Version' => null, 'Actions' => null), array('link_tag' => 'th scope="col"'));
    ?>
        </tr>
      </thead>

      <tbody>

        <?php 
    foreach ($servers as $server) {
        ?>
          <tr>

            <!-- Title. -->
            <td>
              <a href="<?php 
        echo url('fedora-connector/servers/edit/' . $server->id);
Esempio n. 13
0
    echo browse_sort_links(array('Title' => 'Dublin Core,Title'), array(''));
    ?>
                        </div>
                        <div class="col-sm-3 col-md-2">
                            <?php 
    echo browse_sort_links(array('Collection' => 'Collection Name'), array(''));
    ?>
                        </div>
                        <div class="hidden-sm col-md-2">
                            <?php 
    echo browse_sort_links(array('Place' => 'Dublin Core,Coverage'), array(''));
    ?>
                        </div>
                        <div class="col-sm-4 col-md-4">
                            <?php 
    echo browse_sort_links(array('Date' => 'Dublin Core,Date'), array(''));
    ?>
                        </div>
                    </div>
                </div>

                <?php 
    foreach (loop('items') as $item) {
        ?>
                <div class="item">
                    <div class="row">
                        <div class="col-sm-2 col-md-2">
                            <?php 
        $image = $item->Files;
        ?>
                            <?php 
Esempio n. 14
0
  <a class="add small green button"
    href="<?php 
    echo url('neatline/add');
    ?>
">
    <?php 
    echo __('Create an Exhibit');
    ?>
  </a>

  <table class="neatline">

    <thead>
      <tr>
        <?php 
    echo browse_sort_links(array(__('Exhibit') => 'title', __('Created') => 'added', __('# Items') => null, __('Public') => null), array('link_tag' => 'th scope="col"'));
    ?>
      </tr>
    </thead>

  <!-- Top pagination. -->
  <div class="pagination"><?php 
    echo pagination_links();
    ?>
</div>

    <tbody>

      <?php 
    foreach (loop('NeatlineExhibit') as $e) {
        ?>
if ($total_results > 0) {
    ?>
            <?php 
    $sortLinks[__('Title')] = 'Dublin Core,Title';
    $sortLinks[__('Collection')] = 'Collection Name';
    ?>
                <div class="browse-items-header hidden-xs">
                    <div class="row">
                        <div class="col-sm-3 col-sm-offset-2 col-md-2 col-md-offset-2">
                            <?php 
    echo browse_sort_links(array('Title' => 'Dublin Core,Title'), array(''));
    ?>
                        </div>
                        <div class="col-sm-3 col-md-2">
                            <?php 
    echo browse_sort_links(array('Collection' => 'Collection Name'), array(''));
    ?>
                        </div>
                        <div class="hidden-sm col-md-2">
                            Place
                        </div>
                        <div class="col-sm-4 col-md-4">
                            Date
                        </div>
                    </div>
                </div>

                <?php 
    foreach (loop('items') as $item) {
        ?>
                <div class="item">