Skip to content

Commit 170510b

Browse files
committed
documentation: document view files that overload core
1 parent f82533e commit 170510b

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed

view/common/advanced-search/item-sets.phtml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
<?php
2+
/**
3+
* Summary: This was copied from the core Omeka S view directory view/common/advanced-search
4+
* from commit 534ed98b4970b23b8841b5b80cf9375317c6d92d.
5+
*
6+
* Purpose: This instance passes the 'bypass_team_filter' => true to the query used to populate
7+
* the item-set select element. This allows users with the 'bypass_team_filter permission
8+
* to see all the installations item-sets, not just those that belong to the current team.
9+
* This facilitates populating new teams with existing resources.
10+
*
11+
* Notes: This file should be patched when upgrading the core software so that the advanced search
12+
* elements continue to reflect the changes in the core software. Create a patch using git diff
13+
* using the commit hash listed below and applying the patch to this file . Then update the commit
14+
* listed under Most recent patch.
15+
*
16+
* Most recent patch: 534ed98b4970b23b8841b5b80cf9375317c6d92d
17+
*
18+
*/
219
$translate = $this->plugin('translate');
320
// Prepare the item set queries
421
$inIds = $query['item_set_id'] ?? [];

view/common/advanced-search/owner.phtml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
<?php
2+
/**
3+
* Summary: This was copied from the core Omeka S view directory view/common/advanced-search
4+
* from commit 534ed98b4970b23b8841b5b80cf9375317c6d92d.
5+
*
6+
* Purpose: This instance uses a local view helper allUserSelect to generate the form element
7+
* because the core view helper userSelect can not accept query parameter, and we need to pass
8+
* passes the 'bypass_team_filter' => true to the query used to populate
9+
* the user select element. This allows users with the 'bypass_team_filter' permission
10+
* to see all the installations users, not just those that are members of the current team.
11+
* This facilitates populating new teams with existing users.
12+
*
13+
* Notes: This file should be patched when upgrading the core software so that the advanced search
14+
* elements continue to reflect the changes in the core software. Create a patch using git diff
15+
* using the commit hash listed below and applying the patch to this file . Then update the commit
16+
* listed under Most recent patch.
17+
*
18+
* Most recent patch: 534ed98b4970b23b8841b5b80cf9375317c6d92d
19+
*
20+
*/
21+
?>
22+
123
<div class="field">
224
<div class="field-meta">
325
<label for="owner_id"><?php echo $this->translate('Search by owner'); ?></label>

view/common/advanced-search/resource-template.phtml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
<?php
2+
/**
3+
* Summary: This was copied from the core Omeka S view directory view/common/advanced-search
4+
* from commit 534ed98b4970b23b8841b5b80cf9375317c6d92d.
5+
*
6+
* Purpose: This instance passes the 'bypass_team_filter' => true to the query used to populate
7+
* the resource-template select element. This allows users with the 'bypass_team_filter' permission
8+
* to see all the installations resource-templates, not just those that belong to the current team.
9+
* This facilitates populating new teams with existing resource-templates.
10+
*
11+
* Notes: This file should be patched when upgrading the core software so that the advanced search
12+
* elements continue to reflect the changes in the core software. Create a patch using git diff
13+
* using the commit hash listed below and applying the patch to this file . Then update the commit
14+
* listed under Most recent patch.
15+
*
16+
* Most recent patch: 534ed98b4970b23b8841b5b80cf9375317c6d92d
17+
*
18+
*/
19+
220
$translate = $this->plugin('translate');
321

422
// Prepare the resource template query.

view/common/advanced-search/site.phtml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
<?php
2+
/**
3+
* Summary: This was copied from the core Omeka S view directory view/common/advanced-search
4+
* from commit 534ed98b4970b23b8841b5b80cf9375317c6d92d.
5+
*
6+
* Purpose: This instance passes the 'bypass_team_filter' => true to the query used to populate
7+
* the site select element. This allows users with the 'bypass_team_filter' permission
8+
* to see all the installations sites, not just those that belong to the current team.
9+
* This facilitates populating new teams with existing sites.
10+
*
11+
* Notes: This file should be patched when upgrading the core software so that the advanced search
12+
* elements continue to reflect the changes in the core software. Create a patch using git diff
13+
* using the commit hash listed below and applying the patch to this file . Then update the commit
14+
* listed under Most recent patch.
15+
*
16+
* Most recent patch: 534ed98b4970b23b8841b5b80cf9375317c6d92d
17+
*
18+
*/
19+
?>
120
<div class="field">
221
<div class="field-meta">
322
<label for="site_id"><?php echo $this->translate('Search by site'); ?></label>

0 commit comments

Comments
 (0)